/* ROOT COLORS */
:root {
    --dark-blue: #09223f;
    --light-blue: #00abf0;
    --yellow: #fae91f;
    --white: #ffffff;
    --green: #258d40;
    /* ADJUST THIS NUMBER to match the actual height of your header */
    --header-height: 145px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

/* THE FIX: Body padding ensures content starts after the header */
body {
    font-family: 'Poppins', Arial, sans-serif;
    padding-top: var(--header-height);
    overflow-x: hidden;
}


/* HEADER STYLING */
.main-site-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.top-info-strip {
    /* FIX 1: Add your specific Green/Blue gradient back here */
    /* MATTE GREEN TO NAVY BLUE */
    background: linear-gradient(90deg, #2d5a3f, #09223f) !important;
    border-bottom: 2px solid rgb(255, 254, 254); /* Adds a sharp matte edge */
    
    /* FIX 2: Ensure it has height so we can see the color */
    padding: 10px 0; 
    width: 100%;
    
    /* FIX 3: Remove any white border or margin that might be covering it */
    margin: 0 !important;
}

/* Add a fresh hover effect so you can see it working */
.top-info-strip .info-item:hover span,
.top-info-strip .info-item:hover i {
    color: #fffb00 !important; /* Change to your Sky Blue on hover */
    transition: 0.3s ease;
}

/* Ensure the text/icons inside are visible against the new background */
.top-info-strip .info-item, 
.top-info-strip .top-social a {
    color: #ffffff !important;
}

.top-info-strip .top-social a:hover i {
    transform: scale(1.2);
    color: #00abf0 !important;
    transition: 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

.contact-links {
    display: flex;
    gap: 30px;
    margin-right: 20px; 
}

.info-item {
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.info-item i {
    color: var(--yellow);
    font-size: 14px;
}

.info-item:hover {
    color: var(--light-blue);
}

.top-social {
    display: flex;
    gap: 10px;
}

.top-social a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-social a:hover {
    background-color: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

/* --- COMBINED MOBILE RESPONSIVE --- */
@media (max-width: 970px) {
    .top-info-strip {
        display: none !important; /* Hides top bar on phones to save space */
    }
    
}





















/* RESET & COLORS */
:root {
    --navy: #09223f;
    --green: #258d40;
    --sky: #00abf0;
    --white: #ffffff;
}


.school-navbar {
    background-color: var(--navy);
    padding: 10px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-sizing: border-box; /* Ensures padding doesn't push the width out */
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* BRANDING */
.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.school-logo { height: 70px; width: auto; }

.brand-text h1 {
    color: var(--white);
    margin: 0;
    line-height: 1.1;
    font-size: 1.1rem;
    font-weight: 800;
}

.name-main {
    padding-top: 20px;
}


.location-text {
    color: var(--sky);
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

/* DESKTOP MENU */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
    margin-right: -70px;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-home {
    background-color: var(--green);
    border-radius: 4px;
}

/* DESKTOP DROPDOWN */
.dropdown { position: relative; }

.submenu {
    position: absolute;
    top: 110%; /* Starts slightly lower for the slide-up effect */
    left: 0;
    background: var(--white);
    min-width: 210px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid var(--green);
    
    /* THE ANIMATION MAGIC */
    display: block; /* We keep it block but hide it with opacity */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Moves it down 10px */
    transition: all 0.3s ease-in-out; /* Smooths the transition */
    pointer-events: none; /* Prevents clicking it while invisible */
}

/* THE TRIGGER */
.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slides up to its original position */
    top: 100%; /* Snaps to the bottom of the nav bar */
    pointer-events: auto;
}

/* Force dropdown text to be visible */
.submenu li a {
    color: #09223f !important; /* Dark Navy from your brand */
    display: block !important;
    padding: 12px 20px !important;
    background: transparent !important;
}

.submenu li a:hover {
    background-color: #f4f4f4 !important;
    color: #258d40 !important; /* Green on hover */
}

.dropdown:hover .submenu { display: block; }

/* MOBILE STYLES */
.nav-toggle { display: none; color: white; font-size: 24px; cursor: pointer; }

.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1500;
}


.school-navbar {
    position: relative !important; 
    top: auto !important;
    margin: 0 !important;
}

.submenu {
    z-index: 10000 !important; /* Even higher than the navbar */
}

@media (max-width: 1024px) {
    .nav-toggle { display: block; }

    .nav-menu {
        position: fixed;
        right: -100%; /* Hidden off-screen to the right */
        top: 0;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        padding-top: 80px;
        transition: 0.4s ease-in-out;
        z-index: 1600;
    }

    .nav-menu.active { right: 0; }

    .nav-menu li { width: 100%; }

    /* Mobile Accordion Dropdown */
    .submenu {
        position: static;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        display: none; /* Controlled by JS */
        box-shadow: none;
        border: none;
    }

    .submenu li a { color: var(--white) !important; }

    
}



@media screen and (min-width: 1025px) {
    /* This forces the dropdown to show on desktop, even if JS hid it on mobile */
    .dropdown:hover .submenu {
        display: block !important;
    }

    /* Safety: ensures the mobile sidebar doesn't stay stuck on screen if you resize */
    .nav-menu {
        position: static !important;
        display: flex !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding-top: 0 !important;
    }
}




























/* --- ELITE FOOTER STYLING --- */
.main-footer {
    background: #09223f; /* Your School Navy */
    color: #ffffff;
    padding: 60px 0 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    border-top: 5px solid #258d40; /* Your School Green */
    width: 100%;
    overflow-x: hidden;
    margin-top: 0px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 50px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* --- BRAND COLUMN (Logo & Name side-by-side) --- */
.brand-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo { 
    width: 70px; 
    height: auto; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); 
}

.school-name { 
    font-size: 1.1rem; 
    font-weight: 800; 
    margin: 0; 
    line-height: 1.1; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-sub {
    color: #258d40; /* Green */
    font-size: 0.75rem;
    font-weight: 700;
    margin: 5px 0 0 0;
    letter-spacing: 0.5px;
}

.brand-text { 
    color: #a1b1c1; 
    line-height: 1.7; 
    font-size: 0.95rem; 
    margin-bottom: 20px;
}

/* --- HEADINGS --- */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: #258d40;
    border-radius: 10px;
}

/* --- QUICK LINKS (With Arrows) --- */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
    color: #a1b1c1; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.link-arrow {
    font-size: 0.7rem;
    margin-right: 10px;
    color: #258d40;
    transition: 0.3s;
}

.footer-links a:hover { color: #fff; transform: translateX(8px); }
.footer-links a:hover .link-arrow { color: #fff; margin-right: 15px; }

/* --- CONTACT ITEMS (With Hover Effects) --- */
.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    transition: 0.3s ease;
}

.contact-icon { 
    background: rgba(37, 141, 64, 0.15); 
    color: #258d40; 
    width: 38px; height: 38px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s ease;
}

.contact-item p { font-size: 0.95rem; color: #a1b1c1; margin: 0; }

.contact-item:hover .contact-icon {
    background: #258d40;
    color: #fff;
    transform: scale(1.1);
}

.contact-item:hover p { color: #fff; }

/* --- SOCIAL ICONS --- */
.social-links { display: flex; gap: 12px; margin-top: 25px; }
.social-icon { 
    width: 40px; height: 40px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    color: #fff; transition: 0.4s; 
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.social-icon:hover { background: #258d40; transform: translateY(-5px) rotate(360deg); }

/* --- MAP --- */
.map-container { 
    border-radius: 15px; 
    overflow: hidden; 
    border: 3px solid rgba(255,255,255,0.05);
    height: 160px;
    width: 100%;
}
.map-container iframe { width: 100%; height: 100%; }

/* --- BOTTOM BAR --- */
.footer-bottom { 
    background: #051426; 
    padding: 25px 0; 
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bottom-container { 
    max-width: 1200px; width: 90%; margin: 0 auto; 
    display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.85rem; color: #64748b; margin: 0; }
.dev-tag { font-weight: 600; color: #258d40; }

/* --- MOBILE RESPONSIVE FIXES --- */

@media (max-width: 600px) {
    .footer-container { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 0 20px 40px;
    }

    .brand-header-flex { flex-direction: column; }
    
    .footer-col { width: 100%; margin-bottom: 40px; }

    .footer-heading::after { left: 50%; transform: translateX(-50%); }

    .contact-item { justify-content: center; flex-direction: column; }

    .social-links { justify-content: center; }

    .bottom-container { flex-direction: column; gap: 15px; text-align: center; }
}




/* MOBILE FIXES */
@media (max-width: 1024px) {
    :root { --header-height: 90px; }
    .top-info-strip { display: none !important; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

















/* --- HERO SECTION FIXED --- */
.hero-wrapper {
    width: 100%;
    height: 60vh; /* Increased slightly for better mobile appearance */
    margin-top: 20px; /* ERROR FIX: Pushes the Hero out from behind the Navbar */
    position: relative;
    overflow: hidden;
    background: #09223f;
}

#heroSwiper { width: 100%; height: 100%; }

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative; /* Needed for absolute centering */
}

/* 1. BACKGROUND IMAGE: SLOW MOVING FORWARD */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 8s linear; 
    transform: scale(1);
}

.swiper-slide-active .slide-img {
    transform: scale(1.15); 
}

/* --- HERO CONTENT: ANTI-JERK VERSION --- */
.hero-content {
    position: absolute;
    z-index: 10;
    width: 90%;
    max-width: 850px;
    padding: 0 20px;
    
    /* Center it exactly */
    left: 50%;
    top: 50%;
    
    /* THE FIX 1: Use only specific properties for transition */
    /* THE FIX 2: Added a smoother cubic-bezier */
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* THE FIX 3: Hardware Acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translate(-50%, -40%) scale(0.85) translateZ(0); 
    opacity: 0; /* Changed to 0 so it actually fades IN */
    will-change: transform, opacity;
}

/* When slide is active: Smooth Finish */
.swiper-slide-active .hero-content {
    opacity: 1;
    /* translateZ(0) keeps the text "glued" to the GPU layer */
    transform: translate(-50%, -50%) scale(1) translateZ(0);
}

.hero-content h2 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: clamp(1.6rem, 5vw, 3.5rem); /* Adjusted for mobile readability */
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    color: #f0f0f0;
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    text-shadow: 1px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}

/* 3. BUTTON: DELAYED ENTRANCE */
.hero-btn {
    display: inline-block;
    background: #00abf0;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s, background 0.3s ease 0s;
}

.swiper-slide-active .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn:hover {
    background: #258d40 !important;
    transform: translateY(-3px) !important;
    transition: 0.2s ease 0s !important;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 768px) {
    .hero-wrapper {
        height: 55vh;
        margin-top: 25px; /* Matches mobile navbar height */
    }
}
























/* --- NEWS BAR: STABLE & SMOOTH VERSION --- */

.school-news-zone {
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg, #2d5a3f 0%, #09223f 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-tag {
    background: #00abf0;
    color: #ffffff;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px 0 20px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 20;
    white-space: nowrap;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}

.news-window {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.news-loop-track {
    display: inline-block;
    white-space: nowrap;
    /* FIX 1: Use 3D transform for GPU acceleration */
    will-change: transform;
    transform: translate3d(0, 0, 0); 
    animation: newsMoveLoop 30s linear infinite;
}

.news-link-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    /* FIX 2: Never use 'all'. Target only transform for speed. */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* FIX 3: Hardware rendering for the text layer */
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

/* THE POP FORWARD HOVER - STABILIZED */
.news-link-item:hover {
    color: #ffffff !important;
    /* FIX 4: Reduced scale from 1.1 to 1.05. 
       Big scales on moving objects cause visual 'jitter'. */
    transform: scale(1.05) translateY(-1px) translateZ(0);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.news-star-point {
    color: #ffffff;
    margin: 0 40px;
    font-size: 14px;
    opacity: 0.6;
}

/* FIX 5: Use translate3d for the smoothest motion possible */
@keyframes newsMoveLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.school-news-zone:hover .news-loop-track {
    animation-play-state: paused;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .school-news-zone { height: 38px; }
    .news-tag span { display: none; }
    .news-link-item { font-size: 13px; }
    .news-star-point { margin: 0 20px; }
}




























/* --- MOTTO SECTION: CENTERED LOGO + TEXT STYLE --- */

.motto-area-fixed {
    width: 100%;
    min-height: 120px; /* Reduced height as requested */
    background: url('images/wide-bg2.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* This keeps the whole block in the middle of the screen */
    padding: 30px 0; /* Tight padding for a slim look */
    overflow: hidden;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}


.motto-main-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center; /* This keeps the text in the mathematical center */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- THE ICON (MOVED TO THE LEFT OF THE CENTERED TEXT) --- */
.motto-icon-box {
    position: absolute; /* This is the secret! */
    left: 15%; /* Adjust this to move the book/diya further left or right */
    width: 100px;
    height: 70px;
    perspective: 1000px;
    flex-shrink: 0;
}

.motto-book-container {
    position: absolute;
    bottom: 5px;
    width: 90px;
    height: 55px;
}

.motto-book-spine {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 8px;
    background: #09223f;
    border-radius: 4px;
}

.motto-page {
    position: absolute;
    width: 45px;
    height: 55px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.motto-page-left { left: 0; border-radius: 4px 0 0 4px; transform: rotateY(-25deg); transform-origin: right; }
.motto-page-right { right: 0; border-radius: 0 4px 4px 0; transform: rotateY(25deg); transform-origin: left; }

.motto-page-flip {
    position: absolute;
    right: 0;
    width: 45px;
    height: 55px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transform-origin: left;
    z-index: 2;
    animation: turnPageAnim 4s infinite linear;
}
.motto-f2 { animation-delay: 2s; }

@keyframes turnPageAnim {
    0% { transform: rotateY(25deg); opacity: 1; }
    20% { transform: rotateY(-155deg); }
    40%, 100% { transform: rotateY(-155deg); opacity: 0; }
}

.motto-lamp-position {
    position: absolute;
    top: -15px;
    left: 45px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.motto-lamp-base {
    width: 28px;
    height: 14px;
    background: #2d5a3f;
    border-radius: 0 0 18px 18px;
}

.motto-flame-flicker {
    width: 10px;
    height: 18px;
    background: radial-gradient(circle, #fff700, #ff8c00);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 12px #ffcc00;
    animation: flameMove 0.2s infinite alternate;
}

@keyframes flameMove {
    0% { transform: scale(1) rotate(-1deg); opacity: 0.9; }
    100% { transform: scale(1.1) rotate(1deg); opacity: 1; }
}

/* --- THE TEXT (NOW STAYS IN THE PERFECT CENTER) --- */
.motto-text-box {
    text-align: center; /* Centers the calligraphy exactly in the middle of the screen */
    width: auto;
}

.motto-malayalam-txt {
    font-family: 'Gayathri', sans-serif;
    font-size: 3.2rem; /* Slightly smaller for better fit */
    font-weight: 700;
    margin: 0;
    color: #2d5a3f;
    cursor: pointer;
    transition: 0.5s ease;
    display: block; /* Stacked look */
}

.motto-malayalam-txt:hover {
    /* 1. This creates the colorful background */
    background: linear-gradient(90deg, #2d5a3f, #ffcc00, #2d5a3f, #00abf0, #2d5a3f);
    background-size: 200% auto;

    /* 2. THE SECRET SAUCE: These two lines clip the color INSIDE the text */
    -webkit-background-clip: text; 
    background-clip: text;

    /* 3. Make the original color transparent so the gradient shows through */
    -webkit-text-fill-color: transparent; 
    color: transparent; /* Fallback */

    /* 4. Keep your smooth animation */
    animation: textShine 2s linear infinite;
    transform: scale(1.02); /* Added a tiny scale-up for a premium feel */
    transition: 0.5s ease;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.motto-english-txt {
    color: #09223f;
    font-family: 'Manjari', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.85;
}

/* --- YOUR MOBILE MEDIA QUERY (INTEGRATED) --- */
@media (max-width: 850px) {
    .motto-main-wrapper { 
        flex-direction: column; 
        gap: 20px; 
        justify-content: center;
    }
    
    .motto-icon-box {
        position: relative; /* Removes the "floating" left effect for mobile */
        left: 0; 
        margin: 0 auto;
    }

    .motto-text-box { 
        text-align: center; 
    }
    
    .motto-malayalam-txt { 
        font-size: 2.2rem; 
    }
}
@media (max-width: 850px) {
    .motto-area-fixed {
        background-attachment: scroll; /* Disables parallax for mobile performance */
    }
}






























/* --- VISION & MISSION: POLISHED VERSION --- */

.mv-section {
    width: 100%;
    background: #ffffff; 
    padding: 100px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.mv-container {
    display: flex;
    gap: 40px; /* Tightened gap for better focus */
    max-width: 1100px;
    width: 90%;
}

.mv-card {
    flex: 1;
    background: #ffffff;
    border-radius: 25px; /* Softer professional curves */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER EFFECT: Card lifts and shadow deepens */
.mv-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(9, 34, 63, 0.12);
}

/* --- IMAGE SECTION --- */
.mv-image-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.mv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mv-card:hover .mv-photo {
    transform: scale(1.1); /* Subtle zoom on hover */
}

/* The Overlay Gradient on images */
.mv-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* --- FLOATING ICONS --- */
.mv-floating-icon {
    position: absolute;
    bottom: -30px;
    right: 35px;
    width: 65px;
    height: 65px;
    border-radius: 20px; /* Squircle shape looks more modern */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.6rem;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.mv-card:hover .mv-floating-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Matching your exact Matte colors */
.icon-navy { background: #09223f; }
.icon-green { background: #2d5a3f; } /* Updated to our Matte Green */

/* --- TEXT CONTENT --- */
.mv-text {
    padding: 60px 40px 45px; /* More space for the icon to breathe */
    text-align: left;
}

.mv-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

/* Small underline accent */
.mv-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

.title-navy { color: #09223f; }
.title-navy::after { background: #09223f; }

.title-green { color: #2d5a3f; }
.title-green::after { background: #2d5a3f; }

.mv-text p {
    color: #555e66;
    line-height: 1.9;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 400;
}

/* --- MOBILE VIEW --- */
@media (max-width: 900px) {
    .mv-container {
        flex-direction: column;
        gap: 80px; /* More space for the floating icons */
    }
    .mv-text { padding: 50px 30px 40px; }
}

































/* --- LEADERSHIP SECTION: ELITE REDESIGN --- */
:root {
    --m-green: #2d5a3f;
    --m-navy: #09223f;
    --m-gold: #b8860b;
}

.leadership-section {
    width: 100%;
    background: #f4f7f6; 
    padding: 100px 0;
    display: flex;
    justify-content: center;
}

.l-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 90%;
}

.l-card {
    flex: 1;
    background: #fff;
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
}

.l-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(9, 34, 63, 0.1);
}

/* Color Accents on Top of Cards */
.l-card-accent {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
}
.accent-navy { background: var(--m-navy); }
.accent-green { background: var(--m-green); }

/* --- PHOTO STYLING --- */
.l-photo-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
}

/* --- UPDATED PHOTO STYLING --- */
.l-photo-border {
    width: 100%;
    height: 100%;
    padding: 5px; /* Reduced slightly to give the photo more room */
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures the image stays round */
}

.border-gold { border: 2px solid var(--m-gold); }
.border-green { border: 2px solid var(--m-green); }
.border-navy { border: 2px solid var(--m-navy); }

.l-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* Keeps aspect ratio */
    object-position: center 15%; /* THE FIX: This pushes the image down so the head is visible */
    display: block;
}
.l-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 45px;
    height: 45px;
    border-radius: 15px; /* Modern Rounded Square */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.badge-gold { background: var(--m-gold); }
.badge-green { background: var(--m-green); }
.badge-navy { background: var(--m-navy); }

/* --- TYPOGRAPHY --- */
.l-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 5px;
}

.l-name {
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.l-card p {
    color: #6a767e;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* --- BUTTONS --- */
.read-more-btn {
    background: transparent;
    border: 2px solid var(--m-navy);
    color: var(--m-navy);
    padding: 12px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.read-more-btn:hover {
    background: var(--m-navy);
    color: #fff;
    box-shadow: 0 10px 20px rgba(9, 34, 63, 0.2);
}

.btn-green { border-color: var(--m-green); color: var(--m-green); }
.btn-green:hover { background: var(--m-green); box-shadow: 0 10px 20px rgba(45, 90, 63, 0.2); }

/* --- MODAL REFINEMENT --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(9, 34, 63, 0.92);
}

.modal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 50px;
    width: 90%;
    max-width: 750px;
    border-radius: 35px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-line {
    width: 60px;
    height: 5px;
    border-radius: 10px;
    margin: 15px 0 30px;
}
.line-navy { background: var(--m-navy); }

/* RESPONSIVE */
/* --- FIXED MOBILE VIEW --- */
@media (max-width: 970px) {
    .l-container { 
        flex-direction: column; 
        align-items: center; 
        width: 100%; /* Take full width but use padding for breathing room */
        padding: 0 15px; /* Keeps the cards from touching the screen edges */
        gap: 40px; 
    }

    .l-card { 
        width: 100%; 
        max-width: 450px; /* Limits the width so it doesn't look giant on tablets */
        margin-bottom: 0; /* Gap handled by the container now */
        box-sizing: border-box; /* CRITICAL: ensures padding doesn't add to width */
    }

    .l-photo-wrap {
        width: 140px; /* Slightly smaller photo for mobile screens */
        height: 140px;
    }
}

/* --- THE MOBILE MEDIA QUERY OVERRIDE --- */
@media (max-width: 600px) {
    .modal-content {
        width: 94%; /* Slightly wider for small screens but still safe */
        margin: 3vh auto;
        padding: 0;
    }

    .modal-header {
        padding: 35px 20px 10px;
    }

    .modal-body {
        padding: 10px 20px 40px; /* Tighter but safe sides */
    }

    .modal-header h2 {
        font-size: 1.5rem; /* Prevents long titles from overflowing */
    }
}


































/* --- ELITE ACTIVITIES PORTAL CSS --- */
:root {
    --accent-teal: #4db6ac;
    --deep-bg: #002b2b;
}

.activities-portal {
    padding: 100px 0;
    background: radial-gradient(circle at center, #0a3d3d 0%, var(--deep-bg) 100%);
    perspective: 1500px; /* Stronger 3D depth */
    overflow: hidden;
}

.portal-header-bar {
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

.portal-subtitle {
    color: var(--accent-teal);
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portal-header-bar h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent-teal);
    margin: 15px auto 0;
    border-radius: 10px;
}

/* --- THE 3D GRID --- */
.portal-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.portal-card {
    text-decoration: none;
    perspective: 1000px;
    display: block;
}

.card-inner {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.category-tag {
    background: var(--accent-teal);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-title {
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.card-title h3 {
    margin: 0;
    color: #09223f;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-title i {
    color: var(--accent-teal);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* --- THE GAME HOVER EFFECT --- */
@media (min-width: 1024px) {
    .portal-card:hover .card-inner {
        /* This creates the 3D "Tilt" */
        transform: rotateX(8deg) rotateY(-5deg) translateZ(30px);
        box-shadow: 0 25px 50px rgba(77, 182, 172, 0.4);
    }
}

.portal-card:hover img {
    transform: scale(1.15);
}

.portal-card:hover .card-title i {
    transform: translateX(8px);
}

/* --- MOBILE RESPONSIVE (NO OVERFLOW) --- */
@media (max-width: 970px) {
    .portal-container { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .portal-container { 
        grid-template-columns: 1fr; 
        width: 92%;
    }
    .portal-header-bar h2 { font-size: 1.8rem; }
    .card-image { height: 200px; }
}








