﻿/* ============ BASE / VARIABLES (HAU Brand) ============ */
:root {
    --primary: #313f99; /* HAU logo indigo */
    --primary-2: #4757b8; /* indigo lighter */
    --primary-dk: #1f2966; /* darkest indigo */
    --accent: #4b8bd6; /* sky blue accent */
    --accent-2: #6dabec; /* sky blue lighter */
    --gradient: linear-gradient(135deg,#313f99 0%, #6878d4 100%);
    --gradient-2: linear-gradient(135deg,#1f3caa 0%, #313f99 50%, #4b8bd6 100%);
    --gradient-soft: linear-gradient(135deg,rgba(49,63,153,.08) 0%, rgba(75,139,214,.08) 100%);
    --gradient-warm: linear-gradient(135deg,#fb7185 0%, #f59e0b 100%);
    --gradient-brand: linear-gradient(135deg,#313f99 0%, #4b8bd6 100%);
    --bg: #f8fafc;
    --bg-alt: #eef2fa;
    --card: #ffffff;
    --text: #0f1640;
    --text-2: #2a3470;
    --muted: #6470a3;
    --border: #dde2f2;
    --radius: 20px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 10px rgba(49,63,153,.05);
    --shadow: 0 8px 28px rgba(49,63,153,.08);
    --shadow-lg: 0 18px 48px rgba(49,63,153,.14);
    --shadow-hover: 0 24px 60px rgba(71,87,184,.22);
    --shadow-glow: 0 12px 40px rgba(75,139,214,.25);
    --transition: .4s cubic-bezier(.4,0,.2,1);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}


a {
    text-decoration: none;
    transition: color .25s;
    color: #313f99;
}

    a:hover {
        color: var(--primary-2)
    }

img {
    max-width: 100%;
    display: block
}

.container-xxl {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem
}

::selection {
    background: var(--accent);
    color: #fff
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


/* ============ HERO ============ */
.hero {
    position: relative
}

.hero-slide {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
}

.btn-glow {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(255,255,255,.25);
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14.5px;
    border: 2px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-glow:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(255,255,255,.45);
        color: var(--primary-2)
    }

.swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
    width: 10px;
    height: 10px
}

.swiper-pagination-bullet-active {
    background: var(--gradient) !important;
    opacity: 1;
    width: 34px;
    border-radius: 5px
}

.heroSwiper .swiper-button-next, .heroSwiper .swiper-button-prev {
    color: #fff;
    background: rgba(255,255,255,.15);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.2);
}

    .heroSwiper .swiper-button-next:hover, .heroSwiper .swiper-button-prev:hover {
        background: var(--gradient);
        border-color: transparent
    }

    .heroSwiper .swiper-button-next::after, .heroSwiper .swiper-button-prev::after {
        font-size: 1.2rem;
        font-weight: 700
    }

/* QUICK STATS */
.quick-stats {
    margin-top: -70px;
    position: relative;
    z-index: 5
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.6);
}

    .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover)
    }

    .stat-card .icon {
        width: 62px;
        height: 62px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: var(--gradient-soft);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        transition: var(--transition);
    }

    .stat-card:hover .icon {
        background: var(--gradient);
        color: #fff;
        transform: rotate(8deg) scale(1.1)
    }

    .stat-card .num {
        font-size: 2.1rem;
        font-weight: 800;
        color: var(--primary);
        line-height: 1;
        letter-spacing: -1px
    }

    .stat-card .label {
        color: var(--muted);
        font-size: .9rem;
        margin-top: .5rem;
        font-weight: 500
    }



.section-head {
    margin-bottom: 40px;
    text-align: center
}

    .section-head .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--primary-2);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: .78rem;
    }

        .section-head .eyebrow::before, .section-head .eyebrow::after {
            content: '';
            width: 32px;
            height: 2px;
            background: var(--gradient);
            border-radius: 2px;
        }

    .section-head h2 {
        font-size: clamp(1.9rem,3.6vw,2.7rem);
        font-weight: 800;
        color: var(--primary);
        margin-top: .6rem;
        margin-bottom: .5rem;
        letter-spacing: -.5px;
    }

        .section-head h2 .accent {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .section-head p {
        color: var(--muted);
        max-width: 680px;
        margin: 0 auto;
        font-size: 1rem
    }

    .section-head.left {
        text-align: left
    }

        .section-head.left .eyebrow::before {
            display: none
        }

        .section-head.left p {
            margin-left: 0
        }

    .section-head .row-actions {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem
    }

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-2);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--gradient-soft);
    transition: var(--transition);
}

    .view-all i {
        transition: transform .25s
    }

    .view-all:hover {
        background: var(--gradient);
        color: #fff
    }

        .view-all:hover i {
            transform: translateX(4px)
        }

