/* ============================================================
   MATRICBASE — COURSE ADVISOR PAGE (courseadvisor.html only)

   This file replaces a broken setup where the page's hero, tool
   panels and course cards used ".advisor-*" classes that were
   never defined anywhere (no rule in style.css, aps.css, any
   "-redesign.css" file, or an inline <style> block) plus a
   Tailwind CDN script for everything else. Result: the whole
   page rendered as unstyled, stacked default HTML.

   Fix: real CSS for every class the markup and the course-card
   render function use, following the same design tokens as
   home-redesign.css / aps.css (Fraunces headings, Inter body,
   brand green #4C7A0E). The page no longer depends on Tailwind,
   Bootstrap, or any CDN for its layout — everything here is
   local and works offline.

   The MATRICBASE NAVIGATION section below is the same header
   override every page on the site carries inline (see aps.css) —
   kept here so courseadvisor.html only needs to link one file.
   ============================================================ */

:root{
  --adv-bg:        #FBF9F2;
  --adv-surface:   #FFFFFF;
  --adv-ink:       #16241C;
  --adv-body:      #4B5348;
  --adv-muted:     #7C8577;
  --adv-line:      #E6E2D3;

  --adv-green:      #4C7A0E;
  --adv-green-dark: #365607;
  --adv-green-tint: #EEF3E1;

  --adv-gold:       #B9812A;

  --adv-radius-sm: 10px;
  --adv-radius-md: 16px;
  --adv-radius-lg: 24px;

  --adv-shadow: 0 12px 32px rgba(22, 36, 28, 0.08);
}

