/* ==========================================================================
   InnocentInvestor CSS Design System
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

/* Theme Variables */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --bg-input: #111827;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-gold: #fbbf24;
  --accent-gold-rgb: 251, 191, 36;
  --accent-gold-hover: #f59e0b;
  --primary-blue: #3b82f6;
  --primary-blue-rgb: 59, 130, 246;
  --primary-blue-hover: #2563eb;
  
  --success: #10b981;
  --danger: #ef4444;
  
  --border-color: #374151;
  --border-focus: #4b5563;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(251, 191, 36, 0.15);
  
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: 12px;
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-gold: #d97706;
  --accent-gold-rgb: 217, 119, 6;
  --accent-gold-hover: #b45309;
  --primary-blue: #1d4ed8;
  --primary-blue-rgb: 29, 78, 216;
  --primary-blue-hover: #1e40af;
  
  --border-color: #e2e8f0;
  --border-focus: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 15px rgba(217, 119, 6, 0.08);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.04);
  --glass-blur: 12px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Improve tap target size & remove delay on touch devices */
button, a, input, textarea, select, label {
  touch-action: manipulation;
}

/* Prevent text from overflowing its container */
p, h1, h2, h3, h4, h5, h6, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Ensure SVG icons scale properly on mobile */
svg {
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Ensure semantic <nav> element doesn't break flexbox layout */
.nav-wrapper nav {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  transform-origin: left center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.logo span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #fbbf24, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: rotateGradient 12s linear infinite;
  display: inline-block;
}

.logo-icon {
  background: transparent;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 0;
}

/* Animated Monogram Logo */
.ii-animated-logo {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ii-animated-logo .dot-left {
  animation: dotLeftSwap 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-box: viewBox;
  transform-origin: 35px 38px;
}

.ii-animated-logo .dot-right {
  animation: dotRightSwap 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-box: viewBox;
  transform-origin: 65px 22px;
}

@keyframes dotLeftSwap {
  0%, 15% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(15px, -28px);
  }
  35%, 65% {
    transform: translate(30px, -16px);
  }
  75% {
    transform: translate(15px, -28px);
  }
  85%, 100% {
    transform: translate(0, 0);
  }
}

@keyframes dotRightSwap {
  0%, 15% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-15px, 24px);
  }
  35%, 65% {
    transform: translate(-30px, 16px);
  }
  75% {
    transform: translate(-15px, 24px);
  }
  85%, 100% {
    transform: translate(0, 0);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 700; /* Bold */
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 8px 16px; /* Semi-transparent box dimensions */
  background: rgba(255, 255, 255, 0.04); /* Semi-transparent background */
  border: 1px solid var(--border-color); /* Border */
  border-radius: 8px; /* Rounded corners */
  display: inline-block;
  line-height: 1;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08); /* Highlight box */
  border-color: var(--accent-gold); /* Gold highlight border */
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.15); /* Soft glow */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-focus);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

body.light-theme .theme-toggle .moon-icon {
  display: none;
}

body.light-theme .theme-toggle .sun-icon {
  display: block;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #0b0f19;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-focus);
}

.btn-blue {
  background-color: var(--primary-blue);
  color: #fff;
}

.btn-blue:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* Premium Buttons with Hover Glow and Shimmer Effects */
.btn-premium {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
  transform-style: preserve-3d;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-premium:active {
  transform: translateY(-1px) scale(1.00);
}

/* Shimmer reflection overlay */
.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.25) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
  animation: auto-shine 6s infinite ease-in-out;
}

/* Shine animation triggered on hover */
.btn-premium:hover::after {
  animation: premium-shine 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Keyframes for shine slide effects */
@keyframes auto-shine {
  0%, 75% {
    left: -150%;
  }
  90%, 100% {
    left: 150%;
  }
}

@keyframes premium-shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* Premium Icons */
.btn-premium-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0;
}

/* Blue Variant: Start Learning */
.btn-premium-blue {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  background-size: 200% auto;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-premium-blue:hover {
  background-position: right center;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.45), 0 0 12px rgba(59, 130, 246, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-premium-blue:hover .btn-premium-icon {
  transform: translateX(2px) scale(1.1);
}

/* Gold Variant: iiQ Facts */
.btn-premium-gold {
  background: linear-gradient(135deg, #d97706, #fbbf24, #d97706);
  background-size: 200% auto;
  color: #0b0f19;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.btn-premium-gold:hover {
  background-position: right center;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.5), 0 0 12px rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.6);
}

.btn-premium-gold:hover .btn-premium-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Silver / Glassmorphic Variant: Browse Articles */
.btn-premium-silver {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-premium-silver:hover {
  background: rgba(55, 65, 81, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08), 0 0 12px rgba(255, 255, 255, 0.05);
}

.btn-premium-silver:hover .btn-premium-icon {
  transform: translateY(-1px) scale(1.1);
}

/* Light Theme overrides for premium buttons */
body.light-theme .btn-premium-blue {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

body.light-theme .btn-premium-blue:hover {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4), 0 0 12px rgba(37, 99, 235, 0.2);
}

body.light-theme .btn-premium-gold {
  background: linear-gradient(135deg, #b45309, #d97706, #b45309);
  color: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

body.light-theme .btn-premium-gold:hover {
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.45), 0 0 12px rgba(217, 119, 6, 0.25);
  border-color: rgba(217, 119, 6, 0.5);
}

body.light-theme .btn-premium-silver {
  background: rgba(255, 255, 255, 0.6);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.light-theme .btn-premium-silver:hover {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1), 0 0 12px rgba(15, 23, 42, 0.05);
}


/* Mobile Menu Icon */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.05), transparent 45%);
}

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

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.stat-item h3 {
  font-size: 32px;
  color: var(--accent-gold);
}