/* ============ NEWS / EVENTS ============ */
.news-featured {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .news-featured:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover)
    }

    .news-featured .img-wrap {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16/10
    }

        .news-featured .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .7s ease
        }

    .news-featured:hover .img-wrap img {
        transform: scale(1.08)
    }

    .news-featured .badge-tag {
        position: absolute;
        top: 14px;
        left: 14px;
        background: var(--gradient);
        color: #fff;
        padding: 6px 14px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        border-radius: 50px;
        box-shadow: 0 4px 12px rgba(71,87,184,.4);
        z-index: 2;
    }

    .news-featured .body {
        padding: 1.8rem;
        flex: 1;
        display: flex;
        flex-direction: column
    }

    .news-featured .meta {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 10px;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap
    }

        .news-featured .meta i {
            color: var(--primary-2);
            margin-right: 4px
        }

    .news-featured h3 {
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.35;
        margin-bottom: 12px;
        color: var(--primary);
        letter-spacing: -.3px
    }

        .news-featured h3 a {
            color: inherit
        }

            .news-featured h3 a:hover {
                color: var(--primary-2)
            }

    .news-featured .desc {
        color: var(--text-2);
        font-size: 14px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .news-featured .read-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--primary-2);
        font-weight: 600;
        font-size: 14px;
        margin-top: 14px;
    }

        .news-featured .read-more i {
            transition: transform .25s
        }

    .news-featured:hover .read-more i {
        transform: translateX(5px)
    }

.news-list-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .news-list-item:last-child {
        margin-bottom: 0
    }

    .news-list-item:hover {
        transform: translateX(6px);
        box-shadow: var(--shadow)
    }

    .news-list-item .img-wrap {
        width: 120px;
        height: 88px;
        border-radius: var(--radius-sm);
        overflow: hidden;
        flex-shrink: 0;
    }

        .news-list-item .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .5s
        }

    .news-list-item:hover .img-wrap img {
        transform: scale(1.1)
    }

    .news-list-item .meta {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 5px
    }

        .news-list-item .meta i {
            color: var(--primary-2);
            margin-right: 3px
        }

    .news-list-item h4 {
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.45;
        margin: 0;
        color: var(--primary);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

        .news-list-item h4 a {
            color: inherit
        }

    .news-list-item:hover h4 a {
        color: var(--primary-2)
    }

/* ============ STUDENT BULLETIN ============ */
.student-news {
    background: linear-gradient(180deg,#f8fafc 0%, #eaf0fb 100%);
    position: relative;
    overflow: hidden;
}

    .student-news::before {
        content: '';
        position: absolute;
        top: 50px;
        left: -100px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: var(--gradient-soft);
        filter: blur(40px);
    }

    .student-news::after {
        content: '';
        position: absolute;
        bottom: 50px;
        right: -100px;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: var(--gradient-soft);
        filter: blur(60px);
    }

    .student-news .container-xxl {
        position: relative;
        z-index: 1
    }

.sn-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(71,87,184,.06);
}

    .sn-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover)
    }

    .sn-card .img-wrap {
        aspect-ratio: 16/10;
        overflow: hidden;
        position: relative
    }

        .sn-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s
        }

    .sn-card:hover .img-wrap img {
        transform: scale(1.1)
    }

    .sn-card .body {
        padding: 1.4rem
    }

    .sn-card .tag {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: #fff;
        background: var(--gradient);
        padding: 5px 12px;
        border-radius: 50px;
        margin-bottom: 12px;
        letter-spacing: .5px;
        box-shadow: 0 4px 10px rgba(71,87,184,.35);
    }

    .sn-card h4 {
        font-size: 15.5px;
        font-weight: 700;
        line-height: 1.4;
        color: var(--primary);
        margin: 0 0 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

        .sn-card h4 a {
            color: inherit
        }

    .sn-card:hover h4 a {
        color: var(--primary-2)
    }

    .sn-card .meta {
        font-size: 12.5px;
        color: var(--muted)
    }

        .sn-card .meta i {
            color: var(--primary-2);
            margin-right: 4px
        }

/* ============ ADMISSION ============ */
.admission-section {
    background: linear-gradient(135deg,#f0f4ff 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

    .admission-section::before {
        content: '';
        position: absolute;
        top: -150px;
        right: -100px;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: var(--gradient);
        opacity: .06;
    }

    .admission-section::after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -150px;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: var(--gradient);
        opacity: .05;
    }

    .admission-section .container-xxl {
        position: relative;
        z-index: 2
    }

.adm-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .adm-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .5s;
    }

    .adm-card:hover::before {
        transform: scaleX(1)
    }

    .adm-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover)
    }

    .adm-card .icon-box {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        background: var(--gradient-brand);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 16px;
        box-shadow: 0 12px 26px rgba(71,87,184,.32);
        transition: var(--transition);
    }

    .adm-card:hover .icon-box {
        transform: rotate(-6deg) scale(1.1)
    }

    .adm-card h4 {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 10px
    }

    .adm-card .desc {
        color: var(--text-2);
        font-size: 14px;
        margin-bottom: 14px;
        min-height: 62px ;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .adm-card .badge-hot {
        position: absolute;
        top: 18px;
        right: 18px;
        background: var(--gradient-warm);
        color: #fff;
        padding: 5px 12px;
        font-size: 11px;
        font-weight: 700;
        border-radius: 50px;
        text-transform: uppercase;
        letter-spacing: .5px;
        box-shadow: 0 4px 12px rgba(245,158,11,.4);
    }

.adm-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-2);
    display: inline-flex;
    align-items: center;
    gap: 6px
}

    .adm-link i {
        transition: transform .25s
    }

    .adm-link:hover i {
        transform: translateX(5px)
    }

