/* =========================================
   DEEP INDIGO + AMBER — NEWS WEBSITE THEME
   White background, premium editorial style
   ========================================= */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
  --indigo-900: #1e1b6b;
  --indigo-800: #2d2a8a;
  --indigo-700: #3730a3;
  --indigo-600: #4338ca;
  --indigo-100: #e0e0f5;
  --indigo-50:  #f4f4fd;

  --amber-600:  #d97706;
  --amber-500:  #f59e0b;
  --amber-400:  #fbbf24;
  --amber-100:  #fef3c7;
  --amber-50:   #fffbeb;

  --text-dark:    #1a1a2e;
  --text-mid:     #374151;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;

  --bg-white:     #ffffff;
  --bg-soft:      #f8f8ff;
  --bg-subtle:    #f1f1fb;
  --border-light: #e5e5f0;
  --border-mid:   #d0d0ea;

  --shadow-sm: 0 2px 8px rgba(55, 48, 163, 0.08);
  --shadow-md: 0 4px 20px rgba(55, 48, 163, 0.12);
  --shadow-lg: 0 12px 40px rgba(55, 48, 163, 0.18);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 72px;
  background-color: var(--bg-soft);
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
}


/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header scroll effect */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-mid);
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

/* LOGO */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-box {
  width: 36px;
  height: 36px;
  background: var(--indigo-700);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px;
  font-family: 'Playfair Display', serif;
  transition: background 0.3s ease;
}

.logo-box:hover {
  background: var(--amber-600);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--indigo-900);
}

.logo-text span {
  color: var(--amber-600);
}

.logo-text.full  { display: inline-block; }
.logo-text.short { display: none; }

@media (max-width: 768px) {
  .logo-text.full  { display: none; }
  .logo-text.short { display: inline-block; font-size: 20px; }
}

/* NAV */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: var(--indigo-700);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 6px;
  background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.3), transparent 70%);
  transform: translateX(-50%);
  transition: width 0.45s ease;
  pointer-events: none;
}

.main-nav a:hover::after  { width: 100%; opacity: 1; }
.main-nav a:hover::before { width: 140%; }

/* HEADER RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icons {
  display: flex;
  gap: 18px;
  font-size: 18px;
  color: var(--text-muted);
}

.header-icons i { cursor: pointer; transition: color 0.2s ease; }
.header-icons i:hover { color: var(--indigo-700); }

.search-icon, .user-icon {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-icon:hover, .user-icon:hover { color: var(--indigo-700); }

/* HAMBURGER */
.hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--indigo-700);
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; width: 70%; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger:hover span { background: var(--amber-600); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

@media (max-width: 992px) {
  .hamburger { display: block; }

  .main-nav {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--bg-white);
    border-top: 3px solid var(--indigo-700);
    padding: 30px;
    transition: right 0.3s ease;
    z-index: 2000;
  }

  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; gap: 22px; }
}

/* NOTIFICATION */
.notification-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-icon {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.notification-icon:hover { color: var(--indigo-700); }

.notification-dot {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 8px;
  height: 8px;
  background: var(--amber-500);
  border-radius: 50%;
  display: none;
}

.notification-dot.active { display: block; }

.notification-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  width: 320px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--indigo-700);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 999;
  overflow: hidden;
}

.notification-dropdown.active { display: block; }

.notification-dropdown ul { list-style: none; margin: 0; padding: 0; }

.notification-dropdown li {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.notification-dropdown li:last-child { border-bottom: none; }

.notification-dropdown li:hover {
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.notification-dropdown li.notification-empty {
  text-align: center;
  color: var(--text-muted);
  cursor: default;
}

@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 64px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    border-radius: 8px;
    z-index: 1000;
    animation: slideDown 0.25s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }
}


/* =========================
   NEWS TICKER
========================= */
.news-ticker {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--indigo-900);
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

.ticker-label {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--amber-600);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.ticker-move {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding-left: 100%;
}

.news-ticker:hover .ticker-move { animation-play-state: paused; }

.ticker-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-item:hover { color: var(--amber-400); text-decoration: underline; }

