/* ============================================================
   EDVOY.LK — Section Layouts & Responsive
   ============================================================ */

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + var(--space-16));
  padding-bottom: var(--space-16);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-16);
}
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--white);
}
.rating-stars { color: #F59E0B; letter-spacing: 1px; }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}
.hero-heading-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 480px;
}
.hero-search { margin-bottom: var(--space-5); }

/* Quick links under search */
.hero-quick {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hero-quick-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}
.quick-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.quick-tag:hover {
  border-color: transparent;
  background: var(--brand-gradient);
  color: var(--white);
}

/* Hero image side */
.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  display: block;
}
/* Floating trust pills */
.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
  animation: floatCard 3.5s ease-in-out infinite;
}
.float-card-top    { top: -18px; right: -18px; animation-delay: 0s; }
.float-card-bottom { bottom: 20px; left: -18px; animation-delay: 1s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card-icon svg { width: 18px; height: 18px; color: var(--white); }
.float-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  line-height: 1.2;
}
.float-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Hero stats row */
.hero-stats {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  margin-top: 3px;
}

/* ── Destinations ── */
.dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  height: 520px;
}
.dest-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
}
.dest-grid > .country-card { aspect-ratio: unset; height: 100%; }

.dest-pills {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.dest-pills-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Universities ── */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ── Promo (Funds & Stays) ── */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* ── Why Us ── */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats-grid .stat-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid .stat-card:nth-child(2n)    { border-right: none; }
.stats-grid .stat-card:nth-last-child(-n+2) { border-bottom: none; }

/* ── Testimonials ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ── CTA Journey cards ── */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.journey-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.25s, background 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.journey-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.2);
}
.journey-card img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.journey-card-body {
  padding: var(--space-6);
  flex: 1; display: flex; flex-direction: column;
}
.journey-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  margin-bottom: var(--space-2);
}
.journey-card-body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex: 1;
}

/* ── News / Press logos ── */
.press-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-8) 0;
}
.press-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.2s;
}
.press-logo:hover { filter: grayscale(0) opacity(1); }

/* ────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .uni-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-visual { display: none; }
  .hero-heading { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { min-width: 120px; border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .why-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .dest-grid {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }
  .dest-grid > .country-card { display: none; }
  .dest-col { display: contents; }
  .dest-grid .country-card { aspect-ratio: 4/3; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .uni-grid     { grid-template-columns: repeat(2, 1fr); }
  .testi-grid   { grid-template-columns: 1fr; }
  .promo-grid   { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + var(--space-10)); }
  .dest-grid { grid-template-columns: 1fr; height: auto; }
  .dest-grid .country-card { aspect-ratio: 16/9; }
  .services-grid { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
}