/* ============ TOPIC NEWS ============ */
.topic-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .topic-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover)
    }

    .topic-card .img-wrap {
        width: 42%;
        flex-shrink: 0;
        overflow: hidden;
        position: relative
    }

        .topic-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s
        }

    .topic-card:hover .img-wrap img {
        transform: scale(1.1)
    }

    .topic-card .body {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center
    }

    .topic-card .cat {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        color: var(--accent);
        background: var(--gradient-soft);
        padding: 5px 12px;
        border-radius: 50px;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 10px;
        align-self: flex-start;
    }

    .topic-card h4 {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary);
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

        .topic-card h4 a {
            color: inherit
        }

    .topic-card:hover h4 a {
        color: var(--primary-2)
    }

    .topic-card .meta {
        font-size: 12.5px;
        color: var(--muted)
    }

        .topic-card .meta i {
            color: var(--primary-2);
            margin-right: 4px
        }

@media (max-width:575px) {
    .topic-card {
        flex-direction: column
    }

        .topic-card .img-wrap {
            width: 100%;
            height: 180px
        }
}

/* ============ E-MAGAZINE ============ */
.emag-section {
    background: linear-gradient(135deg,#1f2966 0%, #313f99 50%, #4757b8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .emag-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 700px;
        height: 700px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(75,139,214,.35),transparent 70%);
    }

    .emag-section::after {
        content: '';
        position: absolute;
        bottom: -50%;
        left: -20%;
        width: 700px;
        height: 700px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(104,120,212,.4),transparent 70%);
    }

    .emag-section .container-xxl {
        position: relative;
        z-index: 2
    }

    .emag-section .section-head h2 {
        color: #fff
    }

        .emag-section .section-head h2 .accent {
            background: linear-gradient(135deg,#fbbf24,#6dabec);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent
        }

    .emag-section .section-head .eyebrow {
        color: #a5c4ec
    }

    .emag-section .section-head p {
        color: #d0d6ee
    }

.mag-card {
    background: #fff;
    transition: var(--transition);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    box-shadow: 0 12px 30px rgba(0,0,0,.25)
}

    .mag-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 30px 60px rgba(0,0,0,.45)
    }

.mag-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden
}

    .mag-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s
    }

