/* CSS Variables */
:root {
  --primary-color: #0a0a0a;
  --accent-color: #d93025;
  --bg-color: #fdfbf7;
  --bg-secondary: #f4f4f4;
  --text-color: #1a1a1a;
  --text-secondary: #555555;
  --border-color: #e0e0e0;
  --white: #ffffff;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  --container-width: 1200px;
  --border-radius: 4px;
  --shadow-soft:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

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

/* Accessibility Focus Visible Ring */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: #b3241b;
}

/* Header */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-lg);
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--accent-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2/3 for featured, 1/3 for sidebar */
  gap: var(--spacing-lg);
}

.hero-featured {
  border-right: 1px solid var(--border-color);
  padding-right: var(--spacing-lg);
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.hero-featured h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: -1px;
}

.hero-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.meta-info {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Hero Sidebar */
.hero-sidebar {
  padding-left: 0;
}

.sidebar-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  display: inline-block;
}

.trending-list li {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #eee;
}

.trending-list li:last-child {
  border-bottom: none;
}

.trending-list .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: #ccc;
  line-height: 1;
}

.trending-list .content a {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}

.trending-list .time {
  font-size: 0.75rem;
  color: #999;
}

/* Divider */
.section-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Sections General */
.section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-sm);
}

.section-header h2 {
  font-size: 2rem;
}

.view-all {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all:hover .arrow {
  transform: translateX(4px);
  transition: transform 0.2s;
}

/* Tag styling */
.tag {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-color);
  background: rgba(217, 48, 37, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Image Wrapper and Hover Effects */
.image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.image-wrapper img, .article-thumb, .tech-article-thumb {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-wrapper:hover img, article:hover .image-wrapper img {
  transform: scale(1.04);
}

/* Fintech Section (Professional Editorial News Layout) */
.fintech-section {
  padding: 48px 0;
}

.fintech-news-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Main Lead Story (Left Column) */
.fintech-lead-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fintech-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: #bbb;
}

.fintech-lead-img {
  width: 100%;
  height: 280px;
  border-radius: 0;
}

.fintech-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
}

.fintech-lead-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fintech-lead-content h3 {
  font-size: 1.65rem;
  line-height: 1.28;
  margin-top: 6px;
  margin-bottom: 12px;
}

.fintech-lead-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fintech-lead-content .meta-info {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #888;
}

/* Right Column Side List */
.fintech-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mini Cards */
.fintech-mini-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fintech-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.fintech-mini-img {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
}

.fintech-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
}

.fintech-mini-content {
  flex-grow: 1;
}

.fintech-mini-content h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin-top: 4px;
  margin-bottom: 6px;
}

.fintech-mini-content .time {
  font-size: 0.75rem;
  color: #999;
}

/* Featured Banner Card */
.fintech-banner-card {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fintech-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.fintech-banner-content {
  position: relative;
  z-index: 2;
}

.tag.light {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.fintech-banner-content h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-top: 6px;
  margin-bottom: 6px;
  color: #ffffff;
}

.fintech-banner-content h3 a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.fintech-banner-content h3 a:hover {
  color: #f87171;
}

.time.light {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Section Header Actions & Slider Controls */
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* IPO Tales Slider */
.ipo-slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px 4px 12px 4px;
}

.ipo-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.ipo-track::-webkit-scrollbar {
  display: none;
}

.ipo-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 240px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ipo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: #bbb;
}

.ipo-img-wrapper {
  width: 100%;
  height: 170px;
  border-radius: 0;
}

.ipo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
}

.ipo-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ipo-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.ipo-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ipo-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AI Section (Dark Mode) */
.ai-section.dark-mode {
  background-color: #0c0e12;
  color: #e5e7eb;
  padding: 80px 0;
}

.ai-section .section-header {
  border-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.ai-section h2 {
  color: #ffffff;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.ai-section .subtitle {
  color: #9ca3af;
  font-size: 1rem;
  margin-top: 4px;
}

.view-all.dark {
  color: #9ca3af;
  transition: color 0.2s;
}

.view-all.dark:hover {
  color: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 48, 37, 0.6);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.tech-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1d24;
  position: relative;
}

.tech-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tech-card:hover .tech-article-thumb {
  transform: scale(1.05);
}

.tech-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.tech-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.tech-card h3 a:hover {
  color: #f87171;
}

