:root {
    --primary: #003366;
    --primary-light: #0d6efd;
    --primary-dark: #1E1B4B;
    --primary-glow: rgba(0, 51, 102, .08);
    --accent: #06B6D4;
    --accent-glow: rgba(6, 182, 212, .1);
    --bg: #F9FAFB;
    --bg-alt: #F3F4F6;
    --card: #FFFFFF;
    --text: #111827;
    --muted: #9CA3AF;
    --border: #E5E7EB;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --success: #059669;
    --success-light: #D1FAE5;
    --info: #2563EB;
    --info-light: #DBEAFE;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 0 0 1px var(--border);
    --shadow-md: 0 0 0 1px var(--border), 0 2px 8px rgba(0, 0, 0, .04);
    --shadow-lg: 0 0 0 1px var(--border), 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-xl: 0 0 0 1px var(--border), 0 8px 32px rgba(0, 0, 0, .08)
}

body.dark-mode {
    --bg: #0F172A;
    --bg-alt: #1E293B;
    --card: #1F2937;
    --text: #F3F4F6;
    --border: #374151
}

/* ═══════ BASE ═══════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .3s, color .3s
}

body.lang-bn {
    font-family: 'Noto Sans Bengali', sans-serif
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -.02em;
    line-height: 1.2
}

body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3 {
    font-family: 'Noto Sans Bengali', sans-serif
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}

::selection {
    background: var(--primary);
    color: #fff
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

/* ═══════ BUTTONS ═══════ */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 13px;
    transition: all .2s
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow)
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius);
    border: 1.5px solid var(--primary);
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 13px;
    transition: all .2s
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 12px;
    transition: all .2s
}

.btn-danger:hover {
    opacity: .9
}

/* ═══════ FORMS ═══════ */
input,
select,
textarea {
    font-family: 'Inter';
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    width: 100%;
    transition: all .2s;
    background: #fff;
    color: var(--text)
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text)
}

body.lang-bn input,
body.lang-bn select,
body.lang-bn textarea {
    font-family: 'Noto Sans Bengali', sans-serif
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow)
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block
}

.form-group {
    margin-bottom: 16px
}

.form-group label {
    display: block;
    margin-bottom: 6px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

/* ═══════ CARD ═══════ */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all .2s;
    overflow: hidden
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--muted)
}

/* ═══════ BADGE ═══════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em
}

.badge-success {
    background: var(--success-light);
    color: var(--success)
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning)
}

.badge-info {
    background: var(--info-light);
    color: var(--info)
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger)
}

/* ═══════ TAB ═══════ */
.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: all .15s
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600
}

/* ═══════ CONTAINER ═══════ */
.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px
}

/* ═══════ LOADING / TOAST / LIGHTBOX / MODAL ═══════ */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity .3s
}

.loader {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    padding: 12px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform .3s;
    box-shadow: var(--shadow-lg)
}

.toast.show {
    transform: translateX(0)
}

.toast-success {
    background: var(--success)
}

.toast-error {
    background: var(--danger)
}

.toast-info {
    background: var(--info)
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .2s
}

.lightbox.show {
    opacity: 1;
    visibility: visible
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .2s
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(.95);
    transition: all .2s;
    box-shadow: var(--shadow-xl)
}

.modal-overlay.show .modal-content {
    transform: scale(1)
}

.fade-in {
    animation: fadeIn .4s ease
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ═══════ LANG SWITCH ═══════ */
.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--text);
    transition: all .2s;
    white-space: nowrap
}

.lang-switch-btn:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--primary)
}

.lang-switch-btn i {
    font-size: 14px
}

/* ═══════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    transition: background .3s
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius)
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-glow)
}

.dropdown {
    position: relative
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all .2s;
    z-index: 100;
    border: 1px solid var(--border)
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    font-weight: 500
}

.dropdown-item:hover {
    background: var(--bg-alt);
    color: var(--primary)
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    opacity: .5
}

/* ═══════════════════════════════════════════════
   NOTICE TICKER
   ═══════════════════════════════════════════════ */