.ticker-separator {
  color: var(--amber-600);
  font-size: 14px;
  user-select: none;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .ticker-label { font-size: 11px; padding: 8px 12px; }
  .ticker-item  { font-size: 12px; }
  .ticker-move  { animation-duration: 45s; }
}

@media (max-width: 480px) {
  .ticker-label { display: none; }
}


/* =========================
   HERO SLIDER
========================= */
.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 0.8s ease, filter 0.8s ease;
  z-index: 0;
}

.hero-slide:hover .hero-bg {
  transform: scale(1.12);
  filter: brightness(0.62);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 27, 107, 0.25) 0%,
    rgba(30, 27, 107, 0.75) 100%
  );
  z-index: 1;
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 120px 32px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--amber-600);
  color: #fff;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: 'DM Sans', sans-serif;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
}

.hero-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-title-link:hover { color: var(--amber-400); }

.hero-content p {
  max-width: 700px;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'DM Sans', sans-serif;
}

.hero-btn {
  margin-top: 26px;
  display: inline-block;
  padding: 12px 24px;
  background: var(--amber-600);
  border: 2px solid var(--amber-600);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.hero-btn:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots .dot.active { background: var(--amber-500); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  background: rgba(30, 27, 107, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: var(--amber-600);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

@media (max-width: 768px) {
  .hero-slider { height: auto; min-height: 70svh; }
  .hero-content { padding: 72px 16px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p  { font-size: 14px; }
  .hero-btn { padding: 10px 18px; font-size: 12px; }
  .hero-arrow { display: none !important; }
}


/* ==============================
   TRANSMISSIONS / MAIN GRID
============================== */
.transmissions-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 80px 3%;
  background: var(--bg-soft);
  align-items: start;
}

.main-content, .transmissions-left { min-width: 0; }

.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: start;
}

.sidebar-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--indigo-700);
  padding: 25px 20px;
  height: max-content;
  box-shadow: var(--shadow-sm);
}

/* TRANSMISSIONS HEADER */
.transmissions-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-light);
}

.transmissions-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo-900);
  font-family: 'Playfair Display', serif;
}

.transmissions-head a {
  font-size: 10px;
  color: var(--amber-600);
  text-decoration: none;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s;
}

.transmissions-head a:hover { color: var(--indigo-700); }

/* TRANSMISSIONS GRID */
.transmissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.transmission-card {
  position: relative;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.transmission-img {
  display: block;
  height: 200px;
  overflow: hidden;
}

.transmission-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.transmission-card:hover img { transform: scale(1.08); }

.transmission-body { padding-top: 12px; }

.transmission-body .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.1px;
  padding: 4px 10px;
  margin: 10px 0 12px;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  font-weight: 600;
  text-transform: uppercase;
}

.transmission-body h3,
.transmission-body h3 a {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  transition: color 0.3s ease;
}

.transmission-card:hover h3,
.transmission-card:hover h3 a { color: var(--amber-600); }

.transmission-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* VIRAL SIGNALS */
.viral-box h3 {
  font-size: 13px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 22px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.viral-item {
  display: grid;
  grid-template-columns: 36px 64px 1fr;
  gap: 16px;
  margin-bottom: 20px;
  text-decoration: none;
}

.rank {
  font-size: 28px;
  font-weight: 800;
  color: var(--indigo-100);
  font-family: 'Playfair Display', serif;
}

.viral-item:hover .rank { color: var(--amber-500); }

.viral-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.viral-tag {
  font-size: 10px;
  color: var(--indigo-600);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.viral-item h4 {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dark);
  transition: color 0.3s ease;
  font-weight: 500;
}

.viral-item:hover h4 { color: var(--amber-600); }

.viral-item time {
  font-size: 11px;
  color: var(--text-light);
}

/* CATEGORIES */
.categories-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo-900);
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-grid a {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--indigo-100);
  color: var(--indigo-700);
  background: var(--indigo-50);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.category-grid a:hover {
  background: var(--indigo-700);
  border-color: var(--indigo-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
  .transmissions-wrapper { grid-template-columns: 1fr; }
  .transmissions-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .transmission-card { padding-bottom: 24px; margin-bottom: 24px; }
  .transmission-card:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
}


/* ==============================
   SECTOR ANALYSIS
============================== */
.sector-wrapper {
  padding: 0 3% 80px;
  background: var(--bg-soft);
}

.sector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-light);
}

