/* ============================================
   THE APPLICATION GURU
   ============================================ */

:root {
  --blue-light: #E8F4FB;
  --blue-mid: #67B4E4;
  --blue-dark: #4a7a8c;
  --gray-dark: #3a3a3a;
  --gray-med: #6b6b6b;
  --grey-li: #e6e6e6;
  --white: #ffffff;
  --font: 'Nunito', sans-serif;
}

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

html { min-width: 360px; }
body {
  font-family: var(--font);
  color: var(--gray-dark);
  line-height: 1.6;
  background: var(--white);
  min-width: 360px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 360px;
  height: 500px;
}
/* ---- NAV ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 3rem;
  background: var(--white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 122, 140, 0.08);
}
.nav-logo img {
  height: 55px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.95rem; font-weight: 600; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); }
.nav-spacer { height: 71px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 3rem 2rem 2rem;
}
.hero > * { position: relative; z-index: 1; }
.hero > .corner-circles {
  position: absolute;
  top: 227px;
  transform: translateY(-50%);
  width: clamp(280px, 50vw, 640px);
  z-index: 0;
  pointer-events: none;
}
.hero > .corner-circles--left {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black 5%, transparent clamp(125px, 50vw - 115px, 605px));
          mask-image: linear-gradient(to right, black 5%, transparent clamp(125px, 50vw - 115px, 605px));
}
.hero > .corner-circles--right {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 5%, transparent clamp(125px, 50vw - 115px, 605px));
          mask-image: linear-gradient(to left, black 5%, transparent clamp(125px, 50vw - 115px, 605px));
}
.logo-img { height: 230px; margin: 0 auto; margin-top: 4rem }

.hero-content { 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: -30px auto 2rem;
  
}
.hero-photo img {
  width: 500px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-text { text-align: left; margin-top: clamp(20px, 8vw, 90px); }
.hero-text h1 { font-size: 3rem; font-weight: 400; margin-bottom: 0.6rem; color: var(--gray-dark) }
.hero-text p { font-size: 1.1rem; font-weight: 350; color: var(--gray-med); margin-bottom: 3rem; }

.tagline { font-size: clamp(0.75rem, 3vw, 1.2rem); font-weight: 400; margin-bottom: 1rem; margin-top: 1rem; white-space: nowrap; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.btn-outline { border: none; color: var(--gray-dark); background: var(--grey-li); }
.btn-outline:hover { background: var(--gray-dark); color: var(--white); }
.btn-primary { background: var(--blue-mid); color: var(--gray-dark); }
.btn-primary:hover { background: var(--blue-light); }

/* ---- SERVICES ---- */
.services {
  position: relative;
  padding: calc(4rem + 10px) 2rem calc(4rem - 10px);
}
.services-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.service-card { text-align: center; max-width: 260px; flex: 1 1 200px; }
.service-icon { height: 64px; margin: 0 auto 1rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.85rem; color: var(--gray-med); }

/* ---- REVIEWS ---- */
.reviews { position: relative; padding: 3rem 2rem; text-align: center; }
.reviews > * { position: relative; z-index: 1; }
.reviews h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 2rem; }
.reviews-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}
.carousel-track > .review-card {
  flex: 0 0 100%;
  max-width: none;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}
.carousel-viewport { transition: height 0.4s ease; }
.carousel-btn {
  background: none;
  color: var(--gray-dark);
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.carousel-btn:hover { color: var(--blue-mid); }
.carousel-btn svg { display: block; }
.reviews-quote {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}
.reviews-quote p {
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}
.reviews-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gray-med);
  font-weight: 500;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grey-li);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s;
}
.carousel-dot.active { background: var(--blue-mid); }
.reviews-loading { color: var(--gray-med); font-size: 0.9rem; padding: 2rem 0; }
.review-card {
  background: var(--grey-li);
  border-radius: 10px;
  padding: 1.2rem;
  flex: 1 1 260px;
  max-width: 300px;
  aspect-ratio: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.review-card p { font-size: 0.85rem; line-height: 1.7; color: var(--gray-med); }
.review-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.reviewer { font-weight: 700; font-size: 0.9rem; }
.quote-mark { position: absolute; bottom: -4rem; right: 0.5rem; font-size: 9rem; color: var(--blue-mid); line-height: 1; }

/* ---- WAVE DIVIDER ---- */
.wave-divider { width: 100%; display: block; }

/* ---- SCHOLARSHIPS ---- */
.scholarships {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  margin-bottom: 0;
}
.scholarships > * { position: relative; z-index: 1; }
.scholarships h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 2rem; }
.scholarships .btn { margin-top: 2rem; padding: 0.85rem 1.5rem; font-size: 1rem; position: relative; z-index: 3; }
.uni-logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
.uni-logos img {
  width: 200px;
  height: 80px;
  object-fit: contain;  /* scales down to fit, never crops */
}

