/* =============================================
   Eduvanta Reference UI — Mockup Design System
   Navy #003366 · Orange #FF8C00 · White
   ============================================= */

:root {
  --ref-navy: #003366;
  --ref-navy-light: #004080;
  --ref-orange: #FF8C00;
  --ref-orange-dark: #E67E00;
  --ref-ink: #1A2B3C;
  --ref-text: #000;
  --ref-muted: #000;
  --ref-bg: #F5F8FC;
  --ref-white: #FFFFFF;
  --ref-radius: 12px;
  --ref-radius-lg: 16px;
  --ref-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
  --ref-shadow-lg: 0 12px 40px rgba(0, 51, 102, 0.12);
}

.ref-site {
  --primary: var(--ref-navy);
  --accent: var(--ref-orange);
  color: var(--ref-text);
  overflow-x: clip;
}

/* ---- Header ---- */
.ref-site:has(.hero-ref) .top-bar {
  display: none !important;
}

.ref-site .site-header {
  background: var(--ref-white);
  box-shadow: 0 1px 0 rgba(0, 51, 102, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
  overflow: visible;
}

.ref-site:has(.hero-ref) .site-header:not(.scrolled) {
  position: sticky;
  top: 0;
  background: var(--ref-white);
}

.ref-site:has(.hero-ref) .site-header:not(.scrolled) .navbar {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.ref-site .navbar > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 992px) {
  .ref-site .navbar > .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .ref-site .navbar-collapse {
    justify-content: center;
  }

  .ref-site .navbar-nav:not(.ms-auto) {
    margin: 0 auto !important;
  }
}

.ref-site .nav-link {
  color: var(--ref-ink) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem .8rem !important;
  position: relative;
  background: transparent !important;
}

.ref-site .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Neutralize Bootstrap caret; underline drawn below */
.ref-site .nav-link.dropdown-toggle::after {
  border: 0 !important;
  margin: 0 !important;
  vertical-align: unset !important;
  content: '' !important;
}

.ref-site .nav-dropdown-icon {
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
  color: inherit;
}

.ref-site .nav-link.dropdown-toggle:hover .nav-dropdown-icon,
.ref-site .nav-link.dropdown-toggle.active .nav-dropdown-icon,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.show .nav-dropdown-icon,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses.show) .nav-dropdown-icon {
  opacity: 1;
}

.ref-site .nav-item.dropdown.show .nav-dropdown-icon,
.ref-site .nav-item.dropdown:hover .nav-dropdown-icon,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.show .nav-dropdown-icon {
  transform: rotate(180deg);
}

.ref-site .navbar-nav .nav-link::after {
  content: '' !important;
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  width: auto;
  background: var(--ref-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  display: block !important;
  border: none !important;
}

.ref-site .navbar-nav .nav-link:hover::after,
.ref-site .navbar-nav .nav-link.active::after,
.ref-site .navbar-nav .nav-link.nav-courses-active::after,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.show::after,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses.show) > .nav-link::after {
  transform: scaleX(1);
}

.ref-site .navbar-nav .nav-link:hover {
  color: var(--ref-navy) !important;
}

/* Courses menu orange when open / active */
.ref-site .navbar-nav .nav-link.active,
.ref-site .navbar-nav .nav-link.active:hover,
.ref-site .navbar-nav .nav-link.active:focus,
.ref-site .navbar-nav .nav-link.nav-courses-active,
.ref-site .navbar-nav .nav-link.nav-courses-active:hover,
.ref-site .navbar-nav .nav-link.nav-courses-active:focus,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.active,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.nav-courses-active,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.show,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses) > .nav-link.show:hover,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses.show) > .nav-link,
.ref-site .nav-item.dropdown:has(.dropdown-menu-courses.show) > .nav-link:hover {
  color: #ff8c00 !important;
  font-weight: 600 !important;
}

.ref-site .dropdown-item.active,
.ref-site .dropdown-item.active:hover,
.ref-site .dropdown-item.active:focus {
  background: rgba(255, 140, 0, 0.1);
  color: var(--ref-orange) !important;
  font-weight: 600;
}

.ref-site .dropdown-menu-courses {
  min-width: min(22rem, 90vw);
  max-width: min(26rem, 92vw);
  padding: 0.5rem;
}

.ref-site .dropdown-menu-courses .dropdown-item {
  white-space: normal;
  line-height: 1.35;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
}

.ref-site .dropdown-menu-courses .dropdown-divider {
  margin: 0.35rem 0.5rem;
}

.ref-site .btn-edu-accent {
  background: var(--ref-orange);
  border-radius: 8px;
  padding: 0.425rem .5rem;
  font-weight: 600;
  box-shadow: none;
}

