/* 
  IICD Edu – landing page styles
  1. Design tokens  2. Base  3. Buttons  4. Header/Nav
  5. Hero  6. Sections  7. Cards  8. Footer  9. Responsive */

/* 1. DESIGN TOKENS – change the theme here only */
:root {
  /* Brand colours (sampled from the logo: deep navy + brick red) */
  --primary-color: #1b4674;
  --primary-dark: #142944;
  --secondary-color: #a52b19;
  --accent-color: #c8402a;
  --accent-soft: #fbeeea;

  --text-color: #475467;
  --heading-color: #10243b;
  --light-bg: #f5f7fa;
  --dark-bg: #1d375a;
  --white: #ffffff;
  --border-color: #e4e8ee;
  --on-dark-muted: rgba(255, 255, 255, 0.78);

  /* Typography */
  --font-primary:
    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Fraunces", Georgia, serif;
  --fs-base: 1rem;
  --lh-base: 1.7;

  /* Shape */
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(16, 36, 59, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 36, 59, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 36, 59, 0.22);

  /* Layout */
  --container-width: 1200px;
  --section-padding: 5.5rem;
  --header-height: 76px;
  --transition: 0.25s ease;

  /* Images (replace files in /images; gradients show if a file is missing) */
  --hero-image: url("../images/hero-bg.webp");
}

/* 2. BASE */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
}
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-color);
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  max-width: var(--container-width);
}
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 2000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--white);
}

.section {
  padding: var(--section-padding) 0;
}
.section-light {
  background: var(--light-bg);
}
.section-dark {
  background: var(--dark-bg);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head-light .section-title {
  color: var(--white);
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}
.eyebrow-light {
  color: #ff9b86;
}
.note-line {
  text-align: center;
  margin: 2rem 0 0;
  font-weight: 500;
}

/* 3. BUTTONS */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}
.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
}
.btn-brand {
  background: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}
.btn-brand:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}
.btn-light {
  color: var(--primary-color);
}
.btn-light:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* 4. TOP BAR, HEADER, NAV */
.topbar {
  background: var(--primary-dark);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}
.topbar a {
  color: var(--on-dark-muted);
}
.topbar a:hover {
  color: var(--white);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.5rem;
  gap: 1rem;
}
.topbar-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.topbar-list i {
  color: #ff9b86;
  margin-right: 0.35rem;
}
.topbar-cta {
  font-weight: 600;
  color: var(--white) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading-color);
}
.brand:hover {
  color: var(--heading-color);
}
.brand img {
  border-radius: var(--border-radius-sm);
}
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.brand-text small {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 0;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}
.nav-link-item:hover,
.nav-link-item.is-active {
  color: var(--secondary-color);
  background: var(--accent-soft);
}
.has-sub {
  position: relative;
}
.sub-toggle i {
  font-size: 0.7rem;
  transition: transform var(--transition);
}
.submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-width: 230px;
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}
.submenu a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text-color);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
}
.submenu a:hover {
  background: var(--accent-soft);
  color: var(--secondary-color);
}

.nav-panel-head,
.nav-panel-cta,
.nav-toggle,
.nav-overlay {
  display: none;
}

@media (min-width: 992px) {
  .site-nav {
    margin-left: auto;
    margin-right: 1rem;
  }
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
  }
  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu,
  .has-sub.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-sub:hover .sub-toggle i,
  .has-sub.is-open .sub-toggle i {
    transform: rotate(180deg);
  }
}

/* Mobile slide-in menu (opens from the right) */
@media (max-width: 1400px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
    color: var(--heading-color);
    background: var(--light-bg);
    border: 0;
    border-radius: var(--border-radius-sm);
  }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 38, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1;
  }
  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: var(--white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.35s ease,
      visibility 0.35s;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }
  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
  }
  .nav-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--secondary-color);
    font-size: 1.1rem;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem;
  }
  .nav-list > li {
    border-bottom: 1px solid var(--border-color);
  }
  .nav-link-item {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0.5rem;
    font-size: 1.02rem;
  }
  .submenu {
    display: none;
    box-shadow: none;
    padding: 0 0 0.75rem 0.75rem;
  }
  .has-sub.is-open > .submenu {
    display: block;
  }
  .has-sub.is-open .sub-toggle i {
    transform: rotate(180deg);
  }
  .nav-panel-cta {
    display: block;
    margin-top: auto;
    padding: 1.25rem;
  }
  .nav-panel-phone {
    display: block;
    text-align: center;
    margin-top: 0.9rem;
    font-weight: 600;
  }
}