.notice-ticker {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    overflow: hidden
}

.ticker-wrap {
    display: flex;
    animation: ticker 35s linear infinite
}

.ticker-item {
    white-space: nowrap;
    padding: 0 40px;
    font-size: 13px
}

@keyframes ticker {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* ═══════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════ */
.hero-sec {
    position: relative;
    overflow: hidden;
    background: #0a1628
}

.slider-wrap {
    position: relative;
    height: 420px
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease
}

.slide.active {
    opacity: 1;
    z-index: 1
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 30, 60, .85) 0%, rgba(0, 30, 60, .4) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 60px
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 600px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3)
}

.slide-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 24px;
    max-width: 500px
}

.slide-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn-slide {
    padding: 10px 24px;
    background: #fff;
    color: #003366;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: all .2s
}

.btn-slide:hover {
    background: #e0e7ff;
    transform: translateY(-1px)
}

.btn-slide-outline {
    padding: 10px 24px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .5);
    border-radius: 6px;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: all .2s
}

.btn-slide-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1)
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5
}

.slider-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: all .3s
}

.slider-dot.active {
    background: #fff;
    width: 40px
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: all .2s;
    backdrop-filter: blur(4px);
}

.slide-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.slide-prev {
    left: 16px
}

.slide-next {
    right: 16px
}

/* ═══════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════ */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.stats-bar .container-wide {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px
}

.stat-compact i {
    font-size: 1.5rem;
    opacity: .7
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1
}

.stat-lbl {
    font-size: .7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500
}

/* ═══════════════════════════════════════════════
   LATEST PHOTOS MARQUEE
   ═══════════════════════════════════════════════ */
.latest-photos-sec {
    padding: 20px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb
}

.latest-photos-sec .marquee-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px
}

.latest-photos-sec .marquee-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0
}

.latest-photos-sec .marquee-head h3 i {
    color: #0d6efd
}

.latest-photos-sec .marquee-head .see-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #003366;
    text-decoration: none;
    transition: gap .2s
}

.latest-photos-sec .marquee-head .see-all:hover {
    gap: 8px
}

.latest-photos-sec .marquee-viewport {
    width: 100%;
    overflow: hidden
}

.latest-photos-sec .marquee-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    will-change: transform;
    animation: marqueeScroll 30s linear infinite
}

.latest-photos-sec .marquee-track:hover {
    animation-play-state: paused;
    cursor: grab
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(calc(-50% - 5px))
    }
}

.marquee-chip {
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    transition: all .3s
}

.marquee-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12)
}

.marquee-chip img {
    display: block;
    width: 140px;
    height: 90px;
    object-fit: cover
}

/* ═══════════════════════════════════════════════
   MAIN SPLIT LAYOUT
   ═══════════════════════════════════════════════ */
.main-split {
    padding: 28px 0
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px
}

.col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px
}

.col-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 8px
}

.col-head h2 i {
    color: #003366;
    opacity: .7
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px
}

.ftab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s
}

.ftab.active {
    background: #003366;
    color: #fff
}

.ftab:hover:not(.active) {
    color: #334155
}

/* ═══════ COURSE CARDS ═══════ */
.courses-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.program-card {
    display: flex
}

.program-card .card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all .2s;
    background: #fff
}

.program-card .card:hover {
    box-shadow: 0 4px 12px rgba(0, 51, 102, .1);
    transform: translateY(-2px)
}

.program-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity .2s
}

.program-card:hover .card::before {
    opacity: 1
}

.program-card .card img {
    height: 110px;
    object-fit: cover; /* Prevents image distortion */
    width: 100%;
}

.program-card .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 12px !important
}

.program-card .card h3 {
    font-size: .8rem !important;
    margin-bottom: 4px !important
}

.program-card .card p {
    font-size: .7rem !important;
    margin-bottom: 8px !important
}