.mag-card:hover .mag-cover img {
    transform: scale(1.08)
}

.mag-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 50%,rgba(31,41,102,.92));
}

.mag-cover .issue {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(71,87,184,.45);
}

.mag-cover .title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
}

.mag-card .body {
    padding: .85rem 1rem;
    background: #fff
}

.mag-card .meta {
    font-size: 11.5px;
    color: var(--muted)
}

/* ============ ANNOUNCEMENTS ============ */
.announce-section {
    background: linear-gradient(135deg,#313f99 0%, #4757b8 50%, #4b8bd6 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .announce-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 20% 50%,rgba(255,255,255,.1) 0%,transparent 50%), radial-gradient(circle at 80% 80%,rgba(255,255,255,.08) 0%,transparent 50%);
    }

    .announce-section .container-xxl {
        position: relative;
        z-index: 2
    }

    .announce-section .section-head h2, .announce-section .section-head p {
        color: #fff
    }

    .announce-section .section-head .eyebrow {
        color: #c4d4ee
    }

.announce-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .announce-tabs button {
        background: rgba(255,255,255,.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,.18);
        color: #fff;
        padding: 10px 22px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        border-radius: 50px;
        transition: var(--transition);
    }

        .announce-tabs button.active, .announce-tabs button:hover {
            background: #fff;
            color: var(--primary);
            border-color: #fff;
            box-shadow: 0 8px 20px rgba(255,255,255,.2);
        }

.announce-list {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,.15);
}

.announce-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: var(--transition);
}

    .announce-item:last-child {
        border-bottom: none;
        padding-bottom: 0
    }

    .announce-item:first-child {
        padding-top: 0
    }

    .announce-item:hover {
        transform: translateX(8px)
    }

.announce-date {
    flex-shrink: 0;
    text-align: center;
    width: 72px;
    background: #fff;
    color: var(--primary);
    border-radius: 14px;
    padding: .55rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    align-self: flex-start;
}

    .announce-date .day {
        font-size: 1.55rem;
        font-weight: 800;
        line-height: 1
    }

    .announce-date .mon {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--accent);
        margin-top: 2px
    }

.announce-body {
    flex: 1;
    min-width: 0
}

    .announce-body .cat {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        background: rgba(255,255,255,.2);
        padding: 3px 10px;
        border-radius: 50px;
        text-transform: uppercase;
        letter-spacing: .4px;
        margin-bottom: 6px;
    }

    .announce-body h4 {
        color: #fff;
        font-weight: 600;
        font-size: 15px;
        line-height: 1.5;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .announce-body h4 a {
            color: inherit
        }

            .announce-body h4 a:hover {
                color: #a5c4ec
            }

    .announce-body .doc-meta {
        font-size: 12px;
        color: #c4d4ee;
        margin-top: 4px;
        opacity: .85
    }

/* ============ UTILITIES ============ */
.util-grid {
    display: grid;
    grid-template-columns: repeat(8,1fr);
    gap: 16px
}

.util-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 10px;
    background: #fff;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .util-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-brand);
        opacity: 0;
        transition: opacity .4s;
        z-index: 0;
    }

    .util-item:hover::before {
        opacity: 1
    }

    .util-item:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
        color: #fff
    }

    .util-item > * {
        position: relative;
        z-index: 1
    }

.ut-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.util-item:hover .ut-icon {
    background: rgba(255,255,255,.25);
    color: #fff;
    transform: scale(1.1)
}

.ut-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    transition: color .25s;
    line-height: 1.3
}

.util-item:hover .ut-name {
    color: #fff
}

@media (max-width:1199px) {
    .util-grid {
        grid-template-columns: repeat(6,1fr)
    }
}

@media (max-width:767px) {
    .util-grid {
        grid-template-columns: repeat(4,1fr)
    }
}

@media (max-width:480px) {
    .util-grid {
        grid-template-columns: repeat(3,1fr)
    }
}

/* ============ SCIENCE ============ */
.science-section {
    background: #f6f8fc
}