.sector-head h2 {
  font-size: 22px;
  color: var(--indigo-900);
  font-family: 'Playfair Display', serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sector-tabs { display: flex; gap: 28px; }

.sector-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 1.7px;
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.sector-tab.active {
  color: var(--amber-600);
  border-bottom-color: var(--amber-600);
}

.sector-panel { display: none; position: relative; }
.sector-panel.active { display: block; }

.sector-container { width: 100%; overflow: hidden; position: relative; }

.sector-track {
  display: flex;
  gap: 28px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.sector-card {
  flex: 0 0 calc((100% - 56px) / 3);
  box-sizing: border-box;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.sector-img { height: 200px; overflow: hidden; display: block; }

.sector-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sector-card:hover .sector-img img { transform: scale(1.08); }

.sector-body { margin-top: 12px; padding: 0 14px 10px; }

.sector-body .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  margin-bottom: 8px;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  font-weight: 600;
  text-transform: uppercase;
}

.sector-body h4,
.sector-body h4 a {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  transition: color 0.25s ease;
}

.sector-card:hover h4 a { color: var(--amber-600); }

.sector-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 8px 0 10px;
}

.sector-nav {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background: var(--bg-white);
  border: 1px solid var(--indigo-100);
  color: var(--indigo-700);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.sector-nav:hover {
  background: var(--indigo-700);
  border-color: var(--indigo-700);
  color: #fff;
}

.sector-nav.prev { left: 12px; }
.sector-nav.next { right: 12px; }
.sector-nav svg { width: 22px; height: 22px; }
.sector-nav.disabled { opacity: 0.3; pointer-events: none; }

@media (max-width: 1024px) { .sector-card { flex: 0 0 calc((100% - 28px) / 2); } }

@media (max-width: 768px) {
  .sector-tabs { gap: 10px; }
  .sector-tab  { font-size: 10px; }
  .sector-card { flex: 0 0 100%; }
  .sector-track { gap: 16px; }
  .sector-nav  { width: 36px; height: 36px; }
}


/* ==============================
   MOST READ
============================== */
.mostread-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 0px 3% 80px;
  background: var(--bg-soft);
}

.mostread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.mostread-list h2 {
  font-size: 22px;
  color: var(--indigo-900);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.mostread-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.mostread-item:last-child { border-bottom: none; }

.mostread-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 65px;
  overflow: hidden;
}

.mostread-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mostread-item:hover .mostread-thumb img { transform: scale(1.08); }

.mostread-content { flex: 1; }

.mostread-content .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  margin-bottom: 6px;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  font-weight: 600;
  text-transform: uppercase;
}

.mostread-content h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.35; }

.mostread-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  transition: color 0.25s ease;
}

.mostread-item:hover h3 a { color: var(--amber-600); }
.mostread-content time { font-size: 12px; color: var(--text-light); }

/* MOSTREAD NAV */
.mostread-nav { display: flex; gap: 10px; }

.mostread-nav button {
  width: 36px;
  height: 36px;
  background: var(--bg-white);
  border: 1px solid var(--indigo-100);
  color: var(--indigo-700);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.mostread-nav button:hover {
  background: var(--indigo-700);
  border-color: var(--indigo-700);
  color: #fff;
}

.mostread-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mostread-nav button:disabled:hover {
  background: var(--bg-white);
  border-color: var(--indigo-100);
  color: var(--indigo-700);
}

/* NEWSLETTER BOX */
.mostread-sidebar { position: relative; }

.newsletter-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--indigo-700);
  padding: 28px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.newsletter-box h3 {
  font-size: 18px;
  color: var(--indigo-900);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.newsletter-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }

.newsletter-box input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: border-color 0.25s;
}

