/*
 * ══════════════════════════════════════════════════════════
 *   FINDINGUNI — SYNTARA TECHNOLOGIES BRANDING
 *   Developed & maintained by Syntara Technologies Pvt Ltd
 *   https://syntaratechnologies.com
 * ══════════════════════════════════════════════════════════
 */

:root {
  /* Default Theme: Client Palette */
  --blue: #197cdd;
  /* --blue: #318ebd; */
  --blue-dark: #1464b3;
  --orange: #ea6465;
  --orange2: #f05152;
  --text: #000000;
  --muted: #000000;
  --border: #ced0d5;
  /* --border: #e6e8f0; */
  --bg: #ffffff;
  --card: #ffffff;
  --card-border: #ced0d5;
  --radius: 10px;
}

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

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1100;
  /* border-bottom: 1px solid var(--border); */
}

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

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  gap: 10px;
}

.logo-img {
  height: 40px;
  object-fit: contain;
  /* border-radius: 12px; */
  /* background: color-mix(in srgb, var(--blue) 8%, transparent); */
  /* padding: 6px; */
}

.logo span:last-child span {
  color: var(--orange);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #6a7bff);
  position: relative;
}

.logo-book,
.logo-book::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-radius: 3px;
}

.logo-book {
  clip-path: polygon(0 0, 50% 4%, 100% 0, 100% 100%, 0 100%);
}

.logo-book::before {
  position: absolute;
  top: 10px;
  left: 6px;
  width: 4px;
  height: 18px;
  background: var(--blue-dark);
  border-radius: 12px;
}

/* Text-Based Logo */
.logo-text-brand {
  gap: 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  transition: color 0.3s ease;
}

.logo-text-brand:hover .logo-text {
  color: var(--blue);
}

.logo-highlight {
  color: var(--blue);
  position: relative;
}

.logo-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.8;
}

/* Footer logo variant */
/* .footer-logo .logo-text {
  font-size: 22px;
  color: var(--card);
}

.footer-logo .logo-highlight {
  color: var(--orange);
} */

.nav-links {
  display: flex;
  gap: 0px;
  font-weight: 400;
  align-items: center;
  font-size: 14px;
  color: #181818;
  flex: 1;
  justify-content: center;
}

.nav-links>a {
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links>a:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

/* Mega Menu Styles */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.nav-dropdown-trigger::after {
  content: "";
  width: 12px;
  height: 12px;
  background-image: url('/frontend/svgs/arrow-menu.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-trigger {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

.nav-item-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Base dropdown menu styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, margin-top 0.2s ease;
  z-index: 1200;
  min-width: 220px;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-top: 0px;
}

/* Regular stacked dropdown menu */
.dropdown-list {
  list-style: none;
  padding: 16px;
  margin: 0;
}

.dropdown-list li {
  margin-bottom: 4px;
}

.dropdown-list a {
  display: block;
  padding: 5px 4px 5px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-list a:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

.dropdown-list button {
  display: block;
  width: 100%;
  padding: 5px 4px 5px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-list button:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

.dropdown-form {
  margin: 0;
}

/* Mega menu - dynamic 1-4 column layout */
.mega-menu {
  min-width: 320px;
  max-width: 95vw;
  max-height: calc(100vh - 90px);
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mega-menu-content {
  padding: 20px;
  display: grid;
  gap: 32px;
}

.mega-menu-cols-1 {
  grid-template-columns: minmax(220px, 1fr);
  min-width: 280px;
}

.mega-menu-cols-2 {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  min-width: 500px;
}

.mega-menu-cols-3 {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  min-width: 700px;
}

.mega-menu-cols-4 {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  min-width: 880px;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.mega-menu-list:last-child {
  margin-bottom: 0;
}

.mega-menu-list li {
  margin-bottom: 8px;
}

.mega-menu-list a {
  display: block;
  padding: 1px 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-menu-list a:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

/* Responsive collapse: 4→2 cols on medium, then stack on small */
@media (max-width: 1200px) {
  .mega-menu-cols-4 {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    min-width: 500px;
  }

  .mega-menu-cols-3 {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    min-width: 480px;
  }
}

@media (max-width: 800px) {
  .mega-menu {
    min-width: 320px;
    max-width: 95vw;
  }

  .mega-menu-content,
  .mega-menu-cols-1,
  .mega-menu-cols-2,
  .mega-menu-cols-3,
  .mega-menu-cols-4 {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
    min-width: 0;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--orange2);
  color: #fff;
}

.button-primary:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--orange2) 80%, #fff);
}

.button-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 10px 16px;
}

.button-outline:hover {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}

/* Alert Components */
.alert-success {
  margin-bottom: 24px;
  padding: 16px;
  background: #d1fae5;
  border-radius: 12px;
  color: #065f46;
  text-align: center;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.nav-mobile-footer {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.nav-profile-link {
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 700;
  margin-left: auto;
}

.nav-profile-dropdown {
  margin-left: auto;
}

.nav-profile-dropdown .nav-dropdown-trigger {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.nav-profile-link:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-profile-link {
    display: none;
  }

  .nav-profile-dropdown {
    display: none;
  }

  .mobile-menu-overlay {
    display: block;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--card);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 0 max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links>a,
  .nav-dropdown-trigger {
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-item-dropdown {
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: color-mix(in srgb, var(--blue) 3%, #ffffff);
    max-height: none;
    overflow: visible;
  }

  .mega-menu {
    min-width: 100%;
    max-width: 100%;
    max-height: none;
    transform: none;
    left: 0;
    overflow: visible;
  }

  .mega-menu-content,
  .mega-menu-cols-1,
  .mega-menu-cols-2,
  .mega-menu-cols-3,
  .mega-menu-cols-4 {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
    min-width: 0;
  }

  .mega-menu-column {
    width: 100%;
    min-width: 0;
  }

  .nav-mobile-footer {
    display: block;
  }

  .nav-mobile-footer .button {
    width: 100%;
  }
}

.hero {
  position: relative;
  /* background-image: url(/assets/bg3.jpg); */
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 0;
  margin: 0;
  padding: 90px 0 130px;
  overflow: hidden;


  background-image: url(/frontend/images/university-of-sydney.jpeg);
  background-size: 50% auto;
  background-repeat: no-repeat;
  background-position: right;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to right, color-mix(in srgb, var(--blue) 100%, transparent),  var(--blue)); */
  background: linear-gradient(to right,
      var(--blue) 0%,
      var(--blue) 55%,
      transparent 80%);
  z-index: 0;
}

/* Hero decorative vector background */
.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-vector {
  position: absolute;
  border-radius: 999px;
  opacity: 0.8;
  filter: blur(40px);
  will-change: transform, opacity;
}

.hero-vector--blur-one {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 30% 30%, var(--blue) 0%, transparent 60%);
  top: -80px;
  left: -40px;
  animation: hero-float-one 14s ease-in-out infinite alternate;
}

.hero-vector--blur-two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 70% 70%, var(--orange) 0%, rgba(255, 138, 31, 0) 60%);
  bottom: -120px;
  right: -40px;
  animation: hero-float-two 16s ease-in-out infinite alternate;
}

.hero-vector--ring {
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 15%, transparent);
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  filter: none;
  opacity: 0.55;
  animation: hero-ring-orbit 22s linear infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 32px;
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #e0e7ff;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 10px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
}

.search-card {
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: visible;
}

.select {
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2l4 4 4-4' stroke='%232b3ccf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.select-search {
  position: relative;
  width: 100%;
  z-index: 10;
}

.select-search.is-open {
  z-index: 1400;
}

.select-search__trigger {
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  min-height: 45px;
  font-size: 13px;
  text-align: left;
}

.select-search__trigger [data-label] {
  display: block;
  line-height: 1.3;
  max-height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-search__icon {
  font-size: 12px;
  color: var(--blue);
}

.select-search__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  z-index: 1400;
  padding: 10px;
  overflow: hidden;
}

.select-search__search {
  margin-bottom: 8px;
}

.select-search__input {
  width: 100%;
  padding: 3px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.select-search__options {
  display: grid;

  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

.select-search__option {
  width: 100%;
  text-align: left;
  padding: 2px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  font-size: 13px;
}

.select-search__option:hover,
.select-search__option:focus-visible {
  border-color: var(--border);
  background: color-mix(in srgb, var(--blue) 8%, var(--bg));
  outline: none;
}

.select-search__empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.search-card .button-primary {
  /* height: 48px; */
  gap: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 6px;
  padding: 4px 0;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 10%, var(--bg));
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
}

.pill-ghost {
  background: color-mix(in srgb, var(--muted) 5%, var(--bg));
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}

.pill-soft {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
}

.pill-light {
  background: #eef1f6;
  color: #1f2937;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid #e2e6ee;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

a.pill-light:hover {
  background: #e2e6ee;
  border-color: #d5dae3;
}

.popular-title {
  margin-top: 26px;
  font-weight: 700;
  color: #fff;
}

.hero-image {
  position: relative;
  display: grid;
  place-items: end;
}

.hero-figure {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border-radius: 24px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  /* min-height: 420px; */
  display: grid;
  place-items: end;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-ribbon {
  position: absolute;
  width: 320px;
  height: 18px;
  border-radius: 12px;
  opacity: 0.9;
  animation: ribbon-slide 6s ease-in-out infinite alternate;
}

.hero-ribbon--one {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 90%, transparent), color-mix(in srgb, var(--orange) 85%, transparent));
  transform: rotate(-26deg);
  bottom: 40px;
  right: -60px;
  animation-delay: 0.4s;
}

.hero-ribbon--two {
  background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 90%, transparent), color-mix(in srgb, var(--blue) 85%, transparent));
  transform: rotate(-18deg);
  bottom: 140px;
  right: -100px;
  animation-delay: 1s;
}

.hero-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 25%, transparent) 0%, transparent 65%);
  top: 40px;
  left: 20px;
  animation: orb-float 7s ease-in-out infinite;
}

