:root {
    --sky: #8f63d9;
    --light-sky: #e16b9b;
    --soft-sky: #fff0f7;
    --deep-blue: #25144d;
    --ink: #17142b;
    --muted: #766d83;
    --line: #f0dce9;
    --shadow: 0 18px 42px rgba(77, 48, 119, 0.15);
}

* {
    letter-spacing: 0;
}

html {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff6fb;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6,
.fw-semibold {
    font-weight: 600;
}

a {
    text-decoration: none;
}

.text-primary {
    color: var(--sky) !important;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    --bs-btn-bg: var(--sky);
    --bs-btn-border-color: var(--sky);
    --bs-btn-hover-bg: var(--deep-blue);
    --bs-btn-hover-border-color: var(--deep-blue);
}

.btn-outline-primary {
    --bs-btn-color: var(--sky);
    --bs-btn-border-color: var(--sky);
    --bs-btn-hover-bg: var(--sky);
    --bs-btn-hover-border-color: var(--sky);
}

/* ── NAVBAR ─────────────────────────────────── */
.site-nav {
    min-height: 72px;
}

/* ── BRAND LOGO + TEXT ──────────────────────── */
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--deep-blue);
    letter-spacing: -0.03em;
    font-style: italic;
    background: linear-gradient(135deg, var(--deep-blue), var(--sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 0.63rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── ABOUT BUTTON ───────────────────────────── */
.nav-about {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.32rem 1rem;
    color: var(--deep-blue);
    border: 1.5px solid var(--line);
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.nav-about:hover {
    background: var(--soft-sky);
    color: var(--sky);
    border-color: var(--sky);
}

/* ── LOGIN & MENU BUTTONS ───────────────────── */
.nav-login {
    min-width: 90px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #b569da, #6e43bc);
    border: 0;
    box-shadow: 0 8px 20px rgba(105, 66, 178, 0.28);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 18px;
}

.nav-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar .nav-link {
    color: var(--ink);
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--sky);
}

/* ── SECTIONS ───────────────────────────────── */
.section-pad {
    padding: 72px 0;
}

.gradient-header {
    color: #fff;
    background: linear-gradient(135deg, var(--sky), var(--deep-blue));
}

/* ── HERO ───────────────────────────────────── */
.home-hero {
    min-height: 640px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(37, 20, 77, 0.88), rgba(121, 75, 192, 0.6) 48%, rgba(226, 104, 150, 0.55)),
        url("../../bg.jpg") center/cover no-repeat,
        url("../../bg.png") center/cover no-repeat,
        linear-gradient(135deg, var(--deep-blue), var(--sky));
}

.hero-inner {
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(100%, 580px);
    padding: 44px 0;
}

.admission-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.section-title h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 22px 0 10px;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
}

.hero-location {
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    opacity: 0.85;
}

.hero-copy p {
    max-width: 480px;
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ── HERO BUTTONS ───────────────────────────── */
.btn-gradient,
.btn-glass {
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.btn-hero-sm {
    min-height: 42px;
    padding: 0 20px;
    font-size: 0.82rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
}

.btn-gradient {
    border: 0;
    background: linear-gradient(135deg, #e36492, #a770ef);
    box-shadow: 0 12px 28px rgba(145, 83, 188, 0.32);
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.btn-gradient:hover,
.btn-glass:hover {
    color: #fff;
}

/* ── SECTIONS ───────────────────────────────── */
.choice-section {
    background: #fff6fb;
}

.section-title {
    max-width: 720px;
    margin: 0 auto 54px;
}

.section-title h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
}

.section-title span {
    display: block;
    width: 88px;
    height: 6px;
    margin: 22px auto;
    border-radius: 999px;
    background: linear-gradient(90deg, #e36492, #8f63d9);
}

.section-title p {
    color: var(--muted);
    font-weight: 700;
    font-size: 1.05rem;
}

.soft-card {
    border: 1px solid rgba(2, 136, 209, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #f1faff;
}

/* ── LOGIN ──────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(1, 87, 155, 0.55), rgba(2, 136, 209, 0.45)),
        url("https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.login-shell {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.glass-card {
    width: min(100%, 460px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 70px rgba(1, 87, 155, 0.28);
    backdrop-filter: blur(18px);
}

/* ── PORTAL / SIDEBAR ───────────────────────── */
.portal-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.app-sidebar {
    min-height: 100vh;
    color: #fff;
    background: linear-gradient(180deg, var(--deep-blue), var(--sky));
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-nav {
    padding: 16px;
    display: grid;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.app-main {
    padding: 28px;
}

.stat-card {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--sky);
    background: var(--soft-sky);
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
    color: #fff;
    background: linear-gradient(135deg, var(--deep-blue), var(--sky));
}

.footer-link {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    margin-left: 8px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.footer-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 991.98px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        min-height: auto;
        position: static;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .section-pad {
        padding: 48px 0;
    }

    .app-main {
        padding: 18px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .hero-inner {
        min-height: 520px;
    }

    .admission-pill {
        font-size: 0.68rem;
        letter-spacing: 2px;
        padding-inline: 12px;
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 9vw, 3rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-gradient,
    .btn-glass,
    .btn-hero-sm {
        width: auto;
        font-size: 0.8rem;
        padding: 0 18px;
        min-height: 42px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-sub {
        font-size: 0.6rem;
    }
}

/* ── NOTICE TICKER ──────────────────────────── */
.notice-ticker-wrap {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--deep-blue), var(--sky));
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
}

.notice-ticker-label {
    flex: 0 0 auto;
    padding: 0 20px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.18);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.notice-ticker-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.notice-ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.notice-tick-item {
    color: rgba(255,255,255,0.92);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0 48px 0 0;
    transition: color 0.2s;
}

.notice-tick-item:hover {
    color: #fff;
    text-decoration: underline;
}

.notice-tick-item::before {
    content: '◆';
    margin-right: 16px;
    font-size: 0.5rem;
    opacity: 0.6;
    vertical-align: middle;
}

/* ── NOTICE CARDS ───────────────────────────── */
.notice-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(77, 48, 119, 0.18);
}

.notice-expand-btn {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}