.program-card .badge {
    font-size: .6rem !important;
    padding: 2px 6px !important
}

.program-card .flex.gap-2 {
    margin-top: auto
}

/* ═══════════════════════════════════════════════
   MOBILE COMPACT VIEW
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .program-card .card img {
        height: 80px !important; /* ইমেজের হাইট কমানো হয়েছে */
    }

    .program-card .p-4 {
        padding: 8px !important; /* প্যাডিং টাইট করা হয়েছে */
    }

    .program-card .card h3 {
        font-size: .72rem !important;
        margin-bottom: 2px !important;
        line-height: 1.3 !important;
        /* টাইটেল ২ লাইনের বেশি বড় হবে না */
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .program-card .card p {
        font-size: .62rem !important;
        margin-bottom: 4px !important;
        line-height: 1.4 !important;
        /* ডেসক্রিপশন ২ লাইনের বেশি বড় হবে না */
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .program-card .badge {
        font-size: .52rem !important;
        padding: 1px 5px !important;
    }
}

.view-all-wrap {
    text-align: center;
    margin-top: 16px
}

.view-all-btn {
    padding: 8px 24px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s
}

.view-all-btn:hover {
    background: #002244
}

.view-all-btn span {
    display: inline-block;
    transition: transform .2s
}

.view-all-btn:hover span {
    transform: translateX(4px)
}

/* ═══════ SIDEBAR OFFICIALS ═══════ */
.off-cards-sec {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 16px
}

.off-cards-head {
    background: #003366;
    color: #fff;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.off-cards-stack {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.off-card-v {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
    background: #fff;
    position: relative
}

.off-card-v:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(0, 51, 102, .1);
    transform: translateY(-2px)
}

.off-card-v-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative
}

.off-card-v-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .3s
}

.off-card-v:hover .off-card-v-img img {
    transform: scale(1.04)
}

.off-card-v-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none
}

.off-card-v-body {
    padding: 10px 12px 14px;
    text-align: center
}

.off-card-v-name {
    font-size: .85rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.3;
    margin-bottom: 2px
}

.off-card-v-desig {
    font-size: .73rem;
    font-weight: 600;
    color: #0d6efd;
    line-height: 1.3;
    margin-bottom: 6px
}

.off-card-v-office {
    font-size: .65rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
    margin-bottom: 3px
}

.off-card-v-office i {
    font-size: .55rem;
    color: #9ca3af;
    flex-shrink: 0
}

.off-card-v-phone {
    font-size: .65rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
    margin-bottom: 3px
}

.off-card-v-phone i {
    font-size: .55rem;
    color: #059669;
    flex-shrink: 0
}

.off-card-v-email {
    font-size: .62rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.off-card-v-email i {
    font-size: .55rem;
    color: #0d6efd;
    flex-shrink: 0
}

.official-view-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity .2s
}

.off-card-v:hover .official-view-icon {
    opacity: 1
}

/* ═══════ QUICK LINKS ═══════ */
.ql-sec {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 16px
}

.ql-head {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px
}

.ql-head i {
    color: #003366;
    opacity: .7
}

.ql-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px
}

.ql-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer
}

.ql-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(0, 51, 102, .08);
    background: #fff
}

.ql-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.ql-icon i {
    font-size: .75rem
}

