:root {
    --dr: #8B0000;
    --r: #C0392B;
    --lr: #E74C3C;
    --dg: #145A32;
    --g: #1E8449;
    --lg: #27AE60;
    --gold: #D4AC0D;
    --cream: #FDF6E3;
    --border: #DDD;
    --td: #1A1A1A;
    --tm: #444;
    --tl: #777;
    --w: #FFF;
    --nh: 52px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: #FDF6E3 !important;
    color: var(--td);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none !important;
}

/* ========== TOP HEADER ========== */
#top-header {
    background: linear-gradient(135deg, #F8F1E4, #FDFBF5 50%, #F0EAD6);
    border-bottom: 3px solid var(--dr);
    padding: 10px 12px;
}


.header-inner {
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr minmax(140px, auto);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

@media(max-width:991px) {
    .header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        text-align: center;
    }

    .president-box {
        display: none !important;
    }

    .directors-box {
        display: none !important;
    }
}

@media(max-width:575px) {
    .president-box {
        flex-direction: column;
        align-items: center;
    }
}

.president-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.circle-avatar {
    width: 106px;
    height: 106px;
    border-radius: 50%;
    border: 3px solid var(--dr);
    background: linear-gradient(135deg, #8B0000, #C0392B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 0, 0, .3);
    flex-shrink: 0;
}

.circle-avatar.green {
    background: linear-gradient(135deg, var(--dg), var(--lg));
    border-color: var(--dg);
    box-shadow: 0 3px 8px rgba(20, 90, 50, .3);
}

.circle-avatar.sm {
    width: 70px;
    height: 70px;
    font-size: 17px;
}

.pname {
    font-size: 14.8px;
    font-weight: 700;
    color: var(--dr);
    text-align: center;
    line-height: 1.3;
}

.ptitle {
    font-size: 10.5px;
    color: var(--tm);
    text-align: center;
}

.center-title {
    text-align: center;
    width: 100%;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.sanstha-logo {
    width: 125px;
    height: 125px;
    background: linear-gradient(135deg, #fff, #f5f9ff, #fffefc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 0, 0, .4);
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.main-name {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(35px, 4.4vw, 38px);
    font-weight: 900;
    color: var(--dr);
    line-height: 1.1;
}

.slogan {
    font-size: clamp(13px, 2vw, 12px);
    color: #083672;
    font-weight: 900;
    font-style: italic;
    margin: 3px 3px;
}

.addr {
    font-size: clamp(12px, 1.8vw, 11px);
    color: var(--tm);
}


.directors-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    overflow: hidden;
}

.dir-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dg);
    padding-bottom: 3px;
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.directors-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 420px;
}

.director-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.director-item .pname {
    font-size: 10.5px;
    line-height: 1.2;
    word-break: break-word;
}

/* ========== NAVBAR ========== */
#main-navbar {
    background: linear-gradient(90deg, var(--dr), #A00000 50%, var(--dr));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: var(--nh);
    position: relative;
}

.nav-brand {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, .2);
    display: none;
    align-items: center;
    gap: 6px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 0 12px;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    height: 100%;
    flex: 1;
    overflow: visible;
    /* FIX */
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links>li {
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

.nav-links>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
    height: 100%;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    background: rgba(255, 255, 255, 0.296);
}

.nav-links a.active {
    color: #fff;
    background: #a90303fe;
}

.nav-links>li>a i.arr {
    font-size: 9px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 190px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
    border-top: 3px solid var(--dr);
    z-index: 10000;
    list-style: none;
}

.nav-links>li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--td) !important;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #F0F0F0;
    transition: all .15s;
}

.dropdown-menu li a:hover {
    background: var(--cream);
    color: var(--dr);
    padding-left: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-search-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-search-box input {
    padding: 5px 8px;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.277);
    color: #fff;
    outline: none;
    width: 120px;
}

.nav-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.872);
}

.nav-search-box button {
    background: var(--gold);
    border: none;
    color: var(--dr);
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, .12);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
}

