/* Mitra — Brand Styling
   Fonts: DM Sans (headings) + Inter (body) via Google Fonts

   ╔══════════════════════════════════════════════╗
   ║  PALETTE — Change colors here, nowhere else  ║
   ║  Current: Slate Navy + Teal Accent              ║
   ║  Swap these when wife reviews colors           ║
   ╚══════════════════════════════════════════════╝
*/

/* ========== CSS VARIABLES ========== */
:root {
  --bg:         #F0F2F5;
  --bg-card:    #FFFFFF;
  --bg-section: #D9E2EC;
  --primary:    #2B4C7E;     /* Deep navy — brand, headings, links */
  --primary-dk: #1B3A5C;     /* Darker navy — hover states */
  --primary-lt: #D6E1EE;     /* Navy tint — badges, highlights */
  --accent:     #2A9D8F;     /* Teal — CTA buttons, matches hero illustration */
  --accent-dk:  #21867A;     /* Darker teal — CTA hover */
  --text:       #1A1A2E;
  --text-muted: #4A5568;
  --text-light: #8896A6;
  --border:     #CBD5E0;
  --white:      #FFFFFF;
}

/* ========== BASE ========== */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
}

a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-dk);
}

/* ========== NAVBAR ========== */
.navbar {
  background-color: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.navbar-brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--primary) !important;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo {
  height: 40px;
  width: auto;
}
.navbar .nav-link {
  color: var(--text-muted) !important;
  font-size: 15px;
  font-weight: 500;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
}
.navbar-toggler {
  border-color: var(--border);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23636E72' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Admin dropdown — keep readable */
.dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dropdown-item {
  font-size: 14px;
  color: var(--text);
}
.dropdown-item:hover {
  background-color: var(--primary-lt);
  color: var(--primary);
}

/* ========== HERO SECTION (split layout) ========== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}
.hero-copy {
  text-align: left;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-secondary {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text);
}
.hero-secondary a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-secondary a:hover {
  color: var(--accent-dk);
}
.hero-illustration img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

/* ========== FEATURE BLOCKS (alternating) ========== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}
.feature-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
}
.feature-text h2,
.feature-accent h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-text p,
.feature-accent p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.feature-accent {
  background: var(--bg-section);
  border: 1px solid var(--primary-lt);
  border-radius: 12px;
  padding: 40px 32px;
}

/* ========== INFO GRID (two-column cards) ========== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

/* ========== FOUNDER SECTION ========== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 48px 0;
}
.about-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.about-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.about-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}
.about-block a {
  color: var(--accent);
  font-weight: 500;
}
.about-block a:hover {
  color: var(--accent-dk);
}

/* ========== CTA BUTTONS ========== */
.btn-cta-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-cta-primary:hover {
  background: var(--accent-dk);
  color: var(--white);
  text-decoration: none;
}
.btn-cta-large {
  font-size: 18px;
  padding: 16px 48px;
}

/* Override Bootstrap btn-primary to use our teal */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-dk);
  border-color: var(--primary-dk);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ========== STEPS GRID ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========== TRUST SECTION ========== */
.trust-section {
  background: var(--bg-section);
  border-radius: 16px;
  padding: 48px 40px;
  margin: 40px 0;
  text-align: center;
}
.trust-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.trust-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.trust-points {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.trust-divider {
  color: var(--text-light);
}

/* ========== PRICING SECTION ========== */
.pricing-section {
  text-align: center;
  padding: 40px 0;
}
.pricing-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-section p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== CTA BOTTOM ========== */
.cta-bottom {
  text-align: center;
  padding: 60px 0;
}
.cta-bottom h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 24px;
  color: var(--text-muted);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  height: 34px;
  width: auto;
}
.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* ========== ABOUT PAGE ========== */
.about-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0;
}
.about-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.about-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.about-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.about-card a {
  color: var(--accent);
  font-weight: 500;
}
.about-card a:hover {
  color: var(--accent-dk);
}

/* ========== CARDS (for-parents page etc.) ========== */
.card {
  border: 1px solid var(--border) !important;
  border-radius: 12px;
}
.card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text);
}
.card-body p,
.card-body li {
  color: var(--text-muted);
  line-height: 1.7;
}
.card-body strong {
  color: var(--text);
}

/* ========== MITRA SPECIAL (knowledge circles + comparison) ========== */
.mitra-special {
  margin-bottom: 40px;
}
.mitra-special-header {
  text-align: center;
  margin-bottom: 40px;
}
.mitra-special-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.mitra-special-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.knowledge-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.knowledge-circle {
  background: var(--bg-card);
  border: 2px solid var(--primary-lt);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.knowledge-circle:hover {
  border-color: var(--accent);
}
.circle-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-lt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.knowledge-circle h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.knowledge-circle p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.convergence {
  text-align: center;
  margin: 8px 0 40px;
}
.convergence::before {
  content: "";
  display: block;
  width: 2px;
  height: 20px;
  background: var(--primary-lt);
  margin: 0 auto 12px;
}
.convergence-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 24px;
}