.ql-text {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.ql-text strong {
    font-size: .7rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ql-text small {
    font-size: .58rem;
    color: #9ca3af
}

/* ═══════ CALENDAR ═══════ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 12px
}

.calendar-day {
    padding: 8px 4px;
    border-radius: 4px;
    background: var(--bg);
    min-height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s
}

.calendar-day:hover:not([style*="transparent"]) {
    background: var(--info)
}

.calendar-day.has-event {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(49, 46, 129, .2)
}

.calendar-day.today.has-event {
    box-shadow: 0 2px 4px rgba(49, 46, 129, .2), inset 0 0 0 2px var(--accent)
}

.calendar-day-name {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    padding: 4px
}

/* ═══════ GALLERY ═══════ */
.gal-sec {
    padding: 24px 0
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.gal-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    border: 1px solid #e5e7eb
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.gal-item:hover img {
    transform: scale(1.05)
}

.gal-over {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    color: #fff;
    font-size: 1.2rem
}

.gal-item:hover .gal-over {
    opacity: 1
}

/* ═══════ MAP ═══════ */
.map-sec {
    padding: 24px 0
}

.map-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb
}

/* ═══════ CTA ═══════ */
.cta-sec {
    background: linear-gradient(135deg, #003366, #0055aa);
    padding: 28px 0
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px
}

.cta-text h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px
}

.cta-text p {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem
}

.cta-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.cta-pri {
    padding: 10px 20px;
    background: #fff;
    color: #003366;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px
}

.cta-pri:hover {
    background: #e0e7ff;
    transform: translateY(-1px)
}

.cta-sec-btn {
    padding: 10px 20px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 6px;
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px
}

.cta-sec-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1)
}

/* ═══════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════ */
.admin-sidebar {
    width: 240px;
    background: var(--card);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    transition: transform .2s;
    overflow-y: auto;
    border-right: 1px solid var(--border)
}

.admin-main {
    margin-left: 240px;
    min-height: 100vh;
    background: var(--bg)
}

.admin-nav-item {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    margin: 1px 8px;
    border-radius: 0 6px 6px 0
}

.admin-nav-item:hover {
    background: var(--bg-alt)
}

.admin-nav-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600
}

.admin-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px
}

.admin-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border)
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.admin-table th {
    background: var(--bg-alt);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border)
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle
}

.admin-table tbody tr:hover td {
    background: var(--bg)
}

.admin-table tr:last-child td {
    border-bottom: none
}

.admin-table td .flex {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all .2s
}

.stat-card:hover {
    box-shadow: var(--shadow-md)
}

/* ═══════ ADMIN ACTION BUTTONS ═══════ */
.act-btn-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap
}

.act-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all .15s;
    color: var(--muted)
}

.act-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1)
}

.act-btn-primary {
    color: #2563eb;
    border-color: #bfdbfe
}

.act-btn-primary:hover {
    background: #eff6ff
}

.act-btn-danger {
    color: #dc2626;
    border-color: #fecaca
}

.act-btn-danger:hover {
    background: #fef2f2
}

.act-btn-info {
    color: #059669;
    border-color: #a7f3d0
}

.act-btn-info:hover {
    background: #ecfdf5
}

.act-btn-warn {
    color: #d97706;
    border-color: #fde68a
}

.act-btn-warn:hover {
    background: #fffbeb
}

/* ═══════ ADMIN STAT CARDS ═══════ */
.admin-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all .2s;
    cursor: pointer
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08)
}

.admin-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px
}

.admin-stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2
}

.admin-stat-label {
    font-size: 11px;
    color: var(--muted, #6b7280);
    margin-top: 2px
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 1024px)
   ═══════════════════════════════════════════════ */
@media(max-width:1024px) {
    .split-grid {
        grid-template-columns: 1fr
    }

    .side-col {
        order: -1;
        position: static !important
    }

    .courses-3col {
        grid-template-columns: repeat(2, 1fr)
    }

    .ql-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .gal-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    /* Dropdown menus fix for tablet */
    .dropdown-menu {
        position: fixed !important;
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
        width: auto !important;
        min-width: 0 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .15) !important;
        border-radius: 12px !important;
        background: #fff !important;
        z-index: 1000 !important
    }

    /* Force hide desktop nav, show hamburger */
    #public-site>header .hidden.lg\:flex {
        display: none !important
    }

    #public-site>header button.lg\:hidden {
        display: flex !important
    }

    /* Mobile nav overlay */
    #mobile-nav {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999 !important;
        background: rgba(255, 255, 255, .98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        overflow-y: auto !important;
        padding: 80px 20px 30px !important;
        border: none !important;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all .35s cubic-bezier(.4, 0, .2, 1) !important
    }

    #mobile-nav:not(.hidden) {
        transform: translateX(0);
        opacity: 1;
        visibility: visible
    }

    #mobile-nav a {
        font-size: 17px !important;
        font-weight: 500 !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
        color: #1e293b !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important
    }

    #mobile-nav a:active {
        background: #eff6ff !important;
        color: #003366 !important
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 768px)
   ═══════════════════════════════════════════════ */
