/**
 * Custom CSS for Mary Nilayam Senior Secondary School Reconstruction
 */

:root {
    --primary-color: #1B1E4A;
    --primary-dark: #1B1E4A;
    --accent-color: #ff5364;
    --accent-hover: #e03b4c;
    --gold-color: #fca311;
    --blue-accent: #3a86ff;
    --text-dark: #2b2d42;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 33, 71, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

/* ================= PRELOADER ================= */
@keyframes autoHidePreloader {
    0%, 75% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    animation: autoHidePreloader 1.2s forwards;
}

.preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.preloader-logo {
    max-height: 80px;
    animation: pulse 1.5s infinite;
}

.loader-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.03); }
    100% { transform: scale(0.98); }
}

/* ================= HEADER TOP ================= */
.header-top {
    background-color: #1B1E4A !important;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.header-top .header-info-list {
    white-space: nowrap;
    font-size: 0.84rem;
}

.header-top .header-info-list li {
    font-size: 0.84rem;
    white-space: nowrap;
}

.header-top .header-info-list a {
    color: #ffffff;
    transition: var(--transition);
}

.header-top .header-info-list a:hover {
    color: #fca311;
}

.affiliation-badge {
    font-size: 0.76rem;
    letter-spacing: 0.3px;
    border-radius: 4px;
    white-space: nowrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    margin-right: 6px;
    transition: var(--transition);
    font-size: 0.8rem;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ================= NAVIGATION (#1B1E4A) ================= */
.main-header {
    background: #1B1E4A !important;
    background-color: #1B1E4A !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 1020;
}

.main-header .navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1200px) {
    .main-header .navbar {
        flex-wrap: nowrap;
    }
}

.main-header .navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.5rem;
    position: relative;
    z-index: 5;
    max-width: calc(100% - 65px);
}

@media (min-width: 1200px) {
    .main-header .navbar-brand {
        margin-right: 1.5rem;
        max-width: none;
    }
}

.school-header-logo {
    height: 56px;
    width: auto;
    max-height: 56px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 1;
    transition: var(--transition);
}

@media (max-width: 767.98px) {
    .school-header-logo {
        height: 42px;
        max-height: 42px;
        max-width: 230px;
    }
}

@media (max-width: 380px) {
    .school-header-logo {
        height: 36px;
        max-height: 36px;
        max-width: 195px;
    }
}

.navbar-toggler {
    padding: 7px 11px !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.45) !important;
    outline: none !important;
}

.navbar-toggler-icon {
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.school-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    margin-left: 0.65rem;
    white-space: nowrap;
}

.school-brand-title {
    font-family: 'Baloo 2', 'Poppins', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 2px;
    display: block;
}

.school-brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fca311;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    line-height: 1;
    display: block;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: #ffffff !important;
    padding: 0.5rem 0.65rem !important;
    white-space: nowrap !important;
    transition: all 0.25s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #7DFFE2 !important;
}

.navbar-nav .dropdown-menu {
    background-color: #242866;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar-nav .dropdown-item {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(125, 255, 226, 0.15);
    color: #7DFFE2;
    padding-left: 24px;
}

.parent-login-btn,
.parent-login-btn:hover,
.parent-login-btn:focus,
.parent-login-btn:active {
    background-color: #FE8F02 !important;
    background: #FE8F02 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    padding: 7px 18px !important;
    transition: none !important;
    box-shadow: 0 4px 14px rgba(254, 143, 2, 0.35) !important;
}

.parent-login-btn i,
.parent-login-btn:hover i,
.parent-login-btn:focus i,
.parent-login-btn:active i {
    color: #FFFFFF !important;
}

/* Mobile Navigation Dropdown Menu (<1200px) */
@media (max-width: 1199.98px) {
    .main-header .navbar-collapse {
        background: #141738;
        padding: 1.25rem;
        border-radius: 14px;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
        width: 100%;
    }
    .main-header .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.35rem !important;
        width: 100%;
        margin: 0 !important;
        flex-wrap: wrap !important;
    }
    .main-header .navbar-nav .nav-item {
        width: 100%;
        white-space: normal !important;
    }
    .main-header .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 600;
        color: #ffffff !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .main-header .navbar-nav .nav-link:hover,
    .main-header .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: #FCA311 !important;
    }
    .main-header .navbar-nav .dropdown-menu {
        background: #1B1E4A;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 0.5rem 0;
        margin-top: 0.35rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    .main-header .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.6rem 1.25rem;
        font-size: 0.92rem;
    }
    .main-header .navbar-nav .dropdown-item:hover,
    .main-header .navbar-nav .dropdown-item:focus {
        background: #252A66;
        color: #FCA311;
    }
    .main-header .parent-login-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }
}

/* Centered navbar navigation for the 6 core sections */
@media (min-width: 1200px) {
    .main-header .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
        width: auto !important;
        justify-content: center !important;
    }
    .main-header .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        margin: 0 auto !important;
        gap: 1.25rem;
    }
    .navbar-nav .nav-item {
        white-space: nowrap !important;
        flex-shrink: 0;
    }
    .navbar-nav .nav-link {
        font-size: 0.95rem !important;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap !important;
    }
    .school-header-logo {
        height: 48px;
        max-height: 48px;
    }
    .school-brand-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1366px) {
    .main-header .navbar-nav {
        gap: 1.75rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.98rem !important;
        padding: 0.5rem 0.85rem !important;
    }
    .school-header-logo {
        height: 52px;
        max-height: 52px;
    }
    .school-brand-title {
        font-size: 1.32rem;
    }
    .school-brand-subtitle {
        font-size: 0.65rem;
    }
}

