/* ==========================================================================
   JUDICIARY GOLD - PREMIER WEBSITE DESIGN SYSTEM
   Brand Colors: Deep Royal Navy, Imperial Gold, Crimson Accent, Platinum White
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #0B132B;
  --bg-navy: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #26334D;
  --primary-gold: #D4AF37;
  --primary-gold-hover: #F59E0B;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #9A7B1C 100%);
  --gold-button-gradient: linear-gradient(135deg, #F59E0B 0%, #D4AF37 100%);
  --accent-blue: #2563EB;
  --accent-teal: #0D9488;
  --accent-crimson: #EF4444;
  --accent-green: #10B981;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(212, 175, 55, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.85);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variable Overrides */
[data-theme="light"] {
  --bg-dark: #F1F5F9;
  --bg-navy: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --primary-gold: #B4860B;
  --primary-gold-hover: #8A6B0A;
  --gold-glow: rgba(180, 134, 11, 0.25);
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B4860B 50%, #8A6B0A 100%);
  --gold-button-gradient: linear-gradient(135deg, #F59E0B 0%, #D4AF37 100%);
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-subtle: #475569;
  --border-color: rgba(0, 0, 0, 0.12);
  --border-gold: rgba(180, 134, 11, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.94);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Light Theme High Contrast Overrides */
[data-theme="light"] body {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

[data-theme="light"] .state-selector-section,
[data-theme="light"] .mock-quiz-section,
[data-theme="light"] .toppers-section,
[data-theme="light"] .instagram-section,
[data-theme="light"] .comparison-section {
  background-color: #F8FAFC !important;
}

[data-theme="light"] .state-stat-box,
[data-theme="light"] .quiz-option-item,
[data-theme="light"] .timer-unit,
[data-theme="light"] .form-control,
[data-theme="light"] .modal-content,
[data-theme="light"] .widget-card,
[data-theme="light"] .quiz-container-card,
[data-theme="light"] .state-info-card,
[data-theme="light"] .course-card,
[data-theme="light"] .topper-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .insta-card {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .section-title,
[data-theme="light"] .course-title,
[data-theme="light"] .question-title,
[data-theme="light"] .topper-name,
[data-theme="light"] .state-details h3,
[data-theme="light"] .jsm-text h4,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4 {
  color: #0F172A !important;
}

[data-theme="light"] .hero-description,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .stat-label,
[data-theme="light"] .topper-quote,
[data-theme="light"] .state-details p,
[data-theme="light"] .jsm-text p,
[data-theme="light"] .syllabus-item span,
[data-theme="light"] label,
[data-theme="light"] .form-group label {
  color: #334155 !important;
}

[data-theme="light"] .state-stat-box span {
  color: #64748B !important;
}

[data-theme="light"] .state-stat-box strong {
  color: #B4860B !important;
}

[data-theme="light"] .btn-outline {
  border-color: #B4860B;
  color: #0F172A !important;
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(180, 134, 11, 0.12);
  color: #8A6B0A !important;
}

[data-theme="light"] .state-tab-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
  color: #334155;
}

[data-theme="light"] .state-tab-btn.active {
  background: var(--primary-gold);
  color: #FFFFFF !important;
}

[data-theme="light"] .quiz-option-item:hover {
  background: rgba(212, 175, 55, 0.1) !important;
}

[data-theme="light"] .quiz-option-item.selected {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: #B4860B !important;
}

[data-theme="light"] .explanation-box {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1E3A8A !important;
}

[data-theme="light"] .form-control {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .form-control:focus {
  border-color: #B4860B !important;
  background: #FFFFFF !important;
}

[data-theme="light"] .calc-result-box {
  background: rgba(180, 134, 11, 0.08) !important;
  border-color: #B4860B !important;
}

[data-theme="light"] table th {
  color: #8A6B0A !important;
}

[data-theme="light"] table td {
  color: #1E293B !important;
}

[data-theme="light"] .footer {
  background-color: #070C1A !important;
  color: #CBD5E1 !important;
}

[data-theme="light"] .footer h4,
[data-theme="light"] .footer .brand-name {
  color: #FFFFFF !important;
}

[data-theme="light"] .footer p,
[data-theme="light"] .footer span,
[data-theme="light"] .footer-col p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-bottom span,
[data-theme="light"] .footer-bottom a {
  color: #CBD5E1 !important;
}

[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .footer-bottom a:hover {
  color: var(--primary-gold) !important;
}

[data-theme="light"] .social-icon {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .social-icon:hover {
  background: var(--primary-gold) !important;
  color: #0B132B !important;
  border-color: var(--primary-gold) !important;
}

.insta-post-title {
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .insta-post-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

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

#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gold-button-gradient);
  z-index: 2005;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--primary-gold);
}

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

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

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.text-gold {
  color: var(--primary-gold);
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Top Announcement Ticker Bar */
.top-ticker {
  background: linear-gradient(90deg, #9A7B1C 0%, #D4AF37 50%, #9A7B1C 100%);
  color: #0B132B;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  z-index: 1001;
  position: relative;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

.ticker-badge {
  background: #0B132B;
  color: var(--primary-gold);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-glow 2s infinite;
}

.ticker-link {
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ticker-link:hover {
  opacity: 0.85;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  border: 1.5px solid var(--border-gold);
  transition: var(--transition);
  background-color: var(--bg-card);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
}

/* Adaptive Light Theme Logo Styling */
[data-theme="light"] .brand-logo-img {
  border-color: var(--primary-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  background-color: #0B132B;
  padding: 2px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-button-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B132B;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gold);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-gold {
  background: var(--gold-button-gradient);
  color: #0B132B;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #FFC107 0%, #D4AF37 100%);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-gold);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual-card:hover .hero-img {
  transform: scale(1.03);
}

.live-badge-floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: var(--accent-crimson);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-crimson);
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

.play-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.play-video-overlay:hover {
  background: rgba(11, 19, 43, 0.25);
}

.play-icon-btn {
  width: 64px;
  height: 64px;
  background: var(--gold-button-gradient);
  color: #0B132B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px var(--primary-gold);
  transition: var(--transition);
}

.play-video-overlay:hover .play-icon-btn {
  transform: scale(1.1);
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* State Judiciary Selector Grid */
.state-selector-section {
  padding: 5rem 0;
  background-color: var(--bg-navy);
}

.state-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.state-tab-btn {
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.state-tab-btn:hover, .state-tab-btn.active {
  background: var(--primary-gold);
  color: #0B132B;
  border-color: var(--primary-gold);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.state-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.state-details h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.state-details p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.state-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.state-stat-box {
  background: rgba(11, 19, 43, 0.6);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.state-stat-box span {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  display: block;
}

.state-stat-box strong {
  font-size: 1.1rem;
  color: var(--primary-gold);
  display: block;
  margin-top: 0.2rem;
}

.syllabus-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.syllabus-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.syllabus-item i {
  color: var(--accent-green);
}

/* Featured Courses Cards Section */
.courses-section {
  padding: 5rem 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

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

.course-card.featured {
  border-color: var(--primary-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--gold-button-gradient);
  color: #0B132B;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-header {
  margin-bottom: 1.5rem;
}

.course-category {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;

}

.course-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.4rem 0 0.8rem;
}

.course-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.course-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.course-price-original {
  font-size: 1.1rem;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.course-emi {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 600;
}

.course-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.course-features i {
  color: var(--primary-gold);
  margin-top: 0.25rem;
}

/* Interactive AI Mock Test Portal */
.mock-quiz-section {
  padding: 5rem 0;
  background: var(--bg-navy);
  position: relative;
}

.quiz-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gold-button-gradient);
  width: 20%;
  transition: width 0.4s ease;
}

.question-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-item {
  background: rgba(11, 19, 43, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.quiz-option-item:hover {
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.05);
}

.quiz-option-item.selected {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.12);
}

.quiz-option-item.correct {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
}

.quiz-option-item.incorrect {
  border-color: var(--accent-crimson);
  background: rgba(239, 68, 68, 0.15);
}

.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-option-item.selected .option-radio {
  border-color: var(--primary-gold);
  background: var(--primary-gold);
}

.explanation-box {
  display: none;
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quiz-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* JSM Study Material Feature Showcase */
.jsm-section {
  padding: 5rem 0;
}

.jsm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.jsm-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.jsm-feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.jsm-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.jsm-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.jsm-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hall of Fame & Toppers */
.toppers-section {
  padding: 5rem 0;
  background: var(--bg-navy);
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.topper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.topper-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
}

.topper-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

.rank-badge-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold-button-gradient);
  color: #0B132B;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-gold);
}

.topper-info {
  padding: 1.5rem;
}

.topper-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.topper-exam {
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.topper-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Scholarship Banner & Dynamic Fee Calculator */
.tools-wrapper {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.timer-display {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.timer-unit {
  background: rgba(11, 19, 43, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 70px;
}

.timer-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1;
}

.timer-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.calc-result-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--primary-gold);
}

/* Footer */
.footer {
  background-color: #070C1A;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;

}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-gold);
  color: #0B132B;
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Keyframe Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.8); }
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* Responsive Grid Classes & Utilities */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Mobile Slide-Out Drawer Menu */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-gold);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Responsive Styles for Tablets & Mobile */
@media (max-width: 1024px) {
  .hero-grid, .state-info-card, .jsm-grid, .tools-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .courses-grid, .toppers-grid, .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .top-ticker {
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
  }
  .ticker-content {
    flex-wrap: wrap;
    gap: 0.4rem;
    text-align: center;
  }
  .navbar-container {
    height: 70px;
  }
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-tag {
    font-size: 0.65rem;
  }
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    padding: 2.5rem 0;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn, .hero-cta-group a {
    width: 100%;
    text-align: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .hero-img {
    height: 240px;
  }

  /* State section mobile */
  .state-selector-section, .courses-section, .mock-quiz-section, .jsm-section, .toppers-section, .instagram-section, .faq-section, .tools-wrapper {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .state-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .state-tab-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
  }
  .state-info-card {
    padding: 1.25rem;
    grid-template-columns: 1fr;
  }
  .state-details h3 {
    font-size: 1.4rem;
  }
  .state-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .syllabus-checklist {
    grid-template-columns: 1fr;
  }

  /* Courses & Toppers mobile */
  .courses-grid, .toppers-grid, .insta-grid {
    grid-template-columns: 1fr;
  }
  .course-card, .quiz-container-card, .widget-card, .topper-card {
    padding: 1.25rem;
  }

  /* Quiz mobile */
  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .quiz-footer-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .quiz-footer-actions .btn {
    width: 100%;
  }

  /* Timer & Calculator mobile */
  .timer-display {
    justify-content: center;
  }
  .timer-unit {
    min-width: 60px;
    padding: 0.5rem 0.75rem;
  }
  .timer-number {
    font-size: 1.4rem;
  }
  .calc-result-box {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Modals mobile */
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
    max-width: 95%;
  }

  /* Footer mobile */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-tag {
    display: none;
  }
  .stat-number {
    font-size: 1.25rem;
  }
}