.comparison-grid {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.comparison-grid table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-grid thead th {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 12px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.comparison-grid thead th:first-child {
  text-align: left;
  padding-left: 20px;
}
.comparison-grid thead th.col-mitra {
  color: var(--accent);
  background: rgba(42, 157, 143, 0.06);
}
.comparison-grid thead th.col-other {
  color: var(--text-muted);
}
.comparison-grid tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.comparison-grid tbody td:first-child {
  text-align: left;
  padding-left: 20px;
  font-weight: 500;
  color: var(--text);
}
.comparison-grid tbody tr:last-child td {
  border-bottom: none;
}
.comparison-grid tbody tr:hover {
  background: rgba(42, 157, 143, 0.03);
}
.check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.cross {
  color: var(--text-light);
  font-size: 1.1rem;
}
.half {
  color: var(--text-light);
  font-size: 1.1rem;
}
.col-mitra-cell {
  background: rgba(42, 157, 143, 0.04);
}

/* ========== FOR-PARENTS PAGE ========== */
.parents-header {
  text-align: center;
  padding: 48px 0 32px;
}
.parents-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.parents-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.parents-page {
  max-width: 740px;
  margin: 0 auto;
}

.parents-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.parents-accordion-highlight {
  background: var(--bg-section);
  border-color: var(--primary-lt);
}
.parents-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 28px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}
.parents-accordion-btn::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.parents-accordion-btn:not(.collapsed)::after {
  content: '\2212';
}
.parents-accordion-btn:hover {
  color: var(--accent);
}
.parents-accordion-body {
  padding: 0 28px 24px;
}
.parents-accordion-body p,
.parents-accordion-body li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.parents-accordion-body ul,
.parents-accordion-body ol {
  padding-left: 20px;
}
.parents-accordion-body ul li,
.parents-accordion-body ol li {
  margin-bottom: 8px;
}
.parents-accordion-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.parents-accordion-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.parents-pricing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 32px;
}
.parents-pricing h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.parents-pricing p {
  color: var(--text-muted);
  line-height: 1.7;
}

.parents-cta {
  text-align: center;
  padding: 40px 0 24px;
}

.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
}
.info-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.info-section p,
.info-section li {
  color: var(--text-muted);
  line-height: 1.7;
}
.info-section ul,
.info-section ol {
  padding-left: 20px;
}
.info-section ul li,
.info-section ol li {
  margin-bottom: 6px;
}

.info-section-highlight {
  background: var(--bg-section);
  border-color: var(--primary-lt);
}
.info-section-highlight h3 {
  color: var(--primary);
}

.info-section-standalone {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin: 48px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.info-section-standalone h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.info-section-standalone p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.info-section-standalone a {
  color: var(--accent);
  font-weight: 500;
}
.info-section-standalone a:hover {
  color: var(--accent-dk);
}

/* ========== ENROLLMENT FORM ========== */
.enroll-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.enroll-wrapper h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.enroll-wrapper h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  border-color: var(--border) !important;
  padding-bottom: 8px;
  margin-top: 28px;
}
.enroll-wrapper .form-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.enroll-wrapper .form-text {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== SUCCESS PAGE ========== */
.success-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 0;
  text-align: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}
.success-wrapper h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}
.success-wrapper .lead {
  color: var(--text-muted);
}

/* ========== FORMS ========== */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(43, 76, 126, 0.2);
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ========== ALERTS ========== */
.alert-success {
  background-color: var(--primary-lt);
  border-color: var(--primary);
  color: var(--primary-dk);
}

/* ========== ADMIN TABLES ========== */
.table-hover tbody tr {
  transition: background-color 0.1s ease;
}
.table-hover tbody tr[onclick] {
  cursor: pointer;
}
.table-hover tbody tr:hover {
  background-color: var(--primary-lt);
}

/* ========== BADGES ========== */
.badge.bg-primary {
  background-color: var(--primary) !important;
}
.badge.bg-success {
  background-color: var(--primary) !important;
}

/* ========== ADMIN LIST ========== */
.list-group-item-action {
  font-size: 0.95rem;
}
.list-group-item-action:hover {
  background-color: var(--primary-lt);
  color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-illustration {
    text-align: center;
  }
  .hero-illustration img {
    max-width: 320px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .feature-block {
    grid-template-columns: 1fr;
  }
  .feature-text,
  .feature-accent {
    padding: 28px 20px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .trust-section {
    padding: 32px 24px;
  }
  .trust-points {
    flex-direction: column;
    gap: 8px;
  }
  .trust-divider {
    display: none;
  }
  .about-section {
    grid-template-columns: 1fr;
  }
  .about-block {
    padding: 24px 20px;
  }
  .knowledge-circles {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .knowledge-circle {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    text-align: left;
    padding: 20px;
    align-items: start;
  }
  .circle-icon {
    margin-bottom: 0;
  }
  .knowledge-circle h3 {
    margin-bottom: 4px;
  }
  .comparison-grid {
    font-size: 0.85rem;
  }
  .comparison-grid thead th {
    font-size: 0.8rem;
    padding: 12px 8px;
  }
  .comparison-grid tbody td {
    padding: 10px 8px;
  }
  .comparison-grid tbody td:first-child {
    padding-left: 12px;
  }
  .parents-header {
    padding: 32px 0 24px;
  }
  .parents-header h1 {
    font-size: 1.75rem;
  }
  .info-section {
    padding: 24px 20px;
  }
  .enroll-wrapper {
    padding: 24px 0 40px;
  }
}

/* ========== BACKGROUND OVERRIDES ========== */
.bg-light {
  background-color: var(--bg-section) !important;
}
.bg-dark {
  background-color: var(--white) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