.tech-card p {
  color: #cbd5e1; /* Increased contrast ratio to satisfy WCAG 2.1 AA requirement */
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.read-more .arrow {
  transition: transform 0.2s ease;
}

.read-more:hover .arrow {
  transform: translateX(4px);
}

/* Interactive Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.search-modal.active .search-modal-content {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-modal-header h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
}

.close-search-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.close-search-btn:hover {
  color: var(--accent-color);
}

.search-input-group {
  display: flex;
  gap: 10px;
}

.search-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.search-input-group input:focus {
  border-color: var(--accent-color);
}

/* Newsletter Section (Full-Width Edge-to-Edge Deep Navy Theme) */
.newsletter-section {
  background-color: #0f172a; /* 100% full width deep navy background */
  color: #ffffff;
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-badge {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.newsletter-info h2 {
  font-size: 2.2rem;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.newsletter-info p {
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* Newsletter Action & Input Form */
.newsletter-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter-form .input-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form .input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.25);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 10px 14px;
  font-family: var(--font-body);
}

.newsletter-form input::placeholder {
  color: #94a3b8;
}

.btn-newsletter {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-newsletter:hover {
  background: #b3241b;
  transform: translateX(2px);
}

.newsletter-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 14px;
}

.shield-icon {
  width: 15px;
  height: 15px;
  color: #10b981;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #f9f9f9;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  font-weight: 700;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.footer-links ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
  .fintech-news-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ipo-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .ipo-card {
    flex: 0 0 85%;
  }
  .newsletter-section {
    padding: 48px 0;
  }

  .input-wrapper {
    flex-direction: column;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  .input-wrapper input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }

  .btn-newsletter {
    width: 100%;
    justify-content: center;
  }
  .header-container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-lg);
  }

  .hero-sidebar {
    padding-left: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .box-large {
    grid-column: span 1;
    grid-row: auto;
  }

  .box-large .image-wrapper {
    height: 240px;
  }

  .box-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .box-wide-image {
    height: 200px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .money-machines-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ipo-timeline {
    padding-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .money-machines-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   New Features Implementation (User Requested)
   ========================================= */

/* Logo Image Override */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Paid News Indicator */
.paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #ffd700; /* Gold */
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: var(--spacing-xs);
  border: 1px solid #e6c200;
}

.paid-badge.overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.paid-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* Article Image Aspect Ratio Utility */
.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  background-color: #eee;
}

/* Money & Machines Section */
.money-machines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.mm-card {
  border-top: 3px solid var(--primary-color);
  padding-top: var(--spacing-sm);
}

.mm-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.mm-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}


/* Editor's Pick Sidebar Module */
.editors-pick-module {
  background-color: var(--bg-secondary);
  padding: var(--spacing-md);
  margin-top: 0;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.ep-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.ep-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ep-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ep-card-image {
  flex: 0 0 90px;
  width: 90px;
  height: 68px;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: #eee;
}

.ep-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.ep-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.ep-card:hover .ep-img {
  transform: scale(1.05);
}

.ep-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ep-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ep-card-meta .paid-badge {
  margin-bottom: 0;
}

.ep-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
}

.ep-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-heading);
}

.ep-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-card-title a:hover {
  color: var(--accent-color);
}

/* Trending Section Below Hero (Left-to-Right Slider) */
.trending-section {
  background-color: #faf8f5;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trending-slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px 4px 12px 4px;
}

.trending-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.trending-track::-webkit-scrollbar {
  display: none;
}

.trending-card-slide {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  min-height: 220px;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trending-card-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.slider-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-arrow {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary-color);
  transition: all 0.2s ease;
  user-select: none;
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.trending-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trending-card-content {
  padding-right: 36px;
  z-index: 2;
}

.trending-card-content h3 {
  font-size: 1.05rem;
  line-height: 1.38;
  margin-bottom: 8px;
  color: #ffffff;
}

.trending-card-content a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

.trending-card-content a:hover {
  color: #f87171;
}

.trending-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  padding-top: 10px;
  z-index: 2;
}

@media (max-width: 992px) {
  .trending-card-slide {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .trending-card-slide {
    flex: 0 0 85%;
  }
}

/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */
.article-detail-page {
  padding: 40px 0 80px 0;
  background-color: var(--bg-color);
}

.article-header-section {
  max-width: 900px;
  margin: 0 auto 36px auto;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--accent-color);
}

