:root {
    --blue: #0756a4;
    --blue-dark: #062f5f;
    --blue-deep: #021d3b;
    --blue-soft: #edf6ff;
    --cyan: #16a6c9;
    --yellow: #ffc928;
    --ink: #172033;
    --muted: #667085;
    --line: #e7edf5;
}

* { letter-spacing: 0; }
body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, #ffffff 0, #f5faff 42%, #fff7d7 72%, #edf6ff 100%);
}
body.is-loading { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.btn { border-radius: 10px; font-weight: 700; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-warning { background: var(--yellow); border-color: var(--yellow); color: #1b2430; }

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(2,29,59,.98), rgba(7,86,164,.96) 62%, rgba(255,201,40,.92));
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease;
}
.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-card {
    width: min(88vw, 360px);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
    text-align: center;
    color: #fff;
}
.loader-mark {
    width: 78px;
    height: 78px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    color: var(--blue-deep);
    position: relative;
    font-weight: 800;
    font-size: 1.5rem;
    overflow: hidden;
}
.loader-mark img { width: 70%; height: 70%; object-fit: contain; }
.loader-mark::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,.24);
    border-top-color: #fff;
    animation: loaderSpin 1s linear infinite;
}
.loader-copy strong {
    display: block;
    font-weight: 800;
}
.loader-copy small {
    color: rgba(255,255,255,.76);
}
.loader-bar {
    height: 4px;
    overflow: hidden;
    margin-top: 1.25rem;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
}
.loader-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    animation: loaderBar 1.15s ease-in-out infinite;
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}
@keyframes loaderBar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

.topbar {
    background: var(--blue-deep);
    color: rgba(255,255,255,.8);
}
.topbar a { color: #fff; }
.main-navbar {
    background: linear-gradient(90deg, var(--blue-deep), var(--blue-dark) 44%, var(--blue));
    transition: all .2s ease;
    box-shadow: 0 14px 34px rgba(2,29,59,.2);
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.main-navbar.is-compact { padding-top: .25rem; padding-bottom: .25rem; }
.main-navbar .navbar-nav { gap: .12rem; }
.main-navbar .nav-link {
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 42px;
    padding: .55rem .68rem !important;
    border-radius: 8px;
    font-weight: 750;
    font-size: .9rem;
    white-space: nowrap;
    opacity: 1;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus,
.main-navbar .nav-link.show {
    background: rgba(255,255,255,.13);
    color: #ffffff !important;
}
.main-navbar .nav-link::after { color: rgba(255,255,255,.9); }
.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,.55);
    box-shadow: none;
}
.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: var(--blue-dark);
    font-weight: 800;
    box-shadow: inset 0 -6px 14px rgba(2,29,59,.12);
    overflow: hidden;
}
.brand-mark img { width: 82%; height: 82%; object-fit: contain; }
.brand-mark-light { background: #fff; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { color: #fff; font-size: .98rem; }
.brand-text small { color: rgba(255,255,255,.78); font-size: .78rem; }
.navbar .dropdown-menu {
    border: 1px solid rgba(7,86,164,.12);
    border-radius: 8px;
    padding: .55rem;
    margin-top: .65rem;
    min-width: 260px;
}
.navbar .dropdown-item {
    color: var(--ink);
    border-radius: 7px;
    font-size: .92rem;
    padding: .65rem .8rem;
    font-weight: 650;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--blue-soft);
    color: var(--blue-dark);
}
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 4px;
}
.search-box input {
    width: 110px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding-left: .7rem;
}
.search-box input::placeholder { color: rgba(255,255,255,.78); }
.search-box button {
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--blue-dark);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(2,29,59,.96), rgba(7,86,164,.7) 55%, rgba(22,166,201,.46)),
        url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 112px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}