.ref-site .btn-edu-accent:hover {
  background: var(--ref-orange-dark);
}

/* ---- Mobile sidebar nav ---- */
.ref-site .mobile-nav-offcanvas {
  width: min(88vw, 320px);
  border-right: none;
  background: var(--ref-white);
  box-shadow: 8px 0 32px rgba(0, 34, 68, 0.18);
  z-index: 1055;
}

.ref-site .mobile-nav-offcanvas .offcanvas-header {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(0, 51, 102, 0.08);
  background: var(--ref-white);
}

.ref-site .mobile-nav-brand img {
  height: 44px;
  width: auto;
}

.ref-site .mobile-nav-offcanvas .offcanvas-body {
  padding: 1rem 1.125rem 1.5rem;
  background: var(--ref-white);
  overflow-y: auto;
}

.ref-site .mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ref-site .mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.875rem;
  border-radius: 10px;
  color: var(--ref-ink) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ref-site .mobile-nav-link i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 204, 0.08);
  color: var(--ref-navy);
  flex-shrink: 0;
  font-size: 1rem;
}

.ref-site .mobile-nav-link:hover {
  background: rgba(0, 102, 204, 0.06);
  color: var(--ref-navy) !important;
}

.ref-site .mobile-nav-link.active,
.ref-site .mobile-nav-link.active:hover {
  background: rgba(255, 140, 0, 0.1);
  color: var(--ref-orange) !important;
  font-weight: 600;
}

.ref-site .mobile-nav-link.active i {
  background: var(--ref-orange);
  color: var(--ref-white);
}

.ref-site .mobile-nav-link--sub {
  margin-left: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.ref-site .mobile-nav-link--sub i {
  width: 30px;
  height: 30px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.ref-site .mobile-nav-link--sub span {
  line-height: 1.3;
}

.ref-site .mobile-nav-cta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 51, 102, 0.08);
}

.ref-site .navbar-toggler {
  border: none;
  padding: 0.25rem;
  color: var(--ref-navy);
  line-height: 1;
}

.ref-site .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.ref-site .navbar-toggler-icon-open {
  font-size: 1.75rem;
}

body.offcanvas-open .ref-site .navbar-toggler {
  visibility: hidden;
  pointer-events: none;
}

.ref-site .offcanvas-backdrop {
  z-index: 1050;
}

/* ---- Contact page mobile sidebar ---- */
.ref-site .contact-info-toggle {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ref-site .contact-info-offcanvas {
  width: min(90vw, 340px);
}

.ref-site .contact-info-offcanvas .partner-spotlight {
  margin-bottom: 0.875rem;
}

/* .ref-site #enquiry-form .col-lg-7 {
  width: 100%;
} */

.ref-site .btn-edu-primary {
  background: var(--ref-navy);
  border-radius: 8px;
  box-shadow: none;
  width: max-content !important;
}

.ref-site .btn-edu-primary:hover {
  background: var(--ref-navy-light);
}

/* ---- Hero ---- */
.hero-ref {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 140, 0, 0.06), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(0, 51, 102, 0.04), transparent 35%),
    var(--ref-white);
  overflow: hidden;
}

.hero-ref__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ref-orange);
  margin-bottom: 1rem;
}

.hero-ref__title {
  font-size: clamp(2rem, 3.5vw, 3.125rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ref-navy);
  margin-bottom: 1.25rem;
}

.hero-ref__title .text-accent {
  color: var(--ref-orange);
}

.hero-ref__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ref-text);
  max-width: 32rem;
  margin-bottom: 1rem;
}

.hero-ref__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-ref__highlight {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--ref-ink);
}

.hero-ref__highlight i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 51, 102, 0.08);
  color: var(--ref-navy);
  border-radius: 10px;
  font-size: 1.125rem;
}

.hero-ref__highlight strong {
  display: block;
  font-size: 1rem;
  color: var(--ref-navy);
}

.hero-ref__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-ref__actions .btn-edu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-ref__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ref-navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.hero-ref__link i {
  font-size: 1.5rem;
  color: var(--ref-orange);
}

.hero-ref__link:hover {
  color: var(--ref-orange);
}

.hero-ref__visual {
  position: relative;
}

.hero-ref__image-wrap {
  position: relative;
  border-radius: var(--ref-radius-lg);
  overflow: hidden;
}

.hero-ref__image-wrap img {
  width: 100%;
  height: auto;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--ref-radius-lg);
}

.hero-ref__decor {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23003366' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: var(--ref-radius-lg);
}

.hero-ref__floats {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
}

