/* ==========================================================
   TESP Scholarship Portal — Tano North Constituency
   Tokens: deep indigo + emerald green — trust and growth,
   set against the savanna landscape of Ghana's Upper West Region.
   ========================================================== */

:root{
  --navy:        #16233F;
  --navy-2:      #1E3155;
  --emerald:       #1E7A4C;
  --emerald-light: #3FAE74;
  --ink:         #241F18;
  --paper:       #FAFAF7;
  --sage:        #F1F4EE;
  --line:        #E1DCCE;
  --white:       #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, Segoe UI, sans-serif;

  --max: 1120px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

a{ color:inherit; }

ul, ol{ list-style:none; }

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  color:var(--navy);
}

:focus-visible{
  outline:2px solid var(--emerald);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* ---------- Layout helpers ---------- */

section{
  padding:96px 8%;
}

section.alt{
  background:var(--sage);
}

.section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}

.section-head h2{
  font-size:clamp(28px, 3.6vw, 38px);
}

.section-sub{
  margin-top:10px;
  color:#5B5647;
  font-size:17px;
}

/* ---------- Header / Nav ---------- */

header{
  position:fixed;
  top:0;
  width:100%;
  z-index:1000;
  background:var(--navy);
}

nav{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 6%;
}

.logo-area{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-area img{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
}

.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.logo-title{
  color:var(--white);
  font-family:var(--font-display);
  font-size:18px;
  font-weight:600;
}

.logo-sub{
  color:#B9C2D6;
  font-size:12px;
}

nav ul{
  display:flex;
  align-items:center;
  gap:28px;
}

nav ul a{
  color:#DDE3EF;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  transition:color .2s ease;
}

nav ul a:hover{
  color:var(--emerald-light);
}

.login-btn{
  background:var(--emerald);
  color:var(--white) !important;
  padding:9px 22px;
  border-radius:6px;
  font-weight:600 !important;
}

.login-btn:hover{
  background:var(--emerald-light);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:34px;
  height:34px;
  background:none;
  border:none;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  height:2px;
  background:var(--white);
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* ---------- Hero ---------- */

.hero{
  position:relative;
  overflow:hidden;
  padding:170px 8% 100px;
  background:var(--navy);
}

/* Sliding background images (crossfade) */
.hero-backgrounds{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  animation:heroFade 21s ease-in-out infinite;
}

.hero-bg--one{   background-image:url("../images/back2.jpg");  animation-delay:0s; }
.hero-bg--two{   background-image:url("../images/back5.jpeg"); animation-delay:7s; }
.hero-bg--three{ background-image:url("../images/back6.jpeg"); animation-delay:14s; }

@keyframes heroFade{
  0%   { opacity:0; }
  10%  { opacity:1; }
  33%  { opacity:1; }
  43%  { opacity:0; }
  100% { opacity:0; }
}

/* Dark blue overlay above the images */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(120deg, rgba(22,35,63,.94), rgba(22,35,63,.82));
}

@media (prefers-reduced-motion: reduce){
  .hero-bg--one{ opacity:1; }
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:56px;
  align-items:center;
}

.eyebrow{
  color:var(--emerald-light);
  font-size:14px;
  font-weight:600;
  margin-bottom:16px;
}

.hero h1{
  color:var(--white);
  font-size:clamp(32px, 4.6vw, 50px);
  max-width:14ch;
  margin-bottom:22px;
}

.hero-lead{
  color:#D7DCEA;
  font-size:18px;
  max-width:46ch;
  margin-bottom:34px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

.btn{
  display:inline-block;
  padding:14px 28px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary{
  background:var(--emerald);
  color:var(--white);
}

.btn-primary:hover{
  background:var(--emerald-light);
}

.btn-ghost{
  color:var(--white);
  border:1px solid rgba(255,255,255,.4);
}

.btn-ghost:hover{
  border-color:var(--white);
}

.hero-figure{
  display:flex;
  justify-content:flex-end;
}

.figure-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  padding:38px 32px;
  max-width:260px;
}

.figure-number{
  display:block;
  font-family:var(--font-display);
  font-size:48px;
  color:var(--emerald-light);
  margin-bottom:10px;
}

.figure-label{
  color:#D7DCEA;
  font-size:14px;
}


/* ---------- Mission ---------- */

.mission-inner{
  max-width:680px;
  margin:0 auto;
  text-align:center;
}

.mission h2{
  font-size:clamp(28px,3.6vw,38px);
  margin-bottom:20px;
}

.mission p{
  font-size:19px;
  color:#4A4536;
}

/* ---------- About ---------- */

.about-grid{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.about-grid p{
  font-size:16px;
  color:#4A4536;
}

/* ---------- Eligibility ---------- */

.eligibility-list{
  max-width:640px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.eligibility-list li{
  display:flex;
  align-items:center;
  gap:16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  padding:18px 22px;
  font-size:16px;
}

.check{
  width:26px;
  height:26px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--navy);
  color:var(--emerald-light);
  border-radius:50%;
  font-size:13px;
}

/* ---------- Process (steps) ---------- */

.steps{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  position:relative;
}

.step{
  position:relative;
  padding:0 28px;
  border-left:1px solid var(--line);
}

.step:first-child{
  border-left:none;
  padding-left:0;
}

.step-index{
  display:block;
  font-family:var(--font-display);
  font-size:32px;
  color:var(--emerald);
  margin-bottom:14px;
}

.step h3{
  font-size:20px;
  margin-bottom:10px;
}

.step p{
  color:#5B5647;
  font-size:15px;
}

/* ---------- Features ---------- */

.feature-list{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}

.feature h3{
  font-size:19px;
  margin-bottom:10px;
  position:relative;
  padding-bottom:12px;
}

.feature h3::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:32px;
  height:3px;
  background:var(--emerald);
  border-radius:3px;
}

.feature p{
  color:#5B5647;
  font-size:15px;
}

/* ---------- Stats ---------- */

/* ---------- Stats / Impact Cards ---------- */

.stats {
    background: var(--navy);
}

.stats .section-head h2 {
    color: var(--white);
}

.numbers {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

/* Individual impact cards */
.numbers > div {
    position: relative;
    overflow: hidden;
    padding: 35px 22px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.035)
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Green accent along the top of each card */
.numbers > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--emerald-light);
    transform: scaleX(0.25);
    transition: transform 0.3s ease;
}

/* Hover effect */
.numbers > div:hover {
    transform: translateY(-8px);
    background: rgba(63, 174, 116, 0.13);
    border-color: var(--emerald-light);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(63, 174, 116, 0.08);
}

.numbers > div:hover::before {
    transform: scaleX(1);
}

/* Statistic figures */
.numbers h3 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 46px);
    color: var(--emerald-light);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.numbers > div:hover h3 {
    color: #68D99B;
}