/* 5. HERO */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  color: var(--white);
  background:
    linear-gradient(
      115deg,
      rgba(19, 58, 108, 0.96) 20%,
      rgba(33, 69, 111, 0.88) 60%,
      rgba(165, 43, 25, 0.55) 130%
    ),
    var(--hero-image) center / cover no-repeat,
    var(--primary-color);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  margin-bottom: 1.25rem;
}
.hero h1 span {
  color: #ff9b86;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--on-dark-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-list i {
  color: #ff9b86;
  margin-right: 0.3rem;
}
.hero .col-lg-5 img{
  border-radius: 1rem;
}
/* =========================================================
   Hero badge: "1000+ Students enrolled"
   Pops in, a ring draws around the icon while the number counts
   up, the "+" bounces with a small burst, then the card floats.
   ========================================================= */
/* registered so the browser can animate a whole number and an angle */
@property --hero-num {
  syntax: "<integer>";
  inherits: true; /* the ::before that prints the number reads it from .hero-count */
  initial-value: 0;
}
@property --hero-ring {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.hero-badge {
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  box-shadow:
    var(--shadow-lg),
    0 0 0 6px rgba(255, 255, 255, 0.14);
  animation:
    heroBadgePop 1s cubic-bezier(0.22, 1.4, 0.36, 1) 0.9s backwards,
    heroBadgeFloat 5s ease-in-out 2.4s infinite;
}
@media (min-width: 576px) {
  .hero-badge {
    gap: 1rem;
    padding: 0.9rem 1.5rem 0.9rem 0.9rem;
  }
}
@media (min-width: 992px) {
  .hero-badge {
    left: -1.5rem; /* hangs off the corner of the photo */
    bottom: 1.5rem;
  }
}

/* ring that draws itself while the number counts */
.hero-badge-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  animation: heroRingGlow 2.6s ease-in-out 3.2s infinite;
}
@media (min-width: 576px) {
  .hero-badge-ring {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }
}
.hero-badge-ring::before {
  --hero-ring: 360deg;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--white) var(--hero-ring), rgba(255, 255, 255, 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: heroRingFill 1.8s cubic-bezier(0.3, 0.7, 0.2, 1) 1.2s backwards;
}

/* number: counts up, then the "+" bounces in with a burst of dots */
.hero-badge-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 576px) {
  .hero-badge-num {
    font-size: 2rem;
  }
}
.hero-count {
  --hero-num: 1000; /* final value, so it is correct if animation is off */
  display: inline-block;
  font-variant-numeric: tabular-nums;
  animation: heroCountUp 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s backwards;
}
.hero-count::before {
  counter-reset: hero-num var(--hero-num);
  content: counter(hero-num);
}
.hero-plus {
  position: relative;
  display: inline-block;
  animation: heroPlusIn 0.6s cubic-bezier(0.34, 1.8, 0.64, 1) 3s backwards;
}
.hero-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 -16px 0 var(--white),
    14px -8px 0 var(--white),
    14px 8px 0 var(--white),
    0 16px 0 var(--white),
    -14px 8px 0 var(--white),
    -14px -8px 0 var(--white);
  animation: heroBurst 0.7s ease-out 3s both;
}

/* label fades up, then an underline draws beneath it */
.hero-badge-label {
  position: relative;
  margin-top: 0.4rem !important;
  padding-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  animation: heroLabelIn 0.6s ease 1.4s backwards;
}
@media (min-width: 576px) {
  .hero-badge-label {
    font-size: 0.82rem;
  }
}
.hero-badge-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--white), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroUnderline 0.9s ease 3s forwards;
}