.hero-ref__float-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ref-white);
  border-radius: var(--ref-radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--ref-shadow-lg);
  min-width: 180px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ref-ink);
  border: 1px solid rgba(0, 51, 102, 0.06);
}

.hero-ref__float-card i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 51, 102, 0.08);
  color: var(--ref-navy);
  border-radius: 8px;
  font-size: 1rem;
}

.hero-ref__float-card span small {
  display: block;
  font-weight: 400;
  color: var(--ref-muted);
  font-size: 0.6875rem;
}

@media (max-width: 991.98px) {
  .hero-ref__floats {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .hero-ref__float-card {
    min-width: calc(50% - 0.375rem);
    flex: 1 1 calc(50% - 0.375rem);
  }
}

/* ---- Section Headers ---- */
.ref-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ref-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ref-navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.ref-section-head .ref-view-all {
  color: var(--ref-navy);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ref-section-head .ref-view-all:hover {
  color: var(--ref-orange);
}

.ref-section-head--center {
  justify-content: center;
  text-align: center;
}

/* ---- Destinations ---- */
.ref-destinations {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--ref-bg);
}

.ref-dest-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1199.98px) {
  .ref-dest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .ref-dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ref-dest-card {
  background: var(--ref-white);
  border-radius: var(--ref-radius);
  overflow: hidden;
  box-shadow: var(--ref-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.ref-dest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ref-shadow-lg);
  color: inherit;
}

.ref-dest-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ref-dest-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-dest-card:hover .ref-dest-card__img img {
  transform: scale(1.06);
}

.ref-dest-card__body {
  padding: 1rem;
}

.ref-dest-card__flag {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.ref-dest-card__body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ref-navy);
  margin-bottom: 0.25rem;
}

.ref-dest-card__body p {
  font-size: 0.75rem;
  color: var(--ref-muted);
  margin: 0;
}

/* ---- Why Choose ---- */
.ref-why {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.ref-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .ref-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .ref-why-grid {
    grid-template-columns: 1fr;
  }
}

.ref-why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.ref-why-item__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 51, 102, 0.12);
  border-radius: 50%;
  color: var(--ref-navy);
  font-size: 1.5rem;
}

.ref-why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ref-navy);
  margin-bottom: 0.75rem;
}

.ref-why-item p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ref-text);
  margin: 0;
}

/* ---- Home: How It Works (creative timeline) ---- */
.ref-process-section {
  position: relative;
  overflow: hidden;
}

.ref-process-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ref-process-track {
  position: relative;
  padding-top: 0.5rem;
}

.ref-process-track__line {
  display: none;
}

.ref-process-card {
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: var(--ref-radius-lg);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: var(--ref-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ref-process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ref-navy), var(--ref-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ref-process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.12);
  border-color: rgba(0, 102, 204, 0.15);
}

.ref-process-card:hover::before {
  opacity: 1;
}

.ref-process-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ref-process-card__step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ref-orange);
  background: rgba(255, 122, 0, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.ref-process-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ref-navy) 0%, var(--ref-navy-light) 100%);
  color: var(--ref-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
}

.ref-process-card h3 {
  color: var(--ref-navy);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ref-process-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ref-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .ref-process-track__line {
    display: block;
    position: absolute;
    top: 3.25rem;
    left: 16.666%;
    right: 16.666%;
    height: 3px;
    background: linear-gradient(90deg, var(--ref-navy), var(--ref-orange), var(--ref-navy));
    border-radius: 999px;
    opacity: 0.25;
  }
}

/* ---- Home: Course Highlights (creative cards) ---- */
.ref-courses-section {
  background: linear-gradient(180deg, var(--ref-white) 0%, var(--ref-bg) 100%);
}

.ref-course-highlight-grid > [class*="col-"] {
  display: flex;
}

.ref-course-highlight {
  width: 100%;
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: var(--ref-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ref-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ref-course-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.ref-course-highlight--hbs::after {
  background: var(--ref-navy);
}

.ref-course-highlight--apic::after {
  background: var(--ref-orange);
}

.ref-course-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 51, 102, 0.1);
}

.ref-course-highlight:hover::after {
  transform: scaleX(1);
}

.ref-course-highlight__code {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.875rem;
}

.ref-course-highlight--hbs .ref-course-highlight__code {
  background: rgba(0, 102, 204, 0.1);
  color: var(--ref-navy);
}

.ref-course-highlight--apic .ref-course-highlight__code {
  background: rgba(255, 122, 0, 0.12);
  color: var(--ref-orange-dark);
}

.ref-course-highlight h3 {
  color: var(--ref-navy);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.ref-course-highlight__inst {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ref-muted);
  margin: 0;
  line-height: 1.5;
}

