/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

i {
    font-family: inherit;
    font-style: normal;
}

.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Image Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    min-height: 50px;
    font-size: 1.1rem;
    font-weight: 400;
}

.lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .lightbox-close:hover {
    color: #bbb;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
        border-radius: 0;
    }

    .lightbox .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-blue: #0049a1;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --header-gradient-start: #2563eb;
    --header-gradient-end: #3b82f6;
    --navbar-blue: #1e40af;
    --topbar-blue: #1e3a8a;

    /* Day Mode Colors */
    --day-primary: #1e40af;
    --day-secondary: #3b82f6;
    --day-background: #ffffff;
    --day-text: #1e40af;
    --day-accent: #dbeafe;

    /* Night Mode Colors */
    --night-primary: #333333;
    --night-secondary: #4a4a4a;
    --night-background: #121212;
    --night-text: #e0e0e0;
    --night-accent: #2a2a2a;
    --night-surface: #1e1e1e;
    --night-border: #404040;

    /* Update color variables for blue shades */
    --topbar-blue: #1e3a8a;
    /* Darkest blue for top bar */
    --header-blue: #1e40af;
    /* Dark blue for header */
    --navbar-blue: #2958b8;
    /* Medium blue for navbar */
    --text-light: #ffffff;
    /* White text */
    --accent-light: #dbeafe;
    /* Light blue accent */

    /* Header and Navigation Colors */
    --topbar-dark-blue: #165ad8;
    /* Darker blue for top bar */
    --news-text-red: #ff3333;
    /* Red color for news text */
    --white-text: #ffffff;
    /* White text color */

}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #04599b;
    background-color: #e0f7fa;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

h1,
h2,
h3 {
    color: #0055a4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    color: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
}

/* Header Section - Updated */
.top-bar {
    background: var(--topbar-dark-blue);
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 3px solid var(--accent-blue);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 95%;
    gap: 30px;
}

.header-right-strip {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.news-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 60%;
}

.contact-info a {
    color: var(--text-light);
    margin-right: 15px;
    font-size: 0.9rem;
    color: var(--white-text);
}

.social-links a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 1rem;
    color: var(--white-text);
}

/* Header and Navigation Styles - Resetting for Single Row */
.header {
    background-color: var(--header-blue);
    width: 100%;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidenav Styles Redesign */
.sidenav {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(22, 90, 216, 0.95), rgba(30, 64, 175, 0.98));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    overflow-x: hidden;
    overflow-y: auto;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 25px 25px 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    /* Scrollbar Hiding */
    scrollbar-width: none;
    /* Firefox and Modern Chrome/Edge */
    -ms-overflow-style: none;
    /* IE and Legacy Edge */
}

/* Chrome, Safari, and Opera */
.sidenav::-webkit-scrollbar {
    display: none;
}

.sidenav-header {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.sidenav-brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.sidenav-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidenav .closebtn {
    position: static;
    font-size: 30px;
    background-color: #1757d4;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidenav .closebtn:hover {
    background-color: #8c1529;
    color: white;
}

.sidenav-branding-text {
    margin-top: 15px;
    width: 360px;
    /* Prevent reflow animation */
    max-width: 85vw;
    /* Responsive for mobile */
}

.sidenav-branding-text .school-name {
    font-family: 'Georgia', serif;
    font-size: 32px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: bold;
}

.sidenav-branding-text .school-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 10px;
}

.sidenav-menu {
    padding: 10px 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 30px;
    color: #93c5fd;
}

.menu-item:hover i {
    color: #93c5fd;
}

.menu-item.contact-link {
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 5px;
}