.course-advisor-page{
  background: var(--adv-bg);
  color: var(--adv-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.course-advisor-page *{ box-sizing: border-box; }

.course-advisor-page h1,
.course-advisor-page h2,
.course-advisor-page h3{
  font-family: "Fraunces", Georgia, serif;
  color: var(--adv-ink);
  line-height: 1.15;
  margin: 0;
}

.advisor-container{
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */

.advisor-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: var(--adv-radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.advisor-btn i{ font-size: 13px; }

.advisor-btn--primary,
.advisor-btn--light{
  background: var(--adv-green);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(76, 122, 14, 0.28);
}

.advisor-btn--primary:hover,
.advisor-btn--light:hover{
  background: var(--adv-green-dark);
  transform: translateY(-1px);
  color: #ffffff;
}

.advisor-btn--primary:active,
.advisor-btn--light:active{
  background: var(--adv-green-dark);
  transform: scale(0.97);
  color: #ffffff;
  transition: background 0.12s ease, transform 0.12s ease;
}

.advisor-btn--outline{
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.55);
}

.advisor-btn--outline:hover{
  background: #ffffff;
  color: var(--adv-green-dark);
}

.advisor-btn--outline:active{
  background: #ffffff;
  color: var(--adv-green-dark);
  transform: scale(0.97);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.advisor-btn--clear{
  background: transparent;
  color: var(--adv-body);
  border: 1.5px solid var(--adv-line);
}

.advisor-btn--clear:hover{
  border-color: var(--adv-green);
  color: var(--adv-green-dark);
}

.advisor-btn--clear:active{
  border-color: var(--adv-green);
  color: var(--adv-green-dark);
  background: rgba(76, 122, 14, 0.08);
  transform: scale(0.97);
  transition: border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

/* ============================================================
   HERO
   ============================================================ */

.advisor-hero{
  position: relative;
  background: linear-gradient(135deg, var(--adv-green) 0%, var(--adv-green-dark) 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}

.advisor-hero__decoration{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.advisor-hero__decoration--one{
  width: 320px;
  height: 320px;
  top: -140px;
  right: -80px;
}

.advisor-hero__decoration--two{
  width: 220px;
  height: 220px;
  bottom: -120px;
  left: -60px;
  background: rgba(185, 129, 42, 0.18);
}

.advisor-hero__grid{
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px){
  .advisor-hero__grid{
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.advisor-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.advisor-hero__content h1{
  color: #ffffff;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.advisor-hero__content h1 span{
  color: #E8F5C6;
}

.advisor-hero__content p{
  margin-top: 16px;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.6;
  max-width: 48ch;
}

.advisor-hero__actions{
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.advisor-hero__card{
  position: relative;
  background: #ffffff;
  border-radius: var(--adv-radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.advisor-hero__icon{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--adv-green-tint);
  color: var(--adv-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.advisor-hero__small-title{
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adv-green);
  font-weight: 600;
  margin-bottom: 8px;
}

.advisor-hero__card h2{
  font-size: 22px;
  font-weight: 600;
}

.advisor-hero__card p{
  margin-top: 10px;
  color: var(--adv-body);
  font-size: 14.5px;
  line-height: 1.6;
}

.advisor-stats{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--adv-line);
  padding-top: 18px;
}

.advisor-stat{
  text-align: center;
  border-right: 1px solid var(--adv-line);
}

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

.advisor-stat strong{
  display: block;
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--adv-green);
}

.advisor-stat span{
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--adv-muted);
}

/* ============================================================
   TOOL SECTION — search / filter + recommendations
   ============================================================ */

.advisor-tool-section{
  padding: 48px 0;
}

.advisor-tool-grid{
  display: grid;
  gap: 24px;
}

@media (min-width: 960px){
  .advisor-tool-grid{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.advisor-panel{
  background: var(--adv-surface);
  border: 1px solid var(--adv-line);
  border-radius: var(--adv-radius-lg);
  box-shadow: var(--adv-shadow);
  padding: 28px;
}

.advisor-panel-heading,
.advisor-results-header{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.advisor-heading-icon{
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--adv-green-tint);
  color: var(--adv-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.advisor-heading-icon--light{
  background: var(--adv-green);
  color: #ffffff;
}

.advisor-panel-heading h2,
.advisor-results-header h2{
  font-size: 19px;
  font-weight: 600;
}

.advisor-panel-heading p{
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--adv-muted);
  line-height: 1.5;
}

.advisor-results-header span{
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-green);
  font-weight: 600;
  margin-bottom: 2px;
}

.advisor-eyebrow{
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-green);
  font-weight: 600;
  margin-bottom: 2px;
}

.advisor-form-grid{
  display: grid;
  gap: 16px;
}

.advisor-field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--adv-ink);
  margin-bottom: 7px;
}

.advisor-input-wrapper{
  position: relative;
  display: flex;
  align-items: center;
}

.advisor-input-wrapper i{
  position: absolute;
  left: 15px;
  color: var(--adv-muted);
  font-size: 14px;
  pointer-events: none;
}

.advisor-input-wrapper input,
#categorySelect{
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--adv-line);
  border-radius: var(--adv-radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: var(--adv-ink);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#categorySelect{
  padding-left: 14px;
  cursor: pointer;
}

.advisor-input-wrapper input:focus,
#categorySelect:focus{
  outline: none;
  border-color: var(--adv-green);
  box-shadow: 0 0 0 3px rgba(76, 122, 14, 0.15);
}

.advisor-help-text{
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--adv-muted);
}

.advisor-help-text a{
  color: var(--adv-green);
  font-weight: 600;
  text-decoration: none;
}

.advisor-help-text a:hover{ text-decoration: underline; }
.advisor-help-text a:active{ text-decoration: underline; opacity: 0.7; transition: opacity 0.1s ease; }

.advisor-form-actions{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.advisor-form-actions .advisor-btn--clear,
.advisor-form-actions .advisor-btn--primary{
  flex: 1 1 160px;
}

/* ---------- Empty state / recommendations ---------- */

.advisor-empty-state{
  text-align: center;
  padding: 24px 8px 8px;
}

.advisor-empty-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--adv-green-tint);
  color: var(--adv-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.advisor-empty-state h3{
  font-size: 16.5px;
  font-weight: 600;
  color: var(--adv-ink);
  max-width: 32ch;
  margin: 0 auto;
}

.advisor-empty-state p{
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--adv-muted);
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.advisor-benefits{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border-top: 1px solid var(--adv-line);
  padding-top: 18px;
}

.advisor-benefits span{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--adv-body);
}

.advisor-benefits i{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--adv-green-tint);
  color: var(--adv-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.advisor-matches{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.advisor-matches.hidden,
#recommendationContent.hidden{
  display: none;
}

/* ---------- APS match summary + match cards (JS-rendered) ---------- */
/* Replaces Tailwind utility classes previously built inline by
   renderCourses()/showRecommendations() in courseadvisor.html —
   those templates now use the classes below instead. */

.advisor-my-aps{
  font-weight: 600;
  color: var(--adv-ink);
  margin-bottom: 14px;
}

.advisor-match-card{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--adv-radius-md);
  border: 1px solid var(--adv-green-tint);
  background: rgba(76, 122, 14, 0.03);
  transition: border-color 0.15s ease;
}

.advisor-match-card:hover{
  border-color: var(--adv-green);
}

.advisor-match-card-title{
  font-weight: 600;
  color: var(--adv-ink);
}

.advisor-match-card-category{
  margin-top: 2px;
  font-size: 13px;
  color: var(--adv-muted);
}

.advisor-match-card-badge{
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}


/* ============================================================
   ALL PROGRAMMES
   ============================================================ */

.advisor-programmes-section{
  padding: 12px 0 64px;
}

.advisor-section-heading{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.advisor-section-heading > span{
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adv-green);
  font-weight: 600;
  margin-bottom: 10px;
}

.advisor-section-heading h2{
  font-size: clamp(24px, 4vw, 32px);
}

.advisor-section-heading p{
  margin-top: 10px;
  color: var(--adv-body);
  font-size: 15px;
  line-height: 1.6;
}

.advisor-courses-grid{
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Course cards (rendered by JS) ---------- */

.course-card{
  background: #ffffff;
  border-radius: var(--adv-radius-lg);
  box-shadow: var(--adv-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.course-card:hover{
  transform: translateY(-8px);
}

.course-card-head{
  color: #ffffff;
  padding: 24px;
}

.course-card-category{
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.course-card-title{
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin-top: 4px;
}

.course-card-aps-row{
  margin-top: 16px;
  font-size: 22px;
  font-weight: 600;
}

.course-card-aps-label{
  margin-left: 4px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
}

.course-card-body{
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-card-desc{
  color: var(--adv-body);
  font-size: 14.5px;
  line-height: 1.6;
}

.course-card-label{
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--adv-muted);
  margin-bottom: 4px;
}

.course-card-foot{
  padding: 0 24px 24px;
}

.course-card-unis{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-card-uni-pill{
  background: var(--adv-bg);
  border: 1px solid var(--adv-line);
  color: var(--adv-body);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
}

@media (max-width: 640px){
  .advisor-panel{ padding: 22px; }
  .advisor-hero{ padding: 44px 0 52px; }
}


/* ============================================================
   MATRICBASE NAVIGATION (site-wide header/footer override)
   Every page on the site carries this same block inline so
   style.css alone doesn't render the logo oversized/stacked —
   see aps.css's header comment. Kept here, once, so
   courseadvisor.html only needs to link one stylesheet.
   ============================================================ */

/* ======================================
   MATRICBASE NAVIGATION
====================================== */

:root {
    --nav-primary: #4C7A0E;
    --nav-primary-light: #669E14;
    --nav-background: #fffdf8;
    --nav-surface: #ffffff;
    --nav-text: #171717;
    --nav-muted: #6f7280;
    --nav-border: #e8e5de;
    --nav-accent: #6B9E12;
    --nav-shadow: 0 12px 35px rgba(76, 122, 14, 0.1);
}


/* Prevent horizontal scrolling */
html,
body {
    overflow-x: hidden;
}


/* Add spacing because navbar is fixed */
body {
    padding-top: 86px;
}


/* Main header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 253, 248, 0.97);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 4px 20px rgba(76, 122, 14, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* Navbar content wrapper */
.navbar-container {
    width: min(1450px, calc(100% - 48px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}


/* Brand */
.navbar-brand,
.mobile-brand {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-name {
    color: var(--nav-primary);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-tagline {
    margin-top: 6px;
    color: var(--nav-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

/* Sticky top nav brand: logo + serif wordmark, no tagline */
.navbar-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Drawer header brand: logo + serif wordmark, matches top nav */
.mobile-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.mobile-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-brand .brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 19px;
}

.navbar-brand .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    object-fit: cover;
}

.navbar-brand .brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 22px;
}


/* Desktop menu */
.desktop-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}


/* Standard navigation link */
.nav-link {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--nav-text);
    padding: 32px 17px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: 20px;
    left: 17px;
    height: 2px;
    border-radius: 10px;
    background: var(--nav-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--nav-accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-link:active {
    color: var(--nav-accent);
    background: rgba(107, 158, 18, 0.06);
    transition: background-color 0.1s ease, color 0.1s ease;
}

.nav-link:active::after {
    transform: scaleX(1);
}


/* Dropdown wrapper */
.nav-dropdown {
    position: relative;
}


/* Dropdown button */
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
}


/* Dropdown arrow */
.dropdown-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.dropdown-open .dropdown-arrow {
    transform: rotate(225deg) translate(-2px, -2px);
}


/* Dropdown panel */
.mega-menu {
    position: absolute;
    top: calc(100% - 3px);
    right: 0;
    z-index: 20;
    padding: 34px 36px;
    background: var(--nav-background);
    border: 1px solid var(--nav-border);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--nav-shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}


/* Universities panel */
.universities-menu {
    left: 0;
    right: auto;
    width: 620px;
    max-width: calc(100vw - 32px);
}

/* Resources panel */
.resources-menu {
    right: 0;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 32px);
}

/* Open desktop menu */
.nav-dropdown:hover .mega-menu,
.nav-dropdown.dropdown-open .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Dropdown heading */
.mega-menu-title {
    display: block;
    margin-bottom: 20px;
    color: var(--nav-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* Dropdown grids */
/* Navbar university links only */
.navbar-province-grid,
.resources-grid {
    display: grid;
    gap: 0 34px;
}

.navbar-province-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.navbar-province-grid a,
.resources-grid a {
    display: block;
    padding: 12px 0;
    color: var(--nav-text);
    border-bottom: 1px solid var(--nav-border);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.navbar-province-grid a:hover,
.resources-grid a:hover {
    color: var(--nav-accent);
    padding-left: 5px;
}

.navbar-province-grid a:active,
.resources-grid a:active {
    color: var(--nav-accent);
    padding-left: 5px;
    background: rgba(107, 158, 18, 0.08);
    transition: background-color 0.1s ease, color 0.1s ease, padding-left 0.1s ease;
}

/* Mobile menu button */
.mobile-menu-button {
    display: none;
    width: 48px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.mobile-menu-button:active {
    transform: scale(0.93);
    background: var(--nav-accent, #6B9E12);
    border-color: var(--nav-accent, #6B9E12);
}

.mobile-menu-button:active span {
    background: #ffffff;
}

.mobile-menu-button span {
    width: 21px;
    height: 2px;
    border-radius: 10px;
    background: var(--nav-text);
}


/* Mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(76, 122, 14, 0.45);
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

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


/* Mobile navigation drawer */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    width: min(430px, 100%);
    height: 100dvh;
    background: var(--nav-background);
    box-shadow: -15px 0 40px rgba(76, 122, 14, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
}

.mobile-navigation.active {
    transform: translateX(0);
}


/* Mobile header */
.mobile-navigation-header {
    min-height: 86px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--nav-border);
}


/* Mobile close button */
.mobile-close-button {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-close-button span {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 23px;
    height: 2px;
    border-radius: 10px;
    background: var(--nav-primary);
}

.mobile-close-button span:first-child {
    transform: rotate(45deg);
}

.mobile-close-button span:last-child {
    transform: rotate(-45deg);
}


/* Mobile content */
.mobile-menu-content {
    padding: 6px 20px 32px;
}


/* Mobile nav groups (LEARN / DISCOVER / PLAN) */
.mobile-nav-section {
    margin-top: 24px;
}

.mobile-nav-section:first-child {
    margin-top: 6px;
}

.mobile-nav-group-title {
    display: block;
    margin: 0 4px 10px;
    color: var(--nav-primary);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.mobile-nav-card {
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(22, 36, 28, 0.04);
}

.mobile-menu-content .mobile-nav-item {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid var(--nav-border);
    background: transparent;
    color: var(--nav-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.mobile-menu-content .mobile-nav-item:last-child {
    border-bottom: 0;
}

.mobile-menu-content .mobile-nav-item:hover {
    background: rgba(107, 158, 18, 0.07);
}

.mobile-menu-content .mobile-nav-item:active {
    transform: scale(0.97);
    background: rgba(107, 158, 18, 0.14);
    transition: background-color 0.1s ease, transform 0.1s ease;
}

.mobile-menu-content .mobile-nav-item.active {
    color: var(--nav-primary);
    background: rgba(107, 158, 18, 0.06);
}

.mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(107, 158, 18, 0.1);
    color: var(--nav-primary);
    font-size: 14px;
}

.mobile-menu-content .mobile-nav-item.active .mobile-nav-icon {
    background: var(--nav-primary);
    color: #ffffff;
}

.mobile-nav-label {
    flex: 1;
}


/* Prevent page scrolling when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}


/* ======================================
   TABLET AND MOBILE
====================================== */

@media (max-width: 1100px) {

    body {
        padding-top: 76px;
    }

    .navbar-container {
        width: calc(100% - 32px);
        min-height: 76px;
    }

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }

    .brand-name {
        font-size: 19px;
    }

    .navbar-brand .brand-name {
        font-size: 18px;
    }

    .navbar-brand .brand-logo {
        width: 30px;
        height: 30px;
    }

}


/* ======================================
   SMALL MOBILE
====================================== */

@media (max-width: 480px) {

    .navbar-container {
        width: calc(100% - 24px);
    }

    .brand-name {
        font-size: 17px;
    }

    .navbar-brand .brand-name {
        font-size: 16px;
    }

    .navbar-brand .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-tagline {
        font-size: 8px;
    }

    .mobile-menu-button {
        width: 44px;
        height: 42px;
    }

    .mobile-navigation-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .mobile-menu-content {
        padding-right: 16px;
        padding-left: 16px;
    }

}

/* ======================================
   NAVBAR RESPONSIVE FIX
====================================== */

/* Keep the full navbar inside the screen */
.site-header {
    width: 100%;
}

.site-header .navbar-container {
    width: calc(100% - 40px);
    max-width: 1450px;
    margin: 0 auto;
    padding: 0;
}

/* Universities dropdown must open towards the right */
.site-header .universities-menu {
    left: 0;
    right: auto;
    width: 620px;
    max-width: calc(100vw - 32px);
}

/* Student Resources dropdown opens towards the left */
.site-header .resources-menu {
    right: 0;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 32px);
}

/* Prevent dropdown content from leaving the screen */
.site-header .mega-menu {
    box-sizing: border-box;
}

/* Keep navigation links properly spaced */
.site-header .desktop-navigation {
    min-width: 0;
    gap: 4px;
}

.site-header .desktop-navigation .nav-link {
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
}

/* Slightly reduce navbar text on medium desktop screens */
@media (max-width: 1350px) {

    .site-header .navbar-container {
        width: calc(100% - 28px);
        gap: 20px;
    }

    .site-header .desktop-navigation .nav-link {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }

    .site-header .brand-name {
        font-size: 18px;
    }
}

/* Switch to mobile menu earlier before links become cramped */
@media (max-width: 1180px) {

    body {
        padding-top: 76px;
    }

    .site-header .navbar-container {
        width: calc(100% - 28px);
        min-height: 76px;
    }

    .site-header .desktop-navigation {
        display: none;
    }

    .site-header .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }
}

/* Mobile drawer */
@media (max-width: 600px) {

    .mobile-navigation {
        width: 100%;
        max-width: 100%;
    }

    .mobile-navigation-header {
        min-height: 76px;
    }

    .site-header .navbar-container {
        width: calc(100% - 24px);
    }
}