.ref-course-highlight__inst i {
  color: var(--ref-orange);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ref-course-highlight--hbs .ref-course-highlight__inst i {
  color: var(--ref-navy);
}

/* ---- Courses + Stats Split ---- */
.ref-split-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ref-bg);
}

.ref-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .ref-course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ref-course-pill {
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: var(--ref-radius);
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.ref-course-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--ref-shadow);
  color: inherit;
}

.ref-course-pill i {
  font-size: 1.75rem;
  color: var(--ref-navy);
  margin-bottom: 0.75rem;
  display: block;
}

.ref-course-pill h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ref-navy);
  margin-bottom: 0.35rem;
}

.ref-course-pill span {
  font-size: 0.75rem;
  color: var(--ref-muted);
}

.ref-stats-box {
  background: var(--ref-navy);
  border-radius: var(--ref-radius-lg);
  padding: 2rem;
  height: 100%;
  color: var(--ref-white);
}

.ref-stats-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ref-white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ref-stats-grid__item {
  text-align: center;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ref-radius);
}

.ref-stats-grid__item i {
  font-size: 1.5rem;
  color: var(--ref-orange);
  margin-bottom: 0.5rem;
  display: block;
}

.ref-stats-grid__item .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ref-white);
  display: block;
}

.ref-stats-grid__item .lbl {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Testimonials ---- */
.ref-testimonials {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.ref-testimonials #testimonialCarousel {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.ref-testimonials .carousel-inner {
  min-height: 280px;
  overflow: hidden;
}

.ref-testimonials .carousel-item {
  min-height: 280px;
}

.ref-testimonials .carousel-item.active,
.ref-testimonials .carousel-item-next,
.ref-testimonials .carousel-item-prev {
  display: flex;
  align-items: stretch;
}

.ref-testimonials .carousel-item > .testimonial-card {
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: var(--ref-radius-lg);
  padding: 2rem;
  box-shadow: var(--ref-shadow);
  text-align: center;
  width: 100%;
  min-height: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ref-testimonials .testimonial-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ref-testimonials .testimonial-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ref-orange);
  margin-bottom: 1rem;
}

.ref-testimonials .testimonial-stars {
  color: var(--ref-orange);
  margin-bottom: 1rem;
}

.ref-testimonials .testimonial-name {
  font-weight: 700;
  color: var(--ref-navy);
  margin-top: auto;
}

.ref-testimonials .testimonial-role {
  font-size: 0.875rem;
  color: var(--ref-muted);
}

.ref-testimonials .carousel-control-prev,
.ref-testimonials .carousel-control-next {
  width: 44px;
  height: 44px;
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.12);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-navy);
  box-shadow: var(--ref-shadow);
  z-index: 5;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ref-testimonials .carousel-control-prev:hover,
.ref-testimonials .carousel-control-next:hover {
  background: var(--ref-navy);
  border-color: var(--ref-navy);
  color: var(--ref-white);
}

.ref-testimonials .carousel-control-prev i,
.ref-testimonials .carousel-control-next i {
  font-size: 1.125rem;
  line-height: 1;
  color: inherit;
  pointer-events: none;
}

.ref-testimonials .carousel-control-prev {
  left: 0;
}

.ref-testimonials .carousel-control-next {
  right: 0;
}

.ref-testimonials .ref-testimonial-indicators {
  /* position: static; */
  margin: 1.25rem 0 0;
  justify-content: center;
  gap: 0.5rem;
  bottom: -40px;
}

.ref-testimonials .ref-testimonial-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 51, 102, 0.2);
  opacity: 1;
  margin: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ref-testimonials .ref-testimonial-indicators button.active {
  background: var(--ref-orange);
  transform: scale(1.15);
}

@media (max-width: 767.98px) {
  .ref-testimonials #testimonialCarousel {
    padding: 0 2.75rem;
  }

  .ref-testimonials .carousel-inner,
  .ref-testimonials .carousel-item,
  .ref-testimonials .testimonial-card {
    min-height: 320px;
  }

  .ref-testimonials .carousel-control-prev { left: 0; }
  .ref-testimonials .carousel-control-next { right: 0; }
}

/* ---- Blog + CTA ---- */
.ref-blog-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ref-bg);
}

.ref-blog-card {
  background: var(--ref-white);
  border-radius: var(--ref-radius);
  overflow: hidden;
  box-shadow: var(--ref-shadow);
  height: 100%;
  transition: transform 0.35s ease;
}

.ref-blog-card:hover {
  transform: translateY(-6px);
}

.ref-blog-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ref-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-blog-card__body {
  padding: 1.25rem;
}