.article-category-badge {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-color);
  background: rgba(217, 48, 37, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.article-header-section h1 {
  font-size: 2.6rem;
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: var(--primary-color);
  margin-bottom: 18px;
}

.article-lead-excerpt {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: #666;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta-author {
  font-weight: 700;
  color: var(--primary-color);
}

.article-meta-author a {
  color: var(--primary-color);
  text-decoration: underline;
}

.article-meta-author a:hover {
  color: var(--accent-color);
}

.article-meta-date {
  color: #777;
}

/* Article Hero Media */
.article-hero-media {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.article-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Article Grid Layout */
.article-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.article-main-column {
  min-width: 0;
}

.article-sidebar-column {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Social Share Bar */
.social-share-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 32px;
}

.social-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #666;
}

.social-share-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-color);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.social-share-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

.social-share-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Article Body Content */
.details_box__content {
  font-size: 1.1rem;
  line-height: 1.78;
  color: #222222;
  margin-bottom: 40px;
}

.details_box__content p {
  margin-bottom: 24px;
}

.details_box__content h2,
.details_box__content h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-top: 36px;
  margin-bottom: 16px;
}

.details_box__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.details_box__content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #444;
}

.details_box__content.text-gradient p {
  background: linear-gradient(180deg, #111111 0%, rgba(17, 17, 17, 0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Author Bio Card */
.author-bio-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.author-bio-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.author-bio-card .user_content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

/* Related News Sidebar Cards */
.related-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-sidebar-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.related-sidebar-thumb {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.related-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-sidebar-info {
  flex-grow: 1;
}

.related-sidebar-info h4 {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.related-sidebar-info h4:hover {
  color: var(--accent-color);
}

.related-sidebar-date {
  font-size: 0.75rem;
  color: #999;
}

@media (max-width: 992px) {
  .article-grid-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-sidebar-column {
    position: static;
  }
}

/* Tags Pill Section */
.article-tags-wrapper {
  margin: 36px 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.article-tags-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.tag-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
}

.tags-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-pill .hash {
  color: var(--accent-color);
  font-weight: 800;
}

.tag-pill:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tag-pill:hover .hash {
  color: #f87171;
}

/* Who Reads Us (Premium Sidebar Card) */
.who-reads-us-card {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.who-reads-header {
  margin-bottom: 16px;
}

.who-reads-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.who-reads-title {
  color: #ffffff !important;
  font-size: 1.35rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.testimonial-slide {
  position: relative;
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  font-family: var(--font-heading);
  color: rgba(245, 158, 11, 0.3);
  position: absolute;
  top: -10px;
  left: 0;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  padding-top: 14px;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f59e0b;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.testimonial-role {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Full-Width Reading Layout & Infinite Scroll */
.article-reading-container {
  max-width: 860px;
  margin: 0 auto;
}

.who-reads-us-fullwidth {
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 14px;
  padding: 32px 36px;
  margin: 44px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.related-stories-section {
  margin: 48px 0;
}

.related-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.related-story-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.related-card-img {
  width: 100%;
  height: 150px;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-content h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 6px 0 10px 0;
}

.related-card-content .date {
  font-size: 0.78rem;
  color: #888;
  margin-top: auto;
}

/* Infinite Scroll Trigger & Loader */
.infinite-scroll-trigger {
  padding: 48px 0;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.infinite-loader-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.infinite-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(217, 48, 37, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .related-stories-grid {
    grid-template-columns: 1fr;
  }
  .who-reads-us-fullwidth {
    padding: 24px 20px;
  }
}

/* Category Page Styles */
.category-page {
  padding: 0 0 80px 0;
  background-color: var(--bg-color);
}

.category-header-hero {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  padding: 48px 0 52px 0;
  margin-bottom: 48px;
  border-top: 4px solid var(--accent-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.category-header-hero .article-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.category-header-hero .article-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-header-hero .article-breadcrumb a:hover {
  color: #ffffff;
}

.category-header-hero .article-breadcrumb .sep {
  color: #64748b;
}

.category-hero-content {
  max-width: 840px;
}

.category-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.category-header-hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 700;
}

.category-hero-desc {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #cbd5e1;
  font-weight: 400;
  margin: 0;
}

.category-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.category-news-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: #bbb;
}

.category-card-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-news-card:hover .category-card-img img {
  transform: scale(1.04);
}

.category-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-content h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 8px 0 10px 0;
}

.category-card-content h2 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-card-content h2 a:hover {
  color: var(--accent-color);
}

.category-card-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.48;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-card-meta .read-more {
  font-weight: 600;
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .category-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .category-news-grid {
    grid-template-columns: 1fr;
  }
  .category-header-banner {
    padding: 24px 20px;
  }
  .category-header-banner h1 {
    font-size: 2rem;
  }
}

/* Search Modal Features: Recent Searches & Tag Autocomplete */
.search-modal-content {
  width: 100%;
  max-width: 680px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon-svg {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  pointer-events: none;
}

.search-input-group input {
  padding-left: 48px !important;
  height: 52px;
  font-size: 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  width: 100%;
}

.search-input-group input:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.search-section-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.search-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.clear-recent-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.clear-recent-btn:hover {
  text-decoration: underline;
}

.recent-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-pill:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.recent-pill-remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
}

.recent-pill:hover .recent-pill-remove {
  opacity: 1;
}

/* Autocomplete List Items */
.autocomplete-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.95rem;
  background: var(--bg-secondary);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.autocomplete-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(4px);
}

.autocomplete-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.autocomplete-item:hover .autocomplete-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.autocomplete-badge.tag {
  color: var(--accent-color);
  background: rgba(217, 48, 37, 0.1);
}

/* Glassmorphic Search Popup Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kbd-badge {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.popular-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.popular-tag-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.popular-tag-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(217, 48, 37, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popular-tag-item:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* Search Results Page Styles */
.search-page {
  padding: 0 0 80px 0;
  background-color: var(--bg-color);
}

.search-header-hero {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  padding: 48px 0 52px 0;
  margin-bottom: 48px;
  border-top: 4px solid var(--accent-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.2;
  color: #ffffff;
  margin: 10px 0;
}

.search-header-hero h1 mark {
  background: none;
  color: #f59e0b;
}

.search-header-hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin: 0;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.search-result-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.search-card-img {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
}

.search-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.search-result-card:hover .search-card-img img {
  transform: scale(1.04);
}

.search-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.search-card-content h2 {
  font-size: 1.2rem;
  line-height: 1.38;
  margin: 8px 0 10px 0;
}

.search-card-content h2 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-card-content h2 a:hover {
  color: var(--accent-color);
}

.search-card-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.48;
  margin-bottom: 16px;
}

.search-no-results {
  background: var(--white);
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 60px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.search-no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.search-no-results h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.search-no-results p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  .search-modal {
    padding-top: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Professional News Website Paywall UI */
.subscribe_wrapper {
  margin: 48px 0;
  padding: 0;
}

.paywall-editorial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.paywall-editorial-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px auto;
}

.paywall-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(217, 48, 37, 0.08);
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.paywall-editorial-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.22;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.paywall-subdeck {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.paywall-plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.paywall-editorial-plan {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.paywall-editorial-plan:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.plan-details {
  margin-bottom: 20px;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.plan-price-tag {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.paywall-editorial-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--accent-color);
  color: var(--white);
  border: 1px solid var(--accent-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.paywall-editorial-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.paywall-editorial-btn.outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--border-color);
}

.paywall-editorial-btn.outline:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.paywall-footer-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.paywall-footer-note a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.paywall-footer-note a:hover {
  color: var(--accent-color);
}

@media (max-width: 576px) {
  .paywall-editorial-card {
    padding: 28px 20px;
  }
  .paywall-editorial-header h2 {
    font-size: 1.75rem;
  }
}

/* 404 Page Styling */
.not-found-page {
  padding: 80px 0 120px 0;
  text-align: center;
  background: var(--bg-color);
}

.not-found-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 48px 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.not-found-card h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Author Page Styling */
.author-header-hero {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  padding: 48px 0 52px 0;
  margin-bottom: 48px;
  border-top: 4px solid var(--accent-color);
}

.author-hero-card {
  display: flex;
  align-items: center;
  gap: 28px;
}

.author-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f59e0b;
}

.author-meta-info h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.author-role-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Login Auth Portal Styling */
.auth-portal-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-portal-box {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.auth-logo-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-header img {
  max-height: 44px;
}

.auth-form-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 6px;
  text-align: center;
}

.auth-form-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.auth-input-group {
  margin-bottom: 20px;
}

.auth-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  display: block;
}

.auth-input-group input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  font-size: 0.98rem;
  transition: all 0.2s ease;
}

.auth-input-group input:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.auth-btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-btn-primary:hover {
  background: var(--accent-color);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 12px;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-google-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.auth-google-btn img {
  width: 20px;
  height: 20px;
}

/* Dedicated Subscribe Page Styling */
.subscribe-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 48px auto;
}

.subscribe-plan-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-plan-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.subscribe-plan-card.featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 10px 28px rgba(217, 48, 37, 0.08);
}

.subscribe-plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent-color);
  padding: 2px 10px;
  border-radius: 4px;
}

.subscribe-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 10px;
  padding: 18px 24px;
  max-width: 820px;
  margin: 0 auto 48px auto;
  font-size: 0.92rem;
  color: var(--primary-color);
  font-weight: 600;
}

.subscribe-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subscribe-faq-section {
  max-width: 820px;
  margin: 0 auto 60px auto;
}

.subscribe-faq-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 28px;
  text-align: center;
}

.subscribe-faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.subscribe-faq-item.active {
  border-color: var(--primary-color);
}

.subscribe-faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-color);
}

.subscribe-faq-icon {
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.subscribe-faq-item.active .subscribe-faq-icon {
  transform: rotate(45deg);
}

.subscribe-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.subscribe-faq-item.active .subscribe-faq-answer {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}

/* Multi-Level Dropdown Navigation (Up to 3 Levels) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 4px;
}

.main-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-menu > li {
  position: relative;
}

.main-nav .nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.main-nav .nav-menu > li > a:hover {
  color: var(--accent-color);
}

.caret, .sub-caret {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.main-nav .nav-menu > li.has-dropdown:hover > a .caret {
  transform: rotate(180deg);
}

/* Level 2 Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background: var(--bg-secondary);
  color: var(--accent-color);
}

/* Level 3 Nested Submenu */
.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.has-submenu:hover > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* My Account Dropdown Styling */
.user-account-dropdown {
  position: relative;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-btn:hover {
  border-color: var(--primary-color);
  background: var(--white);
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.user-account-dropdown.active .account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.account-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--accent-color);
}

.account-dropdown-item.logout {
  color: var(--accent-color);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Sign In Button Header */
.btn-outline-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  background: var(--white);
  transition: all 0.2s ease;
}

.btn-outline-signin:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

/* Footer Social Icon Buttons */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Executive Mega Menu Dropdown (All items visible at a glance) */
.main-nav .nav-menu > li.has-mega-menu {
  position: relative;
}

.mega-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 900px;
  max-width: 92vw;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  padding: 28px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 10000;
}

.has-mega-menu:hover .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: left;
}