.stat-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 24px;
}

.hero-blob {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(251, 191, 36, 0.15));
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  animation: floatBlob 15s infinite ease-in-out;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 390px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

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

.badge {
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.hero-card-graph {
  height: 160px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.graph-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary-blue), rgba(59, 130, 246, 0.4));
  border-radius: 4px 4px 0 0;
  height: 0;
  transition: height 1.4s cubic-bezier(0.16, 1, 0.3, 1), background 1.4s ease;
}

.graph-bar:nth-child(6) {
  background: linear-gradient(to top, var(--accent-gold), rgba(251, 191, 36, 0.4));
}

.hero-card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.hero-card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-color);
  margin-top: 24px;
  padding-top: 20px;
}

.hero-nav-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.hero-nav-btn svg {
  transition: transform 0.2s ease;
}

.hero-nav-btn:hover svg {
  transform: scale(1.1);
}

.hero-card-description {
  padding: 18px 22px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: left;
  width: 210px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-card-description.fade-out {
  opacity: 0;
  transform: translateX(-10px);
}

.hero-desc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hero-visual-btn-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
}

/* Featured / Quick Links Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card:hover .feature-icon {
  background-color: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.feature-card:hover .card-link svg {
  transform: translateX(4px);
}

/* Post Page & Card Listing */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 30px;
}

.post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

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

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  align-items: center;
}

.post-category {
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
}

.post-card-title {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.35;
}

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

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-blue));
}

.author-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.author-link:hover {
  color: var(--accent-gold) !important;
}

/* Individual Post Template Elements */
.post-header {
  padding: 140px 0 60px;
  text-align: center;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.post-header-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
  flex-wrap: wrap;
}

.post-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content h2 {
  font-size: 26px;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.post-content h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 16px 24px;
  background-color: var(--bg-secondary);
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-primary);
}

.post-content strong {
  color: var(--text-primary);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
}

.post-content th, .post-content td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.post-content th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.post-sidebar-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}

/* Calculators Styles */
.calculators-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.calculators-menu {
  position: sticky;
  top: 100px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  list-style: none;
}

.calc-menu-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.calc-menu-item:hover, .calc-menu-item.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.calc-menu-item.active {
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
}

.calculator-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  display: none;
}

.calculator-wrapper.active {
  display: block;
  animation: calcFadeIn 0.4s ease-out forwards;
}

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

.hero-card-content-wrapper {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-card-content-wrapper.fade-out {
  opacity: 0;
  transform: scale(0.98);
}


.calculator-wrapper h2 {
  font-size: 28px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.calculator-wrapper .calc-description {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 15px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.input-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-value-badge {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.input-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary-blue);
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.input-prefix, .input-suffix {
  position: absolute;
  color: var(--text-muted);
  font-weight: 500;
}

.input-prefix {
  left: 16px;
}

.input-suffix {
  right: 16px;
}

.with-prefix .input-field {
  padding-left: 36px;
}

.with-suffix .input-field {
  padding-right: 36px;
}

/* Range Slider Styling */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
  margin-top: 10px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--accent-gold-hover);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: none;
  transition: transform 0.1s;
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  background: var(--accent-gold-hover);
}

.calc-results {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-main {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 24px;
}

.result-main-label {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.result-main-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-gold);
}

.result-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.result-label {
  color: var(--text-secondary);
}

.result-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Real-time result pulse animation */
@keyframes resultPulse {
  0% { transform: scale(1); filter: brightness(1.2); }
  50% { transform: scale(1.06); filter: brightness(1.45); text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
  100% { transform: scale(1); filter: brightness(1); text-shadow: none; }
}

.result-updated {
  display: inline-block;
  animation: resultPulse 0.25s ease-out;
}

/* Amortization Table Styles */
.amortization-section {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.amortization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.amortization-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.amortization-toggle-btn:hover {
  background-color: var(--bg-secondary);
}

.table-responsive {
  max-height: 350px;
  overflow: auto; /* Enable horizontal and vertical scroll on mobile */
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-responsive th {
  position: sticky;
  top: 0;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  z-index: 1;
}

.table-responsive th, .table-responsive td {
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap; /* Prevent numbers wrapping to next line */
}

.table-responsive td:first-child, .table-responsive th:first-child {
  text-align: center;
}

/* Video Page Styles */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.video-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}

.video-card:hover .video-thumbnail {
  opacity: 0.95;
  transform: scale(1.03);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(239, 68, 68, 0.9); /* YouTube Red */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 4px; /* Align triangle */
}

.video-card:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: #ff0000;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
}

.play-button-overlay svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Subscribe Banner */
.subscribe-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.subscribe-banner h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.subscribe-banner p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Responsive table wrapper for article content */
.table-overflow-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.table-overflow-wrapper table {
  min-width: 480px;
  margin: 0;
  border: none;
}

/* Facts Styles */
.facts-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-gold);
  color: #0b0f19;
  border-color: var(--accent-gold);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.fact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.fact-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-blue);
  background-color: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

body.light-theme .fact-badge {
  color: var(--primary-blue);
  background-color: rgba(29, 78, 216, 0.1);
}

.fact-card.cat-history .fact-badge {
  color: var(--accent-gold);
  background-color: rgba(251, 191, 36, 0.1);
}

.fact-number {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  line-height: 1;
}

body.light-theme .fact-number {
  color: rgba(0, 0, 0, 0.03);
}