@media (min-width: 1500px) {
    .main-header .navbar-nav {
        gap: 2.25rem;
    }
    .navbar-nav .nav-link {
        font-size: 1.02rem !important;
        padding: 0.5rem 1rem !important;
    }
    .school-brand-title {
        font-size: 1.45rem;
    }
}

.main-header .navbar-nav .nav-link,
.main-header .navbar-nav .nav-link.active,
.main-header .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    min-width: 220px;
}

.dropdown-item {
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 20px;
    color: #333;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #fff5f6;
    color: var(--accent-color);
    padding-left: 24px;
}

.btn-parent-login,
.btn-parent-login:hover,
.btn-parent-login:focus,
.btn-parent-login:active {
    background-color: #FE8F02 !important;
    background: #FE8F02 !important;
    border: none !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(254, 143, 2, 0.35) !important;
    font-size: 0.9rem;
    color: #ffffff !important;
}

.btn-parent-login i,
.btn-parent-login:hover i,
.btn-parent-login:focus i,
.btn-parent-login:active i {
    color: #FFFFFF !important;
}

/* ================= TICKER BAR (Hero-Aligned Size) ================= */
.news-ticker-wrapper {
    width: 100%;
    padding: 10px 15px 4px 15px;
    background: transparent;
}

.news-ticker-bar {
    width: 1317px;
    max-width: 100%;
    margin: 0 auto;
    background: #01FFF3 !important;
    border: 1px solid rgba(0, 33, 71, 0.15);
    border-radius: 30px;
    font-size: 0.88rem;
    padding: 6px 18px;
    position: relative;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(1, 255, 243, 0.25);
}

.ticker-badge,
.ticker-badge:hover,
.ticker-badge:focus,
.ticker-badge:active,
.ticker-btn,
.ticker-btn:hover,
.ticker-btn:focus,
.ticker-btn:active,
.announcement-btn,
.announcement-btn:hover,
.announcement-btn:focus,
.announcement-btn:active,
.btn-announcement,
.btn-announcement:hover,
.btn-announcement:focus,
.btn-announcement:active {
    background: #FF8F02 !important;
    background-color: #FF8F02 !important;
    border-color: #FF8F02 !important;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(255, 143, 2, 0.45) !important;
    flex-shrink: 0;
    text-decoration: none !important;
    cursor: pointer;
    border: none !important;
    transform: none !important;
    transition: none !important;
}

.ticker-badge i,
.ticker-badge:hover i,
.ticker-badge:focus i,
.ticker-badge:active i {
    color: #ffffff !important;
}

.ticker-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    font-weight: 600;
    color: #002147;
    white-space: nowrap;
    animation: marqueeAnimation 32s linear infinite;
    display: inline-flex;
    align-items: center;
}

@keyframes marqueeAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #002147 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ticker-item:hover {
    color: #001229 !important;
}

.ticker-tag {
    background: #002147;
    color: #01FFF3;
    border: 1px solid #002147;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.6px;
    line-height: 1.2;
    transition: all 0.2s;
}

.ticker-item:hover .ticker-tag {
    background: #FF8F02;
    border-color: #FF8F02;
    color: #ffffff;
}

.ticker-title {
    font-weight: 600;
    color: #002147;
}

.ticker-sep {
    display: inline-flex;
    align-items: center;
    margin: 0 16px;
    color: rgba(0, 33, 71, 0.45);
    font-size: 0.35rem;
}

/* ================= HERO SLIDESHOW (Frame: 1649px x 521px | Content: 1317px x 517px | White Surrounds: #FFFFFF) ================= */
.hero-slideshow-wrapper {
    width: 100%;
    background-color: #FFFFFF !important;
    padding: 0;
    margin: 0 auto;
    overflow: hidden;
}

.hero-slideshow-frame {
    width: 100%;
    max-width: 1649px;
    height: 521px;
    margin: 0 auto;
    background-color: #FFFFFF !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slides-container {
    width: 1317px;
    max-width: 100%;
    height: 517px;
    position: relative;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    border-radius: 12px;
    z-index: 1;
}

.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Hide Navigation Arrows and Dots as requested */
.slideshow-arrow {
    display: none !important;
}

.slideshow-dots {
    display: none !important;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 27, 59, 0.6) 0%, rgba(0, 27, 59, 0.82) 100%);
    z-index: 1;
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 30px 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide-subtitle {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fca311;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-slide-title {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 2.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-slide-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-slide-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff5364 0%, #ff7643 100%);
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 83, 100, 0.4);
    transition: all 0.3s ease;
}

.btn-slide-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 83, 100, 0.5);
    color: #ffffff !important;
}