@keyframes heroBadgePop {
  from {
    opacity: 0;
    transform: translate(-30px, 30px) rotate(-8deg) scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes heroRingFill {
  from {
    --hero-ring: 0deg;
  }
}
@keyframes heroCountUp {
  from {
    --hero-num: 0;
  }
}
@keyframes heroPlusIn {
  from {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
  }
}
@keyframes heroBurst {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}
@keyframes heroLabelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes heroUnderline {
  to {
    transform: scaleX(1);
  }
}
@keyframes heroRingGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-badge-ring,
  .hero-badge-ring::before,
  .hero-count,
  .hero-plus,
  .hero-plus::after,
  .hero-badge-label,
  .hero-badge-label::after {
    animation: none !important;
  }
  .hero-plus::after {
    display: none;
  }
  .hero-badge-label::after {
    transform: scaleX(1);
  }
}

.enquiry-card {
  background: var(--white);
  color: var(--text-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}
.enquiry-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.enquiry-card > p {
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.3rem;
}
.form-control,
.form-select {
  border-radius: var(--border-radius-sm);
  border-color: var(--border-color);
  padding: 0.65rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(165, 43, 25, 0.18);
}
.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--secondary-color);
}

/* 6. SECTIONS */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  aspect-ratio: 4 / 4;
}
.media-frame.portrait {
  aspect-ratio: 4 / 4;
  box-shadow: var(--shadow-md);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.media-frame img.is-missing {
  visibility: hidden;
}
.media-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.pull-quote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--secondary-color);
  background: var(--accent-soft);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  color: var(--heading-color);
  font-weight: 500;
}

/* 7. CARDS */
.feature-card,
.contact-card {
  height: fit-content;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.feature-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-card p,
.contact-card p,
.service-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-md);
  background: var(--accent-soft);
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.contact-card i {
  font-size: 1.6rem;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.6rem;
}
.contact-card address {
  margin: 0;
  font-size: 0.95rem;
}

.destination-swiper,
.testimonial-swiper,
.partner-swiper {
  position: relative;
  padding-bottom: 3rem;
}
.partner-swiper {
  padding-bottom: 0;
}
.dest-card {
  display: block;
  height: 28rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.dest-card .media-frame {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: var(--text-color);
}
.dest-card:hover img {
  transform: scale(1.06);
}
.dest-body {
  display: block;
  padding: 1.25rem 1.4rem 1.5rem;
}
.dest-body h3 {
  margin-bottom: 0.4rem;
}
.dest-body p {
  font-size: 0.93rem;
  margin-bottom: 0.75rem;
  min-height: 3.2em;
}
.dest-link {
  font-weight: 700;
  color: var(--secondary-color);
}

.service-card {
  height: 100%;
  padding: 1.9rem;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark-muted);
  transition:
    background var(--transition),
    transform var(--transition);
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-4px);
}
.service-card > i {
  font-size: 1.9rem;
  color: #ff9b86;
  display: block;
  margin-bottom: 1rem;
}
.service-card h3 {
  color: var(--white);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.chip-list li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
}
.uni-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border-radius: var(--border-radius-md);
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--heading-color);
}
.uni-tile i {
  font-size: 1.4rem;
  color: var(--secondary-color);
}

.process-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  position: relative;
}
.process-list li {
  text-align: center;
  position: relative;
}
.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  border-top: 2px dashed rgba(165, 43, 25, 0.4);
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.process-list p {
  font-size: 0.92rem;
  margin: 0;
}

.stats {
  background: var(--primary-color);
  color: var(--white);
  padding: 3.5rem 0;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}
.stat-label {
  margin: 0.35rem 0 0;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: var(--white);
  font-weight: 700;
  color: var(--heading-color);
  box-shadow: var(--shadow-sm);
}

.partner-tile img {
  max-height: 4rem;
  max-width: 8rem;
}

/* =========================================================
   Testimonials: cards, carousel controls, detail modal
   ========================================================= */
#testimonials {
  --star-color: #f0a530;
  --star-empty: #d9dee6;
}
#testimonials .testimonial-swiper {
  padding: 0.5rem 0 0;
}