.sc-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .sc-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover)
    }

    .sc-card .img-wrap {
        aspect-ratio: 16/10;
        overflow: hidden;
        position: relative
    }

        .sc-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s
        }

    .sc-card:hover .img-wrap img {
        transform: scale(1.1)
    }

    .sc-card .img-wrap::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,transparent 60%,rgba(31,41,102,.6));
    }

    .sc-card .body {
        padding: 1.5rem
    }

    .sc-card .tag {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        background: var(--gradient);
        padding: 5px 12px;
        border-radius: 50px;
        text-transform: uppercase;
        margin-bottom: 10px;
        letter-spacing: .5px;
        box-shadow: 0 4px 10px rgba(71,87,184,.35);
    }

    .sc-card h4 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 8px;
        line-height: 1.4
    }

        .sc-card h4 a {
            color: inherit
        }

    .sc-card:hover h4 a {
        color: var(--primary-2)
    }

    .sc-card .desc {
        color: var(--text-2);
        font-size: 13.5px
    }

/* ============ TRAINING ============ */
.pg-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

    .pg-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
        border-color: transparent
    }

    .pg-card .img-wrap {
        aspect-ratio: 4/3;
        overflow: hidden
    }

        .pg-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s
        }

    .pg-card:hover .img-wrap img {
        transform: scale(1.1)
    }

    .pg-card .body {
        padding: 1.2rem
    }

.pg-icon {
    width: 54px;
    height: 54px;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    margin: -32px auto 12px;
    border: 4px solid #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(71,87,184,.4);
}

.pg-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.4
}

    .pg-card h4 a {
        color: inherit
    }

.pg-card:hover h4 a {
    color: var(--primary-2)
}

.pg-card .lvl {
    font-size: 12.5px;
    color: var(--muted)
}

/* ============ COOPERATION ============ */
.coop-section {
    background: linear-gradient(180deg,#eaf0fb 0%,#f8fafc 100%)
}

.partner-card {
    background: #fff;
    border-radius: var(--radius);
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .partner-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover)
    }

    .partner-card img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: grayscale(40%) opacity(.85);
        transition: filter .25s
    }

    .partner-card:hover img {
        filter: grayscale(0) opacity(1)
    }

.coop-news-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    gap: 14px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .coop-news-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover)
    }

    .coop-news-card .img-wrap {
        width: 100px;
        height: 100px;
        border-radius: var(--radius-sm);
        overflow: hidden;
        flex-shrink: 0
    }

        .coop-news-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .5s
        }

    .coop-news-card:hover .img-wrap img {
        transform: scale(1.1)
    }

    .coop-news-card h4 {
        font-size: 14.5px;
        font-weight: 700;
        color: var(--primary);
        line-height: 1.4;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

        .coop-news-card h4 a {
            color: inherit
        }

    .coop-news-card:hover h4 a {
        color: var(--primary-2)
    }

    .coop-news-card .meta {
        font-size: 12px;
        color: var(--muted)
    }

        .coop-news-card .meta i {
            color: var(--primary-2);
            margin-right: 4px
        }

    .coop-news-card .tag {
        display: inline-block;
        font-size: 10.5px;
        font-weight: 700;
        color: var(--accent);
        background: var(--gradient-soft);
        padding: 3px 10px;
        border-radius: 50px;
        letter-spacing: .4px;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

/* ============ RANKING ============ */
.rk-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .rk-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 4px;
        background: var(--gradient-brand);
        transition: width .5s;
        border-radius: 0 0 4px 4px;
    }

    .rk-card:hover::before {
        width: 60%
    }

    .rk-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover)
    }

.rk-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 12px 28px rgba(71,87,184,.4);
    transition: var(--transition);
}

.rk-card:hover .rk-icon {
    transform: rotate(-8deg) scale(1.05)
}

.rk-card .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px
}

    .rk-card .num small {
        font-size: 1.1rem;
        color: var(--accent);
        font-weight: 700
    }

.rk-card .label {
    font-weight: 700;
    color: var(--text);
    margin-top: .6rem;
    font-size: 14.5px
}

.rk-card .desc {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px
}

/* ============ EVENTS ============ */
.events-section {
    background: linear-gradient(180deg,#f6f8fc,#fff)
}

.ev-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .ev-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover)
    }

    .ev-card .img-wrap {
        aspect-ratio: 16/10;
        overflow: hidden;
        position: relative
    }

        .ev-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s
        }

    .ev-card:hover .img-wrap img {
        transform: scale(1.08)
    }