.btn-slide-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 26px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-slide-outline:hover {
    background: #ffffff;
    color: var(--primary-color) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Navigation Arrows in Pure White Frame Space */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.slideshow-arrow:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 33, 71, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.slideshow-arrow.prev-arrow {
    left: calc((100% - 1317px) / 4);
}

.slideshow-arrow.next-arrow {
    right: calc((100% - 1317px) / 4);
}

/* Dots */
.slideshow-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.slideshow-dots .dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dots .dot-btn.active {
    background-color: #fca311;
    width: 28px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .slideshow-arrow.prev-arrow {
        left: 14px;
        background: rgba(255, 255, 255, 0.9);
    }
    .slideshow-arrow.next-arrow {
        right: 14px;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 991px) {
    .hero-slideshow-frame {
        height: auto;
        padding: 10px 0;
    }
    .slides-container {
        height: 480px;
    }
    .hero-slide-title {
        font-size: 2.1rem;
    }
    .hero-slide-desc {
        font-size: 0.92rem;
    }
}

@media (max-width: 767px) {
    .slides-container {
        height: 440px;
    }
    .hero-slide-inner {
        padding: 20px;
    }
    .hero-slide-title {
        font-size: 1.7rem;
    }
    .hero-slide-desc {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    .btn-slide-primary, .btn-slide-outline {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Backward compatibility */
.btn-custom-primary {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-custom-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 83, 100, 0.4);
}

.btn-custom-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-custom-outline:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ================= FEATURE CARDS (Top 3) ================= */
.feature-cards-row {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-box {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    border-bottom: 4px solid transparent;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    color: inherit;
}

.feature-box.box-1 { border-bottom-color: var(--accent-color); }
.feature-box.box-2 { border-bottom-color: var(--blue-accent); }
.feature-box.box-3 { border-bottom-color: var(--gold-color); }

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.box-1 .feature-icon-wrapper { background: #fff0f2; color: var(--accent-color); }
.box-2 .feature-icon-wrapper { background: #ebf3ff; color: var(--blue-accent); }
.box-3 .feature-icon-wrapper { background: #fff8e7; color: var(--gold-color); }

.feature-icon-wrapper img {
    max-width: 42px;
}

.feature-icon-wrapper i {
    font-size: 2rem;
}

.feature-title {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ================= ABOUT SECTION & TABS ================= */
.section-tag {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 20px;
    position: relative;
}

.about-collage-img {
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.custom-nav-pills .nav-link {
    font-weight: 600;
    border-radius: 8px;
    color: var(--primary-color);
    background: #f1f4f8;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 8px 18px;
    transition: var(--transition);
}

.custom-nav-pills .nav-link.active {
    background: var(--accent-color);
    color: #ffffff;
}

/* ================= QUICK LINKS SECTION ================= */
.quick-link-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border: 1px solid #edf2f7;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
    color: inherit;
}

.quick-link-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #fff0f2;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 15px auto;
    transition: var(--transition);
}

.quick-link-card:hover .quick-link-icon {
    background: var(--accent-color);
    color: #ffffff;
    transform: rotateY(180deg);
}

.quick-link-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

/* ================= NEWS & EVENT CARDS ================= */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.news-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.06);
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.news-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-read-more:hover {
    color: var(--accent-hover);
    padding-left: 4px;
}

/* ================= GALLERY STYLES ================= */
.gallery-filter-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #f1f4f8;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: #ffffff;
}

/* Legacy gallery card removed to avoid conflict */
.legacy-gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    background: #000;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.9) 0%, transparent 100%);
    color: #ffffff;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: #ffffff;
}

/* ================= BREADCRUMB HERO ================= */
.breadcrumb-hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-color: #1B1E4A !important;
    padding: 75px 0 65px 0;
    color: #ffffff;
}

.breadcrumb-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 30, 74, 0.82);
}

/* Clear overlay for photo background heroes */
.breadcrumb-hero.photo-bg::before,
.breadcrumb-hero.clear-overlay::before {
    background: rgba(0, 15, 40, 0.25) !important;
}

/* ================= TODDLY BREADCRUMB WRAPPER (MATCHING MARYNILAYAM.COM) ================= */
.breadcrumb-wrapper {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Staff Photo Full Visibility Hero Banner (Preserves 100% full view of all staff from head to toe) */
.breadcrumb-wrapper.staff-photo-hero {
    width: 100%;
    aspect-ratio: 1920 / 690;
    min-height: clamp(340px, 35.94vw, 690px);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: clamp(50px, 6vw, 120px) 0;
}

@media (max-width: 991px) {
    .breadcrumb-wrapper.staff-photo-hero {
        min-height: 320px;
        background-position: center 25% !important;
    }
}

@media (max-width: 576px) {
    .breadcrumb-wrapper.staff-photo-hero {
        min-height: 280px;
        background-position: center 20% !important;
    }
}

.breadcrumb-wrapper__title {
    color: #ffffff !important;
    font-size: clamp(2rem, 1.6rem + 1.8vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.breadcrumb-wrapper__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb-wrapper__menu--item {
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.breadcrumb-wrapper__menu--item a {
    color: #40C04D !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-wrapper__menu--item a:hover {
    color: #ffffff !important;
}

.breadcrumb-wrapper__menu--item:not(:last-child)::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: #40C04D;
    margin-left: 10px;
}

.breadcrumb-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.breadcrumb-trail {
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb-trail a {
    color: var(--gold-color);
    text-decoration: none;
}

/* ================= STAFF CARDS ================= */
.staff-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    padding: 25px 20px;
    height: 100%;
    border: 1px solid #f1f4f8;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}

.staff-img-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    overflow: hidden;
    border: 3px solid #ffd4d9;
}

.staff-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.staff-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.staff-dept {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.staff-qual {
    display: inline-block;
    background: #f1f4f8;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 50px;
}

/* ================= FOOTER ================= */
.bg-dark-navy {
    background-color: #1B1E4A !important;
}

.footer-logo {
    max-height: 55px;
}

.footer-title {
    font-size: 1.35rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #c4d1de;
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-color);
    padding-left: 5px;
}

.text-light-muted {
    color: #c4d1de;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: var(--transition);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.shape-left {
    bottom: 20px;
    left: -30px;
    max-height: 150px;
}

.shape-right {
    top: 20px;
    right: -20px;
    max-height: 160px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ================= TABLES ================= */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.custom-table thead th {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 18px;
    border: none;
    font-size: 0.95rem;
}

.custom-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
    vertical-align: middle;
}

.custom-table tbody tr:hover td {
    background: #f8fbff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .feature-cards-row {
        margin-top: 20px;
    }
    .page-hero-title {
        font-size: 2.2rem;
    }
}

/* Toddly theme style tabs & buttons for About sections */
.toddly-story-tabs .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    border: 1.5px solid transparent;
    padding: 6px 20px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.toddly-story-tabs .nav-link:hover {
    color: #43a047;
}

.toddly-story-tabs .nav-link.active {
    color: #43a047 !important;
    background: transparent !important;
    border: 1.5px dashed #43a047 !important;
}

.toddly-list-check {
    padding-left: 0;
    list-style: none;
    margin-top: 15px;
    margin-bottom: 25px;
}

.toddly-list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
}

.toddly-list-check li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #43a047;
    font-size: 1.15rem;
}

.btn-contact-navy {
    display: inline-block;
    background: #0f1c3f;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 34px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-contact-navy:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 160, 71, 0.3);
}

.btn-contact-green {
    display: inline-block;
    background: #43a047;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 34px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-contact-green:hover {
    background: #0f1c3f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 28, 63, 0.3);
}

/* ================= KIDS GALLERY MOSAIC (Exact Reference Match) ================= */
.kids-gallery-section {
    padding: 70px 0 80px;
    background: #ffffff;
}

.kids-gallery-header {
    text-align: center;
    margin-bottom: 35px;
}

.kids-gallery-subtitle {
    font-family: 'Caveat', 'Segoe Script', cursive;
    font-size: 1.6rem;
    font-weight: 600;
    color: #8c909a;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kids-gallery-title {
    font-family: 'Poppins', 'Baloo 2', sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    color: #1f2744;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.kids-gallery-container {
    max-width: 890px;
    margin: 0 auto;
    padding: 0 15px;
}

.kids-gallery-mosaic {
    display: grid;
    grid-template-columns: 270px 270px 270px;
    grid-template-rows: 235px 235px;
    gap: 18px;
    justify-content: center;
}

.kids-mosaic-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #eef2f6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: block;
    cursor: pointer;
}

.kids-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.kids-mosaic-item:hover img {
    transform: scale(1.035);
}

.kids-mosaic-1 {
    grid-column: 1;
    grid-row: 1;
}

.kids-mosaic-2 {
    grid-column: 2;
    grid-row: 1;
}

.kids-mosaic-3 {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.kids-mosaic-4 {
    grid-column: 3;
    grid-row: 1 / span 2;
}

@media (max-width: 900px) {
    .kids-gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 14px;
    }
    .kids-mosaic-1 { grid-column: 1; grid-row: 1; height: 210px; }
    .kids-mosaic-2 { grid-column: 2; grid-row: 1; height: 210px; }
    .kids-mosaic-3 { grid-column: 1 / span 2; grid-row: 2; height: 220px; }
    .kids-mosaic-4 { grid-column: 1 / span 2; grid-row: 3; height: 380px; }
}

@media (max-width: 540px) {
    .kids-gallery-mosaic {
        grid-template-columns: 1fr;
    }
    .kids-mosaic-1, .kids-mosaic-2, .kids-mosaic-3, .kids-mosaic-4 {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 220px !important;
    }
    .kids-gallery-title {
        font-size: 1.85rem;
    }
}

/* ================= NEO-BRUTALIST POSTS / NEWS (Exact Reference Match) ================= */
.neo-posts-section {
    padding: 70px 0 90px;
    background: #ffffff;
}

.neo-posts-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.neo-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.neo-posts-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.neo-post-card {
    background: #fbf8f2;
    border: 1.5px solid #1e293b;
    border-radius: 20px;
    box-shadow: 6px 6px 0px #1e293b;
    padding: 16px;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.neo-post-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #1e293b;
}

.neo-post-img-box {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #eae4d7;
    margin-bottom: 12px;
}

.neo-post-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.neo-post-card:hover .neo-post-img {
    transform: scale(1.02);
}

.neo-post-meta {
    font-size: 0.83rem;
    color: #556274;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.neo-post-meta i {
    color: #64748b;
    font-size: 0.85rem;
}

.neo-post-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.03rem;
    line-height: 1.35;
    color: #1e293b;
    margin: 4px 0 8px 0;
}

