:root {
    --primary-blue: #1c398e;
    --text-slate: #1c2b4d;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

* {margin: 0; padding: 0; box-sizing: border-box;}
body { font-family: 'Inter', sans-serif; color: var(--text-slate); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--text-slate); }

.container { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
.container2 { padding: 6rem 2rem; }
.content-wrapper { max-width: 1050px; margin: 0 auto; width: 100%; }
.pt-0 { padding-top: 0; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.mb-medium { margin-bottom: 1.5rem; }
.mt-medium { margin-top: 3rem; }
.mt-large { margin-top: 5rem; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.font-size-sub { font-size: 1.15rem; font-weight: 500; }

.bg-dark { background-color: var(--primary-blue); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }

.badge { display: inline-block; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2rem; }
.badge-light { border: 1px solid rgba(34, 63, 137, 0.2); color: var(--primary-blue); }
.badge-dark { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.center-badge-container { display: flex; justify-content: center; }

.section-title { font-size: 2.25rem; font-weight: 400; margin-bottom: 1rem; line-height: 1.2; }
.section-subtitle { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 3rem; }

/* Hero */
main { padding: 5rem 0 0; display: flex; flex-direction: column; align-items: center; }
.hero { text-align: center; max-width: 900px; margin-bottom: 0rem; }
.hero h1 { font-size: 3.5rem; line-height: 1.15; letter-spacing: -0.01em; }
.hero h1.font-light { font-weight: 300; }
.hero h1.font-regular { font-weight: 400; margin-bottom: 1.5rem; }
.hero .subtitle { font-size: 1.05rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 2.5rem; font-weight: 300; }
.cta-button { background-color: var(--primary-blue); color: white; border: none; padding: 0.9rem 2.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; }

/* Image section */
.image-section { width: 100%; max-width: 1100px; display: flex; justify-content: center; margin-bottom: 0; }
.image-placeholder { width: 100%; height: 600px;  }
.image-placeholder img{
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Stats section */
.stats-section { background-color: var(--primary-blue); color: white; padding: 4rem 2rem; }
.stats-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 150px; }
.stat-number { font-size: 2.5rem; font-weight: 300; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; opacity: 0.9; line-height: 1.4; text-transform: uppercase; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem; }
.about-text p { font-size: 1rem; color: var(--text-slate); line-height: 1.7; margin-bottom: 2rem; font-weight: 300; }
.subsection-title { font-size: 0.75rem; color: var(--primary-blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.about-quote-card { background-color: #f8fafc; padding: 3rem; border-radius: 16px; border: 1px solid var(--border-color); }
.quote-text { font-size: 1.2rem; color: var(--text-slate); line-height: 1.7; font-weight: 400; margin-bottom: 2rem; }
.quote-author { display: flex; align-items: center; gap: 1rem; align-self: flex-start; }
.avatar-placeholder { width: 44px; height: 44px; background-color: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.author-info { display: flex; flex-direction: column; }
.author-info strong { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem;}
.author-info span { font-size: 0.75rem; color: var(--text-gray); }

/* Offices/Mandates */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.office-card h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 1rem; }
.office-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 1.5rem; font-weight: 300; }
.office-link { color: #fff; text-decoration: none; font-size: 0.75rem; font-weight: 500; }

.mandates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.mandate-card { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; }
.mandate-card h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.75rem; }
.mandate-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.6; font-weight: 300; }

/* Programmes */
.programmes-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 3rem; }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--text-slate); line-height: 1.5; font-weight: 300; }
.check-list li span { color: var(--primary-blue); font-weight: bold;}

.stats-card { background: white; padding: 3rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid var(--border-color);}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.small-stat { display: flex; flex-direction: column; }
.small-stat strong { font-size: 1.75rem; font-weight: 300; color: var(--primary-blue); margin-bottom: 0.5rem; }
.small-stat span { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-gray); }

.admissions-card { background: white; border-radius: 16px; padding: 3rem; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid var(--border-color);}
.admissions-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admissions-header h3 { font-size: 1.25rem; font-weight: 400; }
.btn-dark { background-color: var(--primary-blue); color: white; border: none; padding: 0.6rem 1.5rem; border-radius: 50px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; }

.schools-list { display: flex; flex-direction: column; }
.school-dropdown { border-bottom: 1px solid var(--border-color); }
.school-dropdown:first-child .school-item { border-top: 1px solid var(--border-color); }
.school-item { display: flex; justify-content: space-between; padding: 1.25rem 0; font-size: 0.95rem; font-weight: 400; cursor: pointer; transition: background-color 0.2s; }
.school-item:hover { background-color: #fafbfc; }
.school-item .plus { color: var(--text-slate); font-weight: 300; font-size: 1rem; margin-top:-0.3rem;}

.school-content { display: none; padding-bottom: 1.5rem; animation: fadein 0.3s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.course-list { display: flex; flex-direction: column; padding-top: 0.5rem; }
.course-item { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid #f1f5f9; }
.course-item.last-course { border-bottom: none; padding-bottom: 0; }
.course-info h4 { font-size: 0.95rem; font-weight: 400; color: var(--text-slate); margin-bottom: 0.4rem; }
.course-info p { font-size: 0.75rem; color: var(--text-light); }
.course-actions { display: flex; gap: 0.75rem; }

.btn-outline-small { background: transparent; border: 1px solid #e2e8f0; color: var(--text-slate); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.7rem; font-weight: 500; cursor: pointer; }
.btn-solid-small { background-color: var(--primary-blue); color: white; border: none; padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.7rem; font-weight: 600; cursor: pointer; }

.disclaimer { font-size: 0.7rem; color: var(--text-gray); margin-top: 1.5rem; font-style: italic; }

/* Application */
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.timeline-step { position: relative; }
.timeline-step .line { height: 2px; background-color: #e2e8f0; width: 100%; position: absolute; top: 0; left: 0; }
.timeline-step .phase { display: inline-block; margin-top: 2rem; font-size: 0.65rem; color: var(--primary-blue); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 0.75rem; text-transform: uppercase; }
.timeline-step h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; }
.timeline-step .date { font-size: 0.8rem; color: var(--text-gray); font-weight: 300;}

.application-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.line-list { list-style: none; }
.line-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-slate); font-weight: 300; }
.line-list li::before { content: "—"; color: #cbd5e1; }

.line-list-none { list-style: none; }
.line-list-none li { font-size: 0.85rem; color: var(--text-slate); margin-bottom: 0.5rem; line-height: 1.5; font-weight: 300;}

.info-box { background-color: #f8fafc; padding: 1.25rem; border-radius: 8px; font-size: 0.8rem; color: var(--text-slate); line-height: 1.5; border: 1px solid var(--border-color);}
.doc-list { list-style: none; margin-bottom: 2rem; }
.doc-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-slate); font-weight: 300; }

.actions { display: flex; gap: 1rem; }
.actions-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-slate); padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.btn-solid-blue { background-color: var(--primary-blue); border: none; color: white; padding: 0.85rem 1.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; cursor: pointer; text-align: center; }

.stage-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; }
.stage-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.stage-card p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.5; margin-bottom: 1rem; font-weight: 300;}
.stage-card .exemption { font-size: 0.7rem; color: var(--primary-blue); font-weight: 600; margin-bottom: 0; margin-top: 1rem; }

