/* ==========================================================================
   ज्ञानमित्र (Dnyanmitra.in) - Official Stylesheet
   Theme: Royal Maroon & Amber Gold on Warm Canvas
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Mukta:wght@400;500;600;700&display=swap');

:root {
  --primary: #881337;          /* Royal Maroon */
  --primary-dark: #640d27;     /* Deep Maroon */
  --primary-light: #be123c;    /* Rose Glow */
  --accent-gold: #d97706;      /* Amber / Saffron Gold */
  --accent-gold-light: #fef3c7;/* Light Amber */
  --accent-emerald: #059669;   /* Success Emerald */
  --accent-blue: #2563eb;      /* Tech Blue */
  --bg-warm: #FAF7F2;          /* Canvas Warm Off-White */
  --bg-card: #FFFFFF;          /* Pure White for elevated cards */
  --border-subtle: #E7DED3;    /* Stone Border */
  --text-main: #1C1917;        /* Deep Stone Gray */
  --text-muted: #57534E;       /* Medium Stone Gray */
  --text-light: #78716C;       /* Light Muted */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(136, 19, 55, 0.08), 0 4px 6px -4px rgba(136, 19, 55, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(136, 19, 55, 0.12), 0 8px 10px -6px rgba(136, 19, 55, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Mukta', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  padding: 2px;
  background: #FFFFFF;
  box-shadow: 0 4px 10px rgba(136, 19, 55, 0.15);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

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

.nav-badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: #ecfdf5;
  color: var(--accent-emerald);
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF !important;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(136, 19, 55, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(136, 19, 55, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   HERO SECTION (2-COLUMN MENTOR SHOWCASE)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 60px 0 70px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.45) 0%, rgba(250, 247, 242, 0) 70%);
}

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

.hero-badge-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  text-align: left;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-title span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title span.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: var(--accent-gold-light);
  z-index: -1;
  border-radius: 4px;
}

