/* =========================================
   Business Upturn - Single Article Page
   Page-specific styles only - OPTIMIZED VERSION
========================================= */

/* ===== SINGLE PAGE SPECIFIC VARIABLES ===== */
:root {
  /* Article-specific variables only */
  --font-size-hero: clamp(28px, 3.5vw, 42px);
  --font-size-body: 18px;
  --line-height-body: 1.7;
  --line-height-headings: 1.3;
}

/* ===== SINGLE PAGE CONTAINER OVERRIDE ===== */
.single-page .container {
  /* Specific overrides for single page if needed */
}

/* ===== HERO SECTION ===== */
.single .post-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 64% 36%;
  align-items: stretch;
  margin-top: 0;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Panel (Left Side - 64%) */
.single .post-hero-panel {
  position: relative;
  background: linear-gradient(135deg, var(--text-primary) 0%, #000 100%);
  color: var(--background-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 0;
  border-right: 4px solid var(--brand-primary);
  order: 1;
}

.single .post-hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(204, 0, 0, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.single .hero-content {
  width: 90%;
  max-width: 850px;
  margin: 0 auto;
  margin-left: max(5%, calc((100vw - var(--global-max-width, 1300px)) / 2));
  padding-right: 60px;
}

/* Panel Top Section */
.single .panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.single .post-crumb {
  color: var(--background-white);
  background: var(--brand-primary);
  font-weight: var(--font-bold);
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 2px solid var(--brand-primary);
  transition: all var(--transition-fast);
}

.single .post-crumb:hover {
  background: #000;
  color: var(--background-white);
}

/* Social Sharing in Panel - Fixed alignment */
.single .panel-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single .panel-share a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #cbd5e0;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
}

.single .panel-share a:hover {
  background: var(--background-white);
  color: var(--brand-primary);
  border-color: var(--background-white);
  transform: translateY(-1px);
}

/* Article Title */
.single .post-title {
  font-size: var(--font-size-hero);
  line-height: var(--line-height-headings);
  font-weight: var(--font-semibold);
  color: var(--background-white);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  font-family: var(--font-family);
  max-width: 100%;
}

/* Article Meta */
.single .post-meta-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: #e2e8f0;
}

.single .post-meta-hero .meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single .post-meta-hero .meta-label {
  font-weight: var(--font-semibold);
  color: #a0aec0;
  text-transform: capitalize;
  font-size: var(--font-xs);
  letter-spacing: 0.5px;
}

.single .post-meta-hero .byline a {
  color: var(--background-white);
  font-weight: var(--font-bold);
  text-decoration: none;
}

.single .post-meta-hero .byline a:hover {
  color: var(--brand-primary);
}

/* Hero Image (Right Side - 36%) */
.single .post-hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  order: 2;
}

.single .post-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
}

.single .post-hero-media figcaption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: var(--background-white);
  opacity: 0.9;
  font-size: var(--font-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
}

/* ===== ARTICLE BODY ===== */
.post-body-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--global-max-width, 1300px);
  margin: 0 auto;
  padding: 0;
}

/* When sidebar is present - 70-30 split with 5% gap */
.with-sidebar .post-body-grid {
  grid-template-columns: 67.5% 27.5%;
  gap: 5%;
}

.with-sidebar .post-content {
  padding-right: 0;
}

.with-sidebar .trending-sidebar {
  grid-column: 2;
  position: sticky;
  top: 120px;
  align-self: start;
}

/* ===== READER TOOLS - ALWAYS VISIBLE ===== */
.reader-tools {
  width: var(--global-width-percent, 92%);
  max-width: var(--global-max-width, 1300px);
  margin: 0 auto 12px;
  padding: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: auto !important;
}

.btn-toggle {
  background: rgba(204, 0, 0, 0.02);
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: var(--font-semibold);
  font-size: var(--font-sm);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  height: auto !important;
  min-height: auto !important;
  max-height: 40px;
  border-radius: 5px;
}

.btn-toggle:hover {
  border-color: var(--brand-primary);
  color: var(--text-secondary);
  background: var(--background-white);
}

/* Reading Time Badge - Non-clickable */
.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid #8B0000;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: default;
  user-select: none;
  max-height: 40px;
}

.reading-time-badge i {
  color: #8B0000;
  font-size: 14px;
}

/* Dark mode support */
.dark-mode .reading-time-badge {
  color: #ff6666;
  border-color: #8B0000;
}

.dark-mode .reading-time-badge i {
  color: #ff6666;
}

/* ===== CONTENT OVERFLOW FIX ===== */
.post-content {
  grid-column: 1;
  font-family: var(--font-family);
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

/* Constrain all images */
.post-content img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  display: block;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin: 24px 0;
}