@media(max-width:768px) {

    /* Header compact */
    header {
        padding: 0 12px;
        height: 56px
    }

    header img {
        height: 36px !important
    }

    header .flex.items-center.gap-2 {
        gap: 4px
    }

    .lang-switch-btn {
        padding: 4px 8px;
        font-size: 11px;
        gap: 4px
    }

    .lang-switch-btn i {
        font-size: 12px
    }

    #header-login-btn {
        padding: 5px 12px !important;
        font-size: 11px !important
    }

    /* Slider compact */
    .slider-wrap {
        height: 280px !important
    }

    .slide-overlay {
        padding: 0 20px !important;
        background: linear-gradient(to top, rgba(0, 30, 60, .9) 0%, rgba(0, 30, 60, .5) 50%, transparent 100%) !important
    }

    .slide-title {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important
    }

    .slide-sub {
        font-size: .8rem !important;
        margin-bottom: 16px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden
    }

    .slide-btns {
        gap: 6px !important
    }

    .btn-slide,
    .btn-slide-outline {
        padding: 8px 16px !important;
        font-size: .75rem !important
    }

    .slider-dot {
        width: 22px !important;
        height: 3px !important
    }

    .slide-nav {
        width: 30px !important;
        height: 30px !important
    }

    .slide-prev {
        left: 10px !important
    }

    .slide-next {
        right: 10px !important
    }

    .slider-dots {
        bottom: 12px !important;
        gap: 5px !important
    }

    /* Stats compact */
    .stats-bar {
        padding: 10px 0 !important
    }

    .stats-bar .container-wide {
        gap: 8px !important
    }

    .stat-compact {
        padding: 4px 8px !important;
        gap: 8px !important
    }

    .stat-compact i {
        font-size: 1.1rem !important
    }

    .stat-num {
        font-size: 1.2rem !important
    }

    .stat-lbl {
        font-size: .6rem !important
    }

    /* Course cards */
    .courses-3col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important
    }

    /* Sidebar officials → horizontal layout */
    .off-card-v {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 12px !important
    }

    .off-card-v-img {
        width: 70px !important;
        height: 70px !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important
    }

    .off-card-v-img::after {
        display: none !important
    }

    .off-card-v-body {
        padding: 0 !important;
        text-align: left !important;
        flex: 1;
        min-width: 0
    }

    .off-card-v-name {
        font-size: .78rem !important
    }

    .off-card-v-desig {
        font-size: .68rem !important
    }

    .off-card-v-office,
    .off-card-v-phone,
    .off-card-v-email {
        justify-content: flex-start !important;
        font-size: .6rem !important;
        margin-bottom: 1px !important
    }

    .official-view-icon {
        display: none !important
    }

    /* Quick links */
    .ql-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 8px !important
    }

    .ql-item {
        padding: 6px 8px !important;
        gap: 6px !important
    }

    .ql-icon {
        width: 26px !important;
        height: 26px !important
    }

    /* Gallery */
    .gal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important
    }

    /* CTA */
    .cta-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 0 16px !important
    }

    .cta-text h3 {
        font-size: 1rem !important;
        justify-content: center !important
    }

    .cta-btns {
        flex-direction: column !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto
    }

    .cta-pri,
    .cta-sec-btn {
        width: 100%;
        justify-content: center
    }

    /* Map */
    .map-frame iframe {
        height: 200px !important
    }

    /* Notice ticker */
    .notice-ticker {
        padding: 6px 0
    }

    .ticker-item {
        font-size: 11px;
        padding: 0 24px
    }

    /* Admin sidebar */
    .admin-sidebar {
        transform: translateX(-100%)
    }

    .admin-sidebar.open {
        transform: translateX(0)
    }

    .admin-main {
        margin-left: 0
    }

    /* Calendar */
    .calendar-grid {
        gap: 2px !important
    }

    .calendar-day {
        padding: 6px 2px !important;
        font-size: 11px !important;
        min-height: 30px !important
    }

    .calendar-day-name {
        font-size: 9px !important
    }

    /* Marquee chips */
    .marquee-chip img {
        width: 120px;
        height: 80px
    }

    /* Prevent horizontal scroll */
    body,
    .container-wide,
    #page-content {
        overflow-x: hidden
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (max-width: 480px)
   ═══════════════════════════════════════════════ */