.newsletter-box input:focus { outline: none; border-color: var(--indigo-600); }
.newsletter-box input::placeholder { color: var(--text-light); }

.newsletter-box button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  letter-spacing: 0.5px;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.newsletter-box button:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 1024px) {
  .mostread-wrapper { grid-template-columns: 1fr; }
  .mostread-sidebar { margin-top: 40px; }
  .newsletter-box   { position: static; }
}

@media (max-width: 640px) {
  .mostread-item   { gap: 12px; }
  .mostread-thumb  { width: 70px; height: 55px; }
  .mostread-content h3 { font-size: 15px; }
  .mostread-nav button { width: 32px; height: 32px; font-size: 16px; }
}


/* ==============================
   CATEGORY HERO
============================== */
.category-hero {
  width: 100%;
  padding: 60px 20px;
  margin-bottom: 60px;
  background:
    radial-gradient(circle at top, rgba(55, 48, 163, 0.08), transparent 60%),
    var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.category-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.category-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--indigo-900);
  margin-bottom: 18px;
}

.category-hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
}

/* PAGE CONTAINER */
.page-container {
  width: 100%;
  padding: 0 40px 90px;
}

.page-container.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.content-main { min-width: 0; }

.content-sidebar {
  position: sticky;
  top: 120px;
}

.page-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ARTICLE GRID */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 34px;
}

.article-card {
  background: var(--bg-white);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 22px;
  transition: border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.article-card:hover { border-bottom-color: var(--amber-500); }

.article-image {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-image img { transform: scale(1.08); }

.article-card a {
  display: block;
  text-decoration: none;
  padding-top: 16px;
  padding: 16px 16px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  white-space: nowrap;
}

.article-badge {
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: 1.2px;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  text-transform: uppercase;
  font-weight: 600;
}

.article-time  { font-size: 11px; color: var(--text-light); }
.article-read  { font-size: 11px; letter-spacing: 0.6px; color: var(--amber-600); font-weight: 500; }
.meta-dot      { font-size: 12px; color: var(--text-light); }

.article-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif;
  transition: color 0.3s ease;
}

.article-card:hover h3 { color: var(--amber-600); }

.article-excerpt { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

/* CATEGORY MOSTREAD SIDEBAR */
.category-mostread-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--indigo-700);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.category-mostread-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--indigo-900);
  letter-spacing: 0.4px;
  font-family: 'Playfair Display', serif;
}

.category-mostread-item {
  display: grid;
  grid-template-columns: 28px 72px 1fr;
  gap: 12px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.category-mostread-rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--indigo-100);
  margin-top: 2px;
  font-family: 'Playfair Display', serif;
}

.category-mostread-image { width: 72px; height: 56px; object-fit: cover; margin-top: 2px; }
.category-mostread-body  { display: flex; flex-direction: column; }

.category-mostread-category {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--indigo-700);
  margin-bottom: 4px;
  font-weight: 600;
}

.category-mostread-heading { font-size: 14px; line-height: 1.35; margin-bottom: 2px; }

.category-mostread-heading a {
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  transition: color 0.25s;
}

.category-mostread-heading a:hover { color: var(--amber-600); }
.category-mostread-date { font-size: 11px; color: var(--text-light); }

/* CATEGORY NEWSLETTER */
.category-newsletter-box {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--amber-500);
  background: var(--amber-50);
}

.category-newsletter-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo-900);
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
}

.category-newsletter-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
}

#category-newsletter-form { display: flex; flex-direction: column; gap: 10px; }

#category-newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  color: var(--text-dark);
  outline: none;
}

#category-newsletter-form input::placeholder { color: var(--text-light); }

#category-newsletter-form button {
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--indigo-700), var(--amber-600));
  border: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

#category-newsletter-form button:hover { opacity: 0.88; }

#category-newsletter-msg { font-size: 11px; min-height: 14px; color: var(--indigo-600); }
#category-newsletter-msg.success { color: #16a34a; }
#category-newsletter-msg.error   { color: #dc2626; }

