﻿
:root {
    --cream: #EFE1C0;
    --cream-light: #F8F1DE;
    --cream-deep: #E4D3A8;
    --green: #5d7f57;
    --green-deep: #3f5c3b;
    --blue: #98bad5;
    --blue-deep: #4f7599;
    --maroon: #ae2220;
    --maroon-deep: #7c1817;
    --ink: #565857;
    --ink-deep: #33342f;
    --paper: #FBF6E9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
  /*  background: var(--cream);*/
    color: var(--ink);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Bricolage Grotesque", sans-serif;
    color: var(--ink-deep);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.script {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
}

a {
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--maroon);
    color: var(--cream-light);
}

/* focus visibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--maroon);
    outline-offset: 3px;
}

/* ---------- texture ---------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: .045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- index rail (signature element) ---------- */
.rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 500;
    background: linear-gradient(180deg, rgba(239,225,192,0) 0%, var(--cream-deep) 12%, var(--cream-deep) 88%, rgba(239,225,192,0) 100%);
    border-right: 1px solid rgba(86,88,87,0.18);
    display: none;
}

    .rail .tab {
        position: relative;
        width: 46px;
        height: 46px;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Bricolage Grotesque", sans-serif;
        font-weight: 700;
        font-size: 0.72rem;
        color: var(--ink);
        background: var(--paper);
        border: 1px solid rgba(86,88,87,0.25);
        box-shadow: 2px 2px 0 rgba(86,88,87,0.12);
        text-decoration: none;
        transition: all .35s cubic-bezier(.4,0,.2,1);
    }

        .rail .tab:hover {
            transform: translateX(4px);
        }

        .rail .tab.active {
            background: var(--maroon);
            color: var(--cream-light);
            border-color: var(--maroon-deep);
            box-shadow: 3px 3px 0 rgba(124,24,23,0.35);
            transform: translateX(6px) scale(1.05);
        }

        .rail .tab .roman {
            font-size: 0.78rem;
            letter-spacing: 0.02em;
        }

@media (max-width: 980px) {
    .rail {
        display: none;
    }
}
.page {
    margin-left: 0;
}
@media (max-width: 980px) {
    .page {
        margin-left: 0;
    }
}
.undergradebanner {
    background: #fff;
    padding-bottom: 0;
    padding-top: 0;
}
/* ---------- top mark ---------- */
.topmark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 6vw;
    display: none;
}
    .topmark .wordmark {
        font-family: "Great Vibes", cursive;
        font-size: 2.1rem;
        color: var(--green-deep);
    }

    .topmark .tagline {
        font-family: "Poppins", sans-serif;
        font-size: 0.7rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--ink);
        opacity: 0.75;
    }
section {
    position: relative;
    padding: 50px 0;
}
.undergradebanner .hero {
    background: no-repeat;
    max-width: 1117px;
    margin: 0 auto;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 18px;
    font-weight: 600;
}

    .eyebrow::before {
        content: "";
        width: 26px;
        height: 1px;
        background: var(--maroon);
        display: inline-block;
    }

/* =========================================================
     SECTION I — HERO
  ========================================================= */
.hero {
    padding-top: 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }
}
.hero h1 {
    font-size: 41px;
    margin-bottom: 26px;
}
    .hero h1 em {
        font-style: normal;
        font-family: "Great Vibes", cursive;
        color: var(--maroon);
        font-size: 1.25em;
        padding: 0 0.06em;
    }
.hero p {
    font-size: 16px;
    max-width: 100%;
    color: var(--ink);
    font-weight: 300;
    line-height: 24px;
}
.hero .lede {
    margin-bottom: 12px;
}
.stampline {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
}

.stamp {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid var(--green-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--green-deep);
    transform: rotate(-9deg);
    flex-shrink: 0;
    position: relative;
}

    .stamp::after {
        content: "";
        position: absolute;
        inset: 6px;
        border: 1px dashed var(--green-deep);
        border-radius: 50%;
        opacity: .6;
    }

.mistake-card {
    background: var(--paper);
    border: 1px solid rgba(86,88,87,0.2);
    border-radius: 6px;
    padding: 34px 30px;
    box-shadow: 6px 6px 0 rgba(174,34,32,0.08);
}

    .mistake-card h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: var(--maroon-deep);
    }
