@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --navy: #0B1638;
    --navy-mid: #1a2a5e;
    --navy-soft: #e8edf8;
    --gold: #C9A84C;
    --gold-lt: #f0d98a;
    --gold-dk: #a07828;
    --teal: #0e6b74;
    --teal-lt: #e0f4f6;
    --cream: #f5f6fa;
    --white: #ffffff;
    --text: #1a2040;
    --muted: #5a6480;
    --light: #9aa3bf;
    --border: #e2e6f0;
    --font-d: 'Cormorant Garamond', Georgia, serif;
    --font-b: 'DM Sans', sans-serif;
    --tr: all .3s cubic-bezier(.4,0,.2,1);
    --shadow-sm: 0 2px 12px rgba(11,22,56,.08);
    --shadow-md: 0 6px 28px rgba(11,22,56,.12);
    --shadow-lg: 0 16px 48px rgba(11,22,56,.16);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-b);
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ── TOP BAR ─── */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    font-size: .71rem;
    font-weight: 500;
    letter-spacing: .03em;
    padding: 7px 0;
    border-bottom: 1px solid rgba(201,168,76,.15);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar-right {
    display: flex;
    flex-direction: row; /* row — side by side */
    align-items: center;
    gap: 8px;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .tb-item i {
        color: var(--gold);
        font-size: .68rem;
    }

.tb-sep {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,.12);
    margin: 0 10px;
}

.tb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    font-size: .68rem;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(201,168,76,.4);
    transition: var(--tr);
}

    .tb-link:hover {
        background: var(--gold);
        color: var(--navy);
        border-color: var(--gold);
    }

/* ── HEADER ─── */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.header-main {
    padding: 0 28px;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2.5px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-soft);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(201,168,76,.12);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lt-name {
    font-family: var(--font-d);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.lt-place {
    font-size: .63rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .lt-place i {
        color: #c0392b;
        font-size: .58rem;
    }

.lt-tag {
    font-size: .6rem;
    color: var(--gold-dk);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Center */
.header-center-block {
    text-align: center;
    flex: 1;
}

.hcb-main {
    font-family: var(--font-d);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.hcb-sub {
    font-size: .68rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Right badges */
.header-right-badges {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hrb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(201,168,76,.3);
    background: rgba(201,168,76,.05);
    transition: var(--tr);
}

    .hrb-item:hover {
        transform: translateY(-2px);
        background: rgba(201,168,76,.1);
    }

.hrb-ico {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #fff;
    flex-shrink: 0;
}

.hrb-gov {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.hrb-text {
    display: flex;
    flex-direction: column;
}

    .hrb-text span:first-child {
        font-size: .58rem;
        color: var(--light);
        text-transform: uppercase;
        letter-spacing: .07em;
    }

    .hrb-text span:last-child {
        font-size: .74rem;
        font-weight: 700;
        color: var(--navy);
    }

/* Gradient line */
.header-gradient-line {
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 40%, var(--gold-lt) 60%, var(--navy-mid) 100%);
}

/* Nav */
.nav-strip {
    background: var(--navy);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.65);
    font-size: .74rem;
    font-weight: 600;
    padding: 11px 18px;
    letter-spacing: .03em;
    transition: var(--tr);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

    .nav-item i {
        font-size: .65rem;
    }

    .nav-item:hover {
        color: var(--gold);
        background: rgba(201,168,76,.07);
        border-bottom-color: var(--gold);
    }

    .nav-item.active {
        color: var(--gold);
        border-bottom-color: var(--gold);
        background: rgba(201,168,76,.08);
    }

.nav-admin {
    margin-left: auto;
    background: var(--gold);
    color: var(--navy) !important;
    border-radius: 6px 6px 0 0;
    padding: 10px 18px;
    font-weight: 700;
}

    .nav-admin:hover {
        background: var(--gold-lt);
        border-bottom-color: transparent !important;
    }

/* ── HERO BANNER ─── */
.hero-banner {
    position: relative;
    overflow: hidden;
    max-height: 420px;
}

.hero-banner-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.hero-banner:hover .hero-banner-img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,22,56,.82) 0%, rgba(11,22,56,.5) 55%, rgba(11,22,56,.15) 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-text-box {
    max-width: 520px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(201,168,76,.18);
    border: 1px solid rgba(201,168,76,.4);
    color: var(--gold-lt);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.hero-h1 {
    font-family: var(--font-d);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
}

    .hero-h1 em {
        font-style: italic;
        color: var(--gold-lt);
    }

.hero-p {
    font-size: .88rem;
    color: rgba(255,255,255,.68);
    font-weight: 400;
}

/* ── STATS BAR ─── */
.stats-bar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid var(--border);
    transition: var(--tr);
}

    .stat:last-child {
        border-right: none;
    }

    .stat:hover {
        background: rgba(201,168,76,.07);
    }

        .stat:hover .stat-num {
            color: var(--gold-dk);
            transition: color .3s ease;
        }

        .stat:hover .stat-lbl {
            color: var(--gold);
            transition: color .3s ease;
        }

        .stat:hover .stat-ico {
            transform: scale(1.08);
            transition: transform .3s ease;
            box-shadow: 0 6px 18px rgba(201,168,76,.25);
        }

.stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #fff;
    flex-shrink: 0;
}

.s-gold {
    background: linear-gradient(135deg, var(--gold-dk), var(--gold));
}

.s-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.s-teal {
    background: linear-gradient(135deg, var(--teal), #1da0ad);
}

.stat-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-d);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    transition: color .3s ease;
}

.stat-lbl {
    font-size: .62rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    transition: color .3s ease;
}

/* ── PORTAL SECTION ─── */
.portal-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 28px 64px;
}

.sec-head {
    text-align: center;
    margin-bottom: 40px;
}

.sec-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy);
    color: var(--gold);
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.sec-title {
    font-family: var(--font-d);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.2;
}

    .sec-title em {
        font-style: italic;
        color: var(--gold-dk);
    }

