/* ============================================================
   Thuvakkam Education — SFS Public Website
   Shared stylesheet
   ============================================================ */

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

:root {
  --green-dark:   #0E7162;
  --green-mid:    #26C699;
  --green-light:  #E8F5F2;
  --yellow:       #FDDB3A;
  --yellow-dark:  #E5C200;
  --yellow-light: #FFFBE6;
  --blue:         #2EA3F2;
  --mint:         #3DC59A;

  --white:        #FFFFFF;
  --cream:        #F6F4E6;
  --grey-50:      #F4F4F2;
  --grey-100:     #EBEBEB;
  --grey-200:     #D8D8D8;
  --grey-400:     #9E9E9E;
  --grey-600:     #666666;
  --grey-800:     #333333;
  --black:        #141413;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

  --nav-height: 64px;
  --max-width:  1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
img { display: block; max-width: 100%; }

/* ============================================================
   TOPBAR NOTICE (yellow strip like main site)
   ============================================================ */
.topnotice {
  background: var(--yellow);
  padding: 8px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.01em;
}

.topnotice a {
  text-decoration: underline;
  color: var(--green-dark);
  font-weight: 600;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 32px;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand-mark {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand-text {
  line-height: 1.2;
}

.nav-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}

.nav-brand-sub {
  font-size: 11px;
  color: var(--grey-400);
}

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

.nav-link {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
  border-radius: var(--radius-md);
  border: none;
  background: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { background: var(--grey-50); color: var(--black); }
.nav-link.active { color: var(--blue); background: #EBF6FE; }

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

.btn-nav-outline {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
  border-radius: var(--radius-md);
  background: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-nav-outline:hover { background: var(--green-light); }

.btn-nav-primary {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--mint);
  border: none;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-nav-primary:hover { background: var(--green-mid); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 10px;
}

.section-label-light {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-title-light {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 560px;
}

.section-sub-light {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-mid); }

.btn-yellow {
  background: var(--yellow);
  color: var(--green-dark);
}
.btn-yellow:hover { background: var(--yellow-dark); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-light); }

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.7;
}

/* ============================================================
   STAT NUMBERS
   ============================================================ */
.stat-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-100);
}

.process-step {
  padding: 24px 16px;
  background: var(--white);
  border-right: 1px solid var(--grey-100);
  text-align: center;
}

.process-step:last-child { border-right: none; }

.process-step.active {
  background: var(--green-dark);
}

.step-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.03em;
  line-height: 1;
}

.step-number-dark {
  font-size: 28px;
  font-weight: 800;
  color: var(--grey-200);
  letter-spacing: -0.03em;
  line-height: 1;
}

.step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  margin-top: 8px;
}

.step-name-dark {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-800);
  margin-top: 8px;
}

/* ============================================================
   SUPPORT PILLS
   ============================================================ */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--green-dark);
  flex-shrink: 0;
}

.pill-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

/* ============================================================
   STORY CARDS
   ============================================================ */
.story-card {
  background: var(--green-light);
  border: 1px solid #C8E8D6;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--yellow);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.story-quote {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
}

.story-divider {
  width: 32px;
  height: 2px;
  background: var(--green-mid);
  margin-bottom: 14px;
}

.story-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.story-detail {
  font-size: 12px;
  color: var(--green-dark);
  margin-top: 3px;
  font-weight: 500;
}

/* ============================================================
   SPONSOR TIERS
   ============================================================ */
.tier-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.tier-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tier-card.featured {
  border: 2px solid var(--green-dark);
  position: relative;
}

.featured-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.tier-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tier-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.tier-period {
  font-size: 12px;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 28px;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.5;
}

.tier-features li i {
  color: var(--green-mid);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tier-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s;
}

.tier-btn-primary {
  background: var(--green-dark);
  color: var(--white);
}
.tier-btn-primary:hover { background: var(--green-mid); }

.tier-btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.tier-btn-outline:hover { background: var(--green-light); }

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress-track {
  background: var(--grey-100);
  border-radius: 99px;
  height: 7px;
}

.progress-fill {
  background: var(--green-mid);
  height: 7px;
  border-radius: 99px;
}

/* ============================================================
   DISTRICT BARS
   ============================================================ */
.district-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
}

.district-row:last-child { border-bottom: none; }

.district-name {
  font-size: 13px;
  font-weight: 500;
  width: 130px;
  flex-shrink: 0;
  color: var(--black);
}

.district-track {
  flex: 1;
  background: var(--grey-100);
  border-radius: 99px;
  height: 7px;
}

.district-fill {
  background: var(--green-mid);
  height: 7px;
  border-radius: 99px;
}

.district-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-600);
  width: 28px;
  text-align: right;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(135deg, var(--green-dark) 0%, #27774A 100%);
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer-brand-body {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-reg {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.footer-col-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--white); }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.footer-contact-row i {
  font-size: 16px;
  color: var(--yellow);
  flex-shrink: 0;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}

.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 80px 32px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero-title em {
  font-style: italic;
  color: var(--yellow);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  background: var(--green-dark);
  padding: 24px 20px;
  text-align: center;
}

.hero-stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 52px 32px;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   GUIDELINE CHECKLIST
   ============================================================ */
.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.6;
}

.guideline-item:last-child { border-bottom: none; }

.guideline-item i {
  color: var(--green-mid);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   DARK SECTION
   ============================================================ */
.section-dark {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 72px 32px;
}

.section-alt {
  background: var(--cream);
}

/* ============================================================
   BAR CHART (impact)
   ============================================================ */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-cols {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  width: 100%;
}

.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: opacity 0.2s;
}

.bar:hover { opacity: 0.8; }
.bar-apps { background: var(--green-mid); }
.bar-sel  { background: var(--yellow); }

.bar-year {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  text-align: center;
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE — PUBLIC WEBSITE
   ============================================================ */

/* Hamburger toggle — hidden on desktop, injected by js/nav.js */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--green-dark);
  cursor: pointer;
  padding: 4px 6px;
}

/* Donate page: two option cards stack on smaller screens */
.donate-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 4;
    gap: 0;
    padding: 8px 0 4px;
  }
  .nav-links.open .nav-link {
    width: 100%;
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--grey-100);
  }
  .nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 20px 0; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .donate-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-row { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .process-step { border-right: none; border-bottom: 1px solid var(--grey-100); }
  .process-step:last-child { border-bottom: none; }
  .pill-grid { grid-template-columns: 1fr; }
  .tier-card.featured { margin-top: 0; }
}

@media (max-width: 640px) {
  .nav-actions .btn-nav-outline { display: none; }
  .hero-title { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 1px; }
  .hero-stat-val { font-size: 22px; }
  .section-title, .section-title-light { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sponsor-page-grid { grid-template-columns: 1fr; }
  .topnotice { font-size: 12px; padding: 7px 12px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { text-align: center; justify-content: center; }
}