.mistake-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}
    .mistake-list li {
        position: relative;
        padding-left: 30px;
        font-size: 15px;
        color: var(--ink);
        line-height: 23px;
        font-weight: 300;
    }
    .mistake-list li::before {
        content: "✕";
        position: absolute;
        left: 0;
        top: 1px;
        color: var(--maroon);
        font-weight: 700;
        font-size: 0.85rem;
    }
.closing-thought {
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid rgba(86,88,87,0.3);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 16px;
    color: #565857;
    font-weight: 600;
    max-width: 100%;
}
p.closing-thought span {
    color: #3f5c3b;
    font-size: 20px;
    font-weight: 700;
}
/* =========================================================
     SECTION II — COMPARATIVE FRAMEWORK
  ========================================================= */
.s2 {
    background: #e4d3a847;
}
    .s2 h2 {
        font-size: clamp(1.9rem, 3.2vw, 2.7rem);
        max-width: 690px;
        margin-bottom: 14px;
    }
    .s2 .intro {
        max-width: 100%;
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 300;
        line-height: 24px;
    }
.country-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 20px 0 0 0;
}
.s2 {
    background: #F3F5F4;
}
.revealcontentimage > div {
    width: 50%;
}
.revealcontentimage {
    display: flex;
    align-items: center;
    width: 100%;
}
@media (max-width: 1180px) {
    .country-row {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 700px) {
    .country-row {
        grid-template-columns: 1fr;
    }
}
.country-box {
    background: #fff;
    border-radius: 4px;
    padding: 28px 22px 26px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--green);
    box-shadow: 0 10px 26px #33342f00;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}
    .country-box:hover {
        transform: translateY(-8px);
    }

    .country-box:nth-child(1) {
        border-top-color: var(--green);
    }

    .country-box:nth-child(2) {
        border-top-color: var(--blue-deep);
    }

    .country-box:nth-child(3) {
        border-top-color: var(--maroon);
    }

    .country-box:nth-child(4) {
        border-top-color: var(--green-deep);
    }

    .country-box:nth-child(5) {
        border-top-color: var(--blue);
    }
    .country-box .num {
        font-family: "Bricolage Grotesque", sans-serif;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        color: var(--ink);
        opacity: .55;
        margin-bottom: 12px;
        display: none;
    }
    .country-box h4 {
        font-size: 1.08rem;
        margin-bottom: 12px;
        color: var(--ink-deep);
    }
    .country-box p {
        font-size: 14px;
        color: var(--ink);
        line-height: 20px;
        font-weight: 300;
    }
/* =========================================================
     SECTION III — DECISION FRAMEWORK
  ========================================================= */
.s3 h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    max-width: 22ch;
    margin-bottom: 14px;
}
.s3 .intro {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 300;
}
.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 620px;
    margin: 0 auto;
}
.flow-node {
    width: 100%;
    background: var(--paper);
    border: 1px solid rgba(86,88,87,0.22);
    border-radius: 8px;
    padding: 15px 15px;
    text-align: center;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink-deep);
    box-shadow: 4px 4px 0 rgba(93,127,87,0.14);
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
    .flow-node img.flowicon {
        height: 40px;
        filter: brightness(0) saturate(100%) invert(47%) sepia(14%) saturate(903%) hue-rotate(65deg) brightness(93%) contrast(85%);
    }