.sec-sub {
    color: var(--muted);
    font-size: .86rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* NEW compact card design */
.pcard {
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    cursor: pointer;
    position: relative;
}

    .pcard:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
        color: inherit;
    }

/* Icon block */
.pc-icon-block {
    padding: 28px 24px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.pc-ico-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    transition: transform .3s ease;
}

.pcard:hover .pc-ico-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.pc-badge {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1.5px solid;
}

/* Card body */
.pc-body {
    padding: 0 24px 22px;
    flex: 1;
}

.pc-title {
    font-family: var(--font-d);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.pc-desc {
    font-size: .74rem;
    color: #0B1638;
    margin-bottom: 14px;
    line-height: 1.6;
}

.pc-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: gap .25s ease;
}

.pcard:hover .pc-link {
    gap: 11px;
}

.pc-link i {
    font-size: .65rem;
    transition: transform .25s ease;
}

.pcard:hover .pc-link i {
    transform: translateX(3px);
}

/* Color bar */
.pc-bar {
    height: 4px;
}

/* --- Navy card (Admin) --- */
.pc-navy .pc-ico-wrap {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.pc-navy .pc-badge {
    color: var(--navy);
    border-color: rgba(11,22,56,.2);
    background: var(--navy-soft);
}

.pc-navy .pc-title {
    color: var(--navy);
}

.pc-navy .pc-link {
    color: var(--navy-mid);
}

.pc-navy .pc-bar {
    background: linear-gradient(90deg, var(--navy), var(--navy-mid));
}

.pc-navy:hover {
    border-color: var(--navy) !important;
}

/* --- Gold card (Student) --- */
.pc-gold .pc-ico-wrap {
    background: linear-gradient(135deg, var(--gold-dk), var(--gold));
}

.pc-gold .pc-badge {
    color: var(--gold-dk);
    border-color: rgba(201,168,76,.35);
    background: rgba(201,168,76,.1);
}

.pc-gold .pc-title {
    color: var(--gold-dk);
}

.pc-gold .pc-link {
    color: var(--gold-dk);
}

.pc-gold .pc-bar {
    background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
}

.pc-gold:hover {
    border-color: var(--gold) !important;
}

/* --- Teal card (Apply) --- */
.pc-teal .pc-ico-wrap {
    background: linear-gradient(135deg, var(--teal), #1da0ad);
}

.pc-teal .pc-badge {
    color: var(--teal);
    border-color: rgba(14,107,116,.25);
    background: var(--teal-lt);
}

.pc-teal .pc-title {
    color: var(--teal);
}

.pc-teal .pc-link {
    color: var(--teal);
}

.pc-teal .pc-bar {
    background: linear-gradient(90deg, var(--teal), #4dd0e1);
}

.pc-teal:hover {
    border-color: var(--teal) !important;
}

/* ── HELP STRIP ─── */
.help-strip {
    background: var(--navy);
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
}

    .help-strip::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 5% 50%, rgba(201,168,76,.1) 0%, transparent 50%), radial-gradient(ellipse at 95% 50%, rgba(14,107,116,.08) 0%, transparent 50%);
        pointer-events: none;
    }
    /* Gold decorative line */
    .help-strip::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

.help-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.help-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.help-big-ico {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(201,168,76,.12);
    border: 1.5px solid rgba(201,168,76,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
}

.help-title {
    font-family: var(--font-d);
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.help-sub {
    font-size: .74rem;
    color: rgba(255,255,255,.4);
}

.help-contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
}

.hc-ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: .8rem;
    flex-shrink: 0;
}

.hc-t {
    display: flex;
    flex-direction: column;
}

    .hc-t span:first-child {
        font-size: .58rem;
        color: rgba(255,255,255,.38);
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .hc-t span:last-child {
        font-size: .82rem;
        color: rgba(255,255,255,.82);
        font-weight: 600;
    }

.hc-sep {
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,.1);
}

/* ── COPY BAR ─── */
.copy-bar {
    background: #060e28;
    text-align: center;
    padding: 12px;
    font-size: .67rem;
    border-top: 1px solid rgba(201,168,76,.1);
}

    .copy-bar a {
        color: var(--gold);
        transition: var(--tr);
    }

        .copy-bar a:hover {
            color: var(--gold-lt);
        }

/* ── ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

    .fade-up.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-center-block {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-right-badges {
        display: none;
    }

    .hero-overlay {
        padding: 0 28px;
    }

    .hero-h1 {
        font-size: 2rem;
    }

    .help-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hc:first-child {
        padding-left: 0;
    }
}
/* ── CARD IMAGE BACKGROUND ─── */
.pc-img-bg {
    position: relative;
    height: 185px;
    overflow: hidden;
}

    .pc-img-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
    }

