:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Navbar */
header { background: #090d16; border-bottom: 1px solid var(--border-color); sticky: top; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.nav-links { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.nav-links a { color: var(--text-primary); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-cyan); }

/* Grid Layouts */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; margin: 40px 0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin: 40px 0; }

/* Article Card */
.card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.badge { background: var(--accent-blue); color: #fff; padding: 4px 10px; font-size: 12px; border-radius: 20px; text-transform: uppercase; }
.card-title { font-size: 1.25rem; margin: 10px 0; font-weight: 700; color: #fff; }

/* Article Details */
.article-header { margin: 40px 0 20px 0; }
.article-header h1 { font-size: 2.5rem; line-height: 1.2; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.featured-img { width: 100%; max-width: 650px; max-height: 380px; object-fit: cover; border-radius: 10px; margin: 20px auto 30px auto; }
.article-content { font-size: 1.15rem; color: #cbd5e1; }
.article-content p { margin-bottom: 1.8rem; }
.ai-disclaimer { background: rgba(0, 242, 254, 0.05); border-left: 4px solid var(--accent-cyan); padding: 15px; margin-top: 40px; font-style: italic; }

/* Footer */
footer { background: #05070c; padding: 50px 0 20px 0; border-top: 1px solid var(--border-color); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

/* Layout with Right Sidebar */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Styling */
.sidebar {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  height: fit-content;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--accent-cyan);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 15px;
}

.sidebar-list a {
  display: flex;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-list a:hover h4 {
  color: var(--accent-cyan);
}

.sidebar-list img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.sidebar-list h4 {
  font-size: 0.9rem;
  margin: 5px 0 0 0;
  line-height: 1.3;
}

/* Sidebar Divider */
.sidebar-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 25px 0;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.newsletter-icon {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.newsletter-widget h3 {
  font-size: 1.15rem;
  margin: 5px 0 8px 0;
  color: #fff;
  border: none;
  padding: 0;
}

.newsletter-widget p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.4;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background: var(--accent-cyan);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

.newsletter-privacy {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Spotlight Card Widget */
.spotlight-card a {
  text-decoration: none;
  color: var(--text-primary);
}

.spotlight-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
}

.spotlight-img-wrap img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.spotlight-card:hover img {
  transform: scale(1.03);
}

.spotlight-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.spotlight-card h4 {
  font-size: 0.95rem;
  margin: 8px 0 5px 0;
  line-height: 1.35;
}

.spotlight-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Tag Cloud Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  text-decoration: none;
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  color: #fff;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 8px;
  margin-bottom: 25px;
  display: inline-block;
}

/* Hero Section */
.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-body {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 15px 0;
}

.hero-title a {
  color: #fff;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
}

/* Trending Grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.trending-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Feed Column Items */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.feed-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.feed-img-link img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.feed-content h3 {
  font-size: 1.15rem;
  margin: 8px 0 6px 0;
  line-height: 1.35;
}

.feed-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 10px 0;
}

.feed-content small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .feed-item {
    flex-direction: column;
  }
  .feed-img-link img {
    width: 100%;
    height: 180px;
  }
}

/* Spotlight Section */
.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.spotlight-header h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--accent-cyan);
}

.view-all-link {
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: bold;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.spotlight-mini-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.spotlight-mini-card h4 {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.35;
}

/* Magazine Hero Grid */
.magazine-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.hero-main-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.tile-img-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.tile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tile-img-wrapper:hover img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  top: 15px;
  left: 15px;
}

.hero-tile-content {
  padding: 25px;
}

.hero-tile-content h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.hero-tile-content h2 a {
  color: #fff;
}

.hero-tile-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 15px 0;
}

.tile-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Right Stack Sub-Hero Cards */
.hero-sub-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-tile {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 100%;
  align-items: center;
}

.sub-img-link img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.sub-tile-body h3 {
  font-size: 1rem;
  margin: 6px 0 4px 0;
  line-height: 1.35;
}

.sub-tile-body h3 a {
  color: #fff;
}

.sub-tile-body small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .magazine-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Strip */
.category-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 25px;
  overflow-x: auto;
}

.strip-label {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strip-item {
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 4px 12px;
  border-radius: 15px;
  background: var(--bg-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.strip-item:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Stream Briefing List */
.briefing-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stream-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
}

.stream-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}

.stream-img-wrap img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.stream-details h3 {
  font-size: 1.15rem;
  margin: 8px 0;
  line-height: 1.35;
}

.stream-details h3 a {
  color: #fff;
}

.stream-details p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 10px 0;
}

.stream-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .stream-grid {
    grid-template-columns: 1fr;
  }
}

/* Ticker Header Bar */
.ticker-wrap {
  background: #090d16;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticker-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-content::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  color: var(--text-primary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-item:hover {
  color: var(--accent-cyan);
}

/* Mid-Feed Newsletter Banner */
.mid-feed-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
}

.mid-banner-content h3 {
  font-size: 1.4rem;
  margin: 0 0 10px 0;
  color: #fff;
}

.mid-banner-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.mid-banner-form {
  display: flex;
  gap: 10px;
}

.mid-banner-form input {
  flex: 1;
  padding: 12px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
}

.mid-banner-form button {
  background: var(--accent-cyan);
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .mid-banner-form {
    flex-direction: column;
  }
}

/* ==========================================
   MODERN GLASS NAVBAR
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-cyan, #00f2fe);
}

/* Navigation Links */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.main-nav a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Header Live Indicator & Mobile Menu */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 10px; }
}


/* ==========================================
   ANIMATED TICKER (CSS MARQUEE)
   ========================================== */
.ticker-wrap {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticker-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 2;
}

/* Continuous Scroll Track */
.ticker-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused; /* Pauses when user hovers */
}

.ticker-item {
  color: #cbd5e1;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-item:hover {
  color: #00f2fe;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Floating Expandable Search Component */
.nav-search-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Base Icon Button */
.search-trigger-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.search-trigger-btn:hover {
  color: #00f2fe;
  background: rgba(255, 255, 255, 0.05);
}

/* Absolutely Positioned Overlay Form (Prevents Nav Bar Skewing) */
.nav-search-form {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  padding: 4px 6px 4px 16px;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

/* Expanded State */
.nav-search-container.expanded .nav-search-form {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.nav-search-form input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  padding: 6px 0;
}

.nav-search-form input::placeholder {
  color: #64748b;
}

/* Magnifying Glass Submit Button Inside Search Form */
.search-submit-btn {
  background: var(--accent-cyan, #00f2fe);
  border: none;
  color: #000;
  cursor: pointer;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  transform: scale(1.05);
  background: #38bdf8;
}

.search-icon {
  width: 18px;
  height: 18px;
}