.ref-blog-card__meta {
  font-size: 0.75rem;
  color: var(--ref-muted);
  margin-bottom: 0.5rem;
}

.ref-blog-card__body h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ref-navy);
  line-height: 1.4;
  margin: 0;
}

.ref-cta-card {
  background: var(--ref-navy);
  border-radius: var(--ref-radius-lg);
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ref-white);
  min-height: 280px;
}

.ref-cta-card i {
  font-size: 2.5rem;
  color: var(--ref-orange);
  margin-bottom: 1rem;
}

.ref-cta-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ref-white);
  margin-bottom: 1.25rem;
}

/* ---- Partner Strip ---- */
.ref-partners-strip {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid rgba(0, 51, 102, 0.06);
}

.ref-partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 1.5rem;
}

.ref-partner-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ref-muted);
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
  text-align: center;
  max-width: 200px;
}

.ref-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--ref-navy);
}

/* ---- Page Banner (Inner) ---- */
.ref-site .page-banner {
  background: linear-gradient(135deg, var(--ref-navy) 0%, var(--ref-navy-light) 100%);
  padding: clamp(3.5rem, 4vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.ref-site .page-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-site .page-banner h1 {
  color: var(--ref-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.ref-site .page-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.ref-site .page-banner .breadcrumb-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.ref-site .page-banner .breadcrumb-nav .breadcrumb {
  justify-content: center;
}

.ref-site .breadcrumb-nav .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.ref-site .breadcrumb-nav .breadcrumb-item.active {
  color: var(--ref-orange);
}

/* ---- Legal pages ---- */
.ref-site .legal-content {
  opacity: 1;
  transform: none;
  color: var(--ref-ink);
}

.ref-site .legal-content h2 {
  color: var(--ref-navy);
  font-weight: 600;
}

.ref-site .legal-content h3 {
  color: var(--ref-navy);
  font-weight: 600;
}

.ref-site .legal-content a {
  color: var(--ref-navy);
}

.ref-site .legal-content a:hover {
  color: var(--ref-orange);
}

/* ---- Inner Page Cards ---- */
.ref-site .feature-card,
.ref-site .value-card,
.ref-site .course-card,
.ref-site .partner-card,
.ref-site .form-section {
  border-radius: var(--ref-radius);
  border: 1px solid rgba(0, 51, 102, 0.08);
  box-shadow: var(--ref-shadow);
}

.ref-site .section-label {
  background: rgba(255, 140, 0, 0.1);
  color: var(--ref-orange);
  border: none;
  border-radius: 6px;
  font-size: 0.6875rem;
}

.ref-site .section-title {
  color: var(--ref-navy);
}

.ref-site .bg-light-section {
  background: var(--ref-bg);
}

.ref-site .cta-banner {
  background: linear-gradient(135deg, var(--ref-navy), var(--ref-navy-light));
  border-radius: var(--ref-radius-lg);
}

/* ---- Footer ---- */
.ref-site .site-footer {
  position: relative;
  background: linear-gradient(165deg, #002244 0%, var(--ref-navy) 42%, #001a33 100%);
  padding-top: 0;
  overflow: hidden;
}

.ref-site .site-footer::before {
  background: linear-gradient(90deg, var(--ref-orange), var(--ref-orange-dark), var(--ref-orange));
  height: 4px;
}

.ref-site .footer-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 0, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(0, 102, 204, 0.22) 0%, transparent 38%);
}

.ref-site .footer-deco::after {
  content: '';
  position: absolute;
  right: -4rem;
  top: 2rem;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.ref-site .footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.75rem, 5vw, 4rem) 0 2.5rem;
}

.ref-site .footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.ref-site .footer-logo-link img {
  height: 52px;
  width: auto;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ref-site .footer-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 22rem;
  margin: 0 0 1.25rem;
}

.ref-site .footer-tagline span {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ref-orange);
}

.ref-site .footer-partner-chips {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ref-site .footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ref-site .footer-chip i {
  color: var(--ref-orange);
  flex-shrink: 0;
}

.ref-site .footer-chip small {
  opacity: 0.75;
  margin-left: 0.15rem;
}

.ref-site .footer-heading {
  color: var(--ref-white);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 1.125rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.ref-site .footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ref-orange), rgba(255, 122, 0, 0.35));
}

.ref-site .footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}

.ref-site .footer-links-grid a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  transition: color 0.22s ease, transform 0.22s ease;
}

.ref-site .footer-links-grid a i {
  font-size: 0.65rem;
  color: var(--ref-orange);
  transition: transform 0.22s ease;
}