.neo-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.neo-post-title a:hover {
    color: #ff5364;
}

.neo-post-summary {
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.48;
    margin-bottom: 12px;
}

.neo-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}

.neo-post-readmore {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
}

.neo-post-readmore:hover {
    color: #ff5364;
    gap: 9px;
}

.neo-post-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.neo-post-share-btn:hover {
    background: #ff5364;
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .neo-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 650px) {
    .neo-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   Quick Access Floating Sidebar Widget (Mary Nilayam School Concept)
   ========================================================================== */
.quick-access-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.quick-access-panel.is-collapsed {
    transform: translateY(-50%) translateX(225px);
}

.quick-access-panel.is-collapsed:hover {
    transform: translateY(-50%) translateX(0);
}

.quick-access-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #4f830e; /* Mary Nilayam School Concept Signature Green */
    color: #FFFFFF;
    border: 2px solid #fca311; /* Mary Nilayam Gold Border */
    border-right: none;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    padding: 16px 8px 16px 7px;
    cursor: pointer;
    outline: none;
    user-select: none;
    flex-shrink: 0;
    margin: 0;
    box-shadow: -4px 4px 16px rgba(0, 33, 71, 0.45);
    transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
    position: relative;
    z-index: 2;
}

.quick-access-toggle:hover {
    background: #002147; /* Mary Nilayam Deep Navy */
    border-color: #52b740;
    padding-left: 10px;
}

