/* =========================================================
   MA TALENT 5K SCHOLARS — MAIN STYLESHEET
   Design tokens + full responsive layout
   ========================================================= */

:root {
  --navy: #003466;
  --navy-tint: #0a2c56;
  --green: #3ff500;
  --green-deep: #3dba00;
  --paper: #f4f7fb;
  --white: #ffffff;
  --muted: #5a6b85;
  --muted-on-navy: #a9bfd9;
  --hairline: #16466f;
  --hairline-light: #e3eaf2;

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--green-deep);
  margin: 0 0 12px;
}

.eyebrow--on-navy { color: var(--green); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; line-height: 1.6; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
}

.section-heading--on-navy h2 { color: var(--white); }

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.section-heading--on-navy p { color: var(--muted-on-navy); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 17px 34px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn--primary { background: var(--green); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--sm { padding: 13px 26px; font-size: 14.5px; }

/* =========================================================
   SKIP LINK / ACCESSIBILITY
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.announce-bar {
  background: var(--navy-tint);
  padding: 10px 0;
  text-align: center;
}
.announce-bar p {
  color: var(--muted-on-navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  background: var(--navy);
  padding: 18px 0;
  position: relative;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
}
.site-logo span { color: var(--green); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  margin-right: 28px; /* fallback for engines without flexbox gap support */
}
.main-nav a:hover { color: var(--green); }
.main-nav ul li:last-child a { margin-right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: 16px;
  }
  .nav-toggle { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--navy);
  padding: 96px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 58% 38%;
  gap: 4%;
  align-items: center;
}
.hero h1 {
  font-size: 50px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: #d7e3f2;
  margin-bottom: 28px;
}
.hero-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 28px 0;
}
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}
.hero-list li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.hero-image img {
  border-radius: var(--radius);
  width: 100%;
}

@media (max-width: 980px) {
  .hero { padding: 64px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .hero-image { order: -1; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 16px; }
}

/* =========================================================
   STAT RAIL
   ========================================================= */
.stat-rail {
  background: var(--navy-tint);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 36px 0;
}
.stat-rail .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--green);
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--muted-on-navy);
  margin-top: 6px;
}
@media (max-width: 700px) {
  .stat-rail .container { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   WHY CARDS
   ========================================================= */
.why-section { padding: 90px 0; background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.why-card { text-align: left; }
.why-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(63,245,0,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--navy);
}
.why-card h3 {
  font-size: 18px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.why-card p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-section { padding: 56px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   TRACK COMPARISON
   ========================================================= */
.tracks-section { padding: 90px 0; background: var(--paper); }
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.track-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,52,102,0.08);
}
.track-card img { width: 100%; aspect-ratio: 700/460; object-fit: cover; }
.track-body { padding: 24px 28px 28px; }
.track-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--green-deep); display: block; margin-bottom: 6px;
}
.track-card h3 { font-size: 24px; font-weight: 700; color: var(--navy); }
.track-card p.track-desc { color: var(--muted); font-size: 15px; margin-top: 10px; }
.track-skills { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.track-skills li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--navy);
}
.track-skills li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.track-card .btn { margin-top: 22px; }

@media (max-width: 880px) {
  .tracks-section { padding: 56px 0; }
  .tracks-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   SCHOLARSHIP LEDGER (signature element)
   ========================================================= */
.ledger-section { padding: 90px 0; background: var(--white); }
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline-light);
}
.ledger-ticket {
  background: var(--navy);
  padding: 26px;
  border-right: 2px dashed var(--hairline);
  border-bottom: 1px solid var(--hairline-light);
}
.ledger-grid .ledger-ticket:nth-child(3n) { border-right: none; }
.ledger-num {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--muted-on-navy);
}
.ledger-ticket h3 {
  font-size: 19px; font-weight: 700; color: var(--white);
  margin: 8px 0 0;
}
.ledger-stamp {
  font-size: 12.5px; font-weight: 800; letter-spacing: 1px;
  color: var(--green); margin-top: 14px; display: block;
}

