/* ============================================
   ROOT VARIABLES
============================================ */
:root {
  --bg: #eef2f6;
  --white: #fff;
  --primary: #007BFF;
  --accent: #00C0A3;
  --navy: #1C3F60;
  --muted: #6B7280;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

/* ============================================
   BASE
============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--navy);
}

/* ============================================
   HEADER
============================================ */
header {
  background: var(--white);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 10px;
}

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

.brand h1 {
  font-size: 20px;
  margin: 0;
}

.logo {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.tagline {
  font-size: 12px;
  color: var(--muted);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
}

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

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

/* ============================================
   BUTTONS
============================================ */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: 0.3s;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-dark {
  border: 1px solid var(--navy);
  color: var(--navy);
}

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

/* ============================================
   HAMBURGER — hidden on desktop
============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: 0.3s;
}

/* ============================================
   HERO
============================================ */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 60px 0;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h2 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.cta-group {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-row {
  display: flex;
  gap: 20px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.stat {
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.hero-illus {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 200px;
}

.hero-illus img {
  width: 80%;
  max-width: 400px;
  border-radius: 16px;
}

/* ============================================
   UNIVERSITIES SLIDER
============================================ */
#universities {
  margin-top: 70px;
}

.uni-slider {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.uni-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.uni-card {
  background: white;
  width: 220px;
  height: 180px;
  padding: 16px;
  cursor: default;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  flex-shrink: 0;
}

.uni-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 8px;
}

.uni-card p {
  font-size: 12px;
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   TARGET COUNTRIES
============================================ */
#target-countries {
  margin-top: 110px;
  text-align: center;
}

.country-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

.country-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--primary);
  background: #f3f7ff;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.country-btn.active,
.country-btn:hover {
  background: var(--primary);
  color: white;
}

.country-panel {
  display: none;
}

.country-panel.active {
  display: block;
}

/* ============================================
   FEATURES
============================================ */
#features {
  margin-top: 60px;
}

.feature-section {
  margin-top: 90px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-box {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.feature-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-box h4 {
  margin: 16px 16px 6px;
  font-size: 16px;
}

.feature-box p {
  padding: 0 16px 20px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ============================================
   HOW IT WORKS
============================================ */
#how-it-works {
  margin-top: 90px;
  padding: 70px 0;
  background: #f8fbff;
  border-radius: 20px;
}

#how-it-works .section-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #1f2937;
}

#how-it-works .section-sub {
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 50px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 0 40px;
}

.how-card {
  background: #ffffff;
  padding: 32px 26px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.how-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.step-no {
  position: absolute;
  top: -18px;
  right: 22px;
  font-size: 42px;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.18);
}

.how-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.how-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* ============================================
   TESTIMONIALS
============================================ */
#testimonials {
  margin-top: 60px;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonial-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-style: italic;
  line-height: 1.6;
}

/* ============================================
   CONTACT
============================================ */
#contact {
  margin-top: 60px;
  text-align: center;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--navy);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  color: #CFE6FF;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 8px 0;
}

footer h4 {
  margin: 0 0 10px;
}

.copyright {
  margin-top: 20px;
  font-size: 13px;
  color: #A7BFD9;
  text-align: center;
}


/* ============================================
   RESPONSIVE — LAPTOP 1024px
============================================ */
@media (max-width: 1024px) {
  .hero-text h2 {
    font-size: 34px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .section-title {
    font-size: 30px;
  }

  .how-grid {
    padding: 0 20px;
  }
}


/* ============================================
   RESPONSIVE — TABLET 768px
============================================ */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    position: relative;
  }

  nav {
    display: none;
    width: 100%;
    order: 3;
    background: white;
    border-top: 1px solid #eee;
    padding: 10px 0;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .actions {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #eee;
  }

  .actions.open {
    display: flex;
  }

  .actions .btn {
    text-align: center;
    width: 100%;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  /* HERO */
  .hero {
    flex-direction: column;
    padding: 40px 0;
    text-align: center;
    gap: 30px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-illus img {
    width: 60%;
  }

  .stat-row {
    justify-content: center;
  }

  /* SECTIONS */
  .section-title {
    font-size: 26px;
  }

  .section-sub {
    font-size: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  #how-it-works {
    padding: 40px 0;
    border-radius: 12px;
  }

  /* COUNTRY TABS */
  .country-tabs {
    gap: 10px;
  }

  .country-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* TESTIMONIALS */
  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================
   RESPONSIVE — MOBILE 480px
============================================ */
@media (max-width: 480px) {

  /* BRAND */
  .brand h1 {
    font-size: 16px;
  }

  .tagline {
    font-size: 10px;
  }

  /* HERO */
  .hero {
    padding: 24px 0;
  }

  .hero-text h2 {
    font-size: 22px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-group .btn {
    text-align: center;
  }

  .hero-illus img {
    width: 75%;
  }

  /* STATS */
  .stat-row {
    flex-direction: column;
    align-items: center;
  }

  .stat {
    width: 100%;
    max-width: 280px;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 20px;
  }

  .section-sub {
    font-size: 13px;
  }

  /* FEATURES */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-box img {
    height: 150px;
  }

  /* HOW IT WORKS */
  .how-card {
    padding: 24px 18px;
  }

  .step-no {
    font-size: 30px;
  }

  /* UNIVERSITY CARDS */
  .uni-card {
    width: 160px;
    height: 160px;
  }

  .uni-card img {
    height: 95px;
  }

  /* COUNTRY TABS */
  .country-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* FOOTER */
  footer {
    padding: 30px 0;
  }

  .copyright {
    font-size: 11px;
  }
}