.post-content figure {
  max-width: 100% !important;
  margin: 32px 0 !important;
  overflow: hidden;
}

.post-content figure img {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* Fix WordPress embedded content */
.post-content iframe,
.post-content embed,
.post-content object,
.post-content video {
  max-width: 100% !important;
}

/* YouTube/Video embeds - Responsive wrapper */
.post-content .wp-block-embed,
.post-content .wp-block-embed__wrapper,
.post-content .wp-embed-responsive,
.post-content .wp-block-embed-youtube {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 24px 0;
}

.post-content .wp-block-embed iframe,
.post-content .wp-block-embed__wrapper iframe,
.post-content .wp-embed-responsive iframe,
.post-content .wp-block-embed-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: none;
}

/* Instagram embeds */
.post-content .instagram-media,
.post-content .wp-block-embed-instagram {
  max-width: 100% !important;
  margin: 24px auto !important;
}

/* Twitter embeds */
.post-content .twitter-tweet,
.post-content .wp-block-embed-twitter {
  max-width: 100% !important;
  margin: 24px auto !important;
}

/* WordPress galleries */
.post-content .wp-block-gallery,
.post-content .blocks-gallery-grid {
  max-width: 100% !important;
}

.post-content p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  margin: 0 0 22px;
  font-weight: 400;
}

.post-content p strong {
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.post-content em {
  font-style: italic;
  color: var(--text-secondary);
}

/* Headings */
.post-content h2 {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: var(--line-height-headings);
  margin: 40px 0 20px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: var(--line-height-headings);
  margin: 32px 0 16px;
}

/* Links */
.post-content a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: var(--font-semibold);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
  word-wrap: break-word;
}

.post-content a:hover {
  border-bottom-color: var(--brand-primary);
}

/* Horizontal Rules */
.post-content hr {
  border: 0;
  height: 1px;
  background: var(--brand-primary);
  margin: 32px 0;
}

/* ===== TOPICS/TAGS ===== */
.post-topics {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 40px 0 60px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-family);
}

.post-topics > span {
  color: var(--text-secondary);
  font-weight: var(--font-bold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
  font-family: var(--font-family);
}

.post-topics a {
  background: var(--background-light);
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  font-weight: var(--font-medium);
  font-size: 13px;
  font-family: var(--font-family);
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.2;
  white-space: nowrap;
}

.post-topics a:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: rgba(204, 0, 0, 0.02);
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
  background: var(--background-white);
  padding: 40px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
}

.related-content-wrapper {
  width: var(--global-width-percent, 92%);
  max-width: var(--global-max-width, 1300px);
  margin: 0 auto;
  padding: 0;
}

.related-title {
  font-family: var(--font-family);
  font-size: var(--font-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0 0 24px;
  text-align: left;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-primary);
  display: inline-block;
}

/* Related grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.related-card:hover {
  transform: translateY(-2px);
}

.related-media {
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
}

.related-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.related-card:hover .related-media img {
  transform: scale(1.03);
}

.related-content {
  padding: 0;
}

/* Related category uses main.css unified style */

.related-headline {
  font-size: var(--font-base);
  font-weight: var(--font-semibold);
  line-height: 1.3;
  margin: 0 0 8px;
  font-family: var(--font-family);
}

.related-headline a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-headline a:hover {
  color: var(--brand-primary);
}

.related-time {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: var(--font-medium);
  font-family: var(--font-family);
}

/* ===== READING MODE ===== */
html.reading-mode .sidebar,
body.reading-mode .sidebar {
  display: none !important;
}

