﻿/*
 Theme Name: Viraleye Modern
 Theme URI: https://viraleye.net/
 Description: Clean, high-converting ad-monetized template for Viraleye.
 Author: Viraleye
 Template: astra
 Version: 1.0.2
 Text Domain: viraleye-modern
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette */
  --color-primary: #1e3a8a;       /* Deep editorial navy */
  --color-primary-light: #3b82f6; /* Bright vibrant blue for active states */
  --color-accent: #e11d48;        /* Rose / Crimson for high-priority CTA */
  --color-accent-hover: #be123c;
  --color-bg: #f8fafc;            /* Clean light gray background */
  --color-surface: #ffffff;       /* Pure white cards and containers */
  --color-border: #e2e8f0;        /* Subtle divider borders */
  --color-text-main: #0f172a;     /* Deep slate for crisp text */
  --color-text-muted: #64748b;    /* Secondary text */
  --color-tag-bg: #eff6ff;
  --color-tag-text: #1d4ed8;

  /* Ad Slot Placeholder styling */
  --color-ad-bg: #f1f5f9;
  --color-ad-border: #cbd5e1;
  --color-ad-text: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1240px;
  --article-max-width: 740px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Reading Progress Bar (Top) */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Bar / Ticker */
.top-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center; text-align: center;
}
.trending-pill {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-right: 10px;
  letter-spacing: 0.5px;
}
.top-bar a:hover {
  color: #ffffff;
}

/* Header & Nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center; text-align: center;
  height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
}
.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.25);
}
.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  letter-spacing: 0.3px;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  position: relative;
  padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary-light);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 2px;
}
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 120;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  font-weight: 500;
}
.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--color-primary-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: #f1f5f9;
  transition: all 0.2s;
}
.search-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-main);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-text-main);
}

/* -------------------------------------------------------------------
   AD SPOTS (ENGINEERED FOR GOOGLE CORE WEB VITALS / ZERO CLS)
------------------------------------------------------------------- */
.ad-slot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  text-align: center;
  background: var(--color-ad-bg);
  border: 1px dashed var(--color-ad-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-ad-text);
  margin-bottom: 4px;
  font-weight: 700;
}
.ad-demo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  color: #475569;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px;
}
.ad-demo-box span {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: normal;
}
/* Leaderboard Ad (728x90 desktop / 320x50 mobile) */
.ad-leaderboard {
  width: 100%;
  max-width: 970px;
  min-height: 110px;
  padding: 10px 0;
}
.ad-leaderboard .ad-demo-box {
  width: 728px;
  height: 90px;
  max-width: 95%;
}
/* Sticky Sidebar Ad (300x250 or 300x600 Half-page) */
.ad-sidebar {
  width: 100%;
  min-height: 280px;
  padding: 14px 0;
}
.ad-sidebar.sticky-ad {
  position: sticky;
  top: 90px;
  z-index: 50;
  min-height: 600px;
}
.ad-sidebar .ad-demo-box {
  width: 300px;
  height: 250px;
}
.ad-sidebar.sticky-ad .ad-demo-box {
  width: 300px;
  height: 600px;
}
/* In-Content Native Ad (Responsive 336x280 or native card) */
.ad-in-article {
  width: 100%;
  max-width: 680px;
  min-height: 180px;
  padding: 16px;
  margin: 32px auto;
}
.ad-in-article .ad-demo-box {
  width: 100%;
  max-width: 580px;
  height: 140px;
  border-left: 4px solid var(--color-primary-light);
}
/* Sticky Bottom Anchor Ad (High mobile/desktop RPM) */
.sticky-bottom-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sticky-anchor-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 730px;
  min-height: 50px;
}
/* Responsive Ad Format Helpers */
.ad-desktop-only {
  display: block;
}
.ad-mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .ad-desktop-only {
    display: none !important;
  }
  .ad-mobile-only {
    display: block !important;
  }
}
.close-anchor-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: var(--radius-full);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.close-anchor-btn:hover {
  background: var(--color-accent);
}

/* -------------------------------------------------------------------
   HERO / EDITORIAL SHOWCASE
------------------------------------------------------------------- */
.hero-editorial {
  padding: 36px 0 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: var(--shadow-lg);
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #ffffff;
}
.hero-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.hero-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0.82;
}
.hero-card:hover img {
  transform: scale(1.04);
  opacity: 0.95;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.4) 40%, rgba(15,23,42,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.hero-content a {
  pointer-events: auto;
}
.hero-side-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.hero-card.side-card {
  height: 228px;
  padding: 20px;
}
.badge-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.badge-category:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.badge-abandoned { background: #b91c1c; color: #fff; }
.badge-travel { background: #0284c7; color: #fff; }
.badge-history { background: #d97706; color: #fff; }
.badge-general { background: #059669; color: #fff; }
.badge-finance { background: #0d9488; color: #fff; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hero-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-card:hover .hero-title a {
  color: #93c5fd;
}
.hero-card.side-card .hero-title {
  font-size: 1.2rem;
}
.card-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* -------------------------------------------------------------------
   MAIN LAYOUT (CONTENT + SIDEBAR)
------------------------------------------------------------------- */
.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  margin-top: 32px;
  margin-bottom: 60px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: center; text-align: center;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text-main);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary-light);
  border-radius: 2px;
}
.view-all-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary-light);
}
.view-all-link:hover {
  text-decoration: underline;
}