.pcard:hover .pc-img-bg img {
    transform: scale(1.07);
}

.pc-img-overlay {
    position: absolute;
    inset: 0;
}

.pc-navy .pc-img-overlay {
    background: linear-gradient(135deg, rgba(11,22,56,.72), rgba(26,42,94,.45));
}

.pc-gold .pc-img-overlay {
    background: linear-gradient(135deg, rgba(120,88,20,.75), rgba(201,168,76,.45));
}

.pc-teal .pc-img-overlay {
    background: linear-gradient(135deg, rgba(14,107,116,.72), rgba(29,160,173,.45));
}

.pc-img-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 18px;
}

    .pc-img-content .pc-ico-wrap {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #fff;
        background: rgba(255,255,255,.18);
        border: 1.5px solid rgba(255,255,255,.35);
        backdrop-filter: blur(6px);
        transition: transform .3s ease, background .3s ease;
    }

.pcard:hover .pc-img-content .pc-ico-wrap {
    background: rgba(255,255,255,.28);
    transform: scale(1.08) rotate(-3deg);
}

.pc-img-content .pc-badge {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 11px;
    border-radius: 20px;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-inner {
        overflow-x: auto;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: .68rem;
    }

    .hero-banner-img {
        height: 280px;
    }

    .hero-h1 {
        font-size: 1.7rem;
    }

    .pc-img-bg {
        height: 150px;
    }
}