.hero-figure img {
  width: 100%;
  max-width: 380px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.shape {
  position: absolute;
  inset: 20px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 50%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.25), transparent 45%);
  z-index: 0;
}

@keyframes ribbon-slide {
  0% {
    transform: translateY(0) rotate(-22deg);
  }

  50% {
    transform: translateY(-10px) rotate(-18deg);
  }

  100% {
    transform: translateY(6px) rotate(-24deg);
  }
}

@keyframes orb-float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-12px) scale(1.04);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
}

@keyframes hero-float-one {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.9;
  }

  50% {
    transform: translate3d(10px, 18px, 0);
    opacity: 1;
  }

  100% {
    transform: translate3d(-8px, -16px, 0);
    opacity: 0.85;
  }
}

@keyframes hero-float-two {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.9;
  }

  50% {
    transform: translate3d(-12px, -20px, 0);
    opacity: 1;
  }

  100% {
    transform: translate3d(10px, 12px, 0);
    opacity: 0.8;
  }
}

@keyframes hero-ring-orbit {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  50% {
    transform: translateY(-52%) rotate(180deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* ============================================
   Hero V2 - Clean & Iconic Design
   ============================================ */

.hero-v2 {
  position: relative;
  padding: 50px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero-v2-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-v2-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%,
      color-mix(in srgb, var(--blue) 8%, transparent),
      transparent 80%);
}

/* Badge - Full Width */
.hero-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 15%, transparent);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-dark);
  margin-bottom: 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-v2-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

/* Title - Full Width */
.hero-v2-title {
  font-size: clamp(40px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 0 0 35px;
  text-align: left;
}

.hero-v2-title-gradient {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Unique branding underline accent */
/* .hero-v2-title-gradient::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
} */

/* Grid Layout - Two Columns */
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 80px; */
  /* align-items: center; */
  /* margin-bottom: 64px; */
}

.hero-v2-content {
  max-width: 100%;
  text-align: left;
}

/* Subtitle */
.hero-v2-subtitle {
  font-size: 23px;
  line-height: 1.65;
  /* color: var(--muted); */
  margin: 0 0 32px;
  font-weight: 500;
}

.hero-v2-break {
  display: none;
}

/* Search */
.hero-v2-search {
  margin-bottom: 0;
}

.hero-v2-search-form {
  margin-bottom: 20px;
}

.hero-v2-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.hero-v2-search-input-wrapper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 10%, transparent), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-v2-search-icon {
  flex-shrink: 0;
  color: var(--muted);
  margin-right: 12px;
  transition: color 0.3s ease;
}

.hero-v2-search-input-wrapper:focus-within .hero-v2-search-icon {
  color: var(--blue);
}

.hero-v2-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  padding: 16px 0;
  outline: none;
  font-weight: 400;
}

.hero-v2-search-input::placeholder {
  color: var(--muted);
}

.hero-v2-search-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--blue) 25%, transparent);
}

.hero-v2-search-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--blue) 30%, transparent);
}

.hero-v2-search-button svg {
  transition: transform 0.3s ease;
}

.hero-v2-search-button:hover svg {
  transform: translateX(2px);
}

/* Quick Filters */
.hero-v2-quick-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* gap: 20px; */
  flex-wrap: wrap;
  padding-left: 4px;
}

.hero-v2-filter-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-right: 0;
}

.hero-v2-filter-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
  padding-right: 20px;
}

.hero-v2-quick-filters .hero-v2-filter-link:nth-child(2) {
  padding-left: 10px;
}

.hero-v2-filter-link:hover {
  border-bottom-color: var(--blue);
}

/* Stats - Full Width Bottom */
.hero-v2-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.hero-v2-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-v2-stat strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.hero-v2-stat span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-v2-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Visual Column */
.hero-v2-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: end;
}

.hero-v2-illustration {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  margin-top: -60px;
}

.hero-v2-graphic {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-v2-graphic svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.1));
}

/* Decorative Shapes */
.hero-v2-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
}

.hero-v2-shape-1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  opacity: 0.15;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero-v2-shape-2 {
  width: 60px;
  height: 60px;
  background: var(--orange);
  opacity: 0.12;
  bottom: 15%;
  left: 5%;
  animation-delay: 2s;
}

.hero-v2-shape-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--blue), transparent);
  opacity: 0.08;
  top: 40%;
  left: -10%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Responsive Design */