.min-vh-hero { min-height: 72vh; padding: 5rem 0; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .48rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-weight: 750;
}
.hero-accreditation {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
    padding: .75rem;
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
    backdrop-filter: blur(12px);
}
.hero-accreditation img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}
.hero-accreditation span {
    font-weight: 800;
    color: #fff;
}
.hero-section h1 {
    max-width: 850px;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: 1.02;
    font-weight: 800;
    text-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.hero-section .lead { max-width: 760px; font-size: 1.25rem; color: rgba(255,255,255,.88); }
.hero-info-panel {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 8px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.hero-info-panel > div:not(.hero-accreditation) {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
}
.hero-info-panel > div:last-child { border-bottom: 0; }
.hero-info-panel span {
    display: block;
    color: var(--yellow);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.hero-info-panel strong { display: block; color: #fff; font-size: 1.05rem; }
.section-kicker {
    display: inline-flex;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: .7rem;
}
.hero-section .section-kicker,
.cta-section .section-kicker { color: var(--yellow); }
.section-title {
    font-weight: 800;
    line-height: 1.16;
    color: var(--ink);
}
.quick-card,
.lecturer-card,
.content-card,
.profile-panel,
.contact-form,
.search-result {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(23,32,51,.06);
}
.quick-links {
    background:
        linear-gradient(135deg, #ffffff 0%, #ffffff 34%, #edf6ff 34%, #edf6ff 68%, #fff2b8 68%, #fff2b8 100%);
    position: relative;
}
.quick-links .container { position: relative; }
.quick-card {
    min-height: 130px;
    display: grid;
    place-items: center;
    gap: .65rem;
    text-align: center;
    color: var(--ink);
    font-weight: 800;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.quick-card:nth-child(odd) {
    background: linear-gradient(180deg, #ffffff, #edf6ff);
}
.quick-links .col-6:nth-child(even) .quick-card {
    background: linear-gradient(180deg, #fffdf4, #fff1aa);
}
.quick-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--yellow));
}
.quick-card i { font-size: 1.8rem; color: var(--blue); }
.quick-card:hover,
.content-card:hover,
.lecturer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(7,86,164,.35);
    box-shadow: 0 20px 48px rgba(23,32,51,.11);
}
.image-panel {
    min-height: 420px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,201,40,.18), rgba(7,86,164,.12)),
        url("https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1200&q=80") center/cover;
    box-shadow: 18px 18px 0 var(--blue-soft), 0 20px 50px rgba(23,32,51,.1);
}
.stats-band {
    background:
        linear-gradient(135deg, var(--blue-deep), var(--blue) 70%, var(--cyan));
    color: #fff;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2.8rem; font-weight: 800; }
.stat-item span { color: rgba(255,255,255,.8); }
.content-card { overflow: hidden; transition: transform .2s, border-color .2s; }
.content-card {
    border-top: 5px solid var(--blue);
}
.row .col-md-6:nth-child(even) .content-card,
.row .col-lg-3:nth-child(even) .content-card {
    border-top-color: var(--yellow);
}
.content-card h2,
.content-card h3 { font-size: 1.15rem; font-weight: 800; }
.content-card p { color: var(--muted); }
.thumb,
.detail-thumb {
    min-height: 190px;
    background:
        linear-gradient(135deg, rgba(7,86,164,.72), rgba(255,201,40,.58)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1000&q=80") center/cover;
}
.featured-card .thumb { min-height: 290px; }
.soft-section {
    background:
        linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 52%, #f3b900 52%, var(--yellow) 100%);
    color: #fff;
}
.soft-section .section-title { color: #fff; }
.soft-section .timeline-item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-left: 5px solid #fff;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: .75rem;
}
.soft-section .timeline-item span { color: rgba(255,255,255,.78); }
.soft-section .col-lg-6:nth-child(2) .timeline-item {
    background: rgba(2,29,59,.16);
    border-left-color: var(--blue-deep);
}
.soft-section .col-lg-6:nth-child(2) .section-title { color: var(--blue-deep); }
.soft-section .col-lg-6:nth-child(2) .timeline-item span { color: rgba(2,29,59,.72); }
section:nth-of-type(2) {
    background:
        linear-gradient(90deg, #fff 0%, #fff 58%, var(--blue-soft) 58%, var(--blue-soft) 100%);
}
section:nth-of-type(4) {
    background:
        linear-gradient(180deg, #ffffff 0%, #fff 50%, #fff7d7 50%, #fff7d7 100%);
}
.page-hero {
    background:
        linear-gradient(135deg, rgba(237,246,255,.98), rgba(255,248,222,.96)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-weight: 800; }
.breadcrumb a { color: var(--blue); }
.timeline-item,
.research-line,
.testimonial {
    padding: 1rem 0 1rem 1.25rem;
    border-left: 4px solid var(--yellow);
    border-bottom: 1px solid var(--line);
}
.timeline-item strong,
.research-line strong { display: block; }
.timeline-item span,
.research-line span,
.testimonial cite { color: var(--muted); font-size: .92rem; }
.lecturer-card {
    display: block;
    height: 100%;
    padding: 1.25rem;
    color: var(--ink);
    transition: transform .2s, border-color .2s;
    background:
        linear-gradient(180deg, #fff, #f8fbff);
}
.row .col-md-6:nth-child(even) .lecturer-card,
.row .col-lg-3:nth-child(even) .lecturer-card {
    background:
        linear-gradient(180deg, #fff, #fff7d7);
}
.lecturer-card h2,
.lecturer-card h3 { font-size: 1rem; font-weight: 800; }
.lecturer-card p { margin-bottom: .25rem; color: var(--blue); font-weight: 700; }
.lecturer-card span { color: var(--muted); }
.avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.row .col-md-6:nth-child(even) .avatar,
.row .col-lg-3:nth-child(even) .avatar {
    background: var(--yellow);
    color: var(--blue-deep);
}
.avatar.big { width: 150px; height: 150px; font-size: 4rem; margin-inline: auto; }
.profile-panel { padding: 2rem; text-align: center; position: sticky; top: 110px; }
.content-body {
    max-width: 920px;
    font-size: 1.05rem;
    line-height: 1.8;
}
.content-body h2 { font-weight: 800; margin-top: 1.5rem; }
.curriculum-meta {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: linear-gradient(180deg, #fff, var(--blue-soft));
}
.curriculum-meta span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}
.curriculum-meta strong {
    display: block;
    color: var(--blue);
    font-size: 1.35rem;
    font-weight: 800;
}
.curriculum-tabs {
    gap: .5rem;
}
.curriculum-tabs .nav-link {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--blue-dark);
    font-weight: 800;
}
.curriculum-tabs .nav-link.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.public-table {
    background: #fff;
    border: 1px solid var(--line);
}
.public-table thead th {
    background: var(--blue);
    color: #fff;
    white-space: nowrap;
}
.empty-state {
    border: 1px dashed #b8c7d9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    background: #fbfdff;
}
.video-box iframe { border: 0; border-radius: 8px; }
.innovation {
    background:
        linear-gradient(135deg, var(--blue-soft) 0%, #ffffff 46%, #fff1aa 46%, #fff8dc 100%);
}
.cta-section {
    background:
        linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: #fff;
}
.cta-section h2 { margin: 0; font-weight: 800; }
.contact-form { padding: 1.5rem; }
.search-result { display: block; padding: 1rem; margin-bottom: 1rem; color: var(--ink); }
.search-result span { display: block; color: var(--muted); }
.error-page { min-height: 70vh; display: grid; place-items: center; }
.site-footer {
    background:
        linear-gradient(135deg, var(--blue-deep), var(--blue-dark) 70%, #0b4c8f);
    color: #fff;
}
.site-footer h3 { font-size: 1rem; font-weight: 800; }
.site-footer a { display: block; color: rgba(255,255,255,.84); margin-bottom: .55rem; }
.footer-muted { color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); }

@media (min-width: 1200px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    .main-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: .75rem;
        border-radius: 8px;
        background: rgba(2,29,59,.34);
        border: 1px solid rgba(255,255,255,.12);
    }
    .main-navbar .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: .7rem .8rem !important;
        white-space: normal;
    }
    .navbar .dropdown-menu {
        margin: .2rem 0 .5rem;
        background: #fff;
        min-width: 100%;
    }
    .search-box { margin-top: 1rem; }
    .search-box input { width: 100%; }
    .min-vh-hero { min-height: 66vh; }
    .brand-text strong { max-width: 190px; white-space: normal; }
}

@media (max-width: 575.98px) {
    .hero-accreditation {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        padding: .75rem;
    }
    .hero-accreditation img {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 767.98px) {
    .py-5 > .container > .d-flex.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-slider {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: .75rem;
        padding-bottom: .35rem;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-slider > [class*="col-"] {
        flex: 0 0 84%;
        max-width: 84%;
        scroll-snap-align: start;
    }

    .mobile-slider > [class*="col-"]:last-child {
        margin-right: .75rem;
    }

    .lecturer-slider {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-columns: 82%;
        gap: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .lecturer-slider > [class*="col-"] {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        scroll-snap-align: start;
    }

    .lecturer-slider > [class*="col-"]:last-child {
        margin-right: .75rem;
    }

    .mobile-slider-stack {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: .25rem;
        padding-bottom: .35rem;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-slider-stack > .research-line,
    .mobile-slider-stack > .testimonial {
        flex: 0 0 84%;
        min-width: 84%;
        scroll-snap-align: start;
        border: 1px solid var(--line);
        border-left: 5px solid var(--yellow);
        border-radius: 8px;
        background: #fff;
        padding: 1.15rem;
        box-shadow: 0 14px 34px rgba(23,32,51,.07);
    }

    .mobile-slider-stack > .research-line {
        background: linear-gradient(180deg, #fff, var(--blue-soft));
    }

    .mobile-slider-stack > .testimonial {
        margin: 0;
        background: linear-gradient(180deg, #fff, #fff7d7);
    }

    .mobile-slider::-webkit-scrollbar,
    .mobile-slider-stack::-webkit-scrollbar {
        display: none;
    }

    .mobile-slider,
    .mobile-slider-stack {
        scrollbar-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader-mark::before,
    .loader-bar span {
        animation: none;
    }
}