.t-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}
.t-stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--star-color);
  font-size: 0.95rem;
}
.t-stars .is-empty {
  color: var(--star-empty);
}
.t-quote {
  margin: 0 0 0.75rem;
  color: var(--text-color);
  font-size: 1.02rem;
  line-height: 1.75;
}
.t-quote p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 600;
  color: var(--secondary-color);
  transition: color var(--transition);
}
.t-more i {
  transition: transform var(--transition);
}
.t-more:hover {
  color: var(--accent-color);
}
.t-more:hover i {
  transform: translateX(3px);
}
.t-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
}
.t-author-info strong {
  display: block;
  color: var(--heading-color);
  line-height: 1.3;
}
.t-author-info small {
  color: var(--text-color);
}
.t-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.t-avatar.is-initials,
.t-photo.is-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
}

/* Testimonials page card: photo, then name + details, then the remarks */
.t-card-photo {
  padding: 0;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.t-card-photo:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.t-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.t-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* keeps faces in frame when cropped */
  transition: transform 0.6s ease;
}
.t-card-photo:hover .t-cover {
  transform: scale(1.05);
}
.t-cover.is-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: none;
}
.t-card-media .t-stars {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.t-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.6rem;
}
.t-name {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
}
.t-facts {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0 0 1.1rem;
  list-style: none;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--heading-color);
}
.t-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.t-facts i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--secondary-color);
}
.t-role {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  color: var(--heading-color);
}
.t-card-photo .t-quote {
  font-size: 0.98rem;
  line-height: 1.7;
}
.t-card-photo .t-quote p {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
.t-card-photo .t-more {
  margin: auto 0 0;
  padding-top: 0.4rem;
}

/* Carousel controls: arrows either side of the pagination dots */
.t-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.t-nav-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--heading-color);
  box-shadow: var(--shadow-sm);
  transition: color var(--transition), box-shadow var(--transition);
}
.t-nav-btn:hover {
  color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}
#testimonials .t-nav .swiper-pagination {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
}
#testimonials .t-nav .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cfd6df;
  opacity: 1;
  transition: width var(--transition), background var(--transition);
}
#testimonials .t-nav .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 999px;
  background: var(--secondary-color);
}

/* Detail modal (native <dialog>) */
body.modal-open {
  overflow: hidden;
}
.t-modal {
  width: min(880px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--border-radius-lg);
  background: var(--white);
  color: var(--text-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.t-modal[open] {
  display: flex;
  flex-direction: column;
  animation: tModalIn 0.25s ease;
}
.t-modal::backdrop {
  background: rgba(10, 22, 38, 0.6);
}
@keyframes tModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.t-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  color: var(--white);
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
}
.t-modal-title {
  margin: 0;
  font-size: 1.45rem;
  color: var(--white);
}
.t-modal-role {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}
.t-modal-role[hidden] {
  display: none;
}
.t-modal-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background var(--transition);
}
.t-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.t-modal-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  padding: 1.75rem;
  overflow-y: auto;
}
.t-modal-photo {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}
.t-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}
.t-photo.is-initials {
  font-size: 3.5rem;
}
.t-modal-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0.5rem 0.9rem;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}
.t-modal-score {
  font-weight: 700;
  color: var(--heading-color);
}
.t-modal-quote {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 2.75rem 1.5rem 1.4rem;
  background: var(--accent-soft);
  border-radius: var(--border-radius-md);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--heading-color);
}
.t-modal-quote::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.1rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-style: normal;
  line-height: 1;
  color: var(--secondary-color);
  opacity: 0.35;
}
.t-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-modal-meta[hidden],
.t-modal-rating[hidden] {
  display: none;
}
.t-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}
.t-meta-row > i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  background: var(--accent-soft);
  color: var(--secondary-color);
}
.t-meta-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.t-meta-text strong {
  display: block;
  line-height: 1.35;
  color: var(--heading-color);
}