@media (max-width: 960px) {
  .hero-v2-badge {
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .hero-v2-title {
    text-align: center;
    margin-bottom: 40px;
  }

  .hero-v2-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }

  .hero-v2-content {
    text-align: center;
  }

  .hero-v2-quick-filters {
    justify-content: center;
    padding-left: 0;
  }

  .hero-v2-visual {
    order: -1;
  }

  .hero-v2-illustration {
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .hero-v2 {
    padding: 60px 0 80px;
  }

  .hero-v2-grid {
    gap: 32px;
    margin-bottom: 40px;
  }

  .hero-v2-badge {
    font-size: 12px;
    padding: 5px 14px 5px 10px;
    margin-bottom: 20px;
  }

  .hero-v2-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 32px;
  }

  .hero-v2-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-v2-break {
    display: none;
  }

  .hero-v2-illustration {
    max-width: 280px;
  }

  .hero-v2-stats {
    gap: 24px;
    padding: 24px 0 0;
  }

  .hero-v2-search-input-wrapper {
    padding: 4px;
    border-radius: 10px;
  }

  .hero-v2-search-icon {
    margin-left: 12px;
  }

  .hero-v2-search-input {
    font-size: 15px;
    padding: 12px 0;
  }

  .hero-v2-search-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-v2-quick-filters {
    gap: 12px;
    justify-content: center;
    padding-left: 0;
  }

  .hero-v2-filter-label {
    width: 100%;
    text-align: center;
    font-size: 13px;
  }

  .hero-v2-filter-link {
    font-size: 13px;
  }

  .hero-v2-stats {
    gap: 24px;
  }

  .hero-v2-stat strong {
    font-size: 20px;
  }

  .hero-v2-stat span {
    font-size: 12px;
  }

  .hero-v2-stat-divider {
    height: 24px;
  }
}

.metrics {
  position: relative;
  margin-top: -48px;
  margin-bottom: 36px;
  z-index: 0;
}

.metrics .card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 8px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 31, 0.1);
  color: var(--orange);
  font-weight: 800;
}

.metric strong {
  display: block;
  font-size: 18px;
}

.section {
  padding: 80px 0;
}

.section-bg-white {
  background: var(--card);
}

.section-bg-gray {
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f7ff 50%, #fafbff 100%);
}

/* Gradient Background Classes */
.section-bg-gradient-blue {
  background: color-mix(in srgb, var(--bg) 95%, var(--blue) 5%);
}

.section-bg-gradient-purple {
  background: color-mix(in srgb, var(--bg) 95%, var(--blue) 5%);
}

.section-bg-gradient-orange {
  background: color-mix(in srgb, var(--bg) 97%, var(--orange) 3%);
}

.section-bg-gradient-blue-purple {
  background: color-mix(in srgb, var(--bg) 95%, var(--blue) 5%);
}

.section-bg-gradient-orange-blue {
  background: color-mix(in srgb, var(--bg) 96%, var(--orange) 2%);
}

.section h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--text);
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.homepage-universities-section {
  padding-top: 24px !important;
}

.link-small {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.2s ease;
}

.link-small:hover {
  opacity: 0.8;
}

.section-muted {
  background: #f7f8fc;
}

.section-shell {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 20px;
}

.card {
  background: var(--card);
  /* border: 1px solid var(--card-border); */
  box-shadow: 0 2px 2px 0 #d8d9db26;
  border-radius: 8px;
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  gap: 10px;
  border-bottom: 1px solid #f1f3f7;
}

.icon-pill {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--text);
}

.icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}

.country-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-flag {
  font-size: 20px;
  line-height: 1;
  font-family: "Noto Color Emoji", sans-serif;
}

.country-name {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

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

.uni-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.uni-card {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.uni-card:hover {
  background: #e9ecef;
}

.uni-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.uni-list li {
  padding: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
}

.uni-list li:hover {
  background: #e9ecef;
}

.uni-list-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: max-content;
}

.uni-logo-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #ffffff; */
  /* border-radius: 4px; */
  /* padding: 4px; */
}

.uni-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.uni-list-link>div:not(.uni-logo-wrapper) {
  flex: 1;
}

.uni-name {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

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

.scholar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.scholar-card {
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e1e1e8;
}

.scholarship-card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.scholarship-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.scholarship-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scholarship-card--featured {
  display: flex !important;
  flex-direction: column;
}

.scholarship-card--featured .scholarship-card-image {
  height: 220px;
  padding: 0;
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--border) 45%, transparent);
}

.scholarship-card--featured .scholarship-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scholarship-card--featured .scholarship-card-body {
  flex: 1;
}

.scholar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 15%, transparent);
}

.scholar-country {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scholar-country .country-flag {
  font-size: 20px;
}

.scholar-country .country-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.scholar-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(63, 81, 255, 0.2);
}

.scholar-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.scholar-logo-wrapper {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(63, 81, 255, 0.15);
}

.scholar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scholar-info {
  flex: 1;
  min-width: 0;
}

.scholar-title {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px 0;
  color: var(--text);
  line-height: 1.4;
}

.scholar-provider {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.scholar-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid #f1f3f7;
  border-bottom: 1px solid #f1f3f7;
}

.scholar-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
  /* font-weight: 600; */
  display: block;
}

.detail-value {
  font-weight: 600;
  /* color: var(--text); */
  font-size: 15px;


}