@media (max-width: 1024px) {
  .page-container.page-split { grid-template-columns: 1fr; }
  .content-sidebar { position: relative; top: auto; margin-top: 60px; }
  .category-hero   { margin-bottom: 0px; }
}

@media (max-width: 768px) { .page-container { padding: 0 16px 70px; } }


/* ==============================
   ARTICLE PAGE
============================== */
.article-hero {
  padding: 70px 6% 20px;
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.article-hero-inner { max-width: 1100px; margin: 0 auto; }

.article-topline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.article-badge {
  padding: 6px 14px;
  font-weight: 600;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
}

.slash    { color: var(--border-mid); }
.readtime { color: var(--text-muted); }

.article-title {
  font-size: 46px;
  line-height: 1.25;
  color: var(--indigo-900);
  max-width: 900px;
  margin: 0 auto 42px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.article-meta-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.article-meta-inline > *:not(:last-child) {
  position: relative;
  padding-right: 20px;
}

.article-meta-inline > *:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--border-light);
}

.article-share { display: flex; gap: 16px; }

.article-share a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.article-share a:hover {
  color: var(--indigo-700);
  transform: translateY(-1px);
}

.article-image-wrap {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 3%;
}

.article-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

/* ARTICLE LAYOUT */
.article-layout {
  display: grid;
  grid-template-columns: 2.5fr 1.2fr;
  gap: 50px;
  padding: 20px 6%;
  margin-bottom: 80px;
  align-items: start;
  background: var(--bg-soft);
}

.article-left { position: relative; min-width: 0; }

.article-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-mid);
  background: var(--bg-white);
  padding: 40px;
  border: 1px solid var(--border-light);
}

.article-content p  { margin-bottom: 22px; }

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 48px 0 16px;
  color: var(--indigo-900);
  font-family: 'Playfair Display', serif;
}

.article-content blockquote {
  margin: 40px 0;
  padding: 20px 18px 20px 24px;
  border-left: 4px solid var(--amber-500);
  background: var(--amber-50);
  color: var(--text-mid);
  font-style: italic;
}

.article-content pre,
.article-content pre.ql-syntax {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 18px 20px;
  background: var(--indigo-50);
  border-left: 3px solid var(--indigo-700);
  border-top: 1px solid var(--indigo-100);
  border-right: 1px solid var(--indigo-100);
  border-bottom: 1px solid var(--indigo-100);
  border-radius: 0 8px 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--indigo-900);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

/* RELATED SIDEBAR */
.article-related {
  position: relative;
  background: var(--bg-white);
  align-self: start;
  height: fit-content;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--indigo-700);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.article-related h3 {
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--amber-600);
  margin-bottom: 28px;
  text-transform: uppercase;
  font-weight: 700;
}

.related-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  margin-bottom: 22px;
  text-decoration: none;
  align-items: center;
}

.related-item img  { width: 82px; height: 82px; object-fit: cover; }

.related-item h4 {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif;
  transition: color 0.25s ease;
}

.related-item:hover h4 { color: var(--amber-600); }

.related-time {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 6px;
  display: block;
}

/* SIDEBAR SUBSCRIBE */
.sidebar-subscribe {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.sidebar-subscribe h4 {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--indigo-900);
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-subscribe p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

#article-newsletter-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
}

#article-newsletter-form input {
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  padding: 12px 14px;
  color: var(--text-dark);
  font-size: 14px;
}

#article-newsletter-form input::placeholder { color: var(--text-light); }

#article-newsletter-form button {
  background: var(--indigo-700);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s;
}

#article-newsletter-form button:hover { background: var(--amber-600); }
#article-newsletter-msg { margin-top: 10px; font-size: 12px; color: var(--indigo-600); }

@media (max-width: 1024px) {
  .article-title   { font-size: 34px; }
  .article-layout  { grid-template-columns: 1fr; }
  .article-image-wrap img { height: auto; }
  .article-related {
    position: relative; top: auto;
    margin-top: 60px;
    margin-left: -3%; margin-right: -3%;
    width: calc(100% + 6%);
  }
}

@media (max-width: 640px) { .article-title { font-size: 28px; } }