/* Article Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.card-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-thumbnail img {
  transform: scale(1.05);
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-body .badge-category {
  margin-bottom: 10px;
  align-self: flex-start;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--color-text-main);
}
.card-title a:hover {
  color: var(--color-primary-light);
}
.card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center; text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Category Quick Explorer */
.category-chips-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 28px;
  scrollbar-width: none;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.category-chip:hover, .category-chip.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* -------------------------------------------------------------------
   SIDEBAR WIDGETS
------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.widget-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Trending Mini List */
.trending-post-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: center;
}
.trending-post-item:last-child {
  margin-bottom: 0;
}
.trending-rank {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #cbd5e1;
  width: 24px;
  text-align: center;
}
.trending-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.trending-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trending-post-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.trending-post-info h4 a:hover {
  color: var(--color-primary-light);
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  color: #ffffff;
  border: none;
}
.newsletter-widget .widget-title {
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 12px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.newsletter-form input::placeholder {
  color: #94a3b8;
}
.newsletter-form button {
  width: 100%;
}

/* -------------------------------------------------------------------
   SINGLE ARTICLE VIEW STYLING (MAXIMUM ENGAGEMENT & HIGH RPM)
------------------------------------------------------------------- */
.article-header {
  padding: 40px 0 24px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.article-breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.article-breadcrumbs a:hover {
  color: var(--color-primary-light);
}
.article-main-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--color-text-main);
  margin-bottom: 20px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
}
.article-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg);
  background: #0f172a;
}
.article-featured-image img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.25s ease;
}
.article-featured-image img:hover {
  opacity: 0.96;
}
.article-featured-image figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 10px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-style: italic;
}

/* Mobile Social Share Strip */
.mobile-share-strip {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 24px;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  max-width: 500px;
}
.mobile-share-strip span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.m-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.m-share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
@media (max-width: 1200px) {
  .mobile-share-strip {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Previous & Next Post Navigation */
.post-navigation-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.nav-prev, .nav-next {
  display: flex;
  flex-direction: column;
}
.nav-next {
  text-align: right;
  align-items: flex-end;
}
.nav-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 6px;
}
.nav-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.nav-title:hover {
  color: var(--color-primary-light);
}
@media (max-width: 640px) {
  .post-navigation-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* Author Bio Box */
.author-bio-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.author-avatar-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-bio-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text-main);
}
.author-bio-info p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Article Prose */
.article-prose {
  max-width: var(--article-max-width);
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #1e293b;
}
.article-prose p {
  margin-bottom: 24px;
}
.article-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 40px 0 18px;
  color: #0f172a;
}
.article-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 14px;
}
.article-prose blockquote {
  border-left: 4px solid var(--color-primary-light);
  padding: 16px 24px;
  background: #f1f5f9;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #334155;
}

/* Interactive Table of Contents */
.toc-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}
.toc-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center; text-align: center;
}
.toc-list {
  list-style: none;
}
.toc-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.toc-list a {
  color: #334155;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
}
.toc-list a:hover {
  color: var(--color-accent);
}

/* Floating Social Share (Desktop left margin) */
.social-share-floating {
  position: fixed;
  left: 24px;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 80;
}
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.share-btn:hover {
  transform: scale(1.1);
}
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-pin { background: #e60023; }
.share-wa { background: #25d366; }

/* Image Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center; text-align: center;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    height: 380px;
  }
  .hero-side-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .ad-sidebar.sticky-ad {
    position: static;
    min-height: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .social-share-floating {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn-primary {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-side-grid {
    grid-template-columns: 1fr;
  }
  .article-main-title {
    font-size: 1.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* ==========================================================================
   WordPress Article & Content Styling
   ========================================================================== */

/* Single Post Entry Content */
.entry-content,
.article-prose {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--color-text-main);
}

.entry-content p,
.article-prose p {
  margin-bottom: 1.6rem;
  color: #1e293b;
}

.entry-content h2,
.article-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.entry-content h3,
.article-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.entry-content blockquote,
.article-prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.entry-content img,
.article-prose img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999999;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
}

/* Floating Social Share */
.social-share-floating {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}

.social-share-floating .share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.social-share-floating .share-btn:hover {
  transform: scale(1.1);
}

.share-fb { background-color: #1877f2; }
.share-tw { background-color: #0f1419; }
.share-pin { background-color: #e60023; }
.share-wa { background-color: #25d366; }

@media (max-width: 1200px) {
  .social-share-floating {
    display: none !important;
  }
}

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  width: 0%;
  z-index: 999999;
  transition: width 0.1s ease-out;
}

/* Search Dropdown Modal */
#header-search-box.active {
  display: block !important;
}

/* Brand Logo Image */
.site-header .brand-logo img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.site-footer .brand-logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  display: block;
}


/* Search Button & Mobile Toggle Refinement */
.search-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
}

.search-btn:hover {
  background: #ffffff !important;
  color: #1e3a8a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transform: scale(1.05) !important;
}

.search-btn svg {
  display: block !important;
}

.mobile-toggle {
  display: none;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 12px 10px !important;
  cursor: pointer !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.2s ease !important;
}

.mobile-toggle span {
  display: block !important;
  height: 2px !important;
  width: 100% !important;
  background: #334155 !important;
  border-radius: 2px !important;
  transition: all 0.25s ease !important;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0 !important;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: flex !important;
  }
}