.ref-site .footer-links-grid a:hover {
  color: var(--ref-white);
  transform: translateX(4px);
}

.ref-site .footer-links-grid a:hover i {
  transform: translateX(2px);
}

.ref-site .footer-contact-list li {
  margin-bottom: 0.75rem;
}

.ref-site .footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  transition: color 0.22s ease;
}

.ref-site .footer-contact-list a i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ref-orange);
  flex-shrink: 0;
}

.ref-site .footer-contact-list a:hover {
  color: var(--ref-white);
}

.ref-site .footer-social {
  margin-top: 1.125rem;
}

.ref-site .footer-cta-block h2 {
  color: var(--ref-white);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ref-site .footer-cta-block p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.ref-site .footer-globe-icon {
  font-size: 3.5rem;
  color: rgba(255, 140, 0, 0.35);
  margin-top: 1rem;
  line-height: 1;
}

.ref-site .footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.ref-site .footer-links a:hover {
  color: var(--ref-orange);
}

.ref-site .footer-newsletter {
  margin-top: 1.25rem;
  max-width: 100%;
}

.ref-site .footer-newsletter .form-control {
  border-radius: 8px 0 0 8px;
  border: none;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
  width: auto;
}

.ref-site .footer-newsletter .btn-edu {
  border-radius: 0 8px 8px 0;
  padding: 0.625rem 1rem;
  flex-shrink: 0;
  min-width: 48px;
}

.ref-site .social-links a {
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

.ref-site .social-links a:hover {
  background: var(--ref-orange);
}

.ref-site .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
  padding: 1.25rem 0 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 991.98px) {
  .ref-site .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ref-site .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .ref-site .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

.ref-site .footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.ref-site .footer-bottom a:hover {
  color: var(--ref-orange);
}

/* ---- FAQ / Contact on Home ---- */
.ref-site .faq-accordion .accordion-item {
  border-radius: var(--ref-radius) !important;
  border: 1px solid rgba(0, 51, 102, 0.08);
  margin-bottom: 0.5rem;
}

.ref-site .contact-info-card {
  border-radius: var(--ref-radius);
  border: 1px solid rgba(0, 51, 102, 0.08);
  height: auto;
}

/* ---- Partner Institutions page ---- */
.ref-site .partner-institution {
  width: 100%;
}

.ref-site .partner-intro {
  margin-bottom: 0.5rem;
}

.ref-site .partner-institution__img {
  display: block;
  object-fit: cover;
  max-height: 260px;
}

.ref-site .partner-details-grid {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.ref-site .partner-details-grid > [class*="col-"] {
  display: flex;
}

.ref-site .partner-details-grid .contact-info-card {
  width: 100%;
}

.ref-site .partner-institution .comparison-table {
  width: 100%;
}

/* ---- Contact section layout fix ---- */
.ref-site #contact .row,
.ref-site .row.g-5:has(.form-section) {
  align-items: flex-start;
}

.ref-site #contact .col-lg-5,
.ref-site #contact .col-lg-7 {
  align-self: flex-start;
}

.ref-site #contact .contact-info-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.ref-site #contact .contact-info-card:last-child {
  margin-bottom: 0;
}

.ref-site #contact .contact-info-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
}

.ref-site #contact .form-section {
  height: auto;
}

/* ---- Footer layout fix ---- */
.ref-site .site-footer {
  overflow: hidden;
}

.ref-site .site-footer .row {
  align-items: flex-start;
}

.ref-site .footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.ref-site .footer-contact-item i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--ref-orange);
  margin-top: 0;
  font-size: 1rem;
  line-height: 1;
}

.ref-site .footer-contact-item span {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ref-site .footer-contact-item a {
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}

.ref-site .footer-contact-item a:hover {
  color: var(--ref-orange);
}

/* Prevent horizontal overflow from hero floats */
.ref-site .hero-ref__visual {
  overflow: hidden;
  padding-right: 0;
}

@media (min-width: 992px) {
  .ref-site .hero-ref__floats {
    right: 0;
  }
}

/* ---- Global overflow guard ---- */
.ref-site img,
.ref-site video,
.ref-site iframe {
  max-width: 100%;
}

/* ---- Hide legacy blocks ---- */
.ref-site .creative-marquee,
.ref-site .section-divider {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ref-dest-card,
  .ref-course-pill,
  .ref-blog-card,
  .hero-ref__float-card {
    transition: none;
  }
}

/* ---- Sticky Apply Now ---- */
.ref-site .sticky-apply-btn {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  left: max(24px, env(safe-area-inset-left, 24px));
  z-index: 1025;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ref-orange);
  color: var(--ref-white);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-site .sticky-apply-btn:hover {
  background: var(--ref-orange-dark);
  color: var(--ref-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.4);
}

.ref-site .sticky-apply-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.35);
}