/* ==============================
   LATEST ARTICLES
============================== */
.latest-articles {
  padding: 50px 3%;
  background: var(--bg-white);
  margin-bottom: 90px;
  border-top: 1px solid var(--border-light);
}

.latest-inner { max-width: 1300px; margin: 0 auto; }

.latest-articles .section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--indigo-900);
  border-bottom: 2px solid var(--border-light);
  padding: 12px 0;
  font-family: 'Playfair Display', serif;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}

.latest-item { display: flex; gap: 14px; text-decoration: none; }

.latest-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

.latest-item-content { display: flex; flex-direction: column; gap: 4px; }

.latest-item-category {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber-600);
  font-weight: 600;
}

.latest-item h4 {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  margin: 0;
  font-family: 'Playfair Display', serif;
  transition: color 0.25s ease;
}

.latest-item:hover h4 { color: var(--amber-600); }
.latest-item-date { font-size: 11px; color: var(--text-light); }

@media (max-width: 900px) { .latest-grid { grid-template-columns: 1fr; } }


/* ==============================
   FOOTER
============================== */
.site-footer {
  background: var(--indigo-900);
  border-top: 4px solid var(--amber-600);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.7), transparent);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 5%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Playfair Display', serif;
}

.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-section h4 {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-section ul li a:hover { color: var(--amber-400); padding-left: 4px; }

/* Footer links with arrow */
.footer-links-list ul li a {
  position: relative;
  padding-left: 18px;
}

.footer-links-list ul li a::before {
  content: "»";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber-500);
  font-size: 14px;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-links-list ul li a:hover { color: var(--amber-400); padding-left: 22px; }
.footer-links-list ul li a:hover::before { transform: translateX(3px); opacity: 1; }

/* Footer newsletter */
.footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }

.footer-newsletter input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  margin-bottom: 10px;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { outline: none; border-color: var(--amber-500); }

.footer-newsletter button {
  width: 100%;
  padding: 12px;
  background: var(--amber-600);
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.footer-newsletter button:hover {
  background: var(--amber-500);
  transform: translateY(-1px);
}

/* Footer social */
.footer-social { display: flex; gap: 14px; margin-top: 18px; }

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--amber-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--amber-400); }

@media (max-width: 1024px) { .footer-container { grid-template-columns: 1fr 1fr; } }

@media (max-width: 640px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}