.flow-arrow {
    height: 22px;
    width: 2px;
    background: var(--green);
    position: relative;
    margin: 4px 0;
}
.flow-arrow::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--green);
}
.flow-final {
    margin-top: 6px;
    background: var(--green-deep);
    color: var(--cream-light);
    border-radius: 8px;
    padding: 15px 15px;
    text-align: center;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 5px 5px 0 rgba(174,34,32,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
    .flow-final img.flowicon {
        height: 40px;
        filter: brightness(0) saturate(100%) invert(96%) sepia(8%) saturate(959%) hue-rotate(318deg) brightness(105%) contrast(94%);
    }
/* =========================================================
     SECTION IV — COMPETITIVE PROFILE (transcript motif)
  ========================================================= */
.s4 {
    background: #fff;
}
    .s4 h2 {
        font-size: clamp(1.9rem, 3.2vw, 2.7rem);
        max-width: 24ch;
        margin-bottom: 14px;
    }
    .s4 .lede {
        max-width: 100%;
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 300;
    }
    .s4 .intro2 {
        max-width: 100%;
        margin-bottom: 25px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 300;
    }
.transcript {
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(6,1fr);
    margin: 10px 0 0 0;
}
.transcript-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 26px;
    background: var(--green-deep);
    color: var(--cream-light);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: none;
}
.transcript-row {
    display: flex;
    grid-template-columns: 50px 1fr;
    padding: 10px 0 20px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

    .transcript-row:first-of-type {
        border-top: none;
    }
    .transcript-row .mark {
        height: 100px;
        width: 100px;
        border: 2px dashed #3f5c3b;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
        .transcript-row .mark img {
            height: 70px;
            filter: brightness(0) saturate(100%) invert(31%) sepia(10%) saturate(1795%) hue-rotate(66deg) brightness(92%) contrast(82%);
        }
    .transcript-row .label {
        font-family: "Bricolage Grotesque", sans-serif;
        font-weight: 600;
        font-size: 16px;
        color: var(--ink-deep);
        text-align: center;
        margin: 10px 0 0;
        min-height: 60px;
        line-height: 21px;
    }
.transcript-foot {
    padding: 10px 26px;
    background: rgba(93,127,87,0.08);
    font-size: 0.92rem;
    color: var(--ink);
    border-left: 3px solid #334d31;
    border-radius: 10px;
}
.transcript-row .label span {
    font-size: 16px;
    color: #ae2220;
}
.applicantfilewrap {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 20px 0;
}
    .applicantfilewrap .aaplicantimg {
        border-radius: 20px;
        overflow: hidden;
    }
    .applicantfilewrap > div {
        width: 50%;
    }
    .applicantfilewrap .aaplicantimg img {
        width: 100%;
    }
/* =========================================================
     SECTION V — FINANCIAL AID
  ========================================================= */
.s5 {
  /*  background: var(--green-deep);*/
    color: var(--cream-light);
    padding: 50px 0;
    background-image: url('../images/myimages/undergrade/ub1.png');
    background-repeat: no-repeat;
    background-size: cover;
}
    .s5::before {
        content: "";
        background: #6b2a3beb;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
    }
    .s5 .eyebrow {
        color: #c9a24a;
    }
        .s5 .eyebrow::before {
            background: #c9a24a;
        }

.s5-wrap {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.s5 h2 {
    color: var(--cream-light);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 15px;
}
.s5 p {
    font-size: 16px;
    color: rgba(251,246,233,0.88);
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 24px;
}
.s5 .accent-line {
    width: 60px;
    height: 3px;
    background: #fff;
    margin: 0 auto 15px;
}
.s5 h2 span {
    color: #c9a24a;
}
/* =========================================================
     SECTION VI — PROGRAMMES
  ========================================================= */
.s6 h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    max-width: 790px;
    margin-bottom: 14px;
}
.s6 .intro {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}
.s6 .intro2 {
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
}
.prog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 980px) {
    .prog-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 620px) {
    .prog-grid {
        grid-template-columns: 1fr;
    }
}
.prog-card {
    background: #ffffff80;
    border-radius: 6px;
    padding: 30px 26px;
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(86,88,87,0.2);
    transition: box-shadow .35s ease, transform .35s ease;
}
    .prog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(51,52,47,0.14);
    }

    .prog-card .badge {
        position: absolute;
        top: -12px;
        right: 22px;
        font-family: "Bricolage Grotesque", sans-serif;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 6px 12px;
        border-radius: 20px;
        color: var(--cream-light);
    }

    .prog-card h4 {
        font-family: "Great Vibes", cursive;
        font-size: 2rem;
        margin-bottom: 12px;
        font-weight: 400;
    }
    .prog-card p {
        font-size: 14px;
        color: var(--ink);
        line-height: 20px;
        font-weight: 300;
    }
    .prog-card:nth-child(1) .badge {
        background: var(--green);
    }

    .prog-card:nth-child(2) .badge {
        background: var(--blue-deep);
    }

    .prog-card:nth-child(3) .badge {
        background: var(--maroon);
    }

    .prog-card:nth-child(4) .badge {
        background: var(--green-deep);
    }

    .prog-card:nth-child(5) .badge {
        background: var(--blue-deep);
    }

    .prog-card:nth-child(1) h4 {
        color: var(--green-deep);
    }

    .prog-card:nth-child(2) h4 {
        color: var(--blue-deep);
    }

    .prog-card:nth-child(3) h4 {
        color: var(--maroon-deep);
    }

    .prog-card:nth-child(4) h4 {
        color: var(--green-deep);
    }

    .prog-card:nth-child(5) h4 {
        color: var(--blue-deep);
    }
.s6::before {
    content: "";
    background-image: url('../images/myimages/undergrade/ub3.png');
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    width: 100%;
    opacity: 0.09;
    background-size: 100% 100%;
}
/* =========================================================
     SECTION VII — KNOWLEDGE CENTRE
  ========================================================= */
.s7 {
    background: var(--cream-deep);
    background-image: url('../images/myimages/undergrade/ub4.png');
    background-repeat: no-repeat;
    background-size: cover;
}
    .s7::before {
        content: "";
        background: #f9efdde3;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        background-size: 100% 100%;
    }
.catalog-item .idx img {
    height: 50px;
    filter: brightness(0) saturate(100%) invert(31%) sepia(10%) saturate(1795%) hue-rotate(66deg) brightness(92%) contrast(82%);
}
.catalog-item:hover img {
    filter: brightness(0) saturate(100%) invert(99%) sepia(7%) saturate(336%) hue-rotate(216deg) brightness(115%) contrast(100%);
}
    .s7 h2 {
        font-size: clamp(1.9rem, 3.2vw, 2.7rem);
        max-width: 20ch;
        margin-bottom: 14px;
    }
.s7 .intro {
    max-width: 60ch;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}
.catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(86,88,87,0.3);
    border-left: 1px solid rgba(86,88,87,0.3);
}
section#s6 {
    background: #F4F4F9;
}
@media (max-width: 900px) {
    .catalog {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 560px) {
    .catalog {
        grid-template-columns: 1fr;
    }
}
.catalog-item {
    border-right: 1px solid rgba(86,88,87,0.3);
    border-bottom: 1px solid rgba(86,88,87,0.3);
    padding: 16px 15px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink-deep);
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff94;
    transition: background .3s ease, color .3s ease;
    cursor: default;
}
section.innerbannersection {
    padding: 0;
}
    .catalog-item:hover {
        background: var(--maroon);
        color: var(--cream-light);
    }

    .catalog-item .idx {
        font-family: "Great Vibes", cursive;
        font-size: 1.5rem;
        color: var(--blue-deep);
        flex-shrink: 0;
    }

    .catalog-item:hover .idx {
        color: var(--cream-light);
    }