.fact-text {
  font-size: 15px;
  color: var(--text-primary);
  flex-grow: 1;
}

/* =========================================================
   FOOTER – Premium Colorful Redesign
   ========================================================= */
footer {
  background: linear-gradient(160deg,
    #040b1a 0%,
    #0a1628 30%,
    #0d1f3c 55%,
    #0b1525 80%,
    #060e1c 100%
  );
  border-top: none;
  padding: 80px 0 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Animated rainbow top border – mirrors the header glow */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #3b82f6, #8b5cf6, #ec4899,
    #fbbf24, #10b981, #06b6d4,
    #3b82f6
  );
  background-size: 300% 100%;
  animation: footerBorderShift 6s linear infinite;
}

@keyframes footerBorderShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* Subtle radial glow blobs in the background */
footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 15% 30%, rgba(59, 130, 246, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 250px at 80% 70%, rgba(139, 92, 246, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 350px 200px at 50% 10%, rgba(251, 191, 36, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-logo span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #fbbf24, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: rotateGradient 12s linear infinite;
  display: inline-block;
}

.footer-desc {
  color: rgba(156, 163, 175, 0.85);
  font-size: 14px;
  max-width: 360px;
  line-height: 1.75;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.08);
  border-color: transparent;
  color: #fff;
}

.social-icon[aria-label="YouTube"]::before  { background: linear-gradient(135deg, #ff0000, #ff4500); }
.social-icon[aria-label="Twitter"]::before  { background: linear-gradient(135deg, #1da1f2, #0d8ecf); }
.social-icon[aria-label="Telegram"]::before { background: linear-gradient(135deg, #0088cc, #00b4d8); }
.social-icon[aria-label="LinkedIn"]::before { background: linear-gradient(135deg, #0077b5, #0096d6); }

.social-icon[aria-label="YouTube"]:hover  { box-shadow: 0 8px 24px rgba(255,   0,   0, 0.45); }
.social-icon[aria-label="Twitter"]:hover  { box-shadow: 0 8px 24px rgba( 29, 161, 242, 0.45); }
.social-icon[aria-label="Telegram"]:hover { box-shadow: 0 8px 24px rgba(  0, 136, 204, 0.45); }
.social-icon[aria-label="LinkedIn"]:hover { box-shadow: 0 8px 24px rgba(  0, 119, 181, 0.45); }

.social-icon:hover::before { opacity: 1; }

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

/* Quick Links column */
.footer-links-col {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  height: fit-content;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.footer-links-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  border-radius: 20px 20px 0 0;
}

.footer-links-col:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Contact form column */
.footer-form-container {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.05), rgba(16, 185, 129, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.footer-form-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #10b981);
  border-radius: 20px 20px 0 0;
}

/* Section headings inside footer */
.footer-form-container h3, .footer-links-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-col h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
}

.footer-form-container h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border-radius: 4px;
}

/* Contact form */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-submit-btn {
  align-self: flex-start;
}

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
}

.footer-input::placeholder {
  color: rgba(107, 114, 128, 0.8);
}

.footer-input:focus {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.04);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
}

.footer-textarea {
  resize: vertical;
  height: 90px;
}

.footer-form-success {
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
  display: none;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  gap: 20px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

/* SEBI Disclaimer */
.footer-sebi-disclaimer {
  background: rgba(251, 191, 36, 0.02) !important;
  border: 1px solid rgba(251, 191, 36, 0.15) !important;
  border-radius: 16px;
  padding: 24px 30px !important;
  text-align: center !important;
  font-size: 12.5px !important;
  line-height: 1.8 !important;
  margin: 0 auto 35px !important;
  max-width: 850px !important;
  color: var(--text-secondary) !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* =========================================================
   Light Theme Footer Styling
   ========================================================= */
body.light-theme footer {
  background: linear-gradient(160deg,
    #f8fafc 0%,
    #f1f5f9 30%,
    #e2e8f0 55%,
    #f1f5f9 80%,
    #f8fafc 100%
  );
  border-top: 1px solid var(--border-color);
}

body.light-theme footer::after {
  background:
    radial-gradient(ellipse 500px 300px at 15% 30%, rgba(59, 130, 246, 0.02) 0%, transparent 70%),
    radial-gradient(ellipse 400px 250px at 80% 70%, rgba(139, 92, 246, 0.02) 0%, transparent 70%);
}

body.light-theme .footer-desc {
  color: var(--text-secondary);
}

body.light-theme .footer-links-col {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.02));
  border-color: rgba(59, 130, 246, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-theme .footer-links-col:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.06);
}

body.light-theme .footer-links-list a {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.light-theme .footer-links-list a:hover {
  background: rgba(29, 78, 216, 0.06);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

body.light-theme .footer-form-container {
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.03), rgba(16, 185, 129, 0.02));
  border-color: rgba(217, 119, 6, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-theme .footer-input {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.light-theme .footer-input::placeholder {
  color: var(--text-muted);
}

body.light-theme .footer-input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}

body.light-theme .social-icon {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

body.light-theme .social-icon:hover {
  color: #fff;
  border-color: transparent;
}

body.light-theme .footer-sebi-disclaimer {
  background: rgba(217, 119, 6, 0.02) !important;
  border-color: rgba(217, 119, 6, 0.12) !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .footer-bottom {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

body.light-theme .footer-bottom p {
  color: var(--text-secondary);
}

body.light-theme .footer-bottom-links a {
  color: var(--text-secondary);
}

body.light-theme .footer-bottom-links a:hover {
  color: var(--accent-gold);
}

.footer-sebi-disclaimer strong {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer bottom links */
.footer-bottom-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* Mobile Drawer Styles */
.mobile-nav-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  border-top: 1px solid var(--border-color);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin-bottom: 40px;
}

.mobile-nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-link.active {
  color: var(--accent-gold);
}

/* Utility Animations */
.fade-in {
  animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .calculators-container {
    grid-template-columns: 1fr;
  }

  .calculators-container aside {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  
  .calculators-menu {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    white-space: nowrap;
    padding: 10px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  }

  .calculators-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  
  .calc-menu-item {
    margin-bottom: 0;
    padding: 8px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  .calc-menu-item.active {
    border-left: none;
    border-bottom: 3px solid var(--accent-gold);
    border-radius: 0;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  /* Also hide the nav wrapper when it only contains nav-links (semantics update) */
  .nav-wrapper nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  
  .hero-card {
    max-width: 100%;
  }

  .hero-card-description {
    text-align: center;
    border-left: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-gold);
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-card-description.fade-out {
    opacity: 0;
    transform: translateY(8px);
  }

  .hero-desc-wrapper {
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-visual-btn-container {
    justify-content: center;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  /* ── Footer Info column ── */
  .footer-info {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .footer-socials {
    justify-content: center;
  }
  
  /* ── Quick Links column ── */
  .footer-links-col {
    text-align: center;
  }

  .footer-links-col h3 {
    justify-content: center;
  }

  .footer-links-list {
    width: 100%;
  }

  .footer-links-list li {
    width: 100%;
  }

  /* ── Contact form column ── */
  .footer-form-container {
    text-align: center;
  }

  .footer-form-container h3 {
    justify-content: center;
  }
  
  .footer-form {
    width: 100%;
  }

  .footer-submit-btn {
    align-self: center;
  }

  /* ── Footer bottom bar ── */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    gap: 12px;
  }

  .footer-bottom p {
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  /* Subscribe banner mobile */
  .subscribe-banner {
    padding: 32px 20px;
    margin-top: 40px;
    border-radius: 16px;
  }

  .subscribe-banner h2 {
    font-size: 24px;
  }

  /* Facts filter buttons on tablet */
  .facts-controls {
    justify-content: flex-start;
    gap: 8px;
  }

  /* Post content tables - force responsive */
  .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* Tablet portrait - additional fixes */
@media (max-width: 768px) {
  .amortization-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }

  .amortization-toggle-btn {
    align-self: center;
    width: 100%;
  }

  /* Nav: tighten spacing when menu btn visible */
  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Hero card graph height reduction */
  .hero-card-graph {
    height: 120px;
  }

  /* Post body padding */
  .post-body {
    padding: 40px 16px;
  }

  /* Post header */
  .post-header {
    padding: 120px 0 40px;
  }

  .post-header h1 {
    font-size: 26px;
  }

  /* Feature cards: fix padding */
  .feature-card {
    padding: 24px;
  }

  /* Join team section */
  #join-team-section .feature-card {
    padding: 32px 20px;
  }

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

  .footer-info {
    grid-column: span 1;
  }

  /* Footer form full-width */
  .footer-form {
    max-width: 100%;
    width: 100%;
  }

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

  /* Footer bottom bar: keep stacked on 768px too */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* SEBI disclaimer breathing room */
  .footer-sebi-disclaimer {
    padding: 16px 16px !important;
    font-size: 11.5px !important;
  }

  /* Search filter container stacking */
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100% !important;
    min-width: unset !important;
  }

  /* Calculators Responsive Adjustments */
  .calculators-container {
    gap: 24px;
  }

  .calculator-wrapper {
    padding: 24px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .calculator-wrapper h2 {
    font-size: 22px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .calculator-wrapper .calc-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .calc-grid {
    gap: 24px;
  }

  .calc-results {
    padding: 24px 20px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }
  
  .section-title {
    font-size: 26px;
  }

  /* Container padding tighter */
  .container {
    padding: 0 16px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero-stats .stat-item h3 {
    font-size: 26px;
  }
  
  .footer-form-row {
    grid-template-columns: 1fr;
  }

  /* Footer: send button full width on small screens */
  .footer-form .btn,
  .footer-submit-btn {
    width: 100%;
    align-self: stretch !important;
    justify-content: center;
    text-align: center;
  }

  .footer-links-col,
  .footer-form-container {
    padding: 20px 16px;
  }

  /* Footer grid tighter gap on small screens */
  .footer-grid {
    gap: 20px;
  }

  /* Footer bottom links: smaller font, tighter */
  .footer-bottom-links {
    gap: 8px 12px;
  }

  .footer-bottom-links a {
    font-size: 11px;
  }

  /* SEBI disclaimer: compact on very small screens */
  .footer-sebi-disclaimer {
    padding: 14px 12px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Ensure footer doesn't create horizontal overflow */
  footer {
    overflow-x: hidden;
  }
  
  .calculator-wrapper {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .calculator-wrapper h2 {
    font-size: 20px;
  }
  
  .calc-results {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .input-label-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .input-label {
    font-size: 13px;
    line-height: 1.3;
  }

  .input-value-badge {
    font-size: 12px;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .result-main-value {
    font-size: clamp(22px, 6vw, 28px);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .result-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
  }

  .result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .result-value {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Filter buttons on small screens - allow wrapping */
  .facts-controls, .search-filter-container > div {
    gap: 8px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* Subscribe banner tightest */
  .subscribe-banner {
    padding: 24px 16px;
  }

  .subscribe-banner h2 {
    font-size: 20px;
  }

  /* Hero card on tiny screens */
  .hero-card {
    padding: 20px;
  }

  .hero-card-graph {
    height: 100px;
    gap: 8px;
  }

  /* ii-gyan FAB smaller on mobile */
  .ii-gyan-fab {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Post content adjustments */
  .post-content {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 22px;
  }

  .post-content h3 {
    font-size: 18px;
  }

  /* Section padding reduction */
  section {
    padding: 60px 0;
  }

  /* Feature icon size */
  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* Post card footer stacking */
  .post-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Nav logo compress */
  .logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* Theme toggle compress */
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 576px) {
  .translator-bar {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   Google Translate Custom Styling & Alignment Fixes
   ========================================================================== */
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}

.goog-te-gadget {
  font-family: 'Inter', sans-serif !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0 !important; /* Hide "Powered by Google Translate" text */
}

/* Hide miscellaneous spans (Select Language, Powered by text, logos) */
.goog-te-gadget > span,
.goog-te-gadget > a,
.goog-te-gadget img {
  display: none !important;
}

.goog-te-gadget .goog-te-combo {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  outline: none !important;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: inline-block !important;
  margin: 0 !important;
}

.goog-te-gadget .goog-te-combo:focus {
  border-color: var(--primary-blue) !important;
}

/* Hide Google Translate branding attribution to keep clean UI */
.goog-logo-link, 
.goog-logo-link:link, 
.goog-logo-link:visited, 
.goog-logo-link:hover, 
.goog-logo-link:active {
  display: none !important;
}

/* Hide translate toolbar banner if it pops up at the top */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

/* ==========================================================================
   Page Load & Dynamic Interaction Animations
   ========================================================================== */
header {
  animation: slideDown 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Staggered card fade-ins for grid content */
.post-grid .post-card,
.videos-grid .video-card,
.facts-grid .fact-card,
.feature-card {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Add delays for grid cards to create a staggered entry effect */
.post-grid .post-card:nth-child(1),
.videos-grid .video-card:nth-child(1),
.facts-grid .fact-card:nth-child(3n+1),
.quick-links-grid .feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.post-grid .post-card:nth-child(2),
.videos-grid .video-card:nth-child(2),
.facts-grid .fact-card:nth-child(3n+2),
.quick-links-grid .feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.post-grid .post-card:nth-child(3),
.videos-grid .video-card:nth-child(3),
.facts-grid .fact-card:nth-child(3n),
.quick-links-grid .feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.post-grid .post-card:nth-child(n+4) {
  animation-delay: 0.4s;
}

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

/* Pulse Animation for YouTube Play Button overlay */
.play-button-overlay {
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.video-thumbnail-container:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: var(--accent-gold);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Facts card hover animations */
.fact-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.fact-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(251, 191, 36, 0.1);
}

/* Slide animations for calculator layout panels */
.calculator-wrapper.active .calc-inputs {
  animation: slideInLeft 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.calculator-wrapper.active .calc-results {
  animation: slideInRight 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Staggered load for input rows inside active calculators */
.calculator-wrapper.active .input-group {
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.calculator-wrapper.active .input-group:nth-child(1) { animation-delay: 0.08s; }
.calculator-wrapper.active .input-group:nth-child(2) { animation-delay: 0.16s; }
.calculator-wrapper.active .input-group:nth-child(3) { animation-delay: 0.24s; }
.calculator-wrapper.active .input-group:nth-child(4) { animation-delay: 0.32s; }

/* Staggered load for amortization table rows */
#loan-amortization-body tr {
  opacity: 0;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Stagger the first 10 rows */
#loan-amortization-body tr:nth-child(1) { animation-delay: 0.03s; }
#loan-amortization-body tr:nth-child(2) { animation-delay: 0.06s; }
#loan-amortization-body tr:nth-child(3) { animation-delay: 0.09s; }
#loan-amortization-body tr:nth-child(4) { animation-delay: 0.12s; }
#loan-amortization-body tr:nth-child(5) { animation-delay: 0.15s; }
#loan-amortization-body tr:nth-child(6) { animation-delay: 0.18s; }
#loan-amortization-body tr:nth-child(7) { animation-delay: 0.21s; }
#loan-amortization-body tr:nth-child(8) { animation-delay: 0.24s; }
#loan-amortization-body tr:nth-child(9) { animation-delay: 0.27s; }
#loan-amortization-body tr:nth-child(10) { animation-delay: 0.30s; }
#loan-amortization-body tr:nth-child(n+11) { opacity: 1; transform: translateY(0); animation: none; }

/* Logo & iiQ Button Slow Animations */
.logo {
  animation: none;
  display: flex !important;
  align-items: center !important;
}

.logo-icon {
  transform-origin: center center;
  transform: translate3d(0, 0, 0);
}

.ii-animated-logo {
  animation: logoPulse 32s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

.nav-links a[href*="facts.html"],
.mobile-nav-links a[href*="facts.html"] {
  animation: goldGlowSlow 5s ease-in-out infinite;
}

@keyframes logoPulse {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1) translate3d(0, 0, 0); }
}

@keyframes rotateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes goldGlowSlow {
  0% { text-shadow: 0 0 0px rgba(251, 191, 36, 0); }
  50% { text-shadow: 0 0 8px rgba(251, 191, 36, 0.5); color: var(--accent-gold); }
  100% { text-shadow: 0 0 0px rgba(251, 191, 36, 0); }
}

/* Footer Link list customization */
.footer-links-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.footer-links-list li {
  width: 100%;
}

.footer-links-list a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-links-list a::before {
  display: none !important;
}

.footer-links-list a::after {
  content: "→";
  font-size: 14px;
  color: var(--accent-gold);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links-list a:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.footer-links-list a:hover::after {
  transform: translateX(4px);
}


/* ==========================================================================
   ii-Gyan Course Premium Styling
   ========================================================================== */

/* Floating Action Button (FAB) */
.ii-gyan-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #0b0f19;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.4), 0 0 15px rgba(251, 191, 36, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fabPulse 2.5s infinite;
}

.ii-gyan-fab:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(251, 191, 36, 0.5), 0 0 25px rgba(251, 191, 36, 0.3);
}

.ii-gyan-fab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes fabPulse {
  0% { box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.4), 0 0 0 0 rgba(251, 191, 36, 0.4); }
  70% { box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.4), 0 0 0 15px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.4), 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Footer Teaser Card */
.ii-gyan-teaser-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
  backdrop-filter: blur(10px);
}

body.light-theme .ii-gyan-teaser-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 244, 246, 0.9));
  border-color: var(--border-color);
}

.ii-gyan-teaser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--primary-blue));
}

.ii-gyan-teaser-content {
  flex: 1;
}

.teaser-badge {
  display: inline-block;
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.ii-gyan-teaser-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.ii-gyan-teaser-content h2 strong {
  color: var(--accent-gold);
}

.ii-gyan-teaser-content p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
}

.ii-gyan-teaser-actions {
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .ii-gyan-teaser-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .ii-gyan-teaser-card::before {
    width: 100%;
    height: 4px;
    left: 0;
    top: 0;
  }
  .ii-gyan-teaser-actions {
    width: 100%;
  }
  .ii-gyan-teaser-actions button {
    width: 100%;
  }
}

/* Modal Window */
.ii-gyan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ii-gyan-modal.active {
  display: flex;
}

.ii-gyan-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ii-gyan-modal.active .ii-gyan-modal-overlay {
  opacity: 1;
}

.ii-gyan-modal-container {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ii-gyan-modal.active .ii-gyan-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.light-theme .ii-gyan-modal-container {
  background-color: var(--bg-card);
}

.ii-gyan-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.ii-gyan-modal-close:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.ii-gyan-modal-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid var(--border-color);
}

.ii-gyan-modal-header h2 {
  font-size: 28px;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.ii-gyan-modal-header p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.ii-gyan-modal-content {
  padding: 30px 40px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.ii-gyan-modal-left h3, .ii-gyan-modal-right h3 {
  font-size: 18px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.ii-gyan-syllabus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ii-gyan-syllabus-list li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
}

.ii-gyan-syllabus-list li span {
  color: var(--success);
  font-weight: bold;
}

.ii-gyan-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ii-gyan-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.light-theme .ii-gyan-info-item {
  background: var(--bg-secondary);
}

.ii-gyan-info-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.ii-gyan-info-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.ii-gyan-modal-footer {
  padding: 20px 40px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ii-gyan-modal-footer p {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1;
  max-width: 480px;
}

@media (max-width: 768px) {
  .ii-gyan-modal-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }
  .ii-gyan-modal-header {
    padding: 20px;
    padding-right: 60px;
  }
  .ii-gyan-modal-header h2 {
    font-size: 22px; /* Scale down title on mobile */
  }
  .ii-gyan-modal-footer {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  .ii-gyan-modal-footer p {
    max-width: 100%;
  }
  .ii-gyan-modal-footer button {
    width: 100%;
  }
}

/* ==========================================================================
   Article Page Two-Column Layout & Suggestive Sidebar
   ========================================================================== */
.post-layout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

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

.post-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 992px) {
  .post-layout-container {
    grid-template-columns: 2.2fr 1fr;
  }
}

.post-body.has-sidebar {
  max-width: 1200px;
  padding: 40px 24px;
}

@media (max-width: 991px) {
  .post-body.has-sidebar {
    padding: 30px 16px;
  }

  .suggested-articles-section {
    display: none;
  }
}

/* Suggestive Article Card Styles */
.suggested-articles-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.suggested-articles-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggested-articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.suggested-post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.suggested-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suggested-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggested-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.suggested-post-card:hover .suggested-post-title {
  color: var(--accent-gold);
}

.suggested-post-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination Controls */
.pagination-controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.pagination-btn-load {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

.pagination-btn-load:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.pagination-btn-all {
  background-color: transparent;
}

.pagination-btn-all:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Article Interlinks */
.article-interlink {
  color: var(--accent-gold) !important;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.2s ease;
}

.article-interlink:hover {
  color: var(--primary-blue) !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Bottom Suggestions Section */
.bottom-suggestions-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.bottom-suggestions-header {
  margin-bottom: 24px;
}

.bottom-suggestions-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.bottom-suggestions-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 700;
  margin: 0;
}

.bottom-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.bottom-suggested-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bottom-suggested-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.bottom-suggested-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bottom-suggested-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bottom-suggested-category {
  color: var(--accent-gold);
  font-weight: 600;
}

.bottom-suggested-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.bottom-suggested-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bottom-suggested-title a:hover {
  color: var(--accent-gold);
}

.bottom-suggested-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bottom-suggested-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-suggested-read-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.bottom-suggested-read-link:hover {
  gap: 8px;
}

/* Scroll-triggered reveal animations */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-slide-up {
  transform: translateY(30px);
}

.reveal-slide-left {
  transform: translateX(-45px);
}

.reveal-slide-right {
  transform: translateX(45px);
}

.reveal-zoom-in {
  transform: scale(0.95);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Dynamic Floating Blob keyframes */
@keyframes floatBlob {
  0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.15) rotate(180deg); opacity: 0.95; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.7; }
}

/* ==========================================================================
   Redesigned FAQ Styles
   ========================================================================== */

/* Hero Section */
.faq-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 140px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05), transparent 60%);
  pointer-events: none;
}

.faq-hero-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.faq-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.faq-hero-desc {
  max-width: 650px;
  margin: 0 auto 30px auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Search Bar Revamp */
.faq-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.faq-search-box {
  position: relative;
  width: 100%;
  box-shadow: var(--shadow-md);
  border-radius: 16px;
}

.faq-search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 24px 18px 54px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.faq-search-box input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--shadow-md);
  background: var(--bg-primary);
}

.faq-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s ease;
}

.faq-search-box input:focus + .faq-search-clear + .faq-search-icon,
.faq-search-box input:focus ~ .faq-search-icon {
  color: var(--primary-blue);
}

.faq-search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.faq-search-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Quick Cards */
.faq-quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: -30px auto 40px auto;
  position: relative;
  z-index: 12;
  padding: 0 20px;
}

.faq-quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.faq-quick-card-icon {
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-quick-card-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.faq-quick-card-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Split Layout */
.faq-split-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar Categories */
.faq-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}

.faq-sidebar::-webkit-scrollbar {
  width: 4px;
}

.faq-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.faq-sidebar-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-left: 8px;
}

.faq-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-filter-btn {
  width: 100%;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-filter-btn:hover {
  background: rgba(59, 130, 246, 0.05);
  color: var(--text-primary);
}

.faq-filter-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.faq-filter-btn .faq-cat-count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.faq-filter-btn:not(.active) .faq-cat-count {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* FAQ Main Area */
.faq-main-content {
  min-width: 0; /* Prevents flex blowout */
}

.faq-group-section {
  margin-bottom: 35px;
  animation: fadeIn 0.4s ease-out;
}

.faq-group-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.faq-item.active {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08), var(--shadow-md);
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-question h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  flex: 1;
  padding-right: 15px;
  transition: color 0.2s ease;
}

.faq-item.active .faq-question h3 {
  color: var(--primary-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-icon {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* Micro-feedback widget inside answer */
.faq-feedback {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.faq-feedback-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-feedback-btn:hover {
  border-color: var(--primary-blue);
  color: var(--text-primary);
}

.faq-feedback-btn.liked {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

#faq-no-results {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-secondary);
}

#faq-no-results span {
  font-size: 40px;
  display: block;
  margin-bottom: 15px;
}

#faq-no-results h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

#faq-no-results p {
  font-size: 14px;
  margin: 0;
  color: var(--text-muted);
}

/* Responsive Rules for FAQs split layout */
@media (max-width: 992px) {
  .faq-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .faq-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  
  .faq-sidebar-header {
    display: none;
  }
  
  .faq-categories {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    margin-bottom: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .faq-categories::-webkit-scrollbar {
    display: none;
  }
  
  .faq-filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .faq-question {
    padding: 16px 20px;
  }
  
  .faq-answer-inner {
    padding: 0 20px 20px;
  }
  
  .faq-question h3 {
    font-size: 15px;
  }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 400px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.cookie-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-desc a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-desc a:hover {
  color: var(--accent-gold-hover);
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-btn-accept {
  background-color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
}

.cookie-btn-decline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.cookie-btn-decline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

@media (max-width: 576px) {
  .cookie-consent-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.25);
    gap: 12px;
  }

  .cookie-title {
    font-size: 16px;
  }

  .cookie-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-actions {
    gap: 8px;
  }

  .cookie-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}


/* =========================================================
   Header Clock
   .header-datetime         → hardcoded in nav-links HTML, RIGHT of FAQ (desktop only)
   .header-datetime-mobile  → injected by JS into nav-actions (mobile only)
   ========================================================= */
.header-datetime {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 700;
  padding: 6px 14px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  font-family: monospace, monospace;
  display: inline-flex;
  align-items: center;
  height: 34px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* Mobile clock: hidden on desktop */
.header-datetime-mobile {
  display: none !important;
}

/* On mobile: keep mobile clock hidden */
@media (max-width: 992px) {
  .header-datetime-mobile {
    display: none !important;
  }
}

/* On phone screens (max-width: 768px): completely remove both desktop and mobile clocks */
@media (max-width: 768px) {
  .header-datetime,
  .header-datetime-mobile,
  .nav-clock-li {
    display: none !important;
  }
}


/* Mobile logo compression to icon-only on small mobile viewports */
@media (max-width: 500px) {
  .logo {
    font-size: 16px !important;
    gap: 6px !important;
  }
  .nav-actions .btn-primary {
    display: none !important;
  }
}

/* Calculators Mobile Responsiveness & Fitting Adjustments */
@media (max-width: 480px) {
  .input-label-container {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .input-label {
    font-size: 13px !important;
  }

  .input-value-badge {
    font-size: 12px !important;
    padding: 2px 8px !important;
  }

  .input-field {
    padding: 10px 14px !important;
    font-size: 15px !important;
  }

  .with-prefix .input-field {
    padding-left: 32px !important;
  }

  .with-suffix .input-field {
    padding-right: 32px !important;
  }

  .input-prefix {
    left: 12px !important;
  }

  .input-suffix {
    right: 12px !important;
  }

  .result-main-value {
    font-size: 25px !important;
  }
  
  .result-main-label {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
  }
  
  .result-row {
    font-size: 13px !important;
  }
}

/* ==========================================================================
   Historical News Button & Modal Styles
   ========================================================================== */

/* Shimmer/Shining Animation Keyframes */
@keyframes continuous-shining-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes continuous-border-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25); border-color: rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 4px 16px rgba(59, 130, 246, 0.25); border-color: rgba(59, 130, 246, 0.8); }
}

/* Shining Premium Button styling */
.btn-shining {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #8b5cf6, #3b82f6);
  background-size: 300% 300%;
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.5);
  padding: 8px 22px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  animation: continuous-shining-gradient 6s ease infinite, continuous-border-glow 3s ease-in-out infinite;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-shining:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-shining:active {
  transform: translateY(0) scale(1.0);
}

.btn-shining::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  animation: auto-shine 4s infinite ease-in-out;
}

body.light-theme .btn-shining {
  background: linear-gradient(135deg, #2563eb, #1d4ed8, #7c3aed, #2563eb);
  background-size: 300% 300%;
  border-color: rgba(29, 78, 216, 0.4);
}

/* Modal Scroll Lock */
body.modal-open {
  overflow: hidden;
}

/* Modal Content Adjustments */
.news-modal-container {
  max-width: 1000px !important;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.news-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(17, 24, 39, 0.2);
}

/* News Search and Year Filters section */
.news-modal-controls {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.light-theme .news-modal-controls {
  background-color: var(--bg-secondary);
}

/* News Search Wrapper */
.news-search-wrapper {
  position: relative;
  width: 100%;
}

.news-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.news-search-wrapper input {
  width: 100%;
  padding: 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.news-search-wrapper input:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.news-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.news-search-clear svg {
  width: 12px;
  height: 12px;
}

.news-search-clear:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

body.light-theme .news-search-clear {
  background: rgba(0, 0, 0, 0.05);
}
body.light-theme .news-search-clear:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* News Year Filters */
.news-year-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.news-year-filters::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.news-year-filters {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.news-year-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.news-year-pill:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.news-year-pill.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* News List Grid inside Modal Content */
.news-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background-color: var(--bg-primary);
}

.news-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.news-card-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-year-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  background-color: rgba(251, 191, 36, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.news-year-badge.yr-2020 {
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.1);
}

.news-year-badge.yr-2026 {
  color: #34d399;
  background-color: rgba(52, 211, 153, 0.1);
}

.news-card-index {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.news-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.news-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* No Results Banner */
.news-no-results {
  text-align: center;
  padding: 60px 20px;
}

/* Modal Footer Styling */
.news-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.news-count-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Responsive adjustments for news modal */
@media (max-width: 768px) {
  .news-modal-container {
    height: 90vh;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ii-gyan-modal.active .news-modal-container {
    transform: translateY(0);
  }

  .news-modal-controls {
    padding: 12px 16px;
  }

  .news-modal-content {
    padding: 16px;
  }

  .news-modal-header {
    padding: 16px;
  }

  .news-modal-footer {
    padding: 12px 16px;
  }
}

/* =========================================================
   Admin Login Button Styling
   ========================================================= */
.footer-admin-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.btn-admin-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin-login svg {
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.btn-admin-login:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.btn-admin-login:hover svg {
  color: var(--primary-blue);
}

body.light-theme .btn-admin-login {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

body.light-theme .btn-admin-login:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-blue);
}

/* KiiD Mode Global Animations */
@keyframes bounceEmoji {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* KiiD Mode Action Button - Child Friendly & Easy on Eyes */
.btn-kiid {
  background: linear-gradient(135deg, #fbcfe8, #fef08a, #bae6fd, #a7f3d0, #fbcfe8);
  background-size: 300% 300%;
  color: #1e1b4b !important; /* Deep indigo text for high contrast and readability */
  font-family: 'Outfit', sans-serif !important; /* Extremely readable rounded font */
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 16px !important; /* Friendly rounded corners */
  border: 1px solid rgba(30, 27, 75, 0.15) !important;
  box-shadow: 0 4px 0 rgba(30, 27, 75, 0.15) !important; /* Playful 3D button shadow */
  animation: continuous-shining-gradient 12s ease infinite; /* Slow, calming transition */
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.btn-kiid.btn-lg {
  padding: 12px 24px !important;
  font-size: 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 0 rgba(30, 27, 75, 0.15) !important;
}

.btn-kiid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(30, 27, 75, 0.15) !important;
  filter: brightness(1.02);
}

.btn-kiid:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(30, 27, 75, 0.15) !important;
}

@keyframes kiid-border-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(244, 114, 182, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25); border-color: rgba(244, 114, 182, 0.4); }
  50% { box-shadow: 0 0 20px rgba(244, 114, 182, 0.6), 0 4px 16px rgba(244, 114, 182, 0.25); border-color: rgba(244, 114, 182, 0.8); }
}

/* Letter animations for "ii" in KiiD */
.ii-letter {
  display: inline-block;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.ii-1 {
  animation-name: iiBounce1;
}

.ii-2 {
  animation-name: iiBounce2;
  margin-left: -0.5px;
  margin-right: 0.5px;
}

@keyframes iiBounce1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3.5px) scale(1.15) rotate(-6deg); }
}

@keyframes iiBounce2 {
  0%, 100% { transform: translateY(-3.5px) scale(1.15) rotate(6deg); }
  50% { transform: translateY(0) scale(1); }
}

/* Cursive Font & Animation Stop for iiQ facts button */
.btn-iiq-cursive {
  font-family: 'Caveat', 'Playpen Sans', 'Pacifico', cursive !important;
  font-size: 21px !important;
  animation: none !important; /* Stop shining gradient animation */
  letter-spacing: 1px !important;
}