/* ==============================
   AUTH MODAL
============================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 107, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.auth-overlay.active { opacity: 1; pointer-events: auto; }

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--indigo-700);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 30px 28px 34px;
  position: relative;
  animation: authPop 0.4s ease;
}

@keyframes authPop {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.auth-close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.auth-close:hover { color: var(--indigo-700); transform: rotate(90deg); }

.auth-header { text-align: center; margin-bottom: 22px; }
.auth-title   { font-size: 22px; color: var(--indigo-900); margin-bottom: 6px; font-family: 'Playfair Display', serif; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); }

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 26px;
}

.auth-switch button {
  padding: 12px 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1.4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.auth-switch button.active {
  background: var(--indigo-700);
  color: #fff;
}

.auth-switch button:hover { color: var(--indigo-700); }
.auth-switch button.active:hover { color: #fff; }

.auth-form { display: none; animation: fadeIn 0.35s ease; }
.auth-form.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  padding: 13px 14px;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.auth-form input::placeholder { color: var(--text-light); }

.auth-form input:focus {
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 2px rgba(55, 48, 163, 0.12);
}

.auth-form button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 0;
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
  border: none;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.4px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(55, 48, 163, 0.35);
}

.auth-google-wrap {
  margin-top: 14px;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--indigo-50);
}

#googleLogin iframe { height: 44px !important; border-radius: 8px !important; }

@media (max-width: 480px) { .auth-modal { max-width: 92%; padding: 24px 20px; } }


/* ==============================
   CONTACT MODAL
============================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 27, 107, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.contact-modal.active { opacity: 1; pointer-events: auto; }

.contact-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--amber-600);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: contactPop 0.45s ease;
}

@keyframes contactPop {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.contact-close {
  position: absolute;
  top: 16px; right: 18px;
  z-index: 20;
  background: none;
  border: none;
  padding: 6px;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-close:hover { color: var(--indigo-700); transform: rotate(90deg); }

.contact-left {
  padding: 52px 48px;
  background: var(--indigo-900);
  border-right: none;
}

.contact-left h2 {
  font-size: 32px;
  margin-bottom: 18px;
  color: var(--amber-400);
  font-family: 'Playfair Display', serif;
}

.contact-left p { font-size: 15.5px; line-height: 1.8; color: rgba(255,255,255,0.75); }

.contact-right { padding: 46px 44px; }

.contact-right h3 {
  margin-bottom: 22px;
  font-size: 20px;
  color: var(--indigo-900);
  font-family: 'Playfair Display', serif;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  color: var(--text-dark);
  font-size: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-right input::placeholder,
.contact-right textarea::placeholder { color: var(--text-light); }

.contact-right input:focus,
.contact-right textarea:focus {
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 2px rgba(55, 48, 163, 0.12);
}

.contact-right button {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-right button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(55, 48, 163, 0.35);
}

@media (max-width: 768px) {
  .contact-box { grid-template-columns: 1fr; max-width: 420px; margin: 0 16px; }
  .contact-left { display: none; }
  .contact-right { padding: 32px 24px 28px; }
}


/* ==============================
   LEGAL MODAL
============================== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 27, 107, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal.active { opacity: 1; pointer-events: auto; }

.legal-box {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 85vh;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--indigo-700);
  border-radius: 12px;
  padding: 36px 42px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.legal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.legal-close:hover { color: var(--indigo-700); }

.legal-box > h2 {
  color: var(--indigo-900);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.legal-content { flex: 1; overflow-y: auto; padding-right: 10px; }

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--indigo-900);
  font-family: 'Playfair Display', serif;
}

.legal-content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; font-size: 15px; }

.legal-content ul { margin: 10px 0 16px 18px; padding: 0; }

.legal-content li { color: var(--text-mid); line-height: 1.7; margin-bottom: 8px; }
.legal-content li::marker { color: var(--amber-600); }

.legal-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.legal-content::-webkit-scrollbar { width: 6px; }
.legal-content::-webkit-scrollbar-thumb { background: var(--indigo-200, #c7c4f0); border-radius: 6px; }
.legal-content::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 640px) {
  .legal-box { height: 90vh; width: calc(100% - 24px); max-width: 520px; padding: 24px 20px; }
  .legal-box > h2    { font-size: 22px; }
  .legal-content h3  { font-size: 16px; }
  .legal-content p,
  .legal-content li  { font-size: 14px; }
}


/* ==============================
   SEARCH DROPDOWN
============================== */
.search-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 3px solid var(--indigo-700);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 999;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-height: 70vh;
  overflow: hidden;
}

.search-dropdown.active { display: block; opacity: 1; transform: translateY(0); }

.search-box {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 20px 16px;
}

.search-box input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  background: var(--bg-soft);
  border: 2px solid var(--indigo-600);
  color: var(--text-dark);
  font-size: 16px;
  outline: none;
}

.search-box input::placeholder { color: var(--text-light); }

.search-clear {
  position: absolute;
  right: 32px;
  top: 55%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

#searchInput:not(:placeholder-shown) + .search-clear { opacity: 1; pointer-events: auto; }
.search-clear:hover { color: var(--indigo-700); }

.search-results {
  max-width: 900px;
  margin: 0 auto 16px;
  padding: 0;
  list-style: none;
  max-height: 45vh;
  overflow-y: auto;
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  border-top: 1px solid var(--border-light);
  transition: background 0.25s ease;
}

.search-results li:hover { background: var(--indigo-50); }

.search-results img { width: 64px; height: 42px; object-fit: cover; flex-shrink: 0; }

.search-results span { color: var(--text-dark); font-size: 15px; line-height: 1.4; }

.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: var(--indigo-600); border-radius: 4px; }
.search-results::-webkit-scrollbar-track { background: transparent; }