/* =========================================================
     SECTION VIII — CTA
  ========================================================= */
.s8 {
    color: var(--cream-light);
    text-align: center;
    padding: 50px 0px 50px;
    position: relative;
    overflow: hidden;
}
    .s8::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 0%, rgba(152,186,213,0.18), transparent 60%);
        pointer-events: none;
    }

    .s8 .script {
        font-size: clamp(2.4rem, 5vw, 3.6rem);
        color: var(--cream);
        display: block;
        margin-bottom: 10px;
    }
    .s8 p {
        max-width: 56ch;
        margin: 0 auto 40px;
        font-size: 1.05rem;
        color: rgba(251,246,233,0.85);
        font-weight: 300;
    }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--cream);
    color: var(--maroon-deep);
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 18px 38px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}

    .cta-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 36px rgba(0,0,0,0.3);
    }

    .cta-btn .arrow {
        transition: transform .3s ease;
    }

    .cta-btn:hover .arrow {
        transform: translateX(5px);
    }

.country-box.firstb h4 {
    color: #5d7f57;
}
.country-box.secondb h4 {
    color: #4f7599;
}
.country-box.thirdb h4 {
    color: #ae2220;
}
.country-box.foruthb h4 {
    color: #3f5c3b;
}
.country-box.fifthb h4 {
    color: #98bad5;
}
@media (max-width:768px) {
    .undergradebanner .hero {
        padding: 30px 15px 30px;
    }
    .container, .container-md, .container-sm {
        max-width: 100%;
    }
    section {
        padding: 30px 0;
    }

}
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        .reveal {
            transition: none;
            opacity: 1;
            transform: none;
        }

        .country-box, .prog-card, .cta-btn {
            transition: none;
        }
    }