.sidenav-info-wrap {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.sidenav-info-wrap .info-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidenav-info-wrap .info-section p i {
    color: #ffffff;
    width: 16px;
}

.sidenav-info-wrap .social-section {
    margin-top: 20px;
}

.sidenav-info-wrap .social-section h3 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.sidenav .social-icons a {
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.3s, color 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    padding: 0 !important;
    border-bottom: none !important;
}

.social-icons a:hover {
    background: #ffffff;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.menu-item.accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header i {
    transition: transform 0.3s;
    font-size: 14px;
}

.accordion.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion.active .accordion-content {
    max-height: 200px;
    margin-bottom: 15px;
}

.accordion-content a {
    display: block;
    padding: 10px 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.accordion-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Sidenav Footer Attribution */
.sidenav-footer {
    padding: 20px 25px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav-made-by {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sidenav-made-by:hover {
    color: #ffffff;
}

.sidenav-made-by:hover .author-link {
    color: #aae0ff;
    text-shadow: 0 0 15px rgba(170, 224, 255, 0.5);
}

.sidenav-made-by:hover .slide-icon {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(360deg);
}

/* Re-using existing author-wrapper, author-link, slide-icon from footer */
/* They are already defined globally around line 3928 */

/* Sidenav Dropdown Styles */
.sidenav-dropdown {
    width: 100%;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.dropdown-btn span {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-btn span i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.dropdown-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 30px;
    color: #93c5fd;
}

.dropdown-btn:hover span i,
.dropdown-btn:hover .dropdown-icon {
    color: #93c5fd;
}

.dropdown-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-container.show {
    max-height: 300px;
}

.dropdown-container a {
    display: block;
    padding: 12px 25px 12px 60px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-container a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 65px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 25px 0;
    color: #777;
    font-size: 13px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--light-blue);
}

/* Navigation Bar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    border-radius: 18px;
    margin: 8px 16px;
    border: none;
    animation: navbarFadeIn 0.8s ease-out;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky Header Styles */
.navbar-section {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar-section.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease;
}

.navbar-section.sticky .navbar {
    margin: 0px 0px;
    padding: 2px 20px;
}

/* Sticky Header Logo - Desktop (Bigger: 80x80) */
.navbar-section.sticky .logo {
    width: 75px;
    height: 75px;
}

.navbar-section.sticky .nav-gif {
    height: 80px;
}

.navbar-section.sticky .nav-menu li a {
    padding: 10px 25px;
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navbar-desktop {
    display: flex;
}

.navbar-mobile {
    display: none;
}

@media (max-width: 768px) {
    .header {
        display: none;
    }

    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: flex;
    }
}

.navbar-desktop .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
}

.navbar-desktop .brand {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.navbar-desktop .nav-menu {
    flex: 0 0 auto;
}

.nav-gif-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.nav-gif {
    height: 80px;
    width: auto;
    border-radius: 5px;
}

/* Navigation Menu */
.nav-menu {
    position: relative;
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* Menu Items */
.nav-menu li a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Hover Effect */
.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.nav-menu li a:hover::before {
    left: 100%;
}

.nav-menu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Active Link */
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    animation: logoSpin 1.5s ease-out;
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    display: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2px;
    animation: fadeInUp 600ms ease both;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-toggle i {
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Burger open state to X */
.menu-toggle.open i {
    transform: rotate(180deg);
}

/* Mobile menu full-width overlay adjustments */
@media (max-width: 768px) {
    .navbar-mobile .brand-text {
        display: block;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .navbar-mobile .logo {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .navbar-mobile .nav-menu {
        left: 0;
        top: calc(100% + 8px);
        width: 100%;
        border-radius: 0;
        padding: 14px;
        z-index: 1500;
    }

    .navbar-section {
        padding: 0;
        margin: 0;
        background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    }

    .navbar-mobile .container {
        padding: 0 8px;
        width: 100%;
        max-width: none;
        gap: 1px;
    }

    .navbar-mobile .brand {
        margin-left: 0;
        gap: 5px;
    }
}

/* Animations */
@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoSpin {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Menu Item Animation */
.nav-menu li {
    opacity: 0;
    animation: menuItemFadeIn 0.5s ease forwards;
}

.nav-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-menu li:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-menu li:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-menu li:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-menu li:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-menu li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Animation for Menu Items */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-mobile .menu-toggle {
        display: flex;
    }

    .navbar-mobile .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .navbar-mobile .nav-menu {
        display: none;
        flex-direction: column;
        width: calc(100% - 24px);
        background: var(--primary-blue);
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        padding: 14px;
        animation: mobileMenuFadeIn 0.3s ease;
    }

    /* Animated active state for mobile menu */
    .navbar-mobile .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        animation: mobileMenuSlideDown 0.35s cubic-bezier(.2, .8, .2, 1) forwards;
    }

    @keyframes mobileMenuSlideDown {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes mobileMenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-mobile .nav-menu.active {
        display: flex;
    }

    .navbar-mobile .nav-menu li {
        margin: 10px 0;
        animation: none;
        opacity: 1;
    }

    .navbar-mobile .nav-menu li a {
        display: block;
        padding: 12px 18px;
    }

    .navbar-mobile .nav-menu li a:hover {
        transform: translateX(6px);
    }
}

/* Hide the flag (nav-gif) on screens narrower than 1085px */
@media (max-width: 1085px) {
    .nav-gif {
        display: none;
    }
}

/* Hero Section with Slider */
.hero {
    position: relative;
    width: 100%;
    background: none;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.4em;
    animation: fadeInUp 1s ease-in-out;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e6f7ff, 0 0 40px #80dfff;
    color: #0154a0;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    margin-bottom: 2em;
    font-weight: 500;
    animation: fadeInUp 1.5s ease-in-out;
    text-shadow: 0 0 10px #02afff, 0 0 20px #00aeff, 0 0 30px #00aeff, 0 0 40px #80dfff;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide 15s infinite;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 800px;
    text-align: center;
    z-index: 5;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 15px;
    border: 4px solid #ffffff;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: borderGlow 3s infinite;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.8rem);
    margin: 15px auto;
    color: #ffffff;
    font-weight: 500;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 80%;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-buttons .btn {
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 35px);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-buttons .btn:hover {
    transform: scale(1.05);
}

.hero .slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Global Page Header Styles (Shared across About, Notice, Contact, etc.)
   ========================================================================== */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(14, 23, 42, 0.55));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #3b82f6;
    /* Premium Blue as seen in user image */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(59, 130, 246, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.page-header p {
    color: #ffffff;
    font-size: clamp(1rem, 4vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out both 0.2s;
}

/* Night Mode Overrides for Page Header */
.night-mode .page-header::before {
    background: linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.95));
}

.night-mode .page-header h1 {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Secondary Page Header Style (Optional) */
.page-header.style-light h1 {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0;
        margin-bottom: 30px;
    }
}

@keyframes slide {

    0%,
    100% {
        transform: translateX(0);
    }

    33.33% {
        transform: translateX(-100%);
    }

    66.66% {
        transform: translateX(-200%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Border Glow Animation */
@keyframes borderGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text sizes are handled fluidly via clamp() in global styles */




/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* Center and bold the gallery section title */
.gallery .section-title {
    text-align: center;
    font-weight: 700;
    font-size: 3rem;
    /* increase size a bit */
    margin-top: -8px;
    /* nudge the title up slightly */
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    /* Set a fixed height for uniformity */
    object-fit: cover;
    /* Maintain aspect ratio and cover the area */
    transition: transform 0.3s ease;
    /* Add a visible shadow to the image itself without being clipped */
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.view-more-btn {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    background: var(--primary-blue);
    color: white;
    transition: background-color 0.3s ease;
}

.view-more-btn .btn:hover {
    background: var(--secondary-blue);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    text-align: center;
}

.lightbox-slide {
    display: none;
}

.lightbox-slide img {
    width: 100%;
    border-radius: 10px;
}

.lightbox .prev,
.lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox .prev {
    left: 0;
}

.lightbox .next {
    right: 0;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.close-lightbox {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bbb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        width: 90%;
    }
}


@media (max-width: 768px) {
    .hero {
        height: 42.5vh;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}



/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    /* Blue background */
    color: #fff;
    /* White icon */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
    transform: scale(1.1);
    /* Slight zoom effect */
}

#back-to-top i {
    font-size: 20px;
}

/* Dark Mode Toggle Button */
#dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--topbar-dark-blue);
}

#dark-mode-toggle:hover {
    background-color: #0056b3;
    /* Hover color */
    transform: scale(1.1) rotate(180deg);
}

#dark-mode-toggle:focus {
    outline: none;
}

#dark-mode-toggle i {
    color: var(--white-text);
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .header {
    background-color: #1e1e1e;
}

.dark-mode .navbar {
    background-color: #1e1e1e;
}

.dark-mode .nav-menu a {
    color: #ffffff;
}

.dark-mode .footer {
    background-color: #1e1e1e;
}

.dark-mode .footer-links a {
    color: #ffffff;
}

.dark-mode .footer-social a {
    color: #ffffff;
}



body.dark-mode .navbar,
body.dark-mode .footer {
    background-color: #1f1f1f;
}

body.dark-mode .btn {
    background-color: #007bff;
    color: rgb(247, 0, 0);
}

/* Change Dark Mode Toggle Button Color when Dark Mode is On */
body.dark-mode #dark-mode-toggle {
    background-color: #555;
    /* Gray color when Dark Mode is on */
}

body.dark-mode #back-to-top {
    background-color: #555;
    /* Gray color when Dark Mode is on */
}

/* Day Mode (Blue and White) */
body.day-mode {
    background-color: var(--day-background);
    color: var(--day-text);
}

header.day-mode,
nav.day-mode,
footer.day-mode {
    background-color: #01579b;
    color: white;
}

/* Night Mode (Black and Gray) */
body.night-mode {
    background-color: #000000;
    color: var(--light-blue);
}

header.night-mode,
nav.night-mode,
footer.night-mode {
    background-color: #000000;
    color: #e0e0e0;
}

/* Sections Animation */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Quick Links */
.quick-links {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.quick-link {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 42.5vh;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 77vh;
    background: none;
    overflow: hidden;
}

.swiper-container {
    position: relative;
    width: 100%;
    height: 77vh;
}

/* Swiper slider: desktop uses cover, smaller devices use contain to avoid cropping */
.swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animate slide content when slide becomes active */
.swiper-slide .slide-content {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Make slider images behave like standard <img> on small screens (no cropping) */
@media (max-width: 768px) {

    .hero {
        height: 40vh;
    }

    .swiper-container {
        height: 42.5vh;
    }

    .swiper-wrapper {
        height: 100%;
    }

    .swiper-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    /* Make sure slide content stacks and doesn't overlap the image */
    .slide-content {
        position: relative;
        z-index: 2;
        padding: 12px 16px;
    }

    /* If slide content overlaps, move it below the image on phones */
    .swiper-slide .slide-content.center-content {
        order: 2;
        margin-top: 12px;
    }
}

/* On medium screens allow some compromise between cover and contain */
@media (min-width: 769px) and (max-width: 1024px) {
    .swiper-container {
        height: 60vh;
    }
}

/* Add to your CSS file */
.typewriter {
    border-right: 2px solid currentColor;
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.75s step-end infinite;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--secondary-blue);
    z-index: 1000;
    transition: width 0.3s ease;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: currentColor
    }
}

.parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    /* Set counter text color to white */
}

.counter-title {
    font-size: 1.2rem;
    color: #ffffff;
    /* Set counter title text color to white */
}

/* Day Mode Styles */
body.day-mode {
    color: var(--day-text);
}

.day-mode .top-section {
    background-color: #ffffff;
    /* White background for the top section */
    width: 100%;
    padding: 0;
    /* Ensure no padding */
}

.day-mode .navbar-section {
    background-color: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue))#1e40af;
    /* Solid blue background for the navbar */
    width: 100%;
    padding: 0;
    /* Ensure no padding */
}

.day-mode .bottom-section {
    background-color: #ffffff;
    /* White background for the bottom section */
    width: 100%;
    padding: 0;
    /* Ensure no padding */
}

/* Ensure sections are flush */
.day-mode .top-section,
.day-mode .navbar-section,
.day-mode .bottom-section {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.day-mode .navbar {
    background-color: #1e40af;
    /* Solid blue background for the navbar */
}

.day-mode .footer {
    background-color: var(--day-primary);
    color: var(--day-background);
}

.day-mode .top-bar {
    background-color: var(--day-primary);
    color: var(--day-background);
}

.day-mode .btn-primary {
    background-color: var(--day-primary);
    color: var(--day-background);
}

.day-mode .section-title {
    color: var(--day-primary);
}

.day-mode .notice-board {
    background-color: #e2efff;
}

body.night-mode {
    background-color: var(--night-background);
    color: black;
}

.night-mode .navbar,
.night-mode .footer,
.night-mode .top-bar {
    background-color: var(--night-primary);
    color: var(--night-secondary);
}

.night-mode .btn-primary {
    background-color: var(--night-primary);
    color: var(--night-text);
}

.night-mode .notice-board {
    background-color: var(--night-accent);
}

/* Additional Theme-Specific Styles */
.day-mode .quick-link {
    background-color: var(--day-background);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.night-mode .quick-link {
    background-color: var(--night-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle Button */
#dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.day-mode #dark-mode-toggle {
    background-color: var(--day-primary);
    color: var(--white);
}

.night-mode #dark-mode-toggle {
    background-color: var(--night-surface);
    color: var(--night-text);
}

/* Theme Toggle Button - Updated */
#dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.day-mode #dark-mode-toggle {
    background-color: var(--day-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.night-mode #dark-mode-toggle {
    background-color: var(--night-surface);
    color: var(--night-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#dark-mode-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

/* Additional Theme Transitions */
.navbar,
.header,
.top-bar,
.card,
.notice-content,
.contact-box,
.quick-link,
.btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Contact Form Dark Mode Updates */
/* Contact Form Dark Mode Updates - Consolidated below */


.night-mode .contact-form input,
.night-mode .contact-form textarea {
    background-color: var(--night-background);
    border: 1px solid var(--night-border);
    color: var(--night-text);
}

.night-mode .contact-form input::placeholder,
.night-mode .contact-form textarea::placeholder {
    color: rgba(229, 231, 235, 0.6);
}

.night-mode .contact-info {
    color: var(--night-text);
}

body.night-mode .contact-us,
body.night-mode .contact-box {
    background: var(--night-background) !important;
    /* Use background to override gradient */
    color: var(--night-text);
    border: 1px solid var(--night-border);
}

body.day-mode .contact-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.night-mode .contact-info,
.night-mode .contact-info p,
.night-mode .contact-info i {
    color: var(--night-text) !important;
}

.night-mode .contact-form h3 {
    color: var(--night-text) !important;
}

/* Counter Animation */
.counter-section {
    padding: 60px 0;
    background: var(--primary-blue);
    color: white;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    position: relative;
    overflow: hidden;
}

.counter-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.counter-item {
    text-align: center;
    padding: 20px;
    animation: float 3s ease-in-out infinite;
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    /* Set counter text color to white */
}

.counter-title {
    font-size: 1.2rem;
    color: #ffffff;
    /* Set counter title text color to white */
}

.counter-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
    top: 0;
    left: -100%;
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Cool Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to elements */
.hero .slide-content h1 {
    animation: fadeInUp 1s ease-out;
}

.hero .slide-content p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.counter-item {
    animation: float 3s ease-in-out infinite;
}

.quick-link {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.message-box {
    transition: transform 0.3s ease;
}

.message-box:hover {
    transform: translateY(-5px);
}

/* Animate contact form inputs */
.contact-form input,
.contact-form textarea {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dropdown Menu Styles for Desktop */
.nav-menu-desktop .dropdown {
    position: relative;
}

.nav-menu-desktop .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px 0;
    animation: fadeInDropdown 0.3s ease;
    border-top: 3px solid var(--primary-blue);
}

.nav-menu-desktop .dropdown:hover .dropdown-content {
    display: block;
}

.nav-menu-desktop .dropdown-content a {
    color: #333 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu-desktop .dropdown-content a:last-child {
    border-bottom: none;
}

.nav-menu-desktop .dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue) !important;
    padding-left: 25px;
    /* Slide effect */
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidenav Menu Styles */
.menu-item.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding-left: 30px !important;
}

.menu-item.active i {
    color: #ffffff !important;
}

/* Sidenav Dropdown Styles */
.sidenav-dropdown {
    position: relative;
    width: 100%;
}

.sidenav-dropdown .dropdown-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    background: none !important;
    border: none !important;
    gap: 15px !important;
    font-family: inherit !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-decoration: none;
}

.sidenav-dropdown .dropdown-btn.active {
    font-weight: 600 !important;
}

.sidenav-dropdown .dropdown-btn i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.sidenav-dropdown .dropdown-icon {
    margin-left: auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.sidenav-dropdown .dropdown-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

.sidenav-dropdown .dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    padding-left: 30px !important;
    color: #93c5fd !important;
}

.sidenav-dropdown .dropdown-btn:hover i:first-child {
    color: #93c5fd !important;
}

.sidenav-dropdown .dropdown-container {
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    padding-left: 10px;
    border-left: 3px solid var(--secondary-blue);
    margin: 5px 0;
    animation: fadeInDropdown 0.3s ease forwards;
}

.sidenav-dropdown .dropdown-container.show {
    display: block;
}

.sidenav-dropdown .dropdown-container a {
    font-size: 1rem !important;
    padding: 12px 25px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sidenav-dropdown .dropdown-container a:hover,
.sidenav-dropdown .dropdown-container a.active {
    color: #93c5fd !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary-blue);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidenav .rotate-icon {
    transform: rotate(180deg);
}

/* Night Mode Dropdown Styling */
body.night-mode .sidenav .dropdown-container {
    background-color: rgba(0, 0, 0, 0.3);
}

body.night-mode .sidenav .dropdown-container a {
    color: #cbd5e1 !important;
}

body.night-mode .sidenav .dropdown-container a:hover {
    color: #ffffff !important;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Night Mode Dropdown Fixes */
body.day-mode .nav-menu-desktop .dropdown-content {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.night-mode .nav-menu-desktop .dropdown-content {
    background-color: #2a2a2a;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-top-color: var(--secondary-blue);
}

body.night-mode .nav-menu-desktop .dropdown-content a {
    color: #e0e0e0 !important;
    border-bottom: 1px solid #333;
}

body.night-mode .nav-menu-desktop .dropdown-content a:hover {
    background-color: #333;
    color: var(--secondary-blue) !important;
}

/* Mobile Icon Transition */
.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Animate social icons */
.social-links a,
.footer-social a {
    transition: transform 0.3s ease;
}

.social-links a:hover,
.footer-social a:hover {
    transform: translateY(-3px) rotate(8deg);
}

/* Fixed Position Buttons */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Dark Mode Button States */
.night-mode #dark-mode-toggle {
    background: #555;
    color: var(--white);
}

.night-mode #back-to-top {
    background: #555;
    color: var(--white);
}

/* Button Hover Effects */
#back-to-top:hover,
#dark-mode-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animation for buttons */
@keyframes buttonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.visible {
    animation: buttonFloat 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    #back-to-top,
    #dark-mode-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .fixed-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .header {
        padding: 10px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .header marquee {
        width: 100%;
    }
}

/* Dark Mode Updates */
.night-mode .top-bar {
    background: #1a1a1a;
    border-bottom: 3px solid #333;
}

.night-mode .header {
    background: linear-gradient(to right, #2a2a2a, #3a3a3a);
}

.night-mode .navbar {
    background: #222;
    border-bottom: 3px solid #333;
}

.night-mode .top-bar {
    background: #1a1a1a;
}

.night-mode .header {
    background: #2a2a2a;
}

.night-mode .navbar {
    background: #333333;
}

/* Fixed Controls Styling */
.fixed-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

#back-to-top,
#dark-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
}

/* Button States */
.night-mode #back-to-top,
.night-mode #dark-mode-toggle {
    background: #2a2a2a;
    color: #ffffff;
}

/* Button Hover Effects */
#back-to-top:hover,
#dark-mode-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#back-to-top.visible {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fixed-controls {
        bottom: 20px;
        right: 20px;
    }

    #dark-mode-toggle {
        bottom: 20px;
        left: 20px;
    }

    #back-to-top,
    #dark-mode-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Dark Mode Adjustments */
.night-mode .top-bar,
.night-mode .header,
.night-mode .navbar {
    background-color: #1a1a1a;
}

/* News Section Styling - Right Position */
.news-strip b,
.news-strip strong {
    color: #ff3333;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.news-strip marquee {
    color: var(--white-text);
    font-size: 0.95rem;
    flex: 1;
    margin: 0;
    padding-top: 2px;
}

/* Dark Mode Adjustments */
.night-mode .news-strip b,
.night-mode .news-strip strong {
    color: #ff4444;
}

.night-mode .news-strip marquee {
    color: var(--night-text);
}

/* Mobile: ensure social icons (top-bar) appear above the NEWS marquee */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }

    .header-right-strip {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .news-strip {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }

    .hero {
        height: 42vh !important;
    }
}

@media (min-width: 901px) {
    .top-bar {
        padding: 0;
    }

    .top-bar .container {
        flex-wrap: nowrap;
        justify-content: flex-start;
        position: relative;
        gap: 16px;
    }

    .contact-info {
        flex-shrink: 0;
        white-space: nowrap;
        gap: 12px;
    }

    .news-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        height: 28px;
        padding: 2px 12px;
    }

    .social-links {
        flex-shrink: 0;
        margin-left: 600px;
    }
}

/* Modal Popup Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 30000;
    /* Sit on top of everything, including sidenav (25000) */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    /* center modal content */
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.45);
    overflow-y: auto;
}