@media(max-width:480px) {

    /* Header ultra-compact */
    header {
        height: 50px;
        padding: 0 10px
    }

    header img {
        height: 32px !important
    }

    header>div {
        gap: 6px
    }

    .lang-switch-btn {
        padding: 3px 6px;
        font-size: 10px
    }

    .lang-switch-btn i {
        font-size: 11px
    }

    #header-login-btn {
        padding: 4px 8px !important;
        font-size: 10px !important
    }

    header button[onclick="toggleTheme()"] {
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center
    }

    header button[onclick="toggleTheme()"] i {
        font-size: 11px
    }

    /* Slider ultra-compact */
    .slider-wrap {
        height: 220px !important
    }

    .slide-overlay {
        padding: 0 16px !important
    }

    .slide-title {
        font-size: 1.1rem !important
    }

    .slide-sub {
        font-size: .72rem !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 2 !important
    }

    .slide-btns {
        flex-direction: column !important;
        width: 100%
    }

    .btn-slide,
    .btn-slide-outline {
        text-align: center;
        width: 100%;
        justify-content: center
    }

    .slide-nav {
        width: 26px !important;
        height: 26px !important
    }

    .slide-prev {
        left: 6px !important
    }

    .slide-next {
        right: 6px !important
    }

    .slider-dots {
        bottom: 8px !important;
        gap: 4px !important
    }

    .slider-dot {
        width: 18px !important;
        height: 3px !important
    }

    .stats-bar .container-wide {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 0 16px !important
    }

    .stat-compact {
        padding: 6px 10px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2px !important
    }

    .stat-compact i {
        font-size: 1rem !important
    }

    .stat-num {
        font-size: 1.1rem !important
    }

    .stat-lbl {
        font-size: .55rem !important
    }

    .latest-photos-sec .marquee-chip {
        width: 100px !important;
        height: 68px !important;
        border-radius: 6px !important
    }

    .latest-photos-sec .marquee-track {
        gap: 6px !important;
        padding: 4px 2px !important
    }

    .courses-3col {
        grid-template-columns: 1fr !important;
        gap: 12px !important
    }

    .off-card-v {
        gap: 10px !important;
        padding: 8px 10px !important
    }

    .off-card-v-img {
        width: 56px !important;
        height: 56px !important
    }

    .off-card-v-office,
    .off-card-v-phone {
        display: none !important
    }

    .off-card-v-email {
        font-size: .55rem !important
    }

    .ql-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        padding: 6px !important
    }

    .ql-item {
        padding: 5px 6px !important;
        gap: 5px !important
    }

    .ql-icon {
        width: 22px !important;
        height: 22px !important
    }

    .ql-icon i {
        font-size: .55rem !important
    }

    .ql-text strong {
        font-size: .6rem !important
    }

    .ql-text small {
        font-size: .5rem !important
    }

    .gal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important
    }

    .view-all-btn {
        width: 100%;
        font-size: .75rem !important;
        padding: 8px 16px !important
    }

    .col-head h2 {
        font-size: 1rem !important
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }

    .ftab {
        padding: 5px 10px !important;
        font-size: .68rem !important;
        white-space: nowrap
    }

    .sec-head h3 {
        font-size: .9rem !important
    }

    .calendar-day {
        padding: 5px 1px !important;
        font-size: 10px !important;
        min-height: 28px !important
    }

    .calendar-day-name {
        font-size: 8px !important
    }

    footer>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important
    }

    #mobile-nav a {
        font-size: 15px !important;
        padding: 12px 14px !important
    }

    /* ═══════════════════════════════════════════════
   VERIFY PAGE STYLES & ANIMATIONS
   ═══════════════════════════════════════════════ */
    .verify-result-enter {
        animation: fadeInUp 0.5s ease-out both;
    }

    .verify-shimmer {
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(16px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes shimmer {
        0% {
            background-position: -200% 0;
        }

        100% {
            background-position: 200% 0;
        }
    }

    @keyframes pulse-ring {
        0% {
            transform: scale(0.9);
            opacity: 1;
        }

        100% {
            transform: scale(1.4);
            opacity: 0;
        }
    }

    @keyframes checkmark-draw {
        0% {
            stroke-dashoffset: 40;
        }

        100% {
            stroke-dashoffset: 0;
        }
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* Test Type Chips */
    .test-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: 8px;
        border: 1.5px solid var(--border);
        background: var(--card);
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all .2s;
    }

    .test-chip.active,
    .test-chip:hover {
        border-color: var(--primary);
        background: var(--primary-glow);
        color: var(--primary);
    }

    /* ═══════════════════════════════════════════════
   CALENDAR LAYOUT (If using sidebar layout)
   ═══════════════════════════════════════════════ */
    .cc-layout {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 24px;
        align-items: start;
    }

    .cc-main-card {
        background: white;
        border-radius: 18px;
        padding: 24px;
        box-shadow: 0 4px 25px rgba(0, 0, 0, .08);
        border: 1px solid #e2e8f0;
    }

    .cc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .cc-nav-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 2px solid #e2e8f0;
        background: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #475569;
        transition: all .2s;
    }

    .cc-nav-btn:hover {
        background: #003366;
        color: white;
        border-color: #003366;
    }

    .cc-month-label {
        font-size: 19px;
        font-weight: 800;
        color: #0f172a;
    }

    @media (max-width: 1024px) {
        .cc-layout {
            grid-template-columns: 1fr;
        }
    }

    /* ═══════════════════════════════════════════════
   MISC BUTTONS & BANNERS
   ═══════════════════════════════════════════════ */
    .btn-accent {
        background: var(--accent);
        color: #fff;
        padding: 10px 24px;
        border-radius: var(--radius);
        border: none;
        cursor: pointer;
        font-family: 'Inter';
        font-weight: 600;
        font-size: 13px;
        transition: all .2s;
    }

    .btn-accent:hover {
        background: var(--accent-light, #22D3EE);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .btn-hero {
        background: linear-gradient(135deg, #003366, #0055aa);
        color: white;
        padding: 14px 28px;
        border-radius: 12px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        transition: all .3s;
    }

    .btn-hero:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 51, 102, .4);
    }

    .btn-hero-outline {
        background: transparent;
        color: white;
        padding: 14px 28px;
        border-radius: 12px;
        font-weight: 700;
        border: 2px solid rgba(255, 255, 255, .6);
        cursor: pointer;
        transition: all .3s;
    }

    .btn-hero-outline:hover {
        background: white;
        color: #003366;
    }

    .pwd-banner-section {
        margin-bottom: 36px;
    }

    .pwd-banner-btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(135deg, #003366, #0066cc);
        color: white;
        padding: 16px 32px;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 700;
        font-size: 15px;
        transition: all .3s;
        box-shadow: 0 8px 25px rgba(0, 51, 102, .3);
    }

    .pwd-banner-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0, 51, 102, .4);
    }

    /* ═══════════════════════════════════════════════
   PRINT STYLES (For Certificates)
   ═══════════════════════════════════════════════ */
    @media print {
        body * {
            visibility: hidden;
        }

        #cert-print-area,
        #cert-print-area * {
            visibility: visible;
        }

        #cert-print-area {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
        }
    }

    /* ═══════════════════════════════════════════════
   FINAL SAFETY FIXES
   ═══════════════════════════════════════════════ */
    /* Prevent layout shift on sliders */
    .slide {
        line-height: 0;
    }

    .slide img {
        vertical-align: bottom;
    }

    /* Force admin table action buttons to stay horizontal */
    .admin-table td .act-btn-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    /* Smooth scroll polyfill for Safari */
    @supports not (scroll-behavior: smooth) {
        html {
            scroll-behavior: auto;
        }
    }

    /* ═══════════════════════════════════════════════
   /* ═══════════════════════════════════════════════════
   HEADER FIX
   ═══════════════════════════════════════════════════ */