.quick-access-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #002147;
    border: 1.5px solid #fca311;
    border-radius: 4px;
    color: #FFFFFF;
    transition: transform 0.35s ease, background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.quick-access-toggle:hover .quick-access-toggle-icon {
    background-color: #fca311;
    color: #002147;
    border-color: #FFFFFF;
}

.quick-access-panel.is-collapsed .quick-access-toggle-icon {
    transform: rotate(0deg);
}

.quick-access-panel:not(.is-collapsed) .quick-access-toggle-icon {
    transform: rotate(180deg);
}

.quick-access-toggle-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    white-space: nowrap;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.quick-access-content {
    display: flex;
    flex-direction: column;
    width: 225px;
    background: rgba(0, 33, 71, 0.95); /* Mary Nilayam Deep Navy */
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 2px solid #4f830e; /* Mary Nilayam School Concept Green */
    border-right: none;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), -8px 12px 30px rgba(0, 21, 46, 0.5);
}

.quick-access-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(79, 131, 14, 0.22); /* Mary Nilayam Green Wash */
    padding: 11px 14px;
    border-bottom: 1.5px solid rgba(79, 131, 14, 0.45);
    box-sizing: border-box;
}

.quick-access-crest {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    background: #ffffff;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid rgba(79, 131, 14, 0.4);
}

.quick-access-title {
    display: flex;
    flex-direction: column;
}

.quick-access-title strong {
    font-family: inherit;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.15;
}