.final-selection h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 1rem; }
.split-card { display: flex; gap: 1rem; }
.split-left, .split-right { background-color: #f8fafc; border-radius: 8px; padding: 1.5rem; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
.split-card strong { font-size: 1.5rem; font-weight: 300; color: var(--primary-blue); margin-bottom: 0.25rem; }
.split-card span { font-size: 0.7rem; font-weight: 500; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.05em; }

/* Fees */
.fees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.fee-card { background: white; border-radius: 16px; padding: 3rem; box-shadow: 0 4px 25px rgba(0,0,0,0.03); border: none; }
.fee-card h3 { font-size: 1.15rem; font-weight: 500; color: var(--text-slate); }
.fee-row { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.fee-row:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.fee-details { display: flex; flex-direction: column; gap: 0.25rem; }
.fee-details strong { font-size: 0.95rem; font-weight: 500; }
.fee-details span { font-size: 0.75rem; color: var(--text-gray); font-weight: 300; }
.fee-amount { font-size: 1.35rem; font-weight: 300; color: var(--primary-blue); margin-top: -0.2rem;}
.fee-info-box { background-color: #f8fafc; padding: 1.25rem; border-radius: 8px; font-size: 0.75rem; color: var(--text-slate); line-height: 1.6; border: none; font-weight: 400;}

.fellowship-amount { display: flex; align-items: baseline; gap: 0.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.fellowship-amount .amount { font-size: 2.25rem; font-weight: 300; color: var(--primary-blue); margin-bottom: 0; }
.fellowship-amount .period { font-size: 0.8rem; color: var(--text-gray); }
.check-list-small { list-style: none; }
.check-list-small li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.8rem; color: var(--text-slate); line-height: 1.4; font-weight: 300; }
.check-list-small li span { color: var(--primary-blue); font-size: 0.7rem; margin-top: 0.1rem; }

/* Supervisors */
.supervisors-section { padding-top: 2rem !important; }
.supervisors-header { display: flex; justify-content: space-between; align-items: flex-end; }
.view-all-link { color: var(--primary-blue); font-size: 0.8rem; font-weight: 500; text-decoration: none; padding-bottom: 0.2rem; }
.supervisors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.supervisor-card { background: white; border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; height: 130px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: none; cursor: pointer; transition: all 0.3s ease;  }
.supervisor-card:hover { box-shadow: 0 6px 25px rgba(0,0,0,0.06); }
.supervisor-card h4 { font-size: 0.8rem; font-weight: 500; line-height: 1.4; margin-bottom: 0; }
.icon-circle { width: 28px; height: 28px; background-color: #f8fafc; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-gray); font-size: 0.95rem; border: none; flex-shrink: 0; align-self: flex-end; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.supervisor-card:hover .icon-circle { background-color: var(--primary-blue); color: white; transform: translate(3px, -3px); }
.icon-blue { background-color: var(--primary-blue); color: white; border: none; }

/* Prospectus CTA */
.pb-large { padding-bottom: 6rem; }
.prospectus-card { background-color: var(--primary-blue); border-radius: 20px; padding: 3rem 4rem; display: flex; justify-content: space-between; align-items: center; color: white; }
.prospectus-content { display: flex; flex-direction: column; gap: 1rem; }
.badge-mini { font-size: 0.6rem; letter-spacing: 0.1em; opacity: 0.8; font-weight: 600; }
.prospectus-content h2 { font-size: 2rem; font-weight: 300; line-height: 1.2; color: white; }
.prospectus-content p { font-size: 0.75rem; opacity: 0.8; font-weight: 300; }
.btn-solid-white { background-color: white; color: var(--primary-blue); border: none; padding: 1rem 2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .programmes-grid, .application-details-grid { grid-template-columns: 1fr; gap: 3rem; }
    .offices-grid, .mandates-grid { grid-template-columns: 1fr; gap: 2rem; }
    .timeline-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .fees-grid { grid-template-columns: 1fr; }
    .supervisors-grid { grid-template-columns: repeat(2, 1fr); }
    .prospectus-card { flex-direction: column; text-align: center; gap: 2rem; padding: 2.5rem; }
}
@media (max-width: 600px) {
    .timeline-grid { grid-template-columns: 1fr; }
    .split-card { flex-direction: column; }
    .actions { flex-direction: column; }
    .actions-split { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .supervisors-grid { grid-template-columns: 1fr; }
    .supervisors-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}


.avatar-placeholder {
    width: 90px;
    height: 115px;
    border-radius: 12px;   /* instead of 50% */
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* TOP CARD */
.fellowship-card {
    background: #1f2f6b;
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* top right curve effect */
.fellowship-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-weight: 600;
    font-size: 18px;
}

.amount {
    font-size: 22px;
    font-weight: bold;
}

.amount span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 4px;
}

.desc {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
}

/* BOTTOM CARD */
.benefits-card {
    margin-top: 50px;
    background: #eef1f6;
    padding: 20px;
    border-radius: 16px;
    width: 400px;
    border: 1px solid #d9dee7;
}

.benefits-card ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.benefits-card li {
    font-size: 14px;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: #334155;
}

/* blue bullet */
.benefits-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

.btn-outline {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #1f2f6b;
    color: #1f2f6b;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #1f2f6b;
    color: #fff;
}

/* keep buttons in row */
.actions-split {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* wrapper for 2nd button */
.collapse-wrapper {
    position: relative;   /* anchor for dropdown */
}

/* dropdown (no layout shift) */
.collapse-box {
    position: absolute;
    top: calc(100% + 8px);  /* just below button */
    left: 0;
    width: 320px;

    background: #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;

    z-index: 999;
    padding: 15px;
}

/* show */
.collapse-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* dropdown container */
.collapse-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 420px;

    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);

    padding: 15px;
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* show */
.collapse-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* GRID layout (2 columns 🔥) */
.collapse-box ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}

.collapse-box li {
    margin: 0;
}

.collapse-box a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    background: #f8fafc;
}

/* hover effect */
.collapse-box a:hover {
    background: #1f2f6b;
    color: #fff;
    transform: translateX(4px);
}

.collapse-box a::before {
    content: "•";
    margin-right: 6px;
    color: #3b82f6;
}

.collapse-box a:hover::before {
    color: #fff;
}

/* nav Bar */


.container22 {
  margin: 0 auto;
  padding: 0 2.8rem;
}

.containerr {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}
.container1 {
  height: 100%;
  padding-top: 90px !important;
  margin: 0 auto;
  padding: 0 4rem;
}


/* Sub-Nav Top Bar */
.sub-nav {
  height: 34px;
  display: flex;

  align-items: center;
}

.sub-nav-container {
    padding-top: 2rem;
    padding-right: 12.8rem  ;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.sub-nav-links,
.sub-nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.sub-nav-link {

  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0.85rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    color 0.2s ease,
    background 0.2s ease;
  letter-spacing: 0.01em;
}

.sub-nav-link {
  text-decoration: none !important;
}

.sub-nav-links .sub-nav-link:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-nav-right .sub-nav-link {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
}

.sub-nav-link:hover {
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
}


/* Header */
.navbar {
  background-color: #34495e;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.logo-img {
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0 !important;
}

.logo {
    margin-top: -22px; /* adjust this value to push up more or less */
}

.close-menu {
  display: none;
}
.mobile-toggle {
  display: none;
}
.d-mobile-only {
  display: none !important;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 1.5rem;
  height: 100%;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
     text-decoration: none !important;
   
}

.nav-links > a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  padding: 0.4rem 0.5rem;
  transition: color 0.2s ease;
     text-decoration: none !important;
}

.nav-links > a:hover {
  color: #ffffff;
     text-decoration: none !important;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
     text-decoration: none !important;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color:rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  height: 100%;
     text-decoration: none !important;
}

.nav-link-item:hover {
  color: #ffffff;
     text-decoration: none !important;
}

.nav-link-item .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nav-action {
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
     text-decoration: none !important;
}

.btn-primary:hover {
  background-color: #1c4db7;
     text-decoration: none !important;
}

/* Desktop megamenu */
.megamenu {
  position: fixed;
  top: 114px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  padding: 3rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  transform: translateY(-8px);
     text-decoration: none !important;
}

.nav-item.open .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
     text-decoration: none !important;
}

.nav-item.open > .nav-link-item .chevron {
  transform: rotate(180deg);
     text-decoration: none !important;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
     text-decoration: none !important;
}

.megamenu-heading {
  font-size: 0.75rem;
  font-weight: 500;
  color: #006eff;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}

.megamenu-col a {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 0.7rem;
  line-height: 1.4;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
     text-decoration: none !important;
}

.megamenu-col a:hover {
  color: #006eff;
  transform: translateX(2px);
     text-decoration: none !important;
}

.student-services-modern .megamenu-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.student-services-modern .megamenu-heading {
  margin-bottom: 1.5rem;
  color: #006eff;
  font-weight: 500;
}

.student-services-modern a {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: #1d1d1f !important;
}

.student-services-modern a:hover {
  color: #006eff !important;
}

/* Desktop overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
  z-index: 998;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.navbar:has(.nav-item.open) ~ .nav-overlay {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 1440px) {
  .header-container {
    height: 80px;
  }
  .logo-img {
    height: 70px;
  }
  .megamenu {
    top: 114px;
  }
}

/* ── Mobile nav ── */
@media (max-width: 1024px) {
  .sub-nav {
    display: none;
  }

  .d-mobile-only {
    display: block !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ffffff; /* Adjusted to white for dark header */
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-left: auto; /* Ensure it stays pushed right */
  }

  .nav-action {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    margin: 0;
    flex: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

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

  /* Sticky close button header */
  .close-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.25rem;
    height: 56px;
    min-height: 56px;
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5e5;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
  }

  /* Plain top-level links */
  .nav-links > a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 1.25rem;
    height: 48px;
    min-height: 48px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
    background: white;
    flex-shrink: 0;
    transition: background 0.15s ease;
  }

  .nav-links > a:hover {
    background: #f5f5f7;
  }

  /* Nav items with dropdowns — key fix: no height change, content appended below */
  .nav-item {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
  }

  .nav-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1.25rem;
    height: 48px;
    min-height: 48px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
    background: white;
    cursor: pointer;
    transition:
      background 0.15s ease,
      color 0.15s ease;
  }

  .nav-link-item:hover {
    background: #f5f5f7;
  }

  .nav-link-item .chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .nav-item.active > .nav-link-item {
    color: var(--primary-color);
    background: #f0f5ff;
    border-bottom-color: #dbeafe;
  }

  .nav-item.active > .nav-link-item .chevron {
    transform: rotate(180deg);
  }

  /* Accordion — clips to zero height when closed */
  .megamenu {
    position: static !important;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    padding: 0;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: #fafafa;
    border-radius: 0;
    pointer-events: auto;
    top: auto;
    left: auto;
    right: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-item.active > .megamenu {
    max-height: 2000px;
    border-bottom: 2px solid #e5e7eb;
  }

  /* Megamenu inner layout — stacked columns */
  .megamenu .container {
    padding: 0;
    max-width: 100%;
  }

  .megamenu-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.5rem;
  }

  .megamenu-col {
    width: 100%;
    padding: 0;
  }

  /* Section heading */
  .megamenu-heading {
    font-size: 0.65rem;
    font-weight: 700;
    color: #8e8e93;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1.25rem 0.3rem;
    margin-bottom: 0;
    background: #fafafa;
    display: block;
  }

  /* Sub-links */
  .megamenu-col a {
    display: block;
    padding: 0.55rem 1.25rem 0.55rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    transition:
      background 0.15s ease,
      color 0.15s ease;
    transform: none !important;
    line-height: 1.4;
  }

  .megamenu-col a:last-child {
    border-bottom: none;
  }

  .megamenu-col a:hover {
    background: #eff6ff;
    color: var(--primary-color);
  }

  /* Student services override */
  .student-services-modern .megamenu-grid {
    grid-template-columns: unset;
    gap: 0;
  }

  .student-services-modern a {
    padding: 0.55rem 1.25rem 0.55rem 1.75rem !important;
    font-size: 0.875rem !important;
  }

  /* Overlay — no blur on mobile */
  .nav-overlay {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.hero {
  padding-top: 120px; /* increase if still cropping */
}


.fee-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* ensures full height */
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  flex: 1; /* 👈 this makes all rows equally spaced */
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-details strong {
  display: block;
  font-size: 16px;
}

.fee-details span {
  font-size: 13px;
  color: #777;
}



/* Footer Section */
.site-footer {
  background-color: #0b1120;
  color: #9ca3af;
  padding: 5rem 0 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1400px;
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col.brand-col {
  flex: 0 0 350px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
  align-self: flex-start;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.footer-heading {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-col.contact-col {
  flex: 0 0 380px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.newsletter-form {
  max-width: 100%;
}

.newsletter-input-group {
  position: relative;
  width: 100%;
}

.newsletter-form input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 1rem 1.5rem;
  color: var(--bg-white);
  font-family: var(--font-inter);
  font-size: 0.95rem;
  padding-right: 130px;
  box-sizing: border-box;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 5px;
  border: none;
  border-radius: 25px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #1d4ed8;
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--bg-white);
}

/* Responsive updates for Portal and Footer */
@media (max-width: 1200px) {
  .portal-container {
    flex-direction: column;
  }
  .portal-right {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .footer-container {
    gap: 3rem 2rem;
  }
  .footer-col.brand-col,
  .footer-col.contact-col {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .quick-access-panel {
    padding: 2.5rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


.no-underline {
  text-decoration: none;
  color: #dbdcdf;
}

/* carousel */


.image-placeholder {
  position: relative;
}

.carousel-img {
  width: 100%;
  display: none;
}

.carousel-img.active {
  display: block;
}

/* why KJU */


.features-section {
  background: #f5f7fb;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section-titlee {
  font-size: 14px;
  letter-spacing: 2px;
  color: #2d4ed8;
  margin-bottom: 30px;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 50px;
}

.feature-itemm {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: #e8efff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4ed8;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-itemm h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.feature-itemm p {
  font-size: 14px;
  color: #6b7280;
  margin-top: 5px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.prospectus-buttons {
  display: flex;
  gap: 15px;   /* space between buttons */
  margin-left: auto; /* push to right */
}

.prospectus-card a + a {
  margin-left: 15px;
}

#constituent-offices {
  scroll-margin-top: 140px; /* adjust until perfect */
}



/* Section scroll */

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 100px; /* adjust based on your header height */
}

.card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