.lang-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    transition: all .2s;
}

.lang-btn.active {
    background: #fff;
    color: var(--dr);
    border-radius: 20px;
}

/* ========== MOBILE NAV ========== */
@media(max-width:991px) {
    .hamburger {
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nh);
        left: 0;
        right: 0;
        background: var(--dr);
        flex-direction: column;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links>li {
        height: auto;
    }

    .nav-links>li>a {
        height: 44px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        padding: 0 14px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--gold);
        margin-left: 14px;
        background: rgba(0, 0, 0, .15);
    }

    .nav-links>li:hover .dropdown-menu {
        display: none;
    }

    .nav-links>li.open-dd .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: #3f3d3d;
        border-bottom-color: rgba(255, 255, 255, .1);
    }

    .nav-brand {
        display: flex;
    }
}

@media(max-width:480px) {
    .nav-search-box {
        display: none;
    }

    :root {
        --nh: 48px;
    }
}

/* ========== MARQUEE ========== */
#marquee-bar {
    background: #1A1A1A;
    color: #fff;
    display: flex;
    align-items: center;
    height: 34px;
    overflow: hidden;
}

.marquee-label {
    background: var(--dr);
    color: #fff;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    gap: 5px;
    flex-shrink: 0;
}

.marquee-label i {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.marquee-track {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-flex;
    gap: 50px;
    animation: marq 45s linear infinite;
    white-space: nowrap;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marq {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.mi {
    font-size: 11.5px;
    color: #E8E8E8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mi span {
    color: var(--gold);
    font-size: 13px;
}

/* ========== LAYOUT ========== */
.main-wrapper {
    max-width: 1550px;
    margin: 0 auto;
    padding: 14px 12px;
    display: grid;
    grid-template-columns: 1fr 285px;
    gap: 16px;
}

@media(max-width:991px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        padding: 10px 10px;
    }
}

@media(max-width:480px) {
    .main-wrapper {
        padding: 8px 8px;
        gap: 12px;
    }
}

/* ========== SECTION HEADER ========== */
.sec-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--dr);
    flex-wrap: wrap;
}

.sec-hdr h2 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(14px, 2.5vw, 17px);
    font-weight: 700;
    color: var(--dr);
    flex: 1;
}

.sec-hdr.green h2 {
    color: var(--dg);
}

.sec-hdr.green {
    border-bottom-color: var(--dg);
}

.sec-hdr.gold h2 {
    color: #7D6608;
}

.sec-hdr.gold {
    border-bottom-color: var(--gold);
}

.sec-icon {
    width: 28px;
    height: 28px;
    background: var(--dr);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.sec-icon.green {
    background: var(--dg);
}

.sec-icon.gold {
    background: #7D6608;
}

.view-all {
    font-size: 11px;
    color: var(--dg);
    font-weight: 600;
    border: 1px solid var(--dg);
    padding: 3px 8px;
    border-radius: 2px;
    transition: all .2s;
    white-space: nowrap;
}

.view-all:hover {
    background: var(--dg);
    color: #fff;
}

/* ========== CAROUSEL ========== */
.carousel-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    background: #111;
    margin-bottom: 14px;
}

.c-track {
    display: flex;
    transition: transform .5s ease;
}

.c-slide {
    min-width: 100%;
    position: relative;
}