.stats-grid-clean {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.stat-item-clean {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.stat-icon-clean {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-clean svg {
  width: 24px;
  height: 24px;
  stroke: #374151;
  stroke-width: 1.5;
}

.stat-value-clean {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.stat-label-clean {
  font-size: 0.8125rem;
  color: #000000;
  font-weight: 400;
}

.scholar-deadline {
  color: var(--orange);
}

/* Program Cards - Visually Different but Consistent */
.program-grid {
  /* Slick slider will handle the layout */
}

.program-card {
  border-radius: 12px;
  /* border: 1px solid var(--border); */
  box-shadow: 0 2px 2px 0 #d8d9db26;
  background: #ffffff;
  transition: all 0.3s ease;
}

.program-card:hover {
  box-shadow: 0 4px 16px rgba(63, 81, 255, 0.08);
  border-color: rgba(63, 81, 255, 0.3);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.program-country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.program-type {
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--blue), #6a7bff);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.program-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.program-logo-wrapper {
  width: 48px;
  /* height: 48px; */
  /* border-radius: 8px; */
  /* border: 1px solid var(--border); */
  /* background: #fff; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 8px; */
  flex-shrink: 0;
}

.program-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.program-info {
  flex: 1;
  min-width: 0;
}

.program-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.program-university {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.program-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(63, 81, 255, 0.1);
  border-bottom: 1px solid rgba(63, 81, 255, 0.1);
}

.program-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.program-detail-row .detail-label {
  color: var(--muted);
  font-weight: 500;
}

.program-detail-row .detail-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.program-deadline {
  color: var(--orange);
  font-weight: 700;
}

.program-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.program-meta .pill-light {
  font-size: 12px;
  padding: 4px 10px;
}

.scholar-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 97%, var(--muted) 3%);
  border: 1px solid var(--border);
}

.meta-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.meta-row>span:last-child {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.link-arrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease, color 0.2s ease;
}

.link-arrow:hover {
  gap: 12px;
  color: var(--blue);
}

.link-arrow::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 640px) {
  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .destination-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .destination-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.destination-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.destination-image {
  width: 100%;
  height: 180px;
  background: color-mix(in srgb, var(--bg) 90%, var(--blue) 10%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.destination-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

.destination-body {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.destination-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}

.section-light {
  background: #fff;
  border-radius: 24px;
  padding: 18px 18px 24px;
  border: 1px solid var(--border);
}

/* 
.site-footer {
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 70px 0 32px;
} */
/* 
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-stack {
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
  line-height: 1.5;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 14px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-direction: row;
}

.footer-legal a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--blue);
} */

/* CTA Section */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: var(--blue);
  border-radius: 28px;
  padding: 70px 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 138, 31, 0.1), transparent 50%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.section-cta {
  overflow-x: clip;
}

.cta-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.2;
}

.cta-description {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 32px;
  opacity: 0.95;
  max-width: 560px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.button-outline-white {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-outline-white:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cta-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-stat {
  display: flex;
  flex-direction: column;
}

.cta-stat strong {
  font-size: 32px;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.cta-stat span {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.cta-visual {
  position: relative;
  width: 300px;
  height: 300px;
  z-index: 2;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Section Header Center */
.section-header-center {
  /* text-align: center; */
  margin-bottom: 56px;
}

.section-header-center h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--text);
}

.section-header-center .section-subtitle {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.step-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #5a6dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.step-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.3;
}

.step-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 80px;
  font-weight: 800;
  color: rgba(63, 81, 255, 0.08);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-rating {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.author-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.author-info {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Partners Section */
.partners-section {
  background: #fff;
  padding: 80px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

/* .partners-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
} */

/* .partners-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6a7bff 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
} */

.partners-section .section-header-center {
  position: relative;
  z-index: 1;
}

.partners-section h2 {
  color: var(--text);
}

.partners-section .section-subtitle {
  color: var(--text);
}

.partners-slider {
  margin-top: 48px;
  padding: 0 20px;
}

.partner-slide {
  padding: 0 12px;
}

.partner-logo-link {
  display: block;
  text-decoration: none;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  /* padding: 24px; */
  background: #ffffff;
  /* border-radius: 16px; */
  /* border: 1px solid #e6e8f0; */
  transition: all 0.3s ease;
  /* box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); */
}

.partner-logo:hover,
.partner-logo-link:hover .partner-logo {
  border-color: rgba(63, 81, 255, 0.4);
  box-shadow: 0 8px 24px rgba(63, 81, 255, 0.12);
}

.partner-logo img {
  /* max-width: 130px; */
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
}

.partner-placeholder {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  /* text-align: center; */
  line-height: 1.4;
}

/* .partners-slider .slick-prev:before,
.partners-slider .slick-next:before {
  filter: brightness(0) invert(1);
} */

/* .partners-slider .slick-prev:hover:before,
.partners-slider .slick-next:hover:before {
  opacity: 0.8;
} */

/* CTA Section */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-vector {
  position: absolute;
  border-radius: 999px;
  opacity: 0.15;
}

.cta-vector--blur-one {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  filter: blur(80px);
}

.cta-vector--blur-two {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6a7bff 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  filter: blur(100px);
}

.cta-vector--ring {
  width: 600px;
  height: 600px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(15deg);
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-content {
  position: relative;
  text-align: left;
  color: #fff;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #fff;
}

.cta-content p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.cta-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
}

.cta-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Slick Slider Custom Styles */
.slick-slider {
  position: relative;
  padding: 0;
}

.slick-slide {
  margin: 0 10px;
}

.slick-list {
  margin: 0 -10px !important;
}

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  padding: 0;
}

.slick-prev:hover,
.slick-next:hover {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(calc(-50% - 2px));
}

.slick-prev {
  left: -70px;
}

.slick-next {
  right: -70px;
}

@media (max-width: 720px) {
  .slick-prev {
    left: -15px;
  }
  .slick-next {
    right: -15px;
  }
  
  /* Make arrows slightly smaller on mobile to reduce card overlap */
  .slick-prev,
  .slick-next {
    width: 36px;
    height: 36px;
  }
  .slick-prev:before,
  .slick-next:before {
    width: 20px;
    height: 20px;
  }
}

.slick-prev:before,
.slick-next:before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  font-size: 0;
  color: transparent;
}

.slick-prev:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.slick-next:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.slick-prev:hover:before,
.slick-next:hover:before {
  opacity: 0.75;
}

/* Dots — CSS-only circles (no slick icon font needed) */
.slick-dots {
  list-style: none;
  display: flex !important;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 24px 0 0 0;
}

.slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.slick-dots li button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.25;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.slick-dots li button:before {
  display: none;
}

.slick-dots li.slick-active button {
  opacity: 1;
  width: 20px;
  border-radius: 4px;
}


margin: 0 3px;
}

/* Slider outer wrapper — gives arrows space without affecting card alignment */
.slider-outer {
  position: relative;
  padding: 0 70px;
}

@media (max-width: 720px) {
  .slider-outer {
    padding: 0;
  }
}

/* Make sure cards maintain proper width in slider */
.uni-grid .slick-slide>div,
.scholar-grid .slick-slide>div,
.program-grid .slick-slide>div {
  display: flex;
  height: 100%;
}

/* For grouped layout, ensure uni-column fills the slide */
.uni-grid[data-grouped="true"] .slick-slide {
  height: auto;
}

.uni-grid[data-grouped="true"] .slick-slide .uni-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* For non-grouped layout */
.uni-grid[data-grouped="false"] .uni-card,
.scholar-grid .scholar-card,
.program-grid .program-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.uni-grid .slick-track,
.scholar-grid .slick-track,
.program-grid .slick-track {
  display: flex;
  align-items: stretch;
}

.uni-grid .slick-slide,
.scholar-grid .slick-slide,
.program-grid .slick-slide {
  height: auto;
  display: flex;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Tablet and smaller screens - adjust mega menu */
@media (max-width: 1200px) {
  .mega-menu {
    left: auto;
    right: 0;
    transform: none;
    max-width: 600px;
  }

  .mega-menu-content {
    gap: 24px;
    padding: 20px;
  }

  .mega-menu-list-two-col {
    columns: 1;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: flex;
  }

  .dropdown-menu {
    display: none;
  }

  .nav-item-dropdown.is-open .dropdown-menu {
    display: block;
  }

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

  .hero {
    background-size: 78% auto;
    background-position: right bottom;
  }

  .search-card {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .hero {
    /* padding: 52px 0 44px; */
    background-size: 100% auto;
    background-position: right bottom;
  }

  .hero::before {
    background: linear-gradient(to bottom,
        var(--blue) 0%,
        var(--blue) 55%,
        transparent 80%);
  }

  .hero-grid {
    gap: 20px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    margin-bottom: 14px;
  }

  .hero p {
    margin-bottom: 24px;
    line-height: 1.5;
  }

  .search-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  .metrics {
    margin-top: -110px;
  }

  .metrics .card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .metric {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .metric>div {
    display: grid;
    gap: 2px;
  }

  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 17px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    border-radius: 20px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-description {
    font-size: 15px;
  }

  .cta-visual {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
    margin-bottom: 32px;
  }

  .cta-buttons .button {
    width: 100%;
  }

  .cta-stats {
    gap: 24px;
    padding-top: 24px;
  }

  .section-header-center {
    margin-bottom: 40px;
  }

  .section-header-center h2 {
    font-size: 28px;
  }

  .section-header-center .section-subtitle {
    font-size: 15px;
  }

  .partners-section {
    padding: 60px 0;
  }

  .partner-logo {
    min-height: 80px;
    padding: 20px;
  }

  .partner-logo img {
    max-width: 100px;
    max-height: 40px;
  }

  .cta-section {
    padding: 70px 0;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-image {
    order: -1;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta-actions .button {
    width: 100%;
  }

  .cta-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .cta-stat strong {
    font-size: 24px;
  }

  .cta-stat span {
    font-size: 13px;
  }

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

  .program-card {
    border-radius: 8px;
  }

  .uni-grid[data-grouped="true"] .slick-slide .uni-column,
  .uni-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .uni-card {
    border-radius: 8px !important;
    margin-bottom: 12px !important;
  }

  .uni-column .uni-card {
    margin-bottom: 0 !important;
  }

  .slick-slide {
    margin-bottom: 12px !important;
  }
}

/* ==============================
   Search Page
   ============================== */

.search-page {
  padding: 40px 0 80px;
  min-height: calc(100vh - 200px);
}

/* Mobile Filter Button - Hidden on Desktop */
.mobile-filter-btn {
  display: none;
  width: 100%;
  margin-bottom: 24px;
  gap: 8px;
  justify-content: center;
}

.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-overlay.active {
  opacity: 1;
}

.filter-apply-btn-wrapper {
  display: none;
  position: sticky;
  bottom: 0;
  padding: 16px 24px;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.filter-apply-btn {
  width: 100%;
}

/* Search Layout - 3/12 + 9/12 Grid */
.search-layout {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 32px;
  align-items: start;
}

/* ==============================
   Search Filters Sidebar
   ============================== */

.search-filters {
  /* position: sticky; */
  /* top: 100px; */
}

.filter-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.filter-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.filter-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.filter-close:hover {
  background-color: var(--bg);
}

/* Filter Card */
.filter-card {
  padding: 0;
  overflow: hidden;
}

.filter-section {
  border-bottom: 1px solid var(--border);
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.filter-section-header:hover {
  background-color: var(--bg);
}

.filter-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.filter-section-title svg {
  color: var(--blue);
}

.filter-chevron {
  color: var(--muted);
  transition: transform 0.3s ease;
}

.filter-section-header[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

.filter-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-section-header[aria-expanded="true"]+.filter-section-content {
  max-height: 500px;
}

/* Filter Search Input */
.filter-search {
  position: relative;
  padding: 0 16px 12px;
}

.filter-search svg {
  position: absolute;
  left: 28px;
  top: 40%;
  transform: translateY(-50%);
  color: var(--muted);
}

.filter-search-input {
  width: 100%;
  padding: 8px 10px 4px 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: "Manrope", sans-serif;
  transition: border-color 0.2s;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--blue);
}

/* Filter Options */
.filter-options {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--blue);
}

.filter-checkbox:hover {
  color: var(--blue);
}

/* Filter Actions */
.filter-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.filter-actions .button {
  width: 100%;
}

/* ==============================
   Search Results Area
   ============================== */

.search-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Search Input */
.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-input {
  width: 100%;
  padding: 12px 130px 12px 44px;
  /* border: 2px solid var(--border); */
  border-radius: 8px;
  font-size: 15px;
  font-family: "Manrope", sans-serif;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 2px 0 #d8d9db26;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 81, 255, 0.1);
}

.search-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.search-button:hover {
  background: linear-gradient(135deg, #ffaa45, #ff8f37);
  transform: translateY(-50%) translateY(-1px);
}

.search-button svg {
  flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-item {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: var(--blue);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.breadcrumbs svg {
  color: var(--muted);
}

/* Results Header */
.results-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.results-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.results-count svg {
  color: var(--blue);
}

.results-count strong {
  color: var(--text);
  font-weight: 600;
}

/* Search Tabs */
.search-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  font-family: "Manrope", sans-serif;
  color: var(--muted);
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-button svg {
  width: 18px;
  height: 18px;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.tab-active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--orange);
}

/* Results Grid */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-grid--scholarships {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.scholarship-card-image {
  width: 100%;
  height: 190px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
}

.scholarship-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==============================
   Horizontal Program Card
   ============================== */

.program-card-horizontal {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.program-card-horizontal:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.program-h-main {
  display: flex;
  flex: 1;
}

.program-h-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.program-h-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.program-h-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.program-h-header .program-type {
  flex-shrink: 0;
  align-self: flex-start;
}

.program-h-university-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-h-logo-wrapper {
  flex-shrink: 0;
  width: 90px;
  height: auto;
  background: #fff;
  /* border-radius: 6px; */
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 1px solid var(--border); */
}

.program-h-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-h-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.program-h-university {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.program-h-country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.program-h-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.program-h-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.program-h-detail svg {
  color: var(--blue);
  flex-shrink: 0;
}

.program-h-detail .detail-label {
  color: var(--muted);
}

.program-h-detail .detail-value {
  color: var(--text);
  font-weight: 500;
}

.program-h-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.program-h-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: start;
}

.program-h-actions .button-primary {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
}


/* ==============================
   Responsive - Tablet
   ============================== */

@media (max-width: 960px) {
  .search-layout {
    grid-template-columns: 4fr 8fr;
    gap: 24px;
  }

  .program-h-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .program-h-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ==============================
   Responsive - Mobile
   ============================== */

@media (max-width: 720px) {
  .search-page {
    padding: 24px 0 60px;
  }

  /* Show Mobile Filter Button */
  .mobile-filter-btn {
    display: flex;
  }

  .filter-overlay {
    display: block;
    pointer-events: none;
    z-index: 1290;
  }

  .filter-overlay.active {
    pointer-events: auto;
  }

  .filter-apply-btn-wrapper {
    display: block;
  }

  /* Single Column Layout */
  .search-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Mobile Filter Modal */
  .search-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1300;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .search-filters.active {
    transform: translateX(0);
  }

  .filter-header {
    display: flex;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  .filter-close {
    color: var(--text);
    padding: 8px;
  }

  /* Search Input */
  .search-input {
    padding: 11px 110px 11px 42px;
    font-size: 14px;
  }

  .search-button {
    padding: 7px 12px;
    font-size: 13px;
    gap: 4px;
  }

  .search-button svg {
    width: 16px;
    height: 16px;
  }

  /* Results Header */
  .results-title {
    font-size: 20px;
  }

  .results-count {
    font-size: 14px;
  }

  /* Search Tabs */
  .search-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 2px;
    scrollbar-width: none;
  }

  .search-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
    padding: 0 6px 10px;
  }

  .results-grid--scholarships {
    grid-template-columns: 1fr;
  }

  .scholarship-card-image {
    height: 170px;
    padding: 0;
  }

  .scholarship-card--featured .scholarship-card-image {
    height: 190px;
  }

  /* Horizontal Card - Stack on Mobile */
  .program-card-horizontal {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .program-h-title {
    font-size: 15px;
  }

  .program-h-logo-wrapper {
    width: 40px;
    height: 40px;
  }

  .program-h-details {
    grid-template-columns: 1fr;
  }

  .program-h-actions {
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }

  .program-h-actions .button {
    flex: 1;
  }
}

/* ==============================
   Load More Button
   ============================== */

.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.load-more-icon {
  display: none;
  transition: transform 0.3s ease;
}

.load-more-btn.is-loading .load-more-icon {
  display: inline-block;
}

.load-more-btn.is-loading .load-more-icon.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==============================
   No Results State
   ============================== */

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border-radius: 12px;
  /* border: 1px solid var(--border); */
}

.no-results h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.no-results p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ==============================
   Filter Empty State
   ============================== */

.filter-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ==============================
   University Card Horizontal
   ============================== */

a.university-card-horizontal {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.university-card-horizontal {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.university-card-horizontal:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.uni-h-main {
  display: flex;
  flex: 1;
}

.uni-h-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uni-h-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.uni-h-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.uni-h-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 20px;
}

.uni-h-title a:hover {
  color: var(--blue);
}

.uni-h-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uni-h-logo-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: auto;

  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;

}

.uni-h-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-h-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.uni-h-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.uni-h-favorite {
  margin-left: auto;
}

.uni-h-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.uni-h-country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.uni-h-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.uni-h-detail {
  /* display: flex; */
  /* align-items: center; */
  /* gap: 6px; */
  font-size: 13px;
}

.uni-h-detail svg {
  color: var(--blue);
  flex-shrink: 0;
}

.uni-h-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.uni-h-actions {
  display: flex;
  align-items: start;
  gap: 10px;
  padding-left: 62px;
}

/* ==============================
   University Card V1 - Icon Enhanced
   ============================== */

.uni-card-v1 {
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.uni-card-v1:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.uni-v1-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.uni-v1-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uni-v1-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-v1-header-content {
  flex: 1;
  min-width: 0;
}

.uni-v1-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.uni-v1-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.uni-v1-title a:hover {
  color: var(--blue);
}

.uni-v1-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.uni-v1-rating svg {
  color: #ffa500;
  fill: #ffa500;
  flex-shrink: 0;
}

.uni-v1-rating .rating-count {
  color: var(--muted);
  font-weight: 500;
}

.uni-v1-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.uni-v1-stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f8f9fb;
  border-radius: 8px;
}

.uni-v1-stat svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.uni-v1-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.uni-v1-stat .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.uni-v1-stat .stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.uni-v1-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.uni-v1-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}

.uni-v1-count:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 3%, transparent);
}

.uni-v1-count svg {
  color: var(--blue);
}

.uni-v1-count-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uni-v1-count .count-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.uni-v1-count .count-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.uni-v1-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.uni-v1-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s;
}

.uni-v1-link:hover {
  gap: 8px;
}

.uni-v1-link svg {
  flex-shrink: 0;
}

.uni-v1-badge {
  display: inline-flex;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================
   University Card V2 - Sidebar Layout
   ============================== */

.uni-card-v2 {
  display: flex;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.uni-card-v2:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.uni-v2-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uni-v2-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uni-v2-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uni-v2-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-v2-header-text {
  flex: 1;
  min-width: 0;
}

.uni-v2-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.uni-v2-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.uni-v2-title a:hover {
  color: var(--blue);
}

.uni-v2-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.uni-v2-rating svg {
  color: #ffa500;
  fill: #ffa500;
  flex-shrink: 0;
}

.uni-v2-rating .count {
  color: var(--muted);
  font-weight: 500;
}

.uni-v2-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uni-v2-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uni-v2-info-item .info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.uni-v2-info-item .info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.uni-v2-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  margin-top: auto;
}

.uni-v2-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.uni-v2-sidebar {
  width: 180px;
  padding: 20px 16px;
  background: #f8f9fb;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uni-v2-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.uni-v2-stat-box:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(49, 142, 189, 0.1);
}

.uni-v2-stat-box svg {
  color: var(--blue);
  flex-shrink: 0;
}

.uni-v2-stat-box .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.uni-v2-stat-box .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

/* ==============================
   University Card V3 - Compact Horizontal
   ============================== */

.uni-card-v3 {
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.uni-card-v3:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.uni-v3-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uni-v3-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uni-v3-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-v3-content {
  flex: 1;
  min-width: 0;
}

.uni-v3-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.uni-v3-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.uni-v3-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.uni-v3-title a:hover {
  color: var(--blue);
}

.uni-v3-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.uni-v3-rating svg {
  color: #ffa500;
  fill: #ffa500;
  flex-shrink: 0;
}

.uni-v3-rating .count {
  color: var(--muted);
  font-weight: 500;
}

.uni-v3-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.uni-v3-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.uni-v3-meta .meta-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

.uni-v3-meta .meta-divider {
  color: var(--border);
  font-weight: 700;
}

.uni-v3-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.uni-v3-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}

.uni-v3-stat-badge:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 5%, transparent);
}

.uni-v3-stat-badge svg {
  color: var(--blue);
  flex-shrink: 0;
}

.uni-v3-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.uni-v3-link:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  gap: 8px;
}

.uni-v3-link svg {
  flex-shrink: 0;
}

/* Responsive adjustments for all variants */
@media (max-width: 768px) {

  .uni-v1-stats,
  .uni-v1-counts {
    grid-template-columns: 1fr;
  }

  .uni-card-v2 {
    flex-direction: column;
  }

  .uni-v2-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
  }

  .uni-v2-stat-box {
    flex: 1;
    min-width: calc(50% - 7px);
  }

  .uni-v3-main {
    flex-wrap: wrap;
  }

  .uni-v3-stats {
    width: 100%;
  }

  .uni-v3-link {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   UNIVERSITY DETAIL PAGE STYLES
   =================================== */

/* University Page - Compact Sections */
.uni-page .section {
  padding: 50px 0;
}

/* University Hero Section */
.uni-hero {
  background: var(--blue);
  border-bottom: 1px solid #e8ecf4;
  padding: 32px 0;
}

.uni-hero-background {
  display: none;
}

.uni-hero-header {
  margin-bottom: 20px;
}

.uni-hero-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: #fff;
}

.uni-hero-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.uni-hero-logo {
  display: flex;
  width: 100px;
  height: 100px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.uni-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-hero-info {
  flex: 1;
}

.uni-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.uni-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.uni-meta-item svg {
  color: rgba(255, 255, 255, 0.9);
}

.uni-type-badge {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(10px);
}

.uni-hero-motto {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
  font-style: italic;
  font-weight: 400;
}

.uni-hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  /* color: #fff; */
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.button-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Quick Stats Bar */
.uni-stats {
  margin-top: 32px;
  position: relative;
}

.uni-stats .card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.uni-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid #f1f3f7;
}

.uni-stat:last-child {
  border-right: none;
}

.uni-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.uni-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.uni-stat .muted {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.uni-h-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-value {
  font-size: 12px;
}

.rating-count {
  font-size: 12px;
}

/* Overview & About Section */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.overview-main h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

.overview-main h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

.why-study-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-study-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.why-study-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card {
  position: sticky;
  top: 90px;
}

.info-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f3f7;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.info-value a {
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-value a:hover {
  text-decoration: underline;
}

/* Admission Requirements Section */
.admission-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid #f1f3f7;
}

.admission-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.admission-tab:hover {
  color: var(--text);
  background: #f9fafb;
}

.admission-tab-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.admission-panel {
  display: none;
}

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

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.requirement-card {
  padding: 18px;
}

.requirement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.requirement-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.requirement-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.deadlines-section {
  margin-top: 32px;
}

.deadlines-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}

.deadlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.deadline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.deadline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #eef4ff;
  color: var(--blue);
  border-radius: 10px;
  flex-shrink: 0;
}

.deadline-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text);
}

.deadline-date {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Tuition & Fees Section */
.tuition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.tuition-card {
  padding: 28px;
}

.tuition-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f3f7;
}

.tuition-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tuition-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.tuition-row span {
  color: var(--muted);
}

.tuition-row strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.tuition-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #eef4ff;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  margin-bottom: 48px;
}

.tuition-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tuition-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.living-costs-section {
  margin-top: 48px;
}

.living-costs-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
}

.costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cost-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.cost-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cost-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.total-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eef4ff, #f0f9ff);
  border: 2px solid #d1e3ff;
  border-radius: 12px;
  margin-top: 20px;
}

.total-cost span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.total-cost strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

/* Rankings & Recognition Section */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ranking-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
}

.ranking-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6a7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(63, 81, 255, 0.2);
}

.ranking-number {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.ranking-source {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.ranking-year {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Campus & Facilities Section */
.campus-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.campus-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.campus-highlight svg {
  flex-shrink: 0;
  color: var(--blue);
}

.campus-highlight strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.campus-highlight span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.facility-item svg {
  flex-shrink: 0;
}

/* Student Life Section */
.student-life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.life-card {
  padding: 28px;
  text-align: center;
}

.life-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.life-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.life-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Location & Contact Section */
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, #f5f8fe 0%, #eef4ff 100%);
  border: 2px dashed #d1e3ff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.map-placeholder svg {
  color: var(--blue);
  opacity: 0.5;
  margin-bottom: 16px;
}

.map-placeholder p {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 8px;
  max-width: 300px;
}

.map-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.contact-card {
  padding: 28px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list svg {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
}

.contact-list>li>div {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.contact-value a {
  color: var(--blue);
  text-decoration: underline;
}

/* Similar Universities Section */
.similar-unis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.similar-uni-card {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.similar-uni-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
}

.similar-uni-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.similar-uni-location {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive Adjustments for University Page */
@media (max-width: 960px) {
  .uni-hero {
    padding: 24px 0;
  }

  .uni-hero-header {
    margin-bottom: 16px;
  }

  .uni-hero-title {
    font-size: 24px;
  }

  .uni-hero-content {
    gap: 24px;
    flex-wrap: wrap;
  }

  .uni-hero-logo {
    width: 90px;
    height: 90px;
    padding: 12px;
  }

  .uni-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .uni-hero-actions .button {
    flex: 1;
  }

  .uni-stats .card {
    grid-template-columns: repeat(2, 1fr);
  }

  .uni-stat:nth-child(2) {
    border-right: none;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-card {
    position: static;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tuition-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .map-placeholder {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .uni-hero {
    padding: 20px 0;
  }

  .uni-hero-header {
    margin-bottom: 14px;
  }

  .uni-hero-title {
    font-size: 22px;
  }

  .uni-hero-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .uni-hero-logo {
    width: 80px;
    height: 80px;
    padding: 12px;
  }

  .uni-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .uni-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .uni-hero-actions .button {
    width: 100%;
  }

  .uni-stats .card {
    grid-template-columns: 1fr;
  }

  .uni-stat {
    border-right: none;
    border-bottom: 1px solid #f1f3f7;
  }

  .uni-stat:last-child {
    border-bottom: none;
  }

  .overview-main h2 {
    font-size: 26px;
  }

  .admission-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admission-tab {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 18px;
  }

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

  .costs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .total-cost {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .campus-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .student-life-grid {
    grid-template-columns: 1fr;
  }

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

  .similar-unis-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .uni-page .section {
    padding: 40px 0;
  }
}

/* ============================================
   Theme Switcher Component Styles
   ============================================ */

.theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-switcher-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.theme-switcher-trigger:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border-color: var(--blue);
}

.theme-switcher-trigger:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.theme-color-preview {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-switcher-trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  background-image: url('/frontend/svgs/arrow-menu.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: 2px;
}

.theme-switcher.is-open .theme-switcher-trigger::after {
  transform: rotate(180deg);
  opacity: 1;
}

.theme-switcher-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, margin-top 0.2s ease;
  z-index: 100;
  min-width: 240px;
  overflow: hidden;
}

.theme-switcher.is-open .theme-switcher-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-top: 4px;
}

.theme-switcher-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-options {
  list-style: none;
  padding: 8px;
  margin: 0;
}

.theme-option {
  margin-bottom: 0;
}

.theme-option-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s ease;
  text-align: left;
}

.theme-option-button:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}

.theme-option-button:focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.theme-option-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-option-label {
  flex: 1;
}

.theme-option-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0;
  color: var(--blue);
  font-weight: 700;
}

.theme-option-button[aria-current="true"] .theme-option-check {
  opacity: 1;
}

/* Smooth theme transition - apply to elements using the variables */
@media (prefers-reduced-motion: no-preference) {

  body,
  section,
  div,
  button,
  a,
  nav,
  header,
  footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
}

/* Mobile responsive styles */
@media (max-width: 960px) {
  .theme-switcher-trigger {
    padding: 8px;
    border-radius: 8px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }

  .theme-switcher-trigger span {
    display: none;
  }

  .theme-switcher-trigger::after {
    display: none;
  }

  .theme-color-preview {
    gap: 3px;
  }

  .theme-color-dot {
    width: 10px;
    height: 10px;
  }

  .theme-switcher-menu {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .theme-switcher.is-open .theme-switcher-menu {
    margin-top: 0;
  }

  .theme-option-button {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 56px;
  }

  .theme-swatch {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 720px) {
  .theme-switcher-menu {
    border-radius: 16px 16px 0 0;
  }
}


.text-center {
  text-align: center;
}

/* ====================================
   University Page Tab Navigation
   ==================================== */

/* Tab Navigation Section */
.uni-tabs-section {
  background: var(--bg);
  padding-bottom: 4rem;
}

.tab-navigation-wrapper {
  position: relative;
  /* top: 60px;  */
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-navigation {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 8px 0rem;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.tab-active {
  border-bottom-color: var(--orange);
  font-weight: 600;
}

.tab-content {
  max-width: 1200px;
  margin: 0 auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Program Filter Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.filter-dropdown {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
}

.button-show-more {
  display: block;
  margin: 2rem auto 0;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.button-show-more:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Ranking Card Styles */
.ranking-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ranking-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.ranking-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--border);
  color: var(--muted);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ranking-position {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ranking-rank {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.ranking-trend {
  display: flex;
  align-items: center;
}

/* Empty State for Reviews */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  stroke: var(--muted);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

/* Compact Key Statistics Layout - Minimal Clean Design */
.key-stats-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .key-stats-compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.stat-icon-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.25rem;
}

.stat-icon-compact svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  stroke-width: 1.5;
}

.stat-info-compact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-value-compact {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-label-compact {
  font-size: 0.813rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

#statistics-panel h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

#statistics-panel h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
}

#statistics-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  /* padding-left: 1rem; */
}

/* 
#statistics-panel h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--blue), var(--orange));
  border-radius: 2px;
} */

#statistics-panel h3:first-of-type {
  margin-top: 0;
}

#statistics-panel p {
  color: #000000;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .tab-button {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .filter-dropdown {
    width: 100%;
  }

  .ranking-rank {
    font-size: 2rem;
  }

  .tab-navigation-wrapper {
    top: 50px;
    /* Adjusted for smaller header on mobile */
  }

  .key-stats-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  .stat-value-compact {
    font-size: 1.25rem;
  }

  .stat-label-compact {
    font-size: 0.75rem;
  }

  .stat-icon-compact svg {
    width: 20px;
    height: 20px;
  }

  #statistics-panel h2 {
    font-size: 1.5rem;
  }

  #statistics-panel h3 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
  }
}

[data-clickable] {
  cursor: pointer;
}

.text-link {
  color: #125bc9;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

/* ============================================
   Countries Slider Section
   ============================================ */

.countries-section {
  padding-bottom: 40px;
}

.countries-slider-shell {
  position: relative;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.countries-section-header {
  position: relative;
  align-items: center;
  min-height: 44px;
  padding-right: 112px;
}

.countries-slider-desktop-controls {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.countries-slider-desktop-controls .slick-prev,
.countries-slider-desktop-controls .slick-next,
.countries-slider-mobile-controls .slick-prev,
.countries-slider-mobile-controls .slick-next {
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.countries-slider-desktop-controls .slick-prev,
.countries-slider-desktop-controls .slick-next {
  position: static;
  transform: none;
}

.countries-slider-desktop-controls .slick-prev:hover,
.countries-slider-desktop-controls .slick-next:hover,
.countries-slider-mobile-controls .slick-prev:hover,
.countries-slider-mobile-controls .slick-next:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.countries-slider-desktop-controls .slick-prev::before,
.countries-slider-desktop-controls .slick-next::before,
.countries-slider-mobile-controls .slick-prev::before,
.countries-slider-mobile-controls .slick-next::before {
  width: 20px;
  height: 20px;
}

.countries-slider-mobile-controls .slick-prev:hover,
.countries-slider-mobile-controls .slick-next:hover {
  transform: translateY(-50%);
}

.countries-slider-mobile-controls {
  display: none;
}

.countries-slider {
  margin: 0;
  overflow: visible;
}

.countries-slider .slick-list {
  margin: 0 -1px !important;
}

.countries-slider .slick-slide {
  margin: 0 1px;
  padding: 0;
}

.countries-slider .slick-prev {
  z-index: 10;
}

.countries-slider .slick-next {
  z-index: 10;
}

.countries-slider .slick-prev:before,
.countries-slider .slick-next:before {
  filter: none;
}

.country-slide {
  display: block !important;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.country-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.country-slide:hover img {
  transform: scale(1.04);
}

.country-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.country-slide-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  z-index: 1;
  pointer-events: none;
}

.countries-section-footer {
  text-align: center;
  padding-top: 32px;
}

@media (max-width: 720px) {
  .countries-slider-shell {
    width: calc(100% - 32px);
  }

  .countries-slider-desktop-controls {
    display: none;
  }

  .countries-section-header {
    padding-right: 0;
  }

  .countries-slider-mobile-controls {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    z-index: 10;
  }

  .countries-slider-mobile-controls .slick-prev,
  .countries-slider-mobile-controls .slick-next {
    pointer-events: auto;
  }

  .countries-slider-mobile-controls .slick-prev {
    left: 12px;
  }

  .countries-slider-mobile-controls .slick-next {
    right: 12px;
  }
}

/* ============================================
   Disciplines Subjects Grid (Minimal Design)
   ============================================ */

.section-header--centered {
  text-align: center;
  justify-content: center;
}

.section-header--centered h2 {
  text-align: center;
}

.section-header--centered .section-subtitle {
  text-align: center;
}

.disciplines-subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.discipline-subject-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.discipline-subject-card:nth-child(4n) {
  border-right: none;
}

/* Hide bottom border for the last items forming the true last row */
.discipline-subject-card:last-child {
  border-bottom: none;
}
.discipline-subject-card:nth-child(4n+1):nth-last-child(-n+4) ~ .discipline-subject-card,
.discipline-subject-card:nth-child(4n+1):nth-last-child(-n+4) {
  border-bottom: none;
}

.discipline-subject-card:hover {
  background: color-mix(in srgb, var(--blue) 5%, #ffffff);
  color: var(--blue);
}

.discipline-subject-card:hover .discipline-subject-icon {
  color: var(--blue);
}

.discipline-subject-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.discipline-subject-icon img,
.discipline-subject-icon svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.discipline-subject-icon img {
  object-fit: contain;
}

.discipline-subject-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: inherit;
}

@media (max-width: 960px) {
  .disciplines-subjects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .discipline-subject-card:nth-child(4n) {
    border-right: 1px solid #e8edf2;
  }
  .discipline-subject-card:nth-child(3n) {
    border-right: none;
  }
  
  .discipline-subject-card:nth-child(4n+1):nth-last-child(-n+4) ~ .discipline-subject-card,
  .discipline-subject-card:nth-child(4n+1):nth-last-child(-n+4) {
    border-bottom: 1px solid #e8edf2;
  }
  
  .discipline-subject-card:nth-child(3n+1):nth-last-child(-n+3) ~ .discipline-subject-card,
  .discipline-subject-card:nth-child(3n+1):nth-last-child(-n+3) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .disciplines-subjects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipline-subject-card {
    padding: 22px 12px;
    gap: 10px;
  }
  
  .discipline-subject-card:nth-child(2n) {
    border-right: none;
  }
  
  .discipline-subject-card:nth-child(3n+1):nth-last-child(-n+3) ~ .discipline-subject-card,
  .discipline-subject-card:nth-child(3n+1):nth-last-child(-n+3) {
    border-bottom: 1px solid #e8edf2;
  }
  
  .discipline-subject-card:nth-child(2n+1):nth-last-child(-n+2) ~ .discipline-subject-card,
  .discipline-subject-card:nth-child(2n+1):nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .discipline-subject-icon {
    width: 44px;
    height: 44px;
  }

  .discipline-subject-icon img,
  .discipline-subject-icon svg {
    width: 28px;
    height: 28px;
  }

  .discipline-subject-title {
    font-size: 13px;
  }
}


.country-slide img {
  height: 180px;
}
}