.mega-col-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
}

.mega-column ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mega-column ul li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: left !important;
}

.mega-column ul li a {
  display: block !important;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.mega-column ul li a:hover {
  color: var(--accent-color);
  transform: translateX(4px);
}

.mega-column.featured-col {
  background: var(--bg-secondary);
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.mega-column.featured-col p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.mega-cta-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-color);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mega-cta-btn:hover {
  background: var(--accent-color);
}

/* Dual Mobile Slide-Out Drawers (Left & Right) */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  background: var(--white);
  z-index: 9999;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-left {
  left: 0;
  transform: translateX(-100%);
}

.mobile-drawer-left.active {
  transform: translateX(0);
}

.mobile-drawer-right {
  right: 0;
  transform: translateX(100%);
}

.mobile-drawer-right.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin: 0;
}

.drawer-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav-list > li {
  margin-bottom: 16px;
}

.drawer-nav-list > li > a {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: block;
}

.drawer-sub-list {
  list-style: none;
  padding-left: 12px;
  margin-top: 8px;
  border-left: 2px solid var(--border-color);
}

.drawer-sub-list li {
  margin-bottom: 8px;
}

.drawer-sub-list li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

@media (max-width: 992px) {
  .site-header {
    height: 56px;
    padding: 0;
  }
  .header-container {
    height: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px;
    gap: 6px;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 4px;
    cursor: pointer;
  }
  .logo {
    display: flex;
    align-items: center;
  }
  .logo-img {
    height: 26px;
    width: auto;
  }
  .main-nav {
    display: none;
  }
  .user-account-dropdown {
    display: none !important;
  }
  .btn-outline-signin {
    display: none !important;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .search-btn, #openRightDrawerBtn {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    padding: 0;
  }
  .header-actions .btn-primary {
    display: inline-flex !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
  }
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 20px 0 !important;
  }
  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  .footer-brand img {
    margin: 0 auto 10px auto !important;
  }
  .footer-brand p {
    font-size: 0.88rem !important;
    margin-bottom: 12px !important;
  }
  .social-links {
    justify-content: center !important;
  }
  .footer-links h4 {
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
  }
  .footer-links ul {
    gap: 6px !important;
  }
  .footer-links ul li a {
    font-size: 0.85rem !important;
  }
  .footer-bottom {
    margin-top: 24px !important;
    padding-top: 16px !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
    font-size: 0.78rem !important;
  }

  .search-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: var(--white) !important;
  }
  .search-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 24px 20px !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }
  .kbd-badge {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 22px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .btn-primary {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }
}