html.reading-mode .post-body-grid,
body.reading-mode .post-body-grid {
  grid-template-columns: 1fr !important;
  max-width: 900px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .single .post-hero {
    grid-template-columns: 1fr;
  }
  
  .single .post-hero-panel {
    padding: 32px 0 36px;
    border-right: none;
    border-bottom: 4px solid var(--brand-primary);
    order: 1;
    max-width: none;
  }
  
  .single .hero-content {
    width: 85%;
    margin: 0 auto;
    margin-left: 8%;
    padding-right: 24px;
  }
  
  .single .post-hero-media {
    order: 2;
  }
  
  .single-page .container {
    width: calc(100% - 40px);
  }
  
  .post-body-grid,
  .with-sidebar .post-body-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }
  
  .with-sidebar .post-content {
    padding-right: 0;
  }
  
  .with-sidebar .trending-sidebar {
    position: static;
    grid-column: 1;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
  }
  
  .reader-tools {
    width: calc(100% - 40px);
    max-width: 100%;
    padding: 0 0 16px;
    justify-content: flex-start;
  }
  
  .related-content-wrapper {
    width: calc(100% - 40px);
    padding: 0;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .related-media img {
    height: 160px;
  }
  
  .related-headline {
    font-size: 15px;
    line-height: 1.4;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .single .post-hero-panel {
    padding: 24px 0 28px;
  }
  
  .single .hero-content {
    width: 85%;
    margin-left: 6%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .single .post-title {
    font-size: clamp(22px, 5vw, 32px);
    order: 2;
  }
  
  .single .panel-top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }
  
  .single .post-crumb {
    margin-bottom: 16px;
  }
  
  .single .panel-share {
    order: 4;
    margin-top: 12px;
    margin-left: 0;
  }
  
  .single .post-meta-hero {
    order: 3;
    margin-bottom: 0;
  }
  
  .single-page .container {
    width: calc(100% - 32px);
  }
  
  .post-body-grid {
    padding: 0;
  }
  
  /* READER TOOLS - VISIBLE ON MOBILE */
  .reader-tools {
    width: calc(100% - 32px);
    padding: 0 0 12px;
    justify-content: center;
    display: flex !important;
  }
  
  .btn-toggle {
    font-size: 13px;
    padding: 8px 14px;
  }
  
  .reading-time-badge {
    font-size: 13px;
    padding: 8px 14px;
  }
  
  .reading-time-badge i {
    font-size: 13px;
  }
  
  .related-content-wrapper {
    width: calc(100% - 32px);
    padding: 0;
  }
  
  .post-topics {
    justify-content: flex-start;
    gap: 6px;
    padding: 16px 0;
  }
  
  .post-topics > span {
    font-size: var(--font-xs);
    margin-right: 6px;
  }
  
  .post-topics a {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .related-articles {
    padding: 32px 0;
    margin-top: 32px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .related-title {
    font-size: var(--font-lg);
    margin: 0 0 20px;
  }
  
  .related-card {
    background: var(--background-white);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .related-media {
    margin-bottom: 8px;
  }
  
  .related-media img {
    height: 120px;
  }
  
  .related-content {
    padding: 12px;
  }
  
  .related-category {
    font-size: 10px;
    margin-bottom: 4px;
  }
  
  .related-headline {
    font-size: var(--font-sm);
    line-height: 1.3;
    margin: 0 0 6px;
  }
  
  .related-time {
    font-size: 11px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .single-page .container {
    width: calc(100% - 32px);
  }
  
  .reader-tools {
    gap: 8px;
  }
  
  .btn-toggle {
    font-size: 12px;
    padding: 7px 12px;
  }
  
  .reading-time-badge {
    font-size: 12px;
    padding: 7px 12px;
  }
  
  .related-grid {
    gap: 12px;
  }
  
  .related-headline {
    font-size: 13px;
    line-height: 1.2;
  }
  
  .related-media img {
    height: 100px;
  }
  
  .related-content {
    padding: 10px;
  }
}

/* ===== READING MODE ===== */
body.reading-mode .post-hero-media {
  display: none !important;
}

body.reading-mode .trending-sidebar {
  display: none !important;
}

body.reading-mode .related-articles {
  display: none !important;
}

body.reading-mode .post-hero {
  grid-template-columns: 1fr;
  margin-bottom: 32px;
  box-shadow: none;
}

body.reading-mode .post-hero-panel {
  background: var(--background-white);
  color: var(--text-primary);
  border-right: none;
  border-bottom: 2px solid var(--border-light);
  padding: 24px 0;
}

body.reading-mode .hero-content {
  width: var(--global-width-percent);
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

body.reading-mode .panel-top {
  display: none;
}

body.reading-mode .post-title {
  color: var(--text-primary);
  font-size: var(--font-3xl);
  margin: 0 0 16px;
}

body.reading-mode .post-meta-hero {
  color: var(--text-secondary);
}

body.reading-mode .post-meta-hero .byline a {
  color: var(--brand-primary);
}

body.reading-mode .post-body-grid {
  grid-template-columns: 1fr !important;
  max-width: 720px;
  margin: 0 auto;
}

body.reading-mode .post-content {
  padding: 0;
}

body.reading-mode .post-topics {
  display: none;
}

body.reading-mode .reader-tools {
  max-width: 720px;
  margin: 0 auto 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

body.reading-mode .btn-toggle {
  background: var(--brand-primary);
  color: var(--background-white);
  border-color: var(--brand-primary);
}

body.reading-mode .btn-toggle:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

/* Clean typography in reading mode */
body.reading-mode .post-content {
  font-size: 18px;
  line-height: 1.8;
}

body.reading-mode .post-content h2 {
  margin: 32px 0 16px;
}

body.reading-mode .post-content h3 {
  margin: 24px 0 12px;
}

body.reading-mode .post-content p {
  margin-bottom: 20px;
}

body.reading-mode .post-content img,
body.reading-mode .post-content figure {
  display: none;
}

/* Mobile adjustments for reading mode */
@media (max-width: 768px) {
  body.reading-mode .hero-content {
    width: calc(100% - 32px);
  }
  
  body.reading-mode .post-title {
    font-size: var(--font-2xl);
  }
  
  body.reading-mode .post-content {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ========================================
   LIVE BLOG BADGE - Hero Panel
   ======================================== */

.live-blog-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.live-badge {
  background: #cc0000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: liveBlink 2s infinite;
}

@keyframes liveBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.live-updated {
  color: #cc0000;
  font-size: 14px;
  font-weight: 500;
}

/* Dark hero for live blog posts */
body.live-blog-post .post-hero {
  background: #1a1a1a;
}

body.live-blog-post .post-hero-panel {
  background: #1a1a1a;
}

body.live-blog-post .hero-content {
  color: #fff;
}

body.live-blog-post .post-title {
  color: #fff;
}

body.live-blog-post .post-crumb {
  background: #cc0000;
  color: #fff;
}

body.live-blog-post .meta-line,
body.live-blog-post .meta-line a,
body.live-blog-post .meta-label {
  color: #ccc;
}

body.live-blog-post .meta-line a:hover {
  color: #fff;
}

body.live-blog-post .panel-share a {
  color: #ccc;
  border-color: #444;
}

body.live-blog-post .panel-share a:hover {
  color: #fff;
  border-color: #fff;
}

/* ========================================
   LIVE BLOG UPDATES SECTION
   ======================================== */
/* Live Blog Styles */
.liveblog {
  max-width: 100%;
  margin: 30px 0;
}

.live-blog-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  padding: 20px 25px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-pulse {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.live-badge-text {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.live-updated-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-left: auto;
}

.liveblog-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e1e8ed;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.live-entry {
  background: transparent;
  border-bottom: 1px solid #e9ecef;
  padding: 0;
  position: relative;
}

.live-entry:last-child {
  border-bottom: none;
}

.live-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #28a745;
  margin: 0;
}

.live-entry-header.old {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.live-time {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.live-entry-header.old .live-time {
  color: #6c757d;
}

.live-time i {
  font-size: 8px;
}

.live-badge-latest {
  background: #fff;
  color: #28a745;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-entry-content {
  padding: 20px 25px;
}

.live-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 15px;
  color: #1a1a1a;
}

.live-body {
  color: #333;
  line-height: 1.8;
  font-size: 16px;
}

.live-body p {
  margin: 0 0 15px;
}

.live-body p:last-child {
  margin-bottom: 0;
}

.live-media {
  margin: 20px 0;
}

.live-media img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.live-entry-actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.live-entry-actions a {
  color: #6c757d;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s;
}

.live-entry-actions a:hover {
  color: #e74c3c;
  transform: scale(1.1);
}

.liveblog-sort {
  background: #fff;
  padding: 15px 25px;
  border-bottom: 1px solid #e9ecef;
  border-left: 1px solid #e1e8ed;
  border-right: 1px solid #e1e8ed;
  display: flex;
  align-items: center;
  gap: 12px;
}

.liveblog-sort label {
  font-weight: 600;
  font-size: 14px;
  color: #495057;
}

.liveblog-sort select {
  padding: 8px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.liveblog-sort select:focus {
  outline: none;
  border-color: #e74c3c;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .live-blog-header {
    padding: 15px 20px;
  }
  
  .live-badge-text {
    font-size: 14px;
  }
  
  .live-updated-text {
    font-size: 12px;
  }
  
  .live-headline {
    font-size: 19px;
  }
  
  .live-entry-content {
    padding: 15px 20px;
  }
  
  .live-body {
    font-size: 15px;
  }
  
  .live-entry-actions {
    gap: 15px;
  }
  
  .live-entry-actions a {
    font-size: 16px;
  }
}


/* =========================================
   MOBILE FIX - FORCE READER TOOLS VISIBILITY
   Add this at the VERY END of single.css
========================================= */

/* Maximum specificity mobile fix */
@media (max-width: 768px) {
  .reader-tools,
  .single .reader-tools,
  main.single .reader-tools,
  body .single .reader-tools,
  html body main.single .reader-tools {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    position: relative !important;
    width: calc(100% - 32px) !important;
    margin: 0 auto 12px !important;
    padding: 0 0 12px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  
  /* Ensure all child elements are visible */
  .reader-tools *,
  .reader-tools .btn-toggle,
  .reader-tools .reading-time-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .reader-tools,
  .single .reader-tools,
  main.single .reader-tools {
    display: flex !important;
    width: calc(100% - 32px) !important;
    gap: 8px !important;
  }
}

/* Ensure TTS buttons are also visible when added dynamically */
@media (max-width: 768px) {
  .reader-tools .tts-btn,
  .reader-tools #tts-play,
  .reader-tools #tts-pause,
  .reader-tools #tts-stop,
  .reader-tools .tts-speed-control {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}



/* ==========================================
   SWIPE NAVIGATION STYLES
   ========================================== */

/* Swipe Indicator */
.swipe-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.swipe-indicator.active {
    opacity: 1;
}

.swipe-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #cc0000;
    opacity: 0;
    transition: all 0.3s ease;
}

.swipe-arrow i {
    font-size: 48px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.swipe-arrow span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Swipe Transition Overlay */
.swipe-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-transition.active {
    opacity: 1;
}

.swipe-transition i {
    color: white;
    font-size: 80px;
    animation: swipeArrowBounce 0.6s ease;
}

@keyframes swipeArrowBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.swipe-transition-next i {
    animation-name: slideRight;
}

.swipe-transition-prev i {
    animation-name: slideLeft;
}

@keyframes slideRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bounce Animation (No Article Available) */
body.bounce-left {
    animation: bounceLeft 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.bounce-right {
    animation: bounceRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceLeft {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-30px);
    }
    50% {
        transform: translateX(15px);
    }
    75% {
        transform: translateX(-5px);
    }
}

@keyframes bounceRight {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(30px);
    }
    50% {
        transform: translateX(-15px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Swipe Message (No More Articles) */
.swipe-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.swipe-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .swipe-indicator {
        padding: 0 20px;
    }
    
    .swipe-arrow i {
        font-size: 36px;
    }
    
    .swipe-arrow span {
        font-size: 12px;
    }
    
    .swipe-transition i {
        font-size: 60px;
    }
    
    .swipe-message {
        bottom: 80px;
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* ==========================================
   SWIPE TUTORIAL / ONBOARDING - TRANSPARENT
   ========================================== */

.swipe-tutorial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.swipe-tutorial.show {
    opacity: 1;
}

.swipe-tutorial-overlay {
    text-align: center;
    max-width: 400px;
    animation: tutorialFadeIn 0.4s ease;
}

@keyframes tutorialFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Hand - Swipes Left to Right repeatedly */
.swipe-hand-animation {
    font-size: 80px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-hand-animation i {
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
    animation: swipeHandMove 2s ease-in-out infinite;
    transform-origin: center;
}

/* Hand moves from left to right (swiping gesture) */
@keyframes swipeHandMove {
    0% {
        transform: translateX(-40px) rotate(-10deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(40px) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-40px) rotate(-10deg);
        opacity: 0.5;
    }
}

/* Tutorial Text */
.swipe-tutorial-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-family);
    line-height: 1.4;
}

/* Dismiss Button */
.swipe-tutorial-dismiss {
    background: #cc0000;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(204, 0, 0, 0.4);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swipe-tutorial-dismiss:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.5);
}

.swipe-tutorial-dismiss:active {
    transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .swipe-hand-animation {
        font-size: 60px;
        height: 80px;
    }
    
    .swipe-tutorial-text {
        font-size: 20px;
        padding: 0 20px;
    }
    
    .swipe-tutorial-dismiss {
        padding: 12px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .swipe-hand-animation {
        font-size: 50px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .swipe-tutorial-text {
        font-size: 18px;
    }
    
    .swipe-tutorial-dismiss {
        padding: 10px 28px;
        font-size: 14px;
    }
}


/* =========================================
   FIX: Links inside STRONG/BOLD tags
   Add to END of single.css and main.css
========================================= */

/* Links that contain strong/bold tags */
.post-content a strong,
.post-content a b,
a strong,
a b {
  color: inherit;  /* Inherit red from parent link */
  font-weight: var(--font-bold);
}

/* Strong/bold tags that contain links */
.post-content strong a,
.post-content b a,
strong a,
b a {
  color: #cc0000;
  color: var(--brand-primary);
  font-weight: var(--font-bold);
}

.post-content strong a:hover,
.post-content b a:hover,
strong a:hover,
b a:hover {
  color: #a60000;
  color: var(--brand-primary-dark);
}