/* Card descriptions */
.numbers p {
    color: #D7DCEA;
    font-size: 15px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .numbers {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 420px;
    }

    .numbers > div {
        padding: 28px 20px;
    }

    .numbers h3 {
        font-size: 36px;
    }
}

/* ---------- MP section ---------- */

.mp-section{
  background:var(--white);
}

.mp-grid{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:280px 1fr;
  gap:48px;
  align-items:center;
}

.mp-photo img{
  border-radius:10px;
  aspect-ratio:4/5;
  object-fit:cover;
  border:1px solid var(--line);
}

.mp-content h2{
  font-size:clamp(26px,3.2vw,34px);
  margin-bottom:16px;
}

.mp-content p:not(.eyebrow){
  color:#4A4536;
  font-size:16px;
  max-width:56ch;
}

/* ---------- Contact ---------- */

.contact-details{
  max-width:520px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.contact-details p{
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
  font-size:16px;
}

.contact-details span{
  color:#8A8265;
  font-weight:600;
}

/* ---------- Footer ---------- */

footer{
  background:var(--navy-2);
  color:#C7CEDE;
  padding:28px 8%;
  text-align:center;
  font-size:14px;
}

/* ---------- Responsive ---------- */

@media (max-width:960px){

  .hero-inner{
    grid-template-columns:1fr;
  }

  .hero-figure{
    justify-content:flex-start;
  }

  .about-grid,
  .steps,
  .feature-list{
    grid-template-columns:1fr;
    gap:36px;
  }

  .step{
    border-left:none;
    padding-left:0;
    border-top:1px solid var(--line);
    padding-top:24px;
  }

  .step:first-child{
    border-top:none;
    padding-top:0;
  }

  .mp-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

  .mp-photo{
    max-width:220px;
    margin:0 auto;
  }

  .mp-content p:not(.eyebrow){
    margin:0 auto;
  }
}

@media (max-width:768px){

  .nav-toggle{
    display:flex;
  }

  nav ul{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--navy);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }

  nav ul.open{
    max-height:400px;
  }

  nav ul li{
    width:100%;
    border-top:1px solid rgba(255,255,255,.08);
  }

  nav ul a{
    display:block;
    padding:16px 6%;
  }

  .login-btn{
    display:inline-block;
    margin:12px 6% 16px;
  }

  section{
    padding:64px 6%;
  }

  .hero{
    padding:140px 6% 72px;
  }

  .numbers{
    gap:28px;
  }

  .numbers h3{
    font-size:36px;
  }
}

@media (max-width:480px){

  .hero h1{
    max-width:none;
  }

  .figure-card{
    max-width:none;
  }

  .contact-details p{
    flex-direction:column;
    gap:4px;
  }
}