.quick-access-title span {
    font-size: 0.62rem;
    color: #68d391; /* Mary Nilayam Vibrant Green */
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quick-access-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 1.1rem;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    text-decoration: none !important;
    transition: background-color 0.2s ease, padding-left 0.2s ease, color 0.2s ease, border-left 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.quick-access-item:last-child {
    border-bottom: none;
}

/* 1. Parent Login - Mary Nilayam Green */
.quick-access-item.item-parent svg {
    color: #68d391;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.quick-access-item.item-parent:hover {
    background: rgba(79, 131, 14, 0.32);
    border-left: 3px solid #68d391;
    color: #FFFFFF !important;
    padding-left: 1.35rem;
}
.quick-access-item.item-parent:hover svg {
    transform: scale(1.18);
}

/* 2. Notices - Mary Nilayam Warm Gold */
.quick-access-item.item-notices svg {
    color: #fca311;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.quick-access-item.item-notices:hover {
    background: rgba(252, 163, 17, 0.3);
    border-left: 3px solid #fca311;
    color: #FFFFFF !important;
    padding-left: 1.35rem;
}
.quick-access-item.item-notices:hover svg {
    transform: scale(1.18);
}

/* 3. Mandatory Disclosure - Mary Nilayam Blue */
.quick-access-item.item-disclosure svg {
    color: #60a5fa;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.quick-access-item.item-disclosure:hover {
    background: rgba(59, 130, 246, 0.3);
    border-left: 3px solid #60a5fa;
    color: #FFFFFF !important;
    padding-left: 1.35rem;
}
.quick-access-item.item-disclosure:hover svg {
    transform: scale(1.18);
}

/* 4. School Uniform - Mary Nilayam Coral / Rose */
.quick-access-item.item-uniform svg {
    color: #ff6b81;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.quick-access-item.item-uniform:hover {
    background: rgba(255, 107, 129, 0.3);
    border-left: 3px solid #ff6b81;
    color: #FFFFFF !important;
    padding-left: 1.35rem;
}
.quick-access-item.item-uniform:hover svg {
    transform: scale(1.18);
}

@media (max-width: 576px) {
    .quick-access-content {
        width: 195px;
    }
    .quick-access-panel.is-collapsed {
        transform: translateY(-50%) translateX(195px);
    }
    .quick-access-item {
        padding: 0.68rem 0.85rem;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Photo Gallery Cards (vs-blog--style2 from marynilayam.com)
   ========================================================================== */
.vs-blog--style2 {
    margin: 0 0 30px 0;
    padding: 0 8px 8px 0;
    position: relative;
    z-index: 1;
    height: 100%;
}

.vs-blog--style2::before {
    position: absolute;
    content: "";
    width: 94%;
    height: 94%;
    background-color: #002147;
    z-index: -1;
    border-radius: 21px;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease-in-out;
}

.vs-blog--style2 .vs-blog__inner {
    background-color: #ffffff;
    border: 1.5px dashed rgba(0, 33, 71, 0.25);
    border-radius: 25px;
    padding: 20px 22px 18px 22px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vs-blog--style2 .vs-blog__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.vs-blog--style2 .vs-blog__pdf-badge {
    width: 105px;
    height: 72px;
    min-width: 105px;
    border-radius: 14px;
    background: #FFF5F5;
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.08);
    transition: transform 0.25s ease;
}

.vs-blog--style2:hover .vs-blog__pdf-badge {
    transform: scale(1.04);
}

.vs-blog--style2 .vs-blog__pdf-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
}

.vs-blog--style2 .vs-blog__pdf-label {
    background-color: #dc3545;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    display: inline-block;
}

.vs-blog--style2 .vs-blog__img-thumb {
    width: 105px;
    height: 72px;
    min-width: 105px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 3px 10px rgba(0, 33, 71, 0.08);
    transition: transform 0.25s ease;
}

.vs-blog--style2 .vs-blog__img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vs-blog--style2:hover .vs-blog__img-thumb img {
    transform: scale(1.08);
}

.vs-blog--style2 .vs-blog__top-row .vs-blog__meta--link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.vs-blog--style2 .vs-blog__top-row .vs-blog__meta--link i {
    color: #64748b;
    font-size: 0.95rem;
}

.vs-blog--style2 .vs-blog__content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vs-blog--style2 .vs-blog__heading--link {
    text-decoration: none;
    color: #002147;
}

.vs-blog--style2 .vs-blog__heading {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #002147;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.vs-blog--style2 .vs-blog__heading--link:hover .vs-blog__heading {
    color: #fca311;
}

.vs-blog--style2 .vs-blog__desc {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vs-blog--style2 .vs-blog__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.vs-blog--style2 .vs-blog__link {
    font-size: 0.92rem;
    font-weight: 700;
    color: #002147;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.vs-blog--style2 .vs-blog__link i {
    color: #fca311;
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.vs-blog--style2 .vs-blog__link:hover {
    color: #fca311;
}

.vs-blog--style2 .vs-blog__link:hover i {
    transform: translateX(4px);
}

.vs-blog--style2 .vs-blog__number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #002147;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 33, 71, 0.2);
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.vs-blog--style2:hover .vs-blog__number {
    background-color: #fca311;
    color: #002147;
    transform: scale(1.08);
}

.vs-blog--style2 .vs-blog__share ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.vs-blog--style2 .vs-blog__share > ul > li {
    position: relative;
    padding: 4px 0;
}

.vs-blog--style2 .vs-blog__share > ul > li > a {
    color: #ffffff;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #002147;
    border-radius: 50%;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.vs-blog--style2 .vs-blog__share > ul > li > a:hover {
    background-color: #fca311;
    transform: scale(1.05);
}

.vs-blog--style2 .vs-blog__share > ul > li > ul {
    flex-direction: column-reverse;
    gap: 6px;
    padding: 0;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, 0%);
    position: absolute;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10;
}

.vs-blog--style2 .vs-blog__share > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.vs-blog--style2 .vs-blog__share > ul > li > ul > li > a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    background: #fca311;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
}

.vs-blog--style2 .vs-blog__share > ul > li > ul > li > a:hover {
    background: #002147;
    transform: scale(1.1);
}

/* Reset toddler theme absolute badge position */
.badge:not(.position-absolute) {
    position: static !important;
}

/* ================= SITE POPUP IMAGE MODAL ================= */
.site-announcement-modal {
    z-index: 99999 !important;
}
.site-announcement-modal .modal-backdrop {
    z-index: 99998 !important;
}
.site-announcement-modal .modal-dialog {
    max-width: 580px;
    margin: 1.75rem auto;
}
.btn-close-popup:hover {
    background: #ff5364 !important;
    color: #ffffff !important;
    border-color: #ff5364 !important;
    transform: scale(1.1);
}
@media (max-width: 767px) {
    .site-announcement-modal .modal-dialog {
        max-width: 90vw;
        margin: 1rem auto;
    }
    .btn-close-popup {
        top: -10px !important;
        right: -10px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }
}




/* ================= VS-GALLERY ENHANCEMENTS & SECTION HEADINGS ================= */
.vs-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f1f3f7;
    min-height: 250px;
}

.vs-gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.vs-gallery__figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.vs-gallery__image--link {
    display: block;
    width: 100%;
    height: 100%;
}

.vs-gallery__image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.vs-gallery:hover .vs-gallery__image {
    transform: scale(1.08);
}

.vs-gallery__hover {
    background: rgba(27, 30, 74, 0.85); /* #1B1E4A overlay */
    padding: 20px;
    text-align: center;
}

.vs-gallery__icon {
    background-color: #fca311 !important;
    color: #002147 !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.vs-gallery__icon:hover {
    background-color: #ffffff !important;
    color: #002147 !important;
    transform: scale(1.1);
}

.vs-gallery__cate {
    color: #7DFFE2 !important;
    text-decoration: none !important;
    letter-spacing: 1px;
}

.vs-gallery__heading {
    color: #ffffff !important;
    font-family: 'Baloo 2', cursive, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 5px;
    margin-bottom: 0;
}

/* ================= SECTION HEADINGS & READABILITY ================= */
.sec-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    font-weight: 600;
    color: #ff5364;
    display: block;
    margin-bottom: 4px;
}

.sec-title, .vs-title__main {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    color: #25283e;
    margin-bottom: 12px;
    line-height: 1.25;
}

/* ================= ADVANCED RESPONSIVE PHOTO GALLERY & FULL-SCREEN LIGHTBOX ================= */
.gallery-section-header {
    margin-bottom: 2.5rem;
}

.gallery-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(79, 131, 14, 0.12);
    color: #4F830E;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gallery-section-title {
    font-family: 'Baloo 2', cursive, sans-serif;
    color: #11235E;
    font-weight: 800;
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.85rem);
    line-height: 1.25;
}

.gallery-section-desc {
    color: #556987;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* Gallery Controls & Search */
.gallery-controls-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(17, 35, 94, 0.08);
    box-shadow: 0 10px 30px rgba(17, 35, 94, 0.04);
    margin-bottom: 2.5rem;
}

.gallery-search-box {
    position: relative;
    width: 100%;
}

.gallery-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9ba5;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.gallery-search-input {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 45px 10px 48px;
    font-size: 0.95rem;
    background: #f8fafc;
    color: #1a202c;
    transition: all 0.25s ease;
}