@media (max-width: 767.98px) {
  .t-modal-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .t-modal-media {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .t-modal-photo {
    flex-shrink: 0;
    width: 110px;
  }
  .t-photo {
    aspect-ratio: 1 / 1;
  }
  .t-photo.is-initials {
    font-size: 2.2rem;
  }
  .t-modal-rating {
    margin: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 575.98px) {
  .t-card:not(.t-card-photo) {
    padding: 1.5rem;
  }
  .t-card-body {
    padding: 1.2rem 1.25rem 1.4rem;
  }
  .t-modal-head {
    padding: 0.9rem 1.1rem;
  }
  .t-modal-body {
    padding: 1.1rem;
  }
  .t-modal-quote {
    padding: 2.5rem 1.1rem 1.1rem;
    font-size: 1rem;
  }
}

.cta-band {
  padding: 5rem 0;
  color: var(--white);
  background: linear-gradient(
    120deg,
    var(--secondary-color),
    var(--primary-color)
  );
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}
.cta-band p {
  max-width: 560px;
  margin: 1rem auto 2rem;
  color: var(--on-dark-muted);
}

/* Swiper theming */
.swiper-pagination-bullet-active {
  background: var(--secondary-color);
}
.swiper-button-prev,
.swiper-button-next {
  width: 44px;
  height: 44px;
  top: 42%;
  border-radius: 50%;
  background: var(--white);
  color: var(--secondary-color);
  box-shadow: var(--shadow-md);
  border: 0;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

/* 8. FOOTER */
.site-footer {
  background: var(--dark-bg);
  color: var(--on-dark-muted);
  padding: 4rem 0 1.5rem;
  font-size: 0.93rem;
}
.site-footer h3 {
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer a {
  color: var(--on-dark-muted);
}
.site-footer a:hover {
  color: var(--white);
}
.brand-footer {
  margin-bottom: 1rem;
  color: var(--white);
}
.brand-footer:hover {
  color: var(--white);
}
.brand-footer .brand-text {
  color: var(--white);
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

/* 9. RESPONSIVE */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 4rem;
    --header-height: 68px;
  }
  .hero {
    padding: 3.5rem 0 4rem;
  }
  .process-list {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .process-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1rem;
    text-align: left;
  }
  .process-list li::after {
    display: none;
  }
  .step-no {
    grid-row: span 2;
    margin: 0;
  }
}
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3.25rem;
  }
  .enquiry-card {
    padding: 1.5rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}
@media (min-width: 1400px) {
  :root {
    --container-width: 1280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   About page
   ========================================================= */
.page-banner {
  padding: 3.5rem 0 4rem;
  color: var(--white);
  background:
    linear-gradient(
      115deg,
      rgba(19, 58, 108, 0.96) 20%,
      rgba(33, 69, 111, 0.88) 60%,
      rgba(165, 43, 25, 0.55) 130%
    ),
    var(--hero-image) center / cover no-repeat,
    var(--primary-color);
}
.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin-bottom: 1rem;
}
.page-banner h1 span {
  color: #ff9b86;
}
.page-banner .hero-lead {
  margin-bottom: 0;
}

.breadcrumb-nav {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--on-dark-muted);
}
.breadcrumb-nav li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.6;
}
.breadcrumb-nav a {
  color: var(--white);
  font-weight: 600;
}
.breadcrumb-nav a:hover {
  color: #ff9b86;
}

.about-points {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--heading-color);
}
.about-points i {
  margin-top: 0.2rem;
  color: var(--secondary-color);
}

.director-title {
  color: var(--white);
}
.director-quote {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-color);
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}
.director-quote p {
  margin: 0 0 1rem;
}
.director-quote p:last-child {
  margin-bottom: 0;
}

/* Light version of .service-card (used on pale sections) */
.service-card-light {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
}
.service-card-light:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.service-card-light > i {
  color: var(--secondary-color);
}
.service-card-light h3 {
  color: var(--heading-color);
}

@media (max-width: 991.98px) {
  .page-banner {
    padding: 2.75rem 0 3rem;
  }
}
@media (max-width: 575.98px) {
  .director-quote {
    padding-left: 1rem;
    font-size: 1rem;
  }
}

/* =========================================================
   Gallery page: filters, photo grid, lightbox
   ========================================================= */