.modal.showing {
    /* ensure the overlay is visible when modal is showing */
    background-color: rgba(0, 0, 0, 0.2);
    /* Lighter overlay to let background show through */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Prevent page scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
}

.modal-content {
    position: relative;
    margin: 40px auto;
    padding: 20px;
    width: 92%;
    max-width: 700px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(11, 22, 40, 0.35), 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(0, 85, 164, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.modal-content::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(0, 85, 164, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 100;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    color: var(--primary-blue);
    border-radius: 12px;
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(43, 123, 233, 0.12);
    transition: transform 180ms cubic-bezier(.2, .9, .2, 1), box-shadow 180ms ease, background 180ms ease;
}

.close:hover {
    transform: scale(1.06) rotate(15deg);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 100%);
}

.close:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(43, 123, 233, 0.12), 0 12px 30px rgba(2, 6, 23, 0.18);
}

.modal-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.modal-text {
    margin: 14px auto 8px auto;
    padding: 0 6px;
    text-align: center;
}

.modal-label {
    display: table;
    margin: 8px auto 12px auto;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.2px;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(90deg, #0f3a66 0%, #2b7be9 50%, #0f3a66 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 900px) {
    .modal-label {
        padding: 12px 18px;
    }

}

/* Responsive sizing: medium and large screens */
@media (min-width: 600px) {
    .modal-content {
        width: 70%;
        max-width: 700px;
        padding: 22px;
    }

    .modal-image {
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 900px) {
    .modal-content {
        width: 64%;
        max-width: 700px;
        padding: 24px;
    }

    .modal-image {
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 1400px) {
    .modal-content {
        width: 56%;
        max-width: 700px;
        padding: 28px;
        border-radius: 16px;
    }

    .modal-image {
        height: auto;
    }
}

.modal-content {
    transform: scale(0.98);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2, .9, .2, 1), opacity 220ms ease;
}

.modal.showing .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-text h2 {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg, #0f3a66 0%, #2b7be9 50%, #0f3a66 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: #213444;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    line-height: 1.25;
}

@media (min-width: 900px) {
    .modal-label {
        font-size: 2rem;
        padding: 10px 20px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .modal-text h2 {
        font-size: 1.4rem;
        margin-top: 6px;
        margin-bottom: 4px;
    }

    .modal-text p {
        font-size: 0.9rem;
        margin-top: 0;
    }

    .modal-content {
        padding-top: 20px;
    }
}

.modal-label {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.modal-content {
    transform: translateZ(0);
    transition: transform 280ms cubic-bezier(.2, .9, .2, 1), opacity 220ms ease;
}

.modal.showing .modal-content {
    transform: scale(1);
    opacity: 1;
}

body.night-mode .modal {
    background-color: rgba(0, 0, 0, 0.85);
}

body.night-mode .modal.showing {
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

body.night-mode .modal-content {
    background-color: #1a1f2e;
    background-image: radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.night-mode .modal-content::before,
body.night-mode .modal-content::after {
    background: rgba(59, 130, 246, 0.15);
}

body.night-mode .close {
    background: linear-gradient(135deg, #2a3447 0%, #1a1f2e 100%);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.night-mode .close:hover {
    background: linear-gradient(135deg, #323f5a 0%, #1e2536 100%);
    color: #93c5fd;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

body.night-mode .modal-label {
    background: linear-gradient(180deg, #1e2536, #111827);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.night-mode .modal-text h2 {
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.night-mode .modal-text p {
    color: #cbd5e1;
}

body.night-mode .sidenav {
    background: linear-gradient(180deg, #111827, #0f172a);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.night-mode .sidenav-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.night-mode .sidenav-logo {
    border-color: rgba(59, 130, 246, 0.5);
}

body.night-mode .sidenav .closebtn {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.night-mode .sidenav .closebtn:hover {
    background-color: #ef4444;
}

body.night-mode .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.night-mode .menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

body.night-mode .sidenav-info-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.night-mode .sidenav-info-wrap .info-section p i {
    color: #60a5fa;
}

body.night-mode .sidenav .social-icons a {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

body.night-mode .sidenav .social-icons a:hover {
    background: #3b82f6;
    color: #ffffff;
}

body.night-mode .footer {
    background: var(--night-primary);
    color: var(--night-text);
}

.footer-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.navbar {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
}

.nav-menu {
    position: relative;
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-menu li a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.nav-menu li a:hover::before {
    left: 100%;
}

.nav-menu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #ffffff;
    margin: 4px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoSpin {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.nav-menu li {
    opacity: 0;
    animation: menuItemFadeIn 0.5s ease forwards;
}

.nav-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-menu li:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-menu li:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-menu li:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-menu li:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-menu li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 80%;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 25000;
    top: 0px;
    left: 0;
    background-color: var(--primary-blue);
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 0;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.sidenav a {
    padding: 8px 12px;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--white-text);
    display: block;
    transition: 0.3s;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidenav a:hover {
    color: var(--light-blue);
    background: rgba(255, 255, 255, 0.1);
}

.sidenav .closebtn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    border-bottom: none;
}

#main {
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: block;
        background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .mobile-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .mobile-toggle-btn {
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
        padding: 5px;
    }

    /* Professional Theme Switch Styles */
    .theme-switch-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px 25px;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .theme-label {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .theme-switch {
        display: inline-block;
        height: 24px;
        position: relative;
        width: 44px;
    }

    .theme-switch input {
        display: none;
    }

    .slider {
        background-color: rgba(255, 255, 255, 0.2);
        bottom: 0;
        cursor: pointer;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        transition: .4s;
    }

    .slider:before {
        background-color: #fff;
        bottom: 4px;
        content: "";
        height: 16px;
        left: 4px;
        position: absolute;
        transition: .4s;
        width: 16px;
    }

    input:checked+.slider {
        background-color: #3b82f6;
    }

    input:checked+.slider:before {
        transform: translateX(20px);
    }

    .slider.round {
        border-radius: 34px;
    }

    .slider.round:before {
        border-radius: 50%;
    }

    /* Site-wide Dark Mode Variables */
    body.dark-theme {
        --body-bg: #0f172a;
        --text-color: #f8fafc;
        background-color: var(--body-bg);
        color: var(--text-color);
    }

    body.dark-theme .top-section {
        background-color: #020617;
    }

    body.dark-theme .header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.dark-theme .sidenav {
        background-color: #020617;
    }

    .navbar-mobile .logo {
        width: 50px;
        height: 50px;
        vertical-align: middle;
    }

    .navbar-mobile .brand-text {
        color: white;
        font-weight: bold;
        display: inline-block;
        margin-left: 10px;
        font-size: 1.1rem;
    }
}

/* Hero Section Styles */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-text);
    text-align: center;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.4em;
    animation: fadeInUp 1s ease-in-out;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e6f7ff, 0 0 40px #80dfff;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    margin-bottom: 1.5em;
    animation: fadeInUp 1.5s ease-in-out;
    text-shadow: 0 0 10px #02afff, 0 0 20px #00aeff, 0 0 30px #00aeff, 0 0 40px #80dfff;
}

.hero-buttons .btn {
    padding: clamp(12px, 2.5vw, 18px) clamp(25px, 5vw, 45px);
    font-size: clamp(1rem, 2.8vw, 1.3rem);
    font-weight: 600;
    margin: 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #ffffff;
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-buttons .btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Keyframes for fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section Text Effects */
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 20px;
    border: 4px solid #ffffff;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: borderGlow 3s infinite;
}

.hero-content p {
    font-size: 1.8rem;
    margin: 30px auto;
    color: #ffffff;
    font-weight: 500;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 80%;
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* Border Glow Animation */
@keyframes borderGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text responsive sizes are handled by clamp() */

/* Slider Navigation Container */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    /* Transparent background */
    padding: 10px 15px;
    border-radius: 50px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    /* Adds a frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Slider Navigation Buttons */
.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-btn.prev::before {
    content: "←";
    font-size: 22px;
    font-weight: bold;
}

.slider-btn.next::before {
    content: "→";
    font-size: 22px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        border-radius: 0;
        margin: 0;
        padding: 12px 10px;
    }

    .navbar-section.sticky .navbar {
        padding: 4px 10px;
        margin: 0;
        border-radius: 0;
    }

    /* Smaller View Sticky Logo (Mobile: 50x50) */
    .navbar-section.sticky .logo {
        width: 50px;
        height: 50px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .slider-nav {
        bottom: 10px;
        /* Moved down to avoid overlapping */
        left: 20px;
        padding: 5px 10px;
    }

    .swiper-pagination {
        bottom: 15px;
    }
}

/* Night Mode Text Color Fix */
body.night-mode {
    background-color: var(--night-background);
    color: var(--day-text);
    /* Keep other text colors the same as day mode */
}

body.night-mode p {
    color: #ffffff;
    /* Make only paragraph text white */
}

/* Night Mode Text Color Fix */
body.night-mode {
    background-color: var(--night-background);
    color: var(--night-text);
    /* Ensure text color is readable */
}

.night-mode h1,
.night-mode h2,
.night-mode h3 a {
    color: var(--secondary-blue);
    /* Apply night text color to headings, paragraphs, and links */
    /
}

.night-mode p,
.night-mode a {
    color: var(--night-text);
    /* Apply night text color to headings, paragraphs, and links */
}

.night-mode a:hover {
    color: var(--light-blue);
    /* Add hover effect for links */
}

.night-mode .btn {
    background-color: var(--night-primary);
    color: var(--night-text);
}

.night-mode .btn:hover {
    background-color: var(--night-secondary);
    color: var(--white-text);
}

.night-mode .notice-content {
    background-color: var(--night-accent);
    color: var(--night-text);
}

.night-mode .footer,
.night-mode .footer-links a,
.night-mode .footer-social a {
    color: var(--night-text);
}

/* Night Mode Counter Section */
body.night-mode .counter-section {
    background: linear-gradient(45deg, #020202, #333333);
    /* Updated gradient colors */
    color: #ffffff;
    /* White text for contrast */
}

body.night-mode .counter {
    color: #ffffff;
    /* White color for the counter numbers */
}

body.night-mode .counter-title {
    color: rgba(255, 255, 255, 0.8);
    /* Slightly dimmed white for titles */
}

body.night-mode .counter-section::before {
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
}

/* Night Mode Notice Board */
body.night-mode .notice-card-new {
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--secondary-blue);
}

body.night-mode .notice-card-title {
    color: #e0e0e0;
}

body.night-mode .notice-card-description {
    color: #b0b0b0;
}

body.night-mode .btn-view-all-notices {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

body.night-mode .btn-view-all-notices:hover {
    background-color: #ffffff;
    color: #1e1e1e;
}

/* Night Mode Adjustments for Gallery Section */
body.night-mode .gallery {
    background-color: var(--night-background);
}

body.night-mode .gallery-item {
    background-color: var(--night-accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.night-mode .gallery-item img {
    opacity: 0.9;
}

body.night-mode .gallery-item:hover img {
    opacity: 1;
}

/* Modern footer redesign: gradient background, three-column layout, subtle animations */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: #ffffff;
    padding: 64px 24px 40px 24px;
    text-align: left;
    position: relative;
    overflow: visible;
    border-radius: 0;
    /* square corners per request */
    box-shadow: 0 -10px 30px rgba(14, 42, 75, 0.25);
}

.footer::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 40%);
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 34px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .footer-logo img {
    height: 72px;
    width: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #ffffff;
    padding: 6px;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 14px;
    max-width: 520px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin: 8px 0;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease;
}

.footer-links ul li a:hover {
    color: var(--light-blue);
    transform: translateX(6px);
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.95);
}

.footer-contact .contact-line {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact .contact-line i {
    margin-top: 4px;
    width: 18px;
    text-align: center;
    color: var(--light-blue);
}

.footer-contact .contact-line span,
.footer-contact .contact-line a {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.5;
}

.footer-social {
    margin-top: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 8px;
    transition: transform 220ms cubic-bezier(.2, .9, .2, 1), box-shadow 220ms ease, background 220ms ease;
}

.footer-social a:hover {
    transform: translateY(-6px) scale(1.06) rotate(-6deg);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    width: 100%;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1250px;
    /* Slightly wider to push elements further to the sides */
    width: 95%;
    /* More horizontal space */
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Made By Section with Sliding Icon - Updated to Slide Right Outwards */
.made-by {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-right: -40px;
    /* Nudge slightly to the right */
}

.author-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-right: 35px;
    /* Reserve space for the icon to slide into */
}

.author-link {
    color: #ffffff;
    font-weight: 700;
    transition: all 0.4s ease;
    z-index: 2;
}

.slide-icon {
    width: 28px;
    height: 28px;
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(-30px) scale(0);
    /* Start behind the text */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.made-by:hover .author-link {
    color: #aae0ff;
    /* Energetic Gold Color */
    text-shadow: 0 0 15px rgba(255, 222, 89, 0.5);
}

.made-by:hover .slide-icon {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(360deg);
}

@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }

    /* Mobile: Show icon permanently and remove hover sliding */
    .author-wrapper {
        padding-right: 32px;
        /* Ensure space is held */
    }

    .slide-icon {
        opacity: 1;
        transform: translateX(0) scale(1);
        right: 0;
        background: #aae0ff;
    }

    .author-link {
        transform: none !important;
        color: #ffffff;
        /* Keep the highlighted color on mobile */
    }

    .made-by:hover .author-link,
    .made-by:hover .slide-icon {
        transform: none !important;
        /* Prevent any hover jumping on touch devices */
    }
}



/* Reveal animation for footer children */
.footer .footer-content>* {
    transform: translateY(12px);
    opacity: 0;
    animation: footerReveal 600ms ease forwards;
}

.footer .footer-content>*:nth-child(1) {
    animation-delay: 0ms;
}

.footer .footer-content>*:nth-child(2) {
    animation-delay: 120ms;
}

.footer .footer-content>*:nth-child(3) {
    animation-delay: 240ms;
}

@keyframes footerReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Small screens: stack footer columns */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer {
        padding: 40px 18px;
        ;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

/* Tiny screens: tighter spacing */
@media (max-width: 480px) {
    .footer {
        padding: 28px 12px;
    }

    .footer-title {
        font-size: 1.4rem;
    }
}

@supports not (aspect-ratio: 16 / 9) {
    .hero {
        padding-top: 56.25%;
        height: 0;
    }

    .swiper-container {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.swiper-slide {
    display: block;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    transition-property: transform;
    width: 100%;
}

@media (max-width: 768px) {
    .swiper-slide {
        height: 95%;
    }
}

@media (min-width: 1025px) {
    .swiper-slide {
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: var(--primary-blue);
    }

    body.night-mode .swiper-slide {
        background-color: #000000;
    }
}

/* Notice Board Card Design */
.notice-card-new {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1e40af;
    transition: all 0.3s ease;
}

.notice-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.notice-date-box {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.date-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.notice-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    line-height: 1.4;
}

.notice-card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.notice-read-more {
    font-size: 14px;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.notice-read-more:hover {
    color: #1e40af;
    gap: 8px;
}

.notice-view-all-center {
    text-align: center;
    margin-top: 10px;
}

.btn-view-all-notices {
    display: inline-block;
    padding: 12px 32px;
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all-notices:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Notice Board Layout */
.notice-board-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.notice-featured .featured-image-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.notice-featured .featured-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .notice-board-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .notice-featured {
        order: -1;
    }
}

@media (max-width: 768px) {
    .notice-card-new {
        flex-direction: column;
        gap: 15px;
    }

    .notice-date-box {
        width: 60px;
        height: 60px;
    }

    .date-day {
        font-size: 24px;
    }

    .date-month {
        font-size: 10px;
    }
}

/* Utility Classes to replace inline styles */
.nav-dropdown-icon {
    font-size: 0.8em;
    margin-left: 5px;
}

.notice-board-title,
.leadership-title {
    text-align: center;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 2.5rem;
}

.map-iframe {
    border: 0;
}

.hero-slide-1 {
    background-image: url('../images/index/slider1.jpg');
}

.hero-slide-2 {
    background-image: url('../images/index/slider2.jpg');
}

.hero-slide-3 {
    background-image: url('../images/index/slider3.jpg');
}

.hero-slide-4 {
    background-image: url('../images/index/slider4.jpg');
}

.hero-slide-5 {
    background-image: url('../images/index/slider5.jpg');
}

.page-header-contact {
    background-image: url('../images/index/slider5.jpg');
}

.school-large-icon {
    font-size: 80px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-section-style {
    padding: 100px 0;
    background-color: #f8fbff;
}

.contact-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-submit-btn {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
}

.msg-min-height {
    min-height: 150px;
}

/* News Ticker replacement for marquee */
.news-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.news-ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    animation-delay: -5s;
    /* Start halfway through to ensure text is visible immediately */
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }


    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.news-ticker-text:hover {
    animation-play-state: paused;
}

.page-header-gallery {
    background-image: url('../images/index/slider2.jpg');
}

.page-header-achievements {
    background-image: url('../images/index/slider3.jpg');
}

.centered-max-width {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.large-line-height {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.achievement-item-wrap {
    margin-bottom: 80px;
}

.achievement-img-wrap {
    flex: 1.2;
}

.achievement-img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.achievement-text-wrap {
    flex: 1;
}

.achievement-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.achievement-list-item {
    margin-bottom: 10px;
}

.achievement-icon {
    color: var(--secondary-blue);
    margin-right: 10px;
}

.achievement-icon-gold {
    color: #ffd700;
    margin-right: 10px;
}

.achievement-icon-silver {
    color: #c0c0c0;
    margin-right: 10px;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.centered-muted-text {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.flex-1-2 {
    flex: 1.2;
}

.flex-1 {
    flex: 1;
}

.visit-card-icon-wrap {
    background: var(--light-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}


/* Message Page Utilities */
.message-container-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.message-img-large-wrap {
    flex: 1;
    min-width: 300px;
}

.message-img-large {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.message-text-large-wrap {
    flex: 2;
    min-width: 300px;
}

.message-title-large {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.message-p-large {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.signature-wrap {
    margin-top: 30px;
}

.signature-name {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.designation-text {
    display: block;
    font-weight: 600;
    color: #666;
}

/* Lightbox/Modal System */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-box {
    background: #ffffff;
    width: 95%;
    max-width: 1000px;
    /* More space */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.lightbox-modal.active .lightbox-content-box {
    transform: translateY(0) scale(1);
}

.lightbox-modal .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
    border: none;
    color: #333;
    /* Darker color for contrast on light bg */
    font-size: 1.4rem;
}

.lightbox-modal .lightbox-close:hover {
    background: #ff3366;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-img-wrap {
    width: 100%;
    max-height: 450px;
    /* Larger image */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* Smooth scroll for better UX */
    scroll-behavior: smooth;
}

.lightbox-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.8s ease;
}

.lightbox-img-wrap:hover img {
    transform: scale(1.05);
}

.lightbox-img-controls {
    position: sticky;
    bottom: 20px;
    margin-top: -50px;
    margin-bottom: 20px;
    padding: 0 20px;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.lightbox-category-tag {
    background: var(--primary-blue);
    color: #fff;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.lightbox-expand-btn {
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    pointer-events: auto;
}

.lightbox-expand-btn:hover {
    background: var(--dark-blue);
    color: #fff;
    transform: scale(1.1);
}

.lightbox-body {
    padding: 40px;
    overflow-y: auto;
}

.lightbox-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.lightbox-date-badge {
    background: linear-gradient(135deg, var(--primary-blue), #1e4b85);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lightbox-title-area {
    flex: 1;
}

.lightbox-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Poppins', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.lightbox-meta-row {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.lightbox-meta-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-meta-row i {
    color: var(--primary-blue);
}

.lightbox-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #444;
    white-space: pre-line;
}

/* Night Mode Styling */
body.night-mode .lightbox-content-box {
    background: #152033;
}

body.night-mode .lightbox-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .lightbox-description {
    color: rgba(255, 255, 255, 0.9);
}

body.night-mode .lightbox-meta-row {
    color: rgba(255, 255, 255, 0.6);
}

body.night-mode .lightbox-close {
    background: #1e2a44;
    color: #fff;
}

@media (max-width: 768px) {
    .lightbox-img-wrap {
        height: 250px;
    }

    .lightbox-body {
        padding: 25px;
    }

    .lightbox-title {
        font-size: 1.6rem;
    }

    .lightbox-header {
        flex-direction: column;
        gap: 15px;
    }

    .lightbox-date-badge {
        align-self: flex-start;
    }
}

/* Form Notifications & Loading States */
.form-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 11000;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-notification.active {
    transform: translateX(0);
}

.form-notification i {
    font-size: 1.5rem;
}

.form-notification.success i {
    color: #2ecc71;
}

.form-notification.error i {
    color: #e74c3c;
}

.form-notification-text {
    font-weight: 500;
    color: #333;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Night Mode Support */
body.night-mode .form-notification {
    background: #1a2a44;
}

body.night-mode .form-notification-text {
    color: #fff;
}

@media (max-width: 768px) {
    .form-notification {
        top: 20px;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translate(-50%, -150%);
        width: 90%;
        max-width: 400px;
        justify-content: center;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .form-notification.active {
        transform: translate(-50%, 0);
    }
}

@media (min-width: 992px) {
    .messages-page.section {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}