.gallery-search-input:focus {
    background: #ffffff;
    border-color: #11235E;
    box-shadow: 0 0 0 4px rgba(17, 35, 94, 0.12);
    outline: none;
}

.gallery-search-box .search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a0aec0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.gallery-search-box .search-clear-btn:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
}

.gallery-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gallery-filter-btn {
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 20px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.gallery-filter-btn:hover {
    border-color: #11235E;
    color: #11235E;
    background: #f8fafc;
    transform: translateY(-2px);
}

.gallery-filter-btn.active {
    background: #11235E !important;
    border-color: #11235E !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(17, 35, 94, 0.25);
}

.gallery-filter-btn .cat-badge {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.76rem;
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.gallery-filter-btn.active .cat-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.gallery-live-stats {
    font-size: 0.92rem;
    color: #718096;
}

/* ================= GALLERY 3x3 GRID LAYOUT ================= */
#galleryGrid,
.gallery-3x3-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#galleryGrid::before,
#galleryGrid::after,
.gallery-3x3-grid::before,
.gallery-3x3-grid::after {
    display: none !important;
    content: none !important;
}

#galleryGrid > .gallery-item,
.gallery-3x3-grid > .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

#galleryGrid > .gallery-item.d-none,
.gallery-3x3-grid > .gallery-item.d-none {
    display: none !important;
}

@media (max-width: 991.98px) {
    #galleryGrid,
    .gallery-3x3-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (max-width: 575.98px) {
    #galleryGrid,
    .gallery-3x3-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Gallery Cards Grid */
.gallery-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(17, 35, 94, 0.08);
    box-shadow: 0 8px 24px rgba(17, 35, 94, 0.04);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer;
    margin: 0 !important;
    aspect-ratio: auto !important;
}

.gallery-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(17, 35, 94, 0.12);
    border-color: rgba(17, 35, 94, 0.2);
}

.gallery-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    flex-shrink: 0 !important;
    overflow: hidden;
    background: #11235E;
}

.gallery-card-thumb a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

.gallery-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block !important;
}

.gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.08);
}

.gallery-zoom-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 35, 94, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-zoom-overlay {
    opacity: 1;
}

.gallery-zoom-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #11235E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.gallery-card:hover .gallery-zoom-btn {
    transform: scale(1);
}

.gallery-card:hover .gallery-zoom-btn:hover {
    background: #E2C811;
    color: #11235E;
}

.gallery-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Pill Badges */
.gallery-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 12px;
}

.gallery-category-pill.pill-academics {
    background: #eef7e9;
    color: #356b06;
    border: 1px solid rgba(79, 131, 14, 0.3);
}