header,
header>div,
header>div>div,
header nav#main-nav,
header .hidden.lg\:flex {
    overflow: visible !important;
}

/* ═══════════════════════════════════════════════════
   DROPDOWN CORE
   ═══════════════════════════════════════════════════ */

.dropdown {
    position: relative;
}

/* hover bridge */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* dropdown panel */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.98);

    min-width: 240px;
    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    padding: 8px;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.22s ease;
    max-height: 80vh;
    overflow-y: auto;
}

/* arrow */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);

    width: 12px;
    height: 12px;

    background: #ffffff;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* open */
.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* nav hover */
.dropdown:hover > .nav-link {
    color: var(--primary, #312E81);
    background: rgba(49, 46, 129, 0.08);
}

/* items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    color: #475569;
    text-decoration: none;

    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(49, 46, 129, 0.06);
    color: #312E81;
    transform: translateX(3px);
}

.dropdown-item i {
    width: 18px;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV — GLASSMORPHISM FIX (UPDATED)
   ═══════════════════════════════════════════════════ */

#mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;

    /* ❌ removed solid white */
    background: rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#mobile-nav.hidden {
    display: none !important;
}

.mnav-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

/* header glass */
.mnav-head {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(226,232,240,0.4);

    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* close */
.mnav-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;

    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(226,232,240,0.5);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.2s ease;
}