.slide-ph {
    width: 100%;
    height: clamp(180px, 40vw, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(40px, 8vw, 70px);
    gap: 10px;
}

.s1 {
    background: linear-gradient(135deg, #6B0000, #8B0000 40%, #145A32);
}

.s2 {
    background: linear-gradient(135deg, #145A32, #1E8449 40%, #6B0000);
}

.s3 {
    background: linear-gradient(135deg, #2C3E50, #8B0000 60%, #145A32);
}

.s4 {
    background: linear-gradient(135deg, #4A235A, #8B0000 50%, #D4AC0D);
}

.slide-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.588), rgba(0, 0, 0, 0.622));
    padding: 10px 10px 12px;
}

.slide-cap .stag {
    display: inline-block;
    background: var(--dr);
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 6px;
}

.slide-cap h2 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(12px, 3vw, 18px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.slide-cap p {
    font-size: clamp(10px, 2vw, 12px);
    opacity: .85;
    color: #fff;
}

.cbtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, .8);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbtn:hover {
    background: var(--dr);
    transform: translateY(-50%) scale(1.1);
}

.cbtn.prev {
    left: 8px;
}

.cbtn.next {
    right: 8px;
}

.cdots {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 5px;
}

.cdots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all .2s;
}

.cdots span.active {
    background: var(--gold);
    width: 18px;
    border-radius: 4px;
}

/* Small screens: 335px - 480px */
@media (max-width: 480px) {
    .carousel-wrap {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
        border-radius: 4px;
    }

    .slide-ph {
        height: 180px;
        /* fixed height on small screens */
    }

    .cbtn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .cbtn.prev {
        left: 5px;
    }

    .cbtn.next {
        right: 5px;
    }

    .slide-cap {
        padding: 0;
    }

    .slide-cap h2 {
        font-size: 12px;
    }

    .slide-cap p {
        font-size: 10px;
    }

    .cdots span {
        width: 6px;
        height: 6px;
    }

    .cdots span.active {
        width: 14px;
    }
}

/* Medium screens: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .carousel-wrap {
        margin-left: 16px;
        margin-right: 16px;
        width: calc(100% - 32px);
    }

    .slide-ph {
        height: clamp(180px, 35vw, 280px);
    }
}

/* Large screens: 769px+ */
@media (min-width: 769px) {
    .carousel-wrap {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .slide-ph {
        height: clamp(260px, 40vw, 360px);
    }
}

/* ========== NEWS GRID ========== */
.news-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.news-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 767px) {
    .news-grid-2 {
        grid-template-columns: 1fr;
    }

    .news-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .news-grid-3 {
        grid-template-columns: 1fr;
    }
}

.nc {
    background: transparent;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    border: 2px solid #9e090639;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    /* ADD */
    flex-direction: column;
    /* ADD */
}

.nph {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    /* ADD — image never shrinks */
}

.nph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nb {
    padding: 11px;
    background: #ffe6e6bb;
    flex: 1;
    /* ADD — text area fills remaining space */
}

.nc:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.nc.featured {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 240px 1fr;
}

@media(max-width:767px) {
    .nc.featured {
        grid-template-columns: 180px 1fr;
    }
}

@media(max-width:480px) {
    .nc.featured {
        grid-template-columns: 1fr;
    }
}

.nc.featured .nph {
    height: 100%;
    min-height: 150px;
}

@media(max-width:480px) {
    .nc.featured .nph {
        height: 120px;
    }
}

.nb {
    padding: 11px;
}

.ntag {
    display: inline-block;
    background: var(--dr);
    color: #fff;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ntag.green {
    background: var(--dg);
}

.ntag.gold {
    background: #7D6608;
}

.nb h3 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(14px, 2vw, 13.5px);
    font-weight: 700;
    color: var(--td);
    line-height: 1.4;
    margin-bottom: 4px;
}

.nb p {
    font-size: clamp(10px, 1.8vw, 11.5px);
    color: var(--tl);
    line-height: 1.5;
    margin-bottom: 6px;
}