@media (max-width: 980px) {
  .ledger-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger-grid .ledger-ticket:nth-child(2n) { border-right: none; }
  .ledger-grid .ledger-ticket:nth-child(3n) { border-right: 2px dashed var(--hairline); }
}
@media (max-width: 560px) {
  .ledger-section { padding: 56px 0; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-grid .ledger-ticket { border-right: none !important; }
}

/* =========================================================
   TIMELINE / HOW IT WORKS
   ========================================================= */
.timeline-section { padding: 90px 0; background: var(--navy); }
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.timeline-step .step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  color: var(--green);
}
.timeline-step h3 {
  font-size: 17px; font-weight: 700; color: var(--white); margin-top: 8px;
}
.timeline-step p { font-size: 14.5px; color: var(--muted-on-navy); margin-top: 8px; }

@media (max-width: 880px) {
  .timeline-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .timeline-section { padding: 56px 0; }
  .timeline-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CLOSING CTA
   ========================================================= */
.closing-cta { background: var(--green); padding: 70px 0; }
.closing-cta .container {
  display: grid;
  grid-template-columns: 62% 32%;
  gap: 6%;
  align-items: center;
}
.closing-cta h2 { font-size: 30px; font-weight: 800; color: var(--navy); }
.closing-cta p { color: #0a4a24; font-size: 16px; font-weight: 500; margin-top: 12px; }
.closing-cta .btn { justify-self: end; }

@media (max-width: 780px) {
  .closing-cta { padding: 48px 0; }
  .closing-cta .container { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .closing-cta .btn { justify-self: start; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 34% 33% 33%;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col p { color: var(--muted-on-navy); font-size: 14.5px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #d7e3f2; font-size: 14.5px; }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { color: #6e8cb0; font-size: 13px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
}

/* =========================================================
   APPLICATION FORM (page-apply.php)
   ========================================================= */
.apply-hero {
  background: var(--navy);
  padding: 64px 0 48px;
  text-align: center;
}
.apply-hero h1 { font-size: 36px; font-weight: 700; color: var(--white); }
.apply-hero p { color: var(--muted-on-navy); margin-top: 12px; font-size: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }

.apply-section { background: var(--paper); padding: 56px 0 90px; }
.apply-form {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,52,102,0.08);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.form-group { display: block; margin: 0; padding: 0; border: none; }
.form-group + .form-group { margin-top: 36px; }
.form-group legend,
.form-group .group-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--green-deep);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
  padding: 0;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .req { color: #d6453d; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6e0ec;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,52,102,0.10);
}
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.radio-grid, .checkbox-grid {
  display: grid;
  gap: 10px;
}
.radio-option, .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d6e0ec;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-option:hover, .checkbox-option:hover { border-color: var(--navy); background: var(--paper); }
.radio-option input, .checkbox-option input { margin-top: 2px; accent-color: var(--navy); }
.radio-option:has(input:checked), .checkbox-option:has(input:checked) {
  border-color: var(--green-deep);
  background: rgba(63,245,0,0.06);
}

.consent-line { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.consent-line a { color: var(--navy); text-decoration: underline; }

.apply-submit-row { margin-top: 32px; text-align: center; }
.apply-submit-row .btn { width: 100%; padding: 17px; font-size: 16px; }

.form-feedback {
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 14.5px;
  margin-bottom: 28px;
}
.form-feedback--success { background: rgba(63,245,0,0.12); color: #0a4a24; border: 1px solid var(--green-deep); }
.form-feedback--error { background: #fdecea; color: #9b2c25; border: 1px solid #e2998f; }
.form-feedback--error ul { margin: 8px 0 0; padding-left: 18px; }

@media (max-width: 600px) {
  .apply-form { padding: 24px 20px; }
  .apply-hero { padding: 48px 0 36px; }
  .apply-hero h1 { font-size: 26px; }
}