/* scroll */
.mnav-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* items */
.mob-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    color: var(--text, #1f2937);

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition: all 0.15s ease;
}

.mob-nav-item:hover {
    background: rgba(49, 46, 129, 0.12);
}

/* submenu */
.mob-nav-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 12px;
    transition: all 0.3s ease;
}

.mob-nav-group.open > .mob-nav-submenu {
    max-height: 500px;
    opacity: 1;
    padding: 6px 0 6px 12px;
}

/* sub item */
.mob-nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 8px;

    font-size: 13px;
    color: #6b7280;

    background: rgba(255,255,255,0.12);
}

.mob-nav-sub-item:hover {
    background: rgba(49, 46, 129, 0.08);
    color: #312E81;
}

/* ═══════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════ */

body.dark-mode #mobile-nav {
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .mnav-head {
    background: rgba(17, 24, 39, 0.35);
}

body.dark-mode .mob-nav-item {
    background: rgba(17, 24, 39, 0.25);
}

body.dark-mode .mob-nav-item:hover {
    background: rgba(99, 102, 241, 0.15);
}}


/* ── Today Highlight in Calendar ── */
.calendar-day{
  border:1px solid transparent;
  transition:.2s;
}

.calendar-day:hover{
  border-color:#06B6D4;
  box-shadow:0 0 0 2px #06b6d426;
}

.calendar-day.today{
  background:#cffafe!important;
  color:#0f766e!important;
  font-weight:800;
  border:1px solid #06B6D4;
  box-shadow:0 0 0 3px #06b6d440;
}

.calendar-day.today.has-event{
  background:#a5f3fc!important;
  box-shadow:0 0 0 3px #06b6d466,0 0 10px #06b6d433;
}