.ref-site .sticky-apply-btn i {
  font-size: 1.125rem;
}

@media (max-width: 575.98px) {
  .ref-site .sticky-apply-btn {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: max(16px, env(safe-area-inset-left, 16px));
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }
}

/* ---- Partner institution messages ---- */
.ref-site .partner-message-card {
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}

.ref-site .partner-message-card__institution {
  color: var(--ref-navy);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.ref-site .partner-message-card__author {
  margin-bottom: 1rem;
}

.ref-site .partner-message-card__author strong {
  display: block;
  color: var(--ref-ink);
  font-weight: 600;
}

.ref-site .partner-message-card__author span {
  display: block;
  font-size: 0.875rem;
  color: rgba(0, 34, 68, 0.72);
}

.ref-site .partner-message-card__preview {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.ref-site .partner-message-card__full {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ref-site .partner-message-card__full p:last-child {
  margin-bottom: 0;
}

.ref-site .partner-message-card__signature {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 51, 102, 0.08);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ref-ink);
}

.ref-site .partner-message-toggle {
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ref-navy);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.ref-site .partner-message-toggle:hover {
  color: var(--ref-orange);
}

.ref-site .partner-message-toggle:focus-visible {
  outline: 2px solid var(--ref-navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.ref-site .partner-message-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.ref-site .partner-message-toggle .bi-chevron-down {
  transition: transform 0.2s ease;
}

/* ---- Course Detail (creative) ---- */
.ref-site .course-detail-hero {
  position: relative;
  min-height: clamp(320px, 52vh, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ref-navy);
}

.ref-site .course-detail-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ref-site .course-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: courseHeroZoom 18s ease-out forwards;
}

@keyframes courseHeroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.ref-site .course-detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 34, 68, 0.92) 0%, rgba(0, 51, 102, 0.72) 48%, rgba(0, 51, 102, 0.35) 100%),
    linear-gradient(to top, rgba(0, 34, 68, 0.85) 0%, transparent 55%);
  z-index: 1;
}

.ref-site .course-detail-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  color: var(--ref-white);
  max-width: 44rem;
  animation: courseHeroIn 0.7s ease-out both;
}

@keyframes courseHeroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ref-site .course-detail-hero__code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 140, 0, 0.18);
  color: #ffd9a8;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.ref-site .course-detail-hero h1 {
  color: var(--ref-white);
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.ref-site .course-detail-hero__partner {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ref-site .course-detail-hero__partner i {
  color: var(--ref-orange);
  margin-right: 0.35rem;
}

.ref-site .course-detail-hero .breadcrumb-nav .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.ref-site .course-detail-hero .breadcrumb-nav .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95);
}

.ref-site .course-detail-hero .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.ref-site .course-detail-stats {
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  margin-bottom: 0.5rem;
}

.ref-site .course-detail-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: var(--ref-white);
  padding: 1rem;
  box-shadow: var(--ref-shadow-lg);
  border: 1px solid rgba(0, 51, 102, 0.06);
}

@media (min-width: 768px) {
  .ref-site .course-detail-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
  }
}

.ref-site .course-detail-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  transition: background-color 0.25s ease;
}

@media (min-width: 768px) {
  .ref-site .course-detail-stat {
    border-right: 1px solid rgba(0, 51, 102, 0.08);
    padding: 1.35rem 1.25rem;
  }
  .ref-site .course-detail-stat:last-child {
    border-right: none;
  }
}

.ref-site .course-detail-stat:hover {
  background: rgba(255, 140, 0, 0.04);
}

.ref-site .course-detail-stat__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 51, 102, 0.07);
  color: var(--ref-navy);
  font-size: 1.15rem;
}

.ref-site .course-detail-stat strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(26, 43, 60, 0.65);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.ref-site .course-detail-stat span {
  /* display: block; */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ref-navy);
  line-height: 1.35;
}

.ref-site .course-detail-section {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.ref-site .course-detail-section--alt {
  background: linear-gradient(180deg, #f3f7fb 0%, #eef3f9 100%);
}

.ref-site .course-detail-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ref-orange);
  margin-bottom: 0.65rem;
}

.ref-site .course-detail-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ref-navy);
  margin-bottom: 1.25rem;
}

.ref-site .course-detail-copy p {
  color: var(--ref-ink);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 48rem;
}