.nmeta {
    font-size: 11px;
    color: var(--tl);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nmeta i {
    color: var(--dr);
}

/* Color bgs */
.rb {
    background: linear-gradient(135deg, #8B0000, #C0392B);
    color: #fff;
}

.gb {
    background: linear-gradient(135deg, #145A32, #27AE60);
    color: #fff;
}

.glb {
    background: linear-gradient(135deg, #7D6608, #D4AC0D);
    color: #fff;
}

.bb {
    background: linear-gradient(135deg, #1A5276, #2E86C1);
    color: #fff;
}

.pb {
    background: linear-gradient(135deg, #512E5F, #8E44AD);
    color: #fff;
}

/* ========== NOTICES ========== */
.notice-list {
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 18px;
}

.ni {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #F0F0F0;
    transition: background .15s;
    cursor: pointer;
}

.ni:hover {
    background: #FAFAF5;
}

.ni:last-child {
    border-bottom: none;
}

.ndate {
    background: var(--dr);
    color: #fff;
    text-align: center;
    padding: 4px 6px;
    border-radius: 4px;
    min-width: 40px;
    flex-shrink: 0;
}

.ndate .day {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.ndate .mon {
    font-size: 9px;
    font-weight: 600;
}

.nc2 h4 {
    font-size: clamp(11px, 2vw, 12.5px);
    font-weight: 600;
    color: var(--td);
    line-height: 1.4;
    margin-bottom: 2px;
}

.nc2 p {
    font-size: clamp(10px, 1.8vw, 11px);
    color: var(--tl);
}

.nbadge {
    margin-left: auto;
    background: var(--lr);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

/* ========== EVENTS ========== */
.event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    border-left: 4px solid var(--dr);
    transition: box-shadow .2s;
}

.event-item:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, .1);
}

.edb {
    text-align: center;
    background: var(--cream);
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 44px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.edb .day {
    font-size: 18px;
    font-weight: 900;
    color: var(--dr);
    line-height: 1;
}

.edb .mon {
    font-size: 9px;
    color: var(--tl);
    font-weight: 600;
}

.ei h4 {
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 600;
    color: var(--td);
    margin-bottom: 2px;
}

.ei p {
    font-size: clamp(10px, 1.1vw, 11.5px);
    color: var(--tl);
}

.ebadge {
    margin-left: auto;
    align-self: center;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.b-red {
    background: #FDECEA;
    color: var(--dr);
}

.b-green {
    background: #EAFAF1;
    color: var(--dg);
}

.b-gold {
    background: #FEF9E7;
    color: #7D6608;
}

.edesc {
    font-size: 10px;
    color: var(--tl);
    margin-top: 0;
    opacity: .8;
}

.no-events {
    text-align: center;
    padding: 24px;
    color: var(--tl);
    font-size: 13px;
}

.no-events i {
    font-size: 28px;
    color: var(--dr);
    margin-bottom: 8px;
    display: block;
}

/* ========== FACILITIES ========== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

@media(max-width:991px) {
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:767px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:400px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.fac-card {
    background: #fff;
    border-radius: 6px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
}

.fac-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.fac-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 8px;
}

.fac-card h4 {
    font-size: clamp(11px, 1.8vw, 12.5px);
    font-weight: 700;
    color: var(--td);
    margin-bottom: 4px;
}

.fac-card p {
    font-size: clamp(9.5px, 1.6vw, 11px);
    color: var(--tl);
    line-height: 1.4;
}

/* ========== OUR PRIDE ========== */
.pride-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media(max-width:767px) {
    .pride-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:480px) {
    .pride-grid {
        grid-template-columns: 1fr;
    }
}

.pride-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    text-align: center;
    transition: transform .2s;
}

.pride-card:hover {
    transform: translateY(-3px);
}

.pride-banner {
    height: 7px;
}

.pride-ph {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 14px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 3px solid var(--gold);
    overflow: hidden;
    /* ADD — clips image to circle */
    flex-shrink: 0;
    /* ADD — never resizes */
}

.pride-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills circle, crops excess */
    object-position: top;
    /* shows face, not chest — adjust if needed */
    display: block;
    border-radius: 0;
    /* remove, parent handles it */
}

.pride-card h4 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 700;
    color: var(--td);
    margin-bottom: 3px;
    padding: 0 8px;
}

.pride-card .role {
    font-size: clamp(10px, 1.7vw, 11px);
    color: var(--dg);
    font-weight: 600;
    margin-bottom: 5px;
}

.pride-card .achievement {
    font-size: clamp(10px, 1.7vw, 11.5px);
    color: var(--tl);
    padding: 0 10px 12px;
    line-height: 1.4;
}

.pride-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ========== STUDENT OF MONTH ========== */
.som-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media(max-width:767px) {
    .som-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:480px) {
    .som-grid {
        grid-template-columns: 1fr;
    }
}

.som-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    text-align: center;
}

.som-banner {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.som-banner span {
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
}

.som-ph {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 12px auto 7px;
    /* pulls up over the banner */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 3px solid var(--gold);
    overflow: hidden;
    /* clips image to circle */
    flex-shrink: 0;
    background: #fff;
    /* white bg behind icon fallback */
}

.som-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.som-body {
    padding: 0 10px 12px;
}

.som-body h4 {
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 700;
    color: var(--td);
    margin-bottom: 2px;
}

.som-body .cls {
    font-size: clamp(9.5px, 1.6vw, 11px);
    color: var(--tl);
}

.som-body .pts {
    font-size: clamp(10px, 1.7vw, 12px);
    font-weight: 700;
    color: var(--dg);
    margin-top: 4px;
}

/* ========== RESULT SECTION ========== */
.result-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rtab {
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--td);
    transition: all .2s;
}

.rtab.active,
.rtab:hover {
    background: var(--dr);
    color: #fff;
    border-color: var(--dr);
}

.result-panel {
    display: none;
}

.result-panel.active {
    display: block;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.result-table th {
    background: var(--dr);
    color: #fff;
    padding: 9px 10px;
    text-align: left;
    font-size: clamp(11px, 1.8vw, 12.5px);
    font-weight: 600;
}

.result-table td {
    padding: 9px 10px;
    font-size: clamp(11px, 1.8vw, 12.5px);
    border-bottom: 1px solid #F0F0F0;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:hover td {
    background: #FAFAF5;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.rank-1 {
    background: linear-gradient(135deg, #D4AC0D, #F7CA18);
}

.rank-2 {
    background: linear-gradient(135deg, #95A5A6, #BDC3C7);
}

.rank-3 {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
}

.pct {
    font-weight: 700;
    color: var(--dg);
}

/* ========== DONATORS ========== */
.donor-list {
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 18px;
}

.donor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #F0F0F0;
}

.donor-item:last-child {
    border-bottom: none;
}

.donor-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.donor-ph {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    border: 2px solid var(--gold);
    overflow: hidden;
    /* ADD */
}

.donor-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.donor-info {
    flex: 1;
    min-width: 0;
}

.donor-info h4 {
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 600;
    color: var(--td);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donor-info p {
    font-size: clamp(9.5px, 1.6vw, 11px);
    color: var(--tl);
}

.donor-amt {
    font-size: clamp(11px, 2vw, 14px);
    font-weight: 700;
    color: var(--dg);
    white-space: nowrap;
}

/* ========== VIDEO GALLERY ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

@media(max-width:767px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:380px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
}

.vc {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
    border: 1px solid var(--border);
}

.vc:hover {
    transform: scale(1.03);
}

.vc .vbg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(28px, 6vw, 40px);
}

.vc .play-btn {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--dr);
    transition: transform .2s;
}

.vc:hover .play-btn {
    transform: scale(1.15);
}

.vc .vtitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    padding: 16px 7px 6px;
    color: #fff;
    font-size: clamp(9px, 1.6vw, 10.5px);
    font-weight: 600;
    z-index: 2;
}

.vthumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vpinned {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--dr);
    color: #fff;
    font-size: 9px;
    padding: 3px 5px;
    border-radius: 3px;
    z-index: 3;
}

/* ── Video Modal ── */
#video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#video-modal.active {
    display: flex;
}

.vm-box {
    position: relative;
    width: min(860px, 94vw);
    animation: lbIn .2s ease;
}

.vm-frame {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.vm-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vm-close {
    position: absolute;
    top: -38px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
    z-index: 10000;
}

.vm-close:hover {
    opacity: 1;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 18px;
}

@media(max-width:480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gi {
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 4vw, 28px);
    transition: transform .2s;
}

.gi:hover {
    transform: scale(1.03);
}

.gi .ov {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
}

.gi:hover .ov {
    background: rgba(0, 0, 0, .4);
    opacity: 1;
}

/* ========== CELEBRATION ========== */
.cel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 per row */
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 767px) {
    .cel-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cel-grid {
        grid-template-columns: 1fr;
    }
}

.cel-img {
    height: clamp(140px, 18vw, 180px);
    overflow: hidden;
    position: relative;
}

.cel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.cel-card:hover .cel-img img {
    transform: scale(1.05);
    /* zoom on hover */
}

.cel-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(36px, 6vw, 46px);
}

.cel-body {
    padding: 10px;
    background: #fff;
}

.cel-body h4 {
    font-size: clamp(11.5px, 2vw, 13px);
    font-weight: 600;
    color: var(--td);
    margin-bottom: 3px;
}

.cel-body p {
    font-size: clamp(10px, 1.7vw, 11.5px);
    color: var(--tl);
    margin: 0;
}

/* ========== SIDEBAR ========== */
.sw {
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.wh {
    background: linear-gradient(90deg, var(--dr), #A00000);
    color: #fff;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wh.green {
    background: linear-gradient(90deg, var(--dg), var(--g));
}

.wh.gold {
    background: linear-gradient(90deg, #7D6608, #B7950B);
}

.wb {
    padding: 11px;
}

.ql {
    list-style: none;
}

.ql li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    color: var(--td);
    font-size: 12px;
    border-bottom: 1px dashed #EEE;
    transition: all .15s;
}

.ql li:last-child a {
    border-bottom: none;
}

.ql li a:hover {
    color: var(--dr);
    padding-left: 5px;
}

.ql li a i {
    color: var(--dr);
    width: 15px;
    text-align: center;
    font-size: 11px;
}

.sni {
    display: flex;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
    align-items: flex-start;
}

.sni:last-child {
    border-bottom: none;
}

.sndot {
    width: 7px;
    height: 7px;
    background: var(--dr);
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.sni p {
    font-size: 11.5px;
    color: var(--tm);
    line-height: 1.2;
}

.sni span {
    font-size: 10px;
    color: var(--tl);
    display: block;
}

.notice-scroll-wrap {
    height: 200px;
    /* visible window height — adjust as needed */
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.notice-scroll-track {
    display: flex;
    flex-direction: column;
    animation: scrollUp 18s linear infinite;
    /* speed — lower = faster */
}

.notice-scroll-track:hover {
    animation-play-state: paused;
    /* pause on hover */
}

.notice-scroll-track .sni:last-child {
    border-bottom: 1px solid #F0F0F0;
    /* keep separator on last item */
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }

    /* -50% because content is doubled */
}

.npinned {
    font-size: 9px;
    margin-right: 2px;
    vertical-align: middle;
    display: inline;
}

.ai {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
}

.ai:last-child {
    border-bottom: none;
}

.a-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ai .info h4 {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--td);
}

.ai .info p {
    font-size: 10px;
    color: var(--tl);
}

.a-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
    /* ADD */
}

.a-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.stats-g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sb {
    text-align: center;
    padding: 11px 6px;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.sb .num {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 3px;
}

.sb .lbl {
    font-size: 10px;
    color: var(--tl);
}

.sb.red .num {
    color: var(--dr);
}

.sb.green .num {
    color: var(--dg);
}

.sb.gold .num {
    color: #7D6608;
}

.sb.blue .num {
    color: #1A5276;
}

.sb.red {
    border-color: var(--lr);
}

.sb.green {
    border-color: var(--lg);
}

.sb.gold {
    border-color: var(--gold);
}

.sb.blue {
    border-color: #2E86C1;
}

.social-links {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.social-links a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: transform .2s;
}

.social-links a:hover {
    transform: scale(1.15);
}

.sl-fb {
    background: #1877F2;
}

.sl-yt {
    background: #FF0000;
}

.sl-wa {
    background: #25D366;
}

.sl-tw {
    background: #1DA1F2;
}

.ci {
    display: flex;
    gap: 9px;
    padding: 7px 0;
    font-size: 11.5px;
    border-bottom: 1px solid #f0f0f03a;
}

.ci i {
    color: var(--gold);
    width: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ci:last-child {
    border-bottom: none;
}

/* Sidebar responsive: show inline at tablet */
@media(max-width:991px) {
    .sidebar-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .sidebar-row .sw {
        margin-bottom: 0;
    }
}

@media(max-width:575px) {
    .sidebar-row {
        grid-template-columns: 1fr;
    }
}

/* ========== FOOTER ========== */
#footer {
    background: #1A1A1A;
    color: #CCC;
    margin-top: 24px;
}

.footer-top {
    background: linear-gradient(90deg, var(--dr), #931515 50%, var(--dr));
    padding: 14px;
    text-align: center;
    color: #fff;
}

.footer-top h2 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(32px, 3vw, 19px);
    font-weight: 700;
}

.footer-top p {
    font-size: clamp(14px, 1.8vw, 11.5px);
    opacity: .85;
    margin-top: 3px;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 18px;
    padding: 22px 14px;
}

@media(max-width:991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media(max-width:575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.fc h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.fc ul {
    list-style: none;
}

.fc ul li {
    padding: 4px 0;
    font-size: 11.5px;
    border-bottom: 1px solid #2A2A2A;
}

.fc ul li a {
    color: #BBB;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color .15s;
}

.fc ul li a:hover {
    color: var(--gold);
}

.fc ul li a i {
    color: var(--dr);
    font-size: 10px;
    width: 12px;
}

.footer-bottom {
    background: #111;
    text-align: center;
    padding: 12px;
    font-size: clamp(10px, 1.8vw, 11px);
    color: #666;
    border-top: 1px solid #222;
    flex-wrap: wrap;
}

.footer-bottom span {
    color: var(--gold);
}

.foot-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.foot-logo {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #fff, #F0F0F0 50%, #faf8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(139, 0, 0, .4);
}

.foot-brand h3 {
    color: #fff;
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 22px;
    font-weight: 700;
    border: none;
    padding: 0;
    margin: 0;
}

.foot-brand p {
    font-size: 12.5px;
    color: #AAA;
    line-height: 1.6;
}

/* ========== SCROLL TOP ========== */
#scrollTop {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: var(--dr);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(139, 0, 0, .5);
    z-index: 999;
    transition: all .2s;
}

#scrollTop:hover {
    background: #A00000;
    transform: scale(1.1);
}

@media(max-width:480px) {
    #scrollTop {
        width: 34px;
        height: 34px;
        font-size: 12px;
        bottom: 14px;
        right: 14px;
    }
}

/* ========== EXTRA SMALL FIXES ========== */
@media(max-width:380px) {
    .addr {
        font-size: 9px;
    }

    .sanstha-logo {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .circle-avatar {
        width: 62px;
        height: 62px;
        font-size: 22px;
    }

    .result-table th,
    .result-table td {
        padding: 7px 7px;
        font-size: 10.5px;
    }

    .ni {
        gap: 7px;
        padding: 8px 8px;
    }

    .event-item {
        gap: 7px;
        padding: 8px 8px;
    }
}

/* ========== 345px - 400px RESPONSIVE FIX ========== */

@media (max-width: 400px) {

    /* Wrapper */
    .main-wrapper {
        padding: 5px;
        gap: 8px;
    }

    /* Carousel - remove side margins, fill full width */
    .carousel-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 3px;
    }

    .slide-ph {
        height: 160px;
    }

    .slide-cap h2 {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .slide-cap p {
        font-size: 9.5px;
    }

    .slide-cap .stag {
        font-size: 9px;
        padding: 1px 6px;
    }

    .cbtn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .cbtn.prev {
        left: 4px;
    }

    .cbtn.next {
        right: 4px;
    }

    /* Section header */
    .sec-hdr {
        gap: 7px;
        margin-bottom: 10px;
    }

    .sec-hdr h2 {
        font-size: 13px;
    }

    .sec-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .view-all {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* News grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .nc.featured {
        grid-template-columns: 1fr;
    }

    .nc.featured .nph {
        height: 100px;
        font-size: 28px;
    }

    .nph {
        height: 90px;
        font-size: 28px;
    }

    .nb {
        padding: 9px;
    }

    .nb h3 {
        font-size: 11.5px;
    }

    .nb p {
        font-size: 10px;
    }

    /* Pride grid */
    .pride-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Student of month */
    .som-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Result table */
    .result-tabs {
        gap: 4px;
    }

    .rtab {
        padding: 4px 10px;
        font-size: 10.5px;
    }

    .result-table th,
    .result-table td {
        padding: 6px 6px;
        font-size: 10px;
    }

    /* Facilities */
    .facilities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .fac-card {
        padding: 10px 7px;
    }

    .fac-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .fac-card h4 {
        font-size: 10.5px;
    }

    .fac-card p {
        font-size: 9px;
    }

    /* Notices */
    .ni {
        gap: 6px;
        padding: 8px 8px;
    }

    .nc2 h4 {
        font-size: 11px;
    }

    .nc2 p {
        font-size: 9.5px;
    }

    .ndate {
        min-width: 36px;
        padding: 3px 5px;
    }

    .ndate .day {
        font-size: 12px;
    }

    /* Events */
    .event-item {
        gap: 7px;
        padding: 8px 8px;
    }

    .ei h4 {
        font-size: 11px;
    }

    .ei p {
        font-size: 9.5px;
    }

    .edb .day {
        font-size: 15px;
    }

    /* Video grid */
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .gi {
        height: 75px;
        font-size: 20px;
    }

    /* Celebrations */
    .cel-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Sidebar stats */
    .stats-g {
        gap: 6px;
    }

    .sb .num {
        font-size: 17px;
    }

    .sb .lbl {
        font-size: 9px;
    }

    /* Donor */
    .donor-info h4 {
        font-size: 11px;
    }

    .donor-info p {
        font-size: 9.5px;
    }

    .donor-amt {
        font-size: 11px;
    }

    /* Sidebar notices */
    .sni p {
        font-size: 10.5px;
    }
}

/* ========== 345px and below ========== */
@media (max-width: 345px) {

    .main-wrapper {
        padding: 4px;
        gap: 7px;
    }

    .slide-ph {
        height: 140px;
    }

    .slide-cap h2 {
        font-size: 10px;
    }

    .sec-hdr h2 {
        font-size: 12px;
    }

    .facilities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .fac-card {
        padding: 8px 5px;
    }

    .fac-card h4 {
        font-size: 9.5px;
    }

    .fac-card p {
        font-size: 8.5px;
    }

    .result-table th,
    .result-table td {
        padding: 5px 5px;
        font-size: 9.5px;
    }

    .ctab {
        padding: 3px 8px;
        font-size: 10px;
    }

    .rtab {
        padding: 3px 8px;
        font-size: 10px;
    }
}


#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

#lb-img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
    animation: lbIn .2s ease;
}

@keyframes lbIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#lb-close {
    position: fixed;
    top: 18px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
    z-index: 10000;
}

#lb-close:hover {
    opacity: 1;
}

#lb-prev,
#lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 14px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .2s;
    z-index: 10000;
}

#lb-prev {
    left: 16px;
}

#lb-next {
    right: 16px;
}

#lb-prev:hover,
#lb-next:hover {
    background: rgba(255, 255, 255, .3);
}

#lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    letter-spacing: 1px;
}