/* Mentor Spotlight Callout Strip */
.mentor-spotlight-strip {
  background: #FFFFFF;
  border: 1px solid #FCD34D;
  border-left: 5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 18px 0 22px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.mentor-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mentor-spotlight-desc {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

.mentor-spotlight-desc strong {
  color: var(--primary);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 17px;
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Hero Mentor Card (Right Column) */
.hero-mentor-showcase {
  position: relative;
  display: flex;
  justify-content: center;
}

.mentor-card-frame {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 35px -5px rgba(136, 19, 55, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mentor-card-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 45px -5px rgba(136, 19, 55, 0.22);
  border-color: var(--accent-gold);
}

.mentor-img-wrapper {
  position: relative;
  width: 100%;
  height: 410px;
  overflow: hidden;
  background: #F8FAFC;
}

.mentor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.4s ease;
}

.mentor-card-frame:hover .mentor-photo {
  transform: scale(1.03);
}

.floating-chip {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 8px 14px;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.floating-chip.top-right {
  top: 16px;
  right: 16px;
}

.floating-chip.bottom-left {
  bottom: 16px;
  left: 16px;
}

.chip-icon {
  font-size: 18px;
  line-height: 1;
}

.chip-text {
  display: flex;
  flex-direction: column;
}

.chip-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.chip-desc {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.mentor-card-info {
  padding: 18px 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
  border-top: 1px solid var(--border-subtle);
}

.mentor-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.mentor-designation {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.mentor-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mentor-points span {
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 3px 9px;
  border-radius: 9999px;
}

/* Hero Major CTA Button */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #881337 0%, #be123c 50%, #e11d48 100%);
  color: #FFFFFF !important;
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  font-weight: 800;
  padding: 18px 42px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -3px rgba(136, 19, 55, 0.4), 0 4px 10px -2px rgba(136, 19, 55, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(136, 19, 55, 0.35), 0 0 0 0 rgba(225, 29, 72, 0.4);
  }
  50% {
    box-shadow: 0 12px 30px rgba(136, 19, 55, 0.5), 0 0 0 12px rgba(225, 29, 72, 0);
  }
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(136, 19, 55, 0.5);
  background: linear-gradient(135deg, #700c2a 0%, #a20d32 50%, #be123c 100%);
}

.btn-hero-primary .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover .arrow-icon {
  transform: translateX(5px);
}

.hero-cta-subtext {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Statistics Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 24px 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Baloo 2', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

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

/* --------------------------------------------------------------------------
   PORTALS / EXAMS MODULES
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: #fdf2f4;
  border: 1px solid #fecdd3;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
}

.portals-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

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

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.portal-card.active-police {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F7 100%);
}

.portal-card.active-police::before {
  content: '🔴 LIVE TEST SERIES';
  position: absolute;
  top: 14px;
  right: 16px;
  background: #FFE4E6;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #FDA4AF;
}

.portal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.portal-icon.police {
  background: #FFE4E6;
  color: var(--primary);
}

.portal-icon.mpsc {
  background: #FEF3C7;
  color: #B45309;
}

.portal-icon.future {
  background: #E0E7FF;
  color: #4338CA;
}

.portal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.portal-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.portal-badge.live {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.portal-badge.coming-soon {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.portal-badge.roadmap {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.portal-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.portal-features {
  list-style: none;
  margin-bottom: 28px;
}

.portal-features li {
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.portal-features li svg {
  flex-shrink: 0;
  color: var(--accent-emerald);
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'Baloo 2', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.portal-btn.primary {
  background: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(136, 19, 55, 0.25);
}

.portal-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.portal-btn.secondary {
  background: #F5F0E6;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  cursor: default;
}

/* --------------------------------------------------------------------------
   FEATURES / WHY DNYANMITRA
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
}

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

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #FFF1F2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SYLLABUS / SUBJECTS SECTION
   -------------------------------------------------------------------------- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.subject-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.subject-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.subject-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.subject-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.subject-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ SECTION
   -------------------------------------------------------------------------- */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   ABOUT US PAGE STYLES
   -------------------------------------------------------------------------- */
.about-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: #FFFDF9;
  border-bottom: 1px solid var(--border-subtle);
}

.mission-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mission-card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.mission-card-title {
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mission-card-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
}

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

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.team-avatar-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 100%);
  box-shadow: 0 10px 25px rgba(136, 19, 55, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-avatar-wrap {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(136, 19, 55, 0.35);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

.team-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Banner Box */
.cta-banner-box {
  background: linear-gradient(135deg, #881337 0%, #be123c 100%);
  border-radius: var(--radius-xl);
  padding: 48px 30px;
  color: #FFFFFF;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .cta-banner-box {
    padding: 32px 18px;
  }
}

/* --------------------------------------------------------------------------
   CONTACT PAGE STYLES
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.contact-icon-large {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #FFF1F2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}

.contact-card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-detail {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.contact-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  transition: all 0.2s ease;
}

.contact-btn.primary {
  background: var(--primary);
  color: #FFFFFF !important;
}

.contact-btn.primary:hover {
  background: var(--primary-dark);
}

.contact-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
}

.contact-btn.whatsapp:hover {
  background: #1EBE5D;
}

/* --------------------------------------------------------------------------
   LEGAL PAGES (TERMS & PRIVACY)
   -------------------------------------------------------------------------- */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p, .legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #1C1917;
  color: #E7DED3;
  padding: 70px 0 30px;
  margin-top: 80px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-title {
  font-size: 26px;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: #A8A29E;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 18px;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #A8A29E;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #292524;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #78716C;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-badge-wrap {
    justify-content: center;
  }
  .hero-title, .hero-subtitle {
    text-align: center;
  }
  .hero-cta-group {
    align-items: center;
  }
  .portals-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid, .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .btn-hero-primary {
    font-size: 18px;
    padding: 16px 28px;
    width: 100%;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .features-grid, .subjects-grid, .team-grid, .contact-grid, .mission-values-grid {
    grid-template-columns: 1fr;
  }
  .mission-card {
    padding: 24px 20px;
  }
  .mission-card-title {
    font-size: 22px;
  }
  .legal-content {
    padding: 24px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