.g-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
}
.g-filters[hidden] {
  display: none;
}
.g-filter-btn {
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--white);
  color: var(--heading-color);
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.g-filter-btn:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.g-filter-btn[aria-pressed="true"] {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: zoom-in;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.g-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.g-media {
  display: block;
  aspect-ratio: 4 / 4;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.g-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.g-media img.is-missing {
  visibility: hidden;
}
.g-tile:hover .g-media img {
  transform: scale(1.06);
}
/* caption sits under the photo: name, then course / university / country */
.g-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
  color: var(--text-color);
}
.g-caption > i {
  flex-shrink: 0;
  margin-top: 0.3rem;
  color: var(--secondary-color);
}
.g-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.g-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading-color);
}
.g-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}
.g-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.g-detail i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--secondary-color);
}

/* Lightbox (native <dialog>) */
.g-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 14, 26, 0.96);
  color: var(--white);
}
.g-lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem 1.25rem 1.25rem;
  animation: gFade 0.2s ease;
}
.g-lightbox::backdrop {
  background: rgba(6, 14, 26, 0.96);
}
@keyframes gFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.g-lb-figure {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.g-lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  touch-action: pan-y;
}
.g-lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}
.g-lb-missing {
  display: grid;
  place-items: center;
  width: min(640px, 80vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--on-dark-muted);
}
.g-lb-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem 1rem;
  text-align: center;
}
.g-lb-title {
  font-weight: 600;
}
.g-lb-count {
  font-size: 0.9rem;
  opacity: 0.7;
}
.g-lb-details {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  font-size: 0.92rem;
  opacity: 0.92;
}
.g-lb-details .g-detail i {
  color: #ff9b86;
}
.g-lb-close,
.g-lb-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background var(--transition);
}
.g-lb-close:hover,
.g-lb-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.g-lb-nav[hidden] {
  display: none;
}
.g-lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* one card per row on phones */
    gap: 1rem;
  }
  .g-caption {
    padding: 0.9rem 1rem 1rem;
  }
  .g-caption > i {
    display: none; /* the expand icon is not needed on touch screens */
  }
  .g-lightbox[open] {
    grid-template-columns: minmax(0, 1fr);
    padding: 4rem 0.75rem 5.5rem;
  }
  .g-lb-nav {
    position: absolute;
    bottom: 1.25rem;
  }
  .g-lb-prev {
    left: 1rem;
  }
  .g-lb-next {
    right: 1rem;
  }
  .g-lb-img {
    max-height: calc(100dvh - 13rem);
  }
}

/* =========================================================
   Study in India page
   ========================================================= */
.course-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 1020;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.course-nav ul {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.course-nav ul::-webkit-scrollbar {
  display: none;
}
.course-nav a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading-color);
}
.course-nav a:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background: var(--accent-soft);
}

.course-section {
  scroll-margin-top: calc(var(--header-height) + 64px);
}
@media (min-width: 992px) {
  /* keep the course title and button in view while the details scroll */
  .course-section .row > .col-lg-4 {
    position: sticky;
    top: calc(var(--header-height) + 5.5rem);
    align-self: flex-start;
  }
}

.program-card {
  margin-bottom: 1.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}
.program-card h3 {
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
}
.program-card p:last-child,
.program-card ul:last-child {
  margin-bottom: 0;
}
.program-label {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}
.fact > i {
  font-size: 1.15rem;
  color: var(--secondary-color);
}
.fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.fact-value {
  font-weight: 600;
  line-height: 1.45;
  color: var(--heading-color);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--secondary-color);
  font-size: 0.88rem;
  font-weight: 600;
}

.course-cta {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  background: var(--accent-soft);
  font-weight: 500;
  color: var(--heading-color);
}
.course-cta a {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .program-card {
    padding: 1.25rem;
  }
  .fact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Study Abroad page: university lists
   ========================================================= */
.uni-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uni-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--heading-color);
}
.uni-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
}
.uni-list .uni-more {
  font-style: italic;
  font-weight: 600;
  color: var(--secondary-color);
}
.program-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
}

@media (max-width: 575.98px) {
  .uni-list {
    grid-template-columns: 1fr;
  }
}