/* Floating Mobile Smart App Banner */
.mobile-app-banner {
  display: none;
  position: fixed;
  bottom: -100px;
  left: 12px;
  right: 12px;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  z-index: 9990;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-app-banner.visible {
  display: flex;
  bottom: 16px;
}

.app-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.app-banner-text {
  display: flex;
  flex-direction: column;
}

.app-banner-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}

.app-banner-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.app-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-app-get {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.btn-app-get:hover {
  opacity: 0.9;
}

.app-banner-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* App Download Drawer Promo */
.drawer-app-promo {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
  text-align: center;
}

.app-promo-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.drawer-app-promo h4 {
  font-size: 0.95rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 6px;
}

.drawer-app-promo p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-app-download {
  display: block;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-app-download:hover {
  background: var(--accent-color);
}

/* Bookmark App Download Modal */
.bookmark-app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bookmark-app-modal.active {
  opacity: 1;
  visibility: visible;
}

.bookmark-app-modal .bookmark-modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  width: 440px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.bookmark-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.bookmark-modal-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.bookmark-modal-box h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.bookmark-modal-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.app-store-badge-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-store-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.bookmark-card-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.bookmark-card-btn:hover {
  transform: scale(1.18);
  background: var(--bg-secondary);
}

/* Extracted Utility & Layout Classes */
.display-none,
.is-hidden {
  display: none !important;
}

.footer-brand .logo-img {
  margin-bottom: 16px;
}

.footer-brand .social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mobile-menu-btn#openRightDrawerBtn {
  margin-left: 4px;
}

.drawer-header-logo {
  height: 28px;
  width: auto;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.drawer-section .btn-block {
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.drawer-login-prompt {
  margin-bottom: 24px;
  text-align: center;
}

.drawer-login-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-drawer-login {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
}

.btn-drawer-sub {
  display: block;
  width: 100%;
  text-align: center;
}

.author-avatar-fallback {
  background: #334155;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
}

.author-social-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.author-social-row a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.author-articles-header {
  margin-bottom: 24px;
}

.popular-tags-center {
  justify-content: center;
  margin-top: 20px;
}

.card-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-no-results-custom {
  margin: 40px auto;
}

.subscribe-page-wrapper {
  padding-bottom: 60px;
}

.price-decimals {
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-mrp-wrapper {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.price-discount-tag {
  color: #10b981;
  font-weight: 700;
  margin-left: 6px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: left;
}

.plan-feature-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-feature-item.last-item {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-plan-select {
  display: block;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 12px;
  text-align: center;
}

.faq-link {
  color: var(--accent-color);
  font-weight: 600;
}

.otp-resend-wrapper {
  margin-bottom: 16px;
}

.resend-otp-btn.disabled {
  pointer-events: none;
  text-decoration: none;
  font-size: 0.85rem;
  color: #888;
}

.login-footer-legal {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: #888;
}

.login-footer-legal a {
  color: #666;
  text-decoration: underline;
}

.paywall-subdeck-mb {
  margin-bottom: 24px;
}

.hero-featured-link {
  text-decoration: none;
  color: inherit;
}

/* Video Section Slider Styles (3 per view desktop, max 5 total, responsive) */
.video-section {
  background-color: #0e0e11;
  color: var(--white);
  padding: 48px 0;
}

.video-section .section-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
}

.video-section .section-header h2 {
  color: var(--white);
  margin: 0;
}

.video-section .view-all {
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.video-section .view-all:hover {
  color: #fca5a5;
}

.video-section .slider-arrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-section .slider-arrow:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.video-slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px;
}

.video-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.video-track::-webkit-scrollbar {
  display: none;
}

.video-card-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  scroll-snap-align: start;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-card-slide:hover {
  transform: translateY(-4px);
  border-color: #ef4444;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.15);
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1f23 0%, #09090b 100%);
}

.video-thumb-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.9;
  display: block;
}

.video-card-slide:hover .video-thumb-wrapper img {
  transform: scale(1.05);
  opacity: 1;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease;
  z-index: 2;
}

.video-card-slide:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ef4444;
}

.video-duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.video-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-channel-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ef4444;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-card-info h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  font-family: var(--font-heading);
}

.video-card-info h3 a {
  color: #f4f4f5;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-info h3 a:hover {
  color: #ef4444;
}

@media (max-width: 1024px) {
  .video-card-slide {
    flex: 0 0 calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .video-card-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}