.gallery-category-pill.pill-celebrations {
    background: #fff8eb;
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.gallery-category-pill.pill-cultural {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.gallery-category-pill.pill-events {
    background: #ebf3ff;
    color: #11235E;
    border: 1px solid rgba(17, 35, 94, 0.3);
}

.gallery-card-title {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #11235E;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.gallery-card:hover .gallery-card-title {
    color: #4F830E;
}

.gallery-card-date {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.gallery-card-desc {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-view-text {
    color: #11235E;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gallery-card:hover .gallery-view-text {
    color: #4F830E;
    transform: translateX(3px);
}

.gallery-photo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(17, 35, 94, 0.88);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-card:hover .gallery-photo-badge {
    transform: scale(1.05);
    background: #11235E;
}

.gallery-card-readmore {
    color: #4F830E;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 50px;
    background: rgba(79, 131, 14, 0.08);
    border: 1px solid rgba(79, 131, 14, 0.22);
    transition: all 0.2s ease;
}

.gallery-card-readmore:hover {
    background: #4F830E;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 131, 14, 0.25);
}

.lightbox-thumb-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 4px 0;
    max-width: 90vw;
    scrollbar-width: thin;
}

.lightbox-thumb-strip::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumb-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lightbox-mini-thumb {
    width: 58px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #000;
}

.lightbox-mini-thumb:hover {
    opacity: 0.85;
    transform: scale(1.06);
}

.lightbox-mini-thumb.active {
    opacity: 1;
    border-color: #E2C811;
    box-shadow: 0 0 10px rgba(226, 200, 17, 0.6);
    transform: scale(1.08);
}

.lightbox-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4F830E;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lightbox-readmore-btn:hover {
    background: #3e680a;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Empty State */
.gallery-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.gallery-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ================= FULL-SCREEN INTERACTIVE LIGHTBOX ================= */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(8, 14, 32, 0.97);
    backdrop-filter: blur(14px);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    box-sizing: border-box;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-topbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
}

.lightbox-counter-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #ff5364;
    border-color: #ff5364;
    color: #ffffff;
    transform: scale(1.1);
}

.lightbox-stage-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-stage-img {
    max-width: 90vw;
    max-height: calc(100vh - 210px);
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease, transform 0.25s ease;
    transform: scale(1);
}

.lightbox-stage-img.fade-out {
    opacity: 0;
    transform: scale(0.97);
}

.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.lightbox-nav-arrow:hover {
    background: #ffffff;
    color: #11235E;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lightbox-nav-prev {
    left: 20px;
}

.lightbox-nav-next {
    right: 20px;
}

.lightbox-bottom-caption {
    width: 100%;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 10;
    padding-top: 10px;
}

.lightbox-bottom-caption .caption-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.lightbox-bottom-caption .caption-title {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.lightbox-bottom-caption .caption-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-lightbox-modal {
        padding: 16px 14px;
    }
    .lightbox-nav-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-nav-prev {
        left: 8px;
    }
    .lightbox-nav-next {
        right: 8px;
    }
    .lightbox-stage-wrap {
        height: calc(100vh - 180px);
    }
    .lightbox-stage-img {
        max-width: 95vw;
        max-height: calc(100vh - 190px);
    }
    .gallery-filter-btn {
        padding: 7px 15px;
        font-size: 0.85rem;
    }
}

/* 3x3 Grid Layout & Interactive Pagination */
.gallery-pagination-container {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(17, 35, 94, 0.08);
}

.gallery-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-page-btn {
    min-width: 44px;
    height: 44px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #11235E;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.gallery-page-btn:hover:not(:disabled) {
    background: #11235E;
    border-color: #11235E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 35, 94, 0.15);
}

.gallery-page-btn.active {
    background: #11235E !important;
    border-color: #11235E !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(17, 35, 94, 0.25);
}

.gallery-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #a0aec0;
}

.gallery-page-info {
    font-size: 0.92rem;
    color: #718096;
    margin-top: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness Suite (Phones & Tablets)
   ========================================================================== */

/* 1. Global Viewport & Horizontal Scroll Lock */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* 2. Breadcrumb Hero Sections (<768px) */
@media (max-width: 767.98px) {
    .breadcrumb-hero {
        padding: 45px 15px 35px 15px !important;
        min-height: auto !important;
    }
    .page-hero-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        word-wrap: break-word;
    }
    .breadcrumb-trail {
        font-size: 0.85rem !important;
    }
}

/* 3. Section Titles & Headings (<768px) */
@media (max-width: 767.98px) {
    h1, .h1 { font-size: 1.85rem !important; }
    h2, .h2, .sec-title, .vs-title__main { font-size: 1.55rem !important; }
    h3, .h3 { font-size: 1.3rem !important; }
    .sec-subtitle { font-size: 0.82rem !important; letter-spacing: 1px !important; }
}

/* 4. Home News Ticker Bar (<768px) */
@media (max-width: 767.98px) {
    .news-ticker-wrapper {
        margin: 0 !important;
    }
    .news-ticker-bar {
        padding: 6px 10px !important;
    }
    .news-ticker-bar .ticker-badge {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
        margin-right: 0.5rem !important;
        white-space: nowrap !important;
    }
    .news-ticker-bar .ticker-item {
        font-size: 0.84rem !important;
    }
    .news-ticker-bar .ticker-tag {
        font-size: 0.65rem !important;
        padding: 1px 6px !important;
    }
}

/* 5. Quick Access Floating Sidebar (<992px) */
@media (max-width: 991.98px) {
    .quick-access-panel {
        top: 65% !important;
    }
    .quick-access-panel.is-collapsed {
        transform: translateY(-50%) translateX(195px) !important;
    }
    .quick-access-toggle {
        padding: 8px 3px !important;
        border-top-left-radius: 10px !important;
        border-bottom-left-radius: 10px !important;
    }
    .quick-access-toggle-text {
        font-size: 0.62rem !important;
        letter-spacing: 0.12em !important;
    }
    .quick-access-content {
        width: 195px !important;
        border-radius: 12px 0 0 12px !important;
    }
    .quick-access-item {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.72rem !important;
    }
}

/* 6. Notice Cards & Single Notice (<768px) */
@media (max-width: 767.98px) {
    .card .position-relative {
        height: 190px !important;
    }
    .card-body {
        padding: 1.15rem !important;
    }
    .card-title {
        font-size: 1.05rem !important;
    }
    .single-article {
        padding: 0 !important;
    }
    .single-article img {
        max-height: 300px !important;
    }
}

/* 7. Gallery Mobile Filter Pills & Search (<768px) */
@media (max-width: 767.98px) {
    .gallery-filter-pill-container {
        padding: 0 5px;
    }
    .gallery-filter-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    .gallery-search-input-wrap {
        padding: 0 10px !important;
    }
    .gallery-search-input {
        font-size: 0.88rem !important;
        height: 44px !important;
    }
    .gallery-pagination-container {
        margin-top: 2rem !important;
        padding-top: 1.25rem !important;
    }
    .gallery-page-btn {
        min-width: 38px !important;
        height: 38px !important;
        font-size: 0.85rem !important;
        padding: 0 10px !important;
    }
}

/* 8. Lightbox on Mobile Viewports (<768px) */
@media (max-width: 767.98px) {
    .gallery-lightbox-modal {
        padding: 12px 10px !important;
    }
    .lightbox-stage-wrap {
        height: calc(100vh - 160px) !important;
    }
    .lightbox-stage-img {
        max-width: 96vw !important;
        max-height: calc(100vh - 170px) !important;
    }
    .lightbox-nav-arrow {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    .lightbox-nav-prev { left: 4px !important; }
    .lightbox-nav-next { right: 4px !important; }
    .lightbox-close-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.15rem !important;
    }
    .lightbox-thumb-strip {
        gap: 6px !important;
        padding: 4px 0 !important;
    }
    .lightbox-thumb-item {
        width: 48px !important;
        height: 34px !important;
    }
}

/* 9. Contact & Footer on Mobile (<768px) */
@media (max-width: 767.98px) {
    .vs-footer {
        padding-top: 40px !important;
        text-align: center;
    }
    .footer-widget {
        margin-bottom: 30px !important;
    }
    .footer-widget .widget-title {
        font-size: 1.15rem !important;
    }
    .footer-widget ul {
        padding-left: 0 !important;
    }
}