.ref-site .course-detail-entry {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.ref-site .course-detail-entry li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--ref-white);
  border-left: 3px solid var(--ref-orange);
  box-shadow: var(--ref-shadow);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ref-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ref-site .course-detail-entry li:hover {
  transform: translateX(4px);
  box-shadow: var(--ref-shadow-lg);
}

.ref-site .course-detail-entry li i {
  color: var(--ref-orange);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ref-site .course-detail-careers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.ref-site .course-detail-career {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: rgba(0, 51, 102, 0.06);
  color: var(--ref-navy);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(0, 51, 102, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ref-site .course-detail-career:hover {
  background: var(--ref-navy);
  color: var(--ref-white);
  border-color: var(--ref-navy);
}

.ref-site .course-detail-career i {
  color: var(--ref-orange);
  font-size: 0.8rem;
}

.ref-site .course-detail-career:hover i {
  color: #ffd9a8;
}

.ref-site .course-detail-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(26, 43, 60, 0.75);
}

.ref-site .course-detail-cert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.04) 0%, rgba(255, 140, 0, 0.06) 100%);
  border: 1px solid rgba(0, 51, 102, 0.08);
}

.ref-site .course-detail-cert__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ref-navy);
  color: var(--ref-white);
  font-size: 1.25rem;
}

.ref-site .course-detail-units {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .ref-site .course-detail-units {
    grid-template-columns: 1fr 1fr;
  }
}

.ref-site .course-detail-unit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ref-site .course-detail-unit:hover {
  border-color: rgba(255, 140, 0, 0.45);
  transform: translateY(-2px);
}

.ref-site .course-detail-unit__code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ref-navy);
  letter-spacing: 0.02em;
  background: rgba(0, 51, 102, 0.06);
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.ref-site .course-detail-unit__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ref-ink);
  line-height: 1.35;
  margin: 0;
}

.ref-site .course-detail-unit__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.ref-site .course-detail-unit__tag--core {
  background: rgba(0, 51, 102, 0.1);
  color: var(--ref-navy);
}

.ref-site .course-detail-unit__tag--elective {
  background: rgba(255, 140, 0, 0.12);
  color: var(--ref-orange-dark);
}

.ref-site .course-detail-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ref-navy) 0%, #004a8f 55%, #003366 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  color: var(--ref-white);
  text-align: center;
}

.ref-site .course-detail-cta::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.12);
  top: -80px;
  right: -40px;
  animation: courseCtaFloat 8s ease-in-out infinite;
}

@keyframes courseCtaFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 12px); }
}

.ref-site .course-detail-cta .container {
  position: relative;
  z-index: 1;
}

.ref-site .course-detail-cta h2 {
  color: var(--ref-white);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.ref-site .course-detail-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.ref-site .course-detail-cta .btn-edu-accent {
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.35);
}

.ref-site .course-detail-cta .btn-edu-outline-light,
.ref-site .course-detail-hero .btn-edu-outline-light {
  background: transparent;
  color: var(--ref-white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ref-site .course-detail-cta .btn-edu-outline-light:hover,
.ref-site .course-detail-hero .btn-edu-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ref-white);
  color: var(--ref-white);
}

@media (prefers-reduced-motion: reduce) {
  .ref-site .course-detail-hero__media img,
  .ref-site .course-detail-hero__content,
  .ref-site .course-detail-cta::before {
    animation: none !important;
  }
}

.ref-site .course-detail-benefits {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ref-site .course-detail-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.ref-site .course-detail-benefit {
  padding: 1rem 1.1rem;
  background: rgba(0, 51, 102, 0.04);
  border: 1px solid rgba(0, 51, 102, 0.08);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ref-ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ref-site .course-detail-benefit:hover {
  border-color: rgba(255, 140, 0, 0.35);
  background: rgba(255, 140, 0, 0.05);
}

.ref-site .course-detail-benefit strong {
  display: block;
  color: var(--ref-navy);
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.ref-site .course-detail-support-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .ref-site .course-detail-support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ref-site .course-detail-support-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--ref-white);
  border: 1px solid rgba(0, 51, 102, 0.08);
  font-size: 0.875rem;
  color: var(--ref-ink);
}

.ref-site .course-detail-support-item i {
  color: var(--ref-orange);
  flex-shrink: 0;
}

.ref-site .course-detail-contact {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--ref-navy) 0%, #004a8f 100%);
  color: var(--ref-white);
}

.ref-site .course-detail-contact h3 {
  color: var(--ref-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.ref-site .course-detail-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-site .course-detail-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.ref-site .course-detail-contact li i {
  color: var(--ref-orange);
  margin-top: 0.15rem;
}

.ref-site .course-detail-contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.ref-site .course-detail-contact a:hover {
  color: var(--ref-white);
  text-decoration: underline;
}