.ev-date {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 8px 12px;
    text-align: center;
    min-width: 64px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    z-index: 2;
}

    .ev-date .d {
        font-size: 1.55rem;
        font-weight: 800;
        color: var(--primary);
        line-height: 1
    }

    .ev-date .m {
        font-size: 11px;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        margin-top: 3px
    }

.ev-card .body {
    padding: 1.4rem
}

.ev-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 10px
}

    .ev-card h4 a {
        color: inherit
    }

.ev-card:hover h4 a {
    color: var(--primary-2)
}

.ev-info {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px
}

    .ev-info i {
        color: var(--primary-2);
        width: 16px
    }

/* ============ GALLERY ============ */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    grid-template-rows: 200px 200px
}

.gal-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer
}

    .gal-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2
    }

    .gal-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s
    }

    .gal-item:hover img {
        transform: scale(1.1)
    }

    .gal-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,transparent 55%,rgba(31,41,102,.92));
        opacity: 0;
        transition: opacity .35s;
    }

    .gal-item:hover::after {
        opacity: 1
    }

    .gal-item .cap {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        z-index: 2;
        opacity: 0;
        transform: translateY(15px);
        transition: all .35s;
    }

    .gal-item:hover .cap {
        opacity: 1;
        transform: translateY(0)
    }

.video-wrap {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

    .video-wrap iframe {
        width: 100%;
        height: 100%;
        border: 0
    }

@media (max-width:767px) {
    .gal-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .gal-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1
    }
}

/* ============ FOOTER ============ */

@keyframes ftPulse {
    0%,100% {
        box-shadow: 0 8px 22px rgba(49,63,153,.35),0 0 0 0 rgba(49,63,153,.5)
    }

    50% {
        box-shadow: 0 8px 22px rgba(49,63,153,.45),0 0 0 12px rgba(49,63,153,0)
    }
}

@media (max-width:575px) {
    .floating-tools {
        right: 12px;
        gap: 10px
    }

    .ft-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem
    }
}

/* ============ BACK TO TOP ============ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(71,87,184,.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    font-size: 1.2rem;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

    #backToTop:hover {
        transform: translateY(-5px)
    }

/* ============ RESPONSIVE ============ */
@media (max-width:1199px) {
    .nav-list > li > a {
        padding: 18px 10px;
        font-size: 13px;
        letter-spacing: .2px
    }
}

@media (max-width:991px) {
    .hero-slide {
        height: 500px
    }

    .nav-toggler-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px
    }

    .main-nav {
        flex: 0 0 auto
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 12px 30px rgba(49,63,153,.15);
        padding: 8px 0;
        z-index: 1030;
    }

        .nav-list.show {
            display: flex
        }

        .nav-list > li > a {
            padding: 14px 22px;
            border-bottom: 1px solid var(--border)
        }

            .nav-list > li > a::after {
                display: none
            }

    .mega-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: var(--bg-alt);
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-image: none;
        border-top: none
    }

    .nav-list > li:hover > .mega-menu {
        display: none
    }

    .nav-list > li.open > .mega-menu {
        display: block
    }

    .quick-stats {
        margin-top: 30px
    }

    section {
        padding: 50px 0
    }

    .topbar .top-search {
        width: 200px
    }

        .topbar .top-search:focus-within {
            width: 220px
        }
}

@media (max-width:767px) {
    .topbar .links {
        display: none
    }

    .topbar .inner {
        justify-content: flex-end
    }

    .topbar .right {
        flex: 1;
        justify-content: space-between
    }
}

@media (max-width:575px) {
    .hero-slide {
        height: 440px
    }

    .topbar .top-search {
        width: 160px;
        flex: 1
    }

        .topbar .top-search:focus-within {
            width: auto
        }

    .news-list-item .img-wrap {
        width: 100px;
        height: 74px
    }

    .brand-logo {
        height: 60px
    }

        .brand-logo img {
            max-width: 260px
        }

    .brand {
        margin-left: -6px
    }
}
#news, .student-news {
    padding-bottom: 30px;
}
.admission-section, #topic, .emag-section, .announce-section, .science-section, #training, .coop-section, .events-section, #xephang, #utils {
    padding: 20px 0 40px 0
}