/* ---- BOOKING FORM ---- */
.booking {
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
}
.booking > * { position: relative; z-index: 1; }
.booking-title {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gray-dark);
  margin-bottom: 2.5rem;
}
.booking-logo {
  height: 120px;
  margin: 0 auto 2.5rem;
}
.booking-form {
  max-width: 720px;
  margin: 0 auto;
  border: 2px solid var(--blue-mid);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 1.5rem;
}
.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--gray-dark);
}
.required {
  color: #b94a3a;
  font-weight: 600;
  font-size: 0.85rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
}
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--gray-med);
  margin-top: 0.25rem;
  display: block;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.radio-label {
  font-weight: 400 !important;
  font-size: 0.92rem;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-mid);
}
.btn-submit {
  padding: 0.65rem 1.8rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  margin-top: 0.5rem;
}
.booking-email {
  margin-top: 2rem;
}
.booking-email p {
  font-size: 0.95rem;
  color: var(--gray-med);
  margin-bottom: 0.8rem;
}
.contact-direct {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.countries-group { display: flex; flex-direction: column; gap: 0.5rem; }
.country-row { display: flex; gap: 0.5rem; align-items: center; }
.country-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-dark);
}
.country-input:focus { outline: none; border-color: var(--blue-mid); }
.remove-country {
  background: none;
  border: none;
  color: var(--gray-med);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color .2s;
}
.remove-country:hover { color: var(--blue-dark); }
.btn-add-country {
  background: none;
  border: none;
  color: var(--blue-mid);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  align-self: flex-start;
  transition: color .2s;
}
.btn-add-country:hover { color: var(--blue-dark); }

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  padding: 8rem 1rem 1.5rem;
  margin-top: -80px;
  background: url('assets/wave-d.svg') bottom / cover no-repeat;
}
.footer > * { position: relative; z-index: 1; }
.footer p { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.partner-logo { height: 65px; margin: 0.75rem auto 25px; }
.btn-contact {
  display: inline-flex;
  align-items: center;
  background: var(--blue-mid);
  color: var(--white);
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}
.btn-contact:hover { background: var(--blue-dark); color: var(--white); }

/* ---- ABOUT PAGE ---- */
.about-section {
  display: flex;
  gap: 4rem;
  padding: 4rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}
.about-content { flex: 1; }
.about-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.about-content p { margin-bottom: 1rem; font-size: 0.95rem; color: var(--gray-med); }
.approach-list { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.approach-list li { margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--gray-med); }
.about-photo { flex: 0 0 340px; }
.about-photo img { width: 100%; border-radius: 50%; object-fit: cover; object-position: top; aspect-ratio: 1; }

/* ---- ACCEPTANCES PAGE ---- */
.acceptances-banner {
  position: relative;
  background: #4b4b4b;
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: var(--white);
}
.acceptances-banner h1 {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  font-weight: 700;
}
.acceptances {
  padding: 2rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.acceptances h1 { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 2rem 0; }
.acceptances-grid {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.region-col { flex: 1 1 280px; text-align: center; }
.region-col h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0.05em; margin: 1.5rem 0 0.8rem; text-decoration: underline; }
.region-col h3 { font-size: 1rem; font-weight: 800; margin: 1.2rem 0 0.4rem; }
.region-col ul li { font-size: 0.82rem; color: var(--gray-med); line-height: 1.8; text-transform: uppercase; letter-spacing: 0.02em; }
.region-col ul li.scholarship { color: var(--blue-mid); font-weight: 700; }

.btn-acceptances {
  display: inline-block;
  margin-top: 1.8rem;
  font-size: 1.2  rem;
  font-weight: 600;
  color: var(--gray-dark);
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
  background-color: var(--grey-li);
  border-radius: 30px;
}
.btn-acceptances:hover { color: var(--blue-dark); }

.acceptances-loading { color: var(--gray-med); font-size: 0.9rem; padding: 2rem 0; }

.scholarship-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-med);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: inline-block;
  flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 718px) {
  .logo-img { height: 180px; }
  .hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "title title"
      "photo text";
    column-gap: 1rem;
    row-gap: 0.25rem;
    align-items: center;
    text-align: left;
    margin-top: 6.5rem;
  }
  .hero-text { display: contents; }
  .hero-text h1 { grid-area: title; font-size: 2rem; text-align: center; margin-bottom: 0; }
  .hero-photo { grid-area: photo; flex-shrink: 0; align-self: center; }
  .hero-photo img { width: 130px; height: 130px; }
  .hero-text p { grid-area: text; font-size: 0.85rem; margin-bottom: 0; align-self: center; }
  .services-inner { gap: 2rem; }
  .review-card { max-width: 100%; }
  .about-section { flex-direction: column; padding: 2rem 1.5rem; gap: 2rem; }
  .about-photo { flex: none; max-width: 240px; margin: 0 auto; }
  .acceptances { padding: 2rem 1.5rem; }
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .uni-logos { gap: 1.5rem; }
  .uni-logos img { width: 120px; height: 50px; object-fit: contain; }
  .booking-form { padding: 1.5rem; }
  .form-row { flex-direction: column; gap: 0; }
  .booking-title { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .hero-photo img { width: 110px; height: 110px; }
  .logo-img { height: 180px; }
  .hero > .corner-circles { top: 202px; }
  .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
  .nav-logo img { height: 36px; }
  .nav-links { gap: 0.6rem; font-size: 0.8rem; }
}
