/* =========================
   GOOGLE FONTS
========================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&display=swap');



/* =========================
   ROOT COLORS
========================= */

:root {

    --primary: #B71C1C;
    --secondary: #F4B400;
    --accent: #D32F2F;
    --cream: #FFF8E1;
    --gold: #FFD54F;
    --white: #FFFFFF;
    --dark: #212121;

}



/* =========================
   RESET
========================= */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: 'Noto Sans Devanagari', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.7;
    padding-top: 130px;

}



/* =========================
   CONTAINER
========================= */

.container {

    width: 90%;
    max-width: 1300px;
    margin: auto;

}



/* =========================
   HEADER
========================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 5%;
    font-size: 0.95rem;
}

.top-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar .top-contact span {
    margin-right: 20px;
}

.top-bar a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.top-links a:nth-child(1) { background: #1877F2; }
.top-links a:nth-child(2) { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.top-links a:nth-child(3) { background: #1DA1F2; }
.top-links a:nth-child(4) { background: #FF0000; }

.top-links a:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Language Switcher */
.language-switcher {
    margin-left: 20px;
}

.language-switcher button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.9rem;
}

.nav-links .language-switcher {
    display: none; /* Hide by default */
    padding: 10px 20px;
    margin-top: 10px;
    order: 99; /* Push to the end of the flex container */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background: rgba(255, 255, 255, 0.98);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 85px;
}

.logo-text h2 {
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

.logo-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--primary);
}

.nav-links a i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: #444;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #fdf5f5;
    color: var(--primary);
    padding-left: 25px;
}



/* =========================
   HERO SECTION
========================= */

#hero {

    min-height: 80vh;

    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 0px;

}

/* Dynamic Slider Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: dynamicSlider 84s linear infinite 0s;
}

/* Adjusting Delays for 14 images */
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 6s; }
.hero-slider .slide:nth-child(3) { animation-delay: 12s; }
.hero-slider .slide:nth-child(4) { animation-delay: 18s; }
.hero-slider .slide:nth-child(5) { animation-delay: 24s; }
.hero-slider .slide:nth-child(6) { animation-delay: 30s; }
.hero-slider .slide:nth-child(7) { animation-delay: 36s; }
.hero-slider .slide:nth-child(8) { animation-delay: 42s; }
.hero-slider .slide:nth-child(9) { animation-delay: 48s; }
.hero-slider .slide:nth-child(10) { animation-delay: 54s; }
.hero-slider .slide:nth-child(11) { animation-delay: 60s; }
.hero-slider .slide:nth-child(12) { animation-delay: 66s; }
.hero-slider .slide:nth-child(13) { animation-delay: 72s; }
.hero-slider .slide:nth-child(14) { animation-delay: 78s; }

@keyframes dynamicSlider {
    0% { opacity: 0; transform: scale(1); }
    1.5% { opacity: 1; } /* Fade In */
    6% { opacity: 1; transform: scale(1.08); } /* Slow Zoom */
    7.14% { opacity: 0; transform: scale(1.1); } /* Fade Out */
    100% { opacity: 0; }
}

.slide-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    color: white;
    background-color: rgba(183, 28, 28, 0.7); /* Primary color with transparency */
    padding: 10px 25px;
    font-size: 2.5rem; /* Adjust size as needed */
    font-weight: 700;
    border-radius: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0; /* Initially hidden */
    animation: fadeInText 1s ease-in-out 1s forwards; /* Fade in after 1s */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* Dark overlay for text readability */
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Dark overlay for text readability */
    z-index: -1;
}

.hero-content {

    animation: fadeUp 2s ease;

}

.hero-logo {

    width: 180px;

    margin-top: 20px;

    margin-bottom: 20px;

    animation: floatLogo 4s ease-in-out infinite;
}

.hero-content h1 {

    font-size: 4rem;
    margin-bottom: 10px;

}

.hero-content h2 {

    color: var(--secondary);

    margin-bottom: 20px;

}

.hero-content p {

    font-size: 1.3rem;

    max-width: 800px;

    margin: auto;

}



/* =========================
   BUTTONS
========================= */

.hero-buttons {

    margin-top: 40px;

}

.hero-buttons a {

    text-decoration: none;

    padding: 14px 30px;

    margin: 10px;

    display: inline-block;

    border-radius: 50px;

    font-weight: 700;

    transition: .4s;

}

.hero-buttons a:first-child {

    background: var(--secondary);

    color: white;

}

.hero-buttons a:last-child {

    border: 2px solid white;

    color: white;

}

.hero-buttons a:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(0,0,0,.2);

}



/* =========================
   SECTIONS
========================= */

section h2 {

    text-align: center;

    color: var(--primary);

    margin-bottom: 40px;

    font-size: 2.5rem;

}



/* =========================
   CARDS
========================= */

.cards {

    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap: 30px;

}

.card {

    background: white;

    padding: 35px;

    border-radius: 20px;

    transition: .4s;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

}

.card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 40px rgba(0,0,0,.15);

}



/* =========================
   STATS
========================= */

.stats-section {
    background: linear-gradient(rgba(183, 28, 28, 0.9), rgba(183, 28, 28, 0.9)), url('../images/school/campus5.png') center/cover fixed;
    padding: 80px 5%;
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, background 0.4s ease;
    backdrop-filter: blur(5px);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-card p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 1px;
}



/* =========================
   FACILITIES
========================= */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.facility-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--gold);
}

.facility-card:hover .fac-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.fac-icon {
    transition: 0.4s;
}



/* =========================
   GALLERY
========================= */

.gallery-grid {

    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap: 20px;

}

.gallery-grid img {

    width: 100%;

    border-radius: 20px;

    transition: .5s;

}

.gallery-grid img:hover {

    transform: scale(1.08);

}



/* =========================
   FORM
========================= */

form {

    max-width: 800px;

    margin: auto;

}

input,
select,
textarea {

    width: 100%;

    padding: 15px;

    margin-top: 10px;
    margin-bottom: 20px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-family: inherit;

}

button {

    background: var(--primary);

    color: white;

    border: none;

    padding: 15px 35px;

    border-radius: 50px;

    cursor: pointer;

    transition: .3s;

}

button:hover {

    background: var(--secondary);

}



/* =========================
   FOOTER
========================= */

footer {

    background: var(--primary);

    color: white;

    text-align: center;

    padding: 40px;

}



/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {

    from {

        opacity: 0;
        transform: translateY(50px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}

@keyframes floatLogo {

    0% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-15px);

    }

    100% {

        transform: translateY(0);

    }

}

.menu-toggle {

    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);

}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {
    .top-bar {
        display: none;
    }
    body {
        padding-top: 90px;
    }
}

@media(max-width:768px){

    .hero-content h1 {

        font-size: 2.2rem;

    }

    .hero-content h2 {

        font-size: 1.2rem;

    }

    .menu-toggle {

        display: block;

    }

    .nav-links {

        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
        overflow-y: auto;
        max-height: 80vh;

    }

    .nav-links.active {

        transform: translateY(0);

    }

    .nav-links a {
        padding: 12px 20px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        background: #fdfdfd;
        border-left: 3px solid var(--primary);
        margin: 10px 0 10px 20px;
        margin-top: 5px;
        border-radius: 0;
        display: none; /* Hide by default on mobile */
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .logo-text h2 {
        font-size: 1.1rem;
    }

    .logo-text p {
        display: none;
    }

    .logo img {
        height: 50px;
    }

    .nav-links .language-switcher {
        display: block; /* Show in mobile menu */
    }

    .nav-links .language-switcher button {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        padding: 8px 20px;
        width: auto;
        display: inline-block;
        margin: 0;
    }

}
.hidden-element {

    opacity: 0;

    transform: translateY(60px);

    transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}

.show-element {

    opacity: 1;

    transform: translateY(0);

}

.active-link {

    color: var(--primary) !important;

    font-weight: 700;

}

#backToTop {

    position: fixed;

    right: 20px;

    bottom: 20px;

    width: 55px;

    height: 55px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    font-size: 22px;

    background: var(--primary);

    color: white;

    display: none;

    z-index: 9999;

    transition: 0.3s;

}

#backToTop:hover {

    transform: translateY(-5px);

}
.message-card {

    display: flex;

    align-items: center;

    gap: 50px;

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

}

.message-image {

    flex: 1;

}

.message-content {

    flex: 2;

}

.message-image img {

    width: 100%;

    max-width: 300px;

    border-radius: 20px;

    object-fit: cover;

}

.message-content h2 {

    color: var(--primary);

    margin-bottom: 10px;

}

.message-content h4 {

    color: var(--gold);

    margin-bottom: 20px;

}

.message-content p {

    text-align: justify;

    line-height: 1.9;

    font-size: 18px;

}
@media(max-width:768px){

    .message-card{

        flex-direction: column;

        text-align: center;

    }

    .message-image img{

            max-width: 100%;

    }

}

#about-acharya {
    padding: 80px 5%;
    background: var(--cream);
}

.acharya-section{
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    border-left: 8px solid var(--primary);
}

.acharya-image-wrapper {
    flex: 1;
    position: relative;
}

.acharya-image{
    width:100%;
    max-width:400px;
    height:auto;
    display:block;
    margin:0 auto;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    border: 6px solid var(--white);
    outline: 2px dashed var(--gold);
    outline-offset: -10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.acharya-image-wrapper:hover .acharya-image {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(183, 28, 28, 0.2);
}

.acharya-content {
    flex: 1.5;
}

.acharya-section h2{
    color:var(--primary);
    font-size:2.8rem;
    margin-bottom:15px;
}

.acharya-dates {
    color: var(--secondary) !important;
    font-size: 1.15rem !important;
    margin-bottom: 25px !important;
}

.acharya-section p{
    text-align:justify;
    line-height:1.8;
    font-size:1.1rem;
    color: #555;
    margin:0 auto 20px auto;
}
/* GALLERY */

#gallery{

    padding:80px 20px;

}

.gallery-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:25px;

    margin-top:40px;

}

.gallery-item{

    overflow:hidden;

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.1);

}

.gallery-item img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.5s;

}

.gallery-statue{

    object-fit:cover;

    object-position:top center;

}

.gallery-item:hover img{

    transform:scale(1.1);

}

.gallery-button{

    text-align:center;

    margin-top:40px;

}

.gallery-button a{

    display:inline-block;

    background:var(--primary);

    color:white;

    text-decoration:none;

    padding:16px 40px;

    border-radius:50px;

    font-size:18px;

    font-weight:600;

    transition:0.3s ease;

    box-shadow:
    0 8px 20px rgba(183,28,28,.3);

}

.gallery-button a:hover{

    transform:translateY(-3px);

    background: var(--accent);

}

/* FACULTY SECTION */

#faculty{
    padding:80px 20px;
    text-align:center;
}

#faculty h2{
    color:var(--primary);
    font-size:3rem;
    margin-bottom:50px;
}

.faculty-scroll-container {
    width: 100%;
    overflow-x: hidden;
    /* Adding a fade effect on the edges for a professional look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.faculty-grid {
    display: flex;
    width: max-content;
    flex-wrap: nowrap; /* Keep all items in one line */
    gap:60px;
    padding-bottom: 20px;
    /* The animation will move the content */
    animation: scroll-left 42s linear infinite;
    will-change: transform;
}

.faculty-scroll-container:hover .faculty-grid {
    animation-play-state: paused; /* Pause animation on hover */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by half the width of the grid (since content is duplicated) */
        transform: translateX(-50%);
    }
}

.faculty-card{
    width:250px;
    flex-shrink: 0; /* Prevent cards from shrinking */
    transition:.4s;
}

.faculty-card:hover{
    transform:translateY(-10px);
}

.faculty-card img{
    width:220px;
    height:220px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid var(--primary);
    box-shadow:
    0 10px 25px rgba(0,0,0,.15);
}

.faculty-card h3{
    margin-top:20px;
    color:#222;
}

.faculty-card p{
    color:#666;
    font-weight:600;
}

@media(max-width: 768px) {
    .faculty-scroll-container {
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
    .faculty-grid {
        gap: 30px;
        animation: scroll-left 35s linear infinite;
    }
    .faculty-card {
        width: 170px;
    }
    .faculty-card img {
        width: 140px;
        height: 140px;
        border-width: 4px;
    }
    .faculty-card h3 {
        font-size: 1.15rem;
        margin-top: 15px;
    }
    .faculty-card p {
        font-size: 0.9rem;
    }
}

/* NEWS SECTION */

#news{

    padding:80px 20px;

}

#news h2{

    text-align:center;

    color:var(--primary);

    margin-bottom:40px;

}

.news-box{

    max-width:1200px;

    margin:auto;

    background:white;

    padding:30px;

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

}

.news-item{

    padding:18px 20px;

    margin-bottom:15px;

    background:#f8f8f8;

    border-left:5px solid var(--primary);

    border-radius:10px;

    cursor:pointer;

    transition:.3s ease;

    font-size:18px;

}

.news-item:hover{

    background: var(--primary);

    color:white;

    transform:translateX(15px);

    box-shadow:
    0 10px 25px rgba(183,28,28,.3);

}

/* EVENTS */

#events{

    padding:80px 20px;

}

#events h2{

    text-align:center;

    color:var(--primary);

    margin-bottom:50px;

}

.events-grid{

    display:grid;

    gap:30px;

}

.event-card{

    display:flex;

    gap:30px;

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

    transition:.4s;

}

.event-card:hover{

    transform:scale(1.02);

    box-shadow:
    0 20px 40px rgba(0,0,0,.15);

}

.event-card img{

    width:300px;

    height:220px;

    object-fit:cover;

}

.event-content{

    padding:25px;

    flex:1;

}

.event-date{

    background: var(--primary);

    color:white;

    padding:6px 12px;

    border-radius:20px;

    font-size:14px;

}

.event-content h3{

    margin-top:15px;

    color:#222;

}

.short-text{

    margin-top:10px;

}

.full-text{

    opacity:0;

    max-height:0;

    overflow:hidden;

    transition:.4s;

}

.event-card:hover .full-text{

    opacity:1;

    max-height:200px;

    margin-top:15px;

}

/* ADMISSION FORM */

#admission{

    padding:80px 20px;

}

#admission h2{

    text-align:center;

    color:var(--primary);

    margin-bottom:15px;

}

.admission-subtitle{

    text-align:center;

    margin-bottom:40px;

}

.admission-form{

    max-width:1000px;

    margin:auto;

    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.1);

}

.form-row{

    display:flex;

    gap:20px;

    margin-bottom:20px;

}

.form-row input,
.form-row select,
textarea{

    width:100%;

    padding:15px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:16px;

}

textarea{

    width:100%;

    resize:none;

    margin-bottom:20px;

}

.admission-form button{

    width:100%;

    background:var(--primary);

    color:white;

    border:none;

    padding:16px;

    border-radius:10px;

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

.admission-form button:hover{

    background: var(--accent);

}

@media(max-width:768px){

    .form-row{

        flex-direction:column;

    }

    .event-card, .events-page .event-card {
        flex-direction: column;
        gap: 15px;
    }

    .event-card img, .events-page .event-card img {
        width: 100%;
        height: 250px;
    }

}

@media(max-width: 992px) {
    .acharya-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .acharya-section h2 {
        margin-top: 20px;
    }
    .acharya-section p {
        text-align: center;
    }
}

/* EVENTS PAGE */

.page-banner{

    background: var(--primary);

    color:white;

    text-align:center;

    padding:100px 20px;

}

.page-banner h1{

    font-size:3rem;

    margin-bottom:15px;

}

.events-page{

    padding:80px 20px;

}

.events-page .event-card{

    display:flex;

    gap:30px;

    background:white;

    margin-bottom:40px;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

    transition:.4s;

}

.events-page .event-card:hover{

    transform:translateY(-10px);

}

.events-page .event-card img{

    width:350px;

    height:250px;

    object-fit:cover;

}

.events-page .event-content{

    padding:30px;

}

.event-date{

    background: var(--primary);

    color:white;

    padding:8px 15px;

    border-radius:25px;

}

.events-page h2{

    margin-top:20px;

    color:var(--primary);

}

/* FOOTER */

.footer {
    margin-top: 60px;
    padding: 0;
    background: linear-gradient(135deg, #2c0000 0%, #700000 100%);
    border-top: 6px solid var(--gold);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

.footer-main-container {
    width: 100%;
    color: #f8f9fa;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 5% 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.1fr;
    gap: 40px;
}

.school-identity .footer-logo {
    width: 80px;
    margin-bottom: 15px;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 213, 79, 0.4);
    border: 2px solid var(--gold);
    transition: transform 0.4s ease;
}

.school-identity .footer-logo:hover {
    transform: rotate(360deg);
}

.school-motto {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-style: italic;
}

.school-desc {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.footer-links li a i {
    color: var(--gold);
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(8px);
}

.footer-links li a:hover i {
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.icon-box {
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold);
    flex-shrink: 0;
    border: 1px solid rgba(255,213,79,0.3);
    transition: 0.3s;
}

.footer-contact li:hover .icon-box {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

.footer-map iframe {
    width: 100%;
    border: 3px solid rgba(255,255,255,0.2);
    transition: 0.4s;
}

.footer-map iframe:hover {
    border-color: var(--gold);
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.15rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Brand Colors for Social Media */
.social-links a:nth-child(1) { background: #1877F2; }
.social-links a:nth-child(2) { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-links a:nth-child(3) { background: #1DA1F2; }
.social-links a:nth-child(4) { background: #FF0000; }

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-8px) scale(1.15) rotate(10deg);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.15);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: #1a0000;
    font-size: 0.95rem;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom strong {
    color: #ffffff;
}

/* Footer Responsive */
@media(max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 5%;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .school-identity .footer-logo {
        margin: 0 auto 20px auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-logo {
        margin: 0 auto 20px auto;
    }
}

/* WHATSAPP FLOATING BUTTON */

.whatsapp-float{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 36px rgba(18, 140, 126, 0.45);
}

.whatsapp-float i {
    font-size: 1.3rem;
}

.whatsapp-inline {
    position: static;
    display: inline-flex;
    margin-top: 8px;
}

@keyframes pulseWhatsApp {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* =========================
   INTERACTIVE GALLERY PAGE
========================= */

.gallery-page-banner {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.85), rgba(244, 180, 0, 0.85)), url('../images/school/campus5.png') center/cover fixed;
    color: white;
    text-align: center;
    padding: 180px 20px 80px;
    margin-top: -90px;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}

.gallery-page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: fadeUp 1s ease-out;
}

.gallery-page-wrapper {
    padding: 60px 5%;
}

.gallery-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(183, 28, 28, 0.95), rgba(244, 180, 0, 0.7));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover {
    box-shadow: 0 15px 35px rgba(183, 28, 28, 0.25);
}

.gallery-card:hover img {
    transform: scale(1.15) rotate(2deg);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-overlay i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.gallery-overlay h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* =========================
   ABOUT PAGE STYLES (DYNAMIC)
========================= */

.about-banner {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.9), rgba(244, 180, 0, 0.8)), url('../images/school/campus4.png') center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
    margin-top: -90px;
    padding-top: 180px;
}

.about-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: fadeUp 1s ease-out;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.about-banner p {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    animation: fadeUp 1.2s ease-out;
}

/* Reducing default heavy spacing */
.about-sections-wrapper section {
    padding: 20px 5%;
}

.about-card {
    border-left: 6px solid var(--gold);
    position: relative;
    overflow: hidden;
}

/* Adds a cool subtle watermark background icon */
.about-card::after {
    content: '\f19d'; /* Graduation Cap Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 10rem;
    color: rgba(183, 28, 28, 0.03);
    z-index: 0;
}

.about-card h2, .about-card p, .about-card ul {
    position: relative;
    z-index: 1;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vision-card {
    border-top: 6px solid var(--primary);
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
}

.vision-card h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-card i {
    color: var(--gold);
}

/* Beautiful Pills for Core Values */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.values-list li {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list li i {
    color: var(--gold);
}

.values-list li:hover {
    background: var(--gold);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(244, 180, 0, 0.3);
}

.quote-card {
    text-align: center;
    background: linear-gradient(135deg, var(--cream), #fff);
    border: 2px dashed var(--gold);
    padding: 50px 30px;
}

.quote-card blockquote {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
}

.quote-card p {
    font-size: 1.3rem;
    color: #555;
    font-weight: 500;
}

/* Mobile Responsiveness & Spacing Fixes */
@media(max-width: 768px) {
    .about-banner, .gallery-page-banner, .page-banner {
        padding-top: 140px;
        padding-bottom: 50px;
    }
    .about-banner h1, .gallery-page-banner h1, .page-banner h1 {
        font-size: 2.5rem;
    }
    .about-sections-wrapper section {
        padding: 15px 5%; /* Reduces excessive space on phones */
    }
    .quote-card blockquote {
        font-size: 2rem;
    }
    .values-list li {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   DYNAMIC NEWS PAGE
========================= */

.news-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.news-page-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.news-page-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(183, 28, 28, 0.15);
}

.news-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-page-card:hover .news-img img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.news-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.news-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #777;
}

.news-content h3 {
    color: var(--dark);
    font-size: 1.35rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    gap: 15px;
    color: var(--gold);
}

.no-news-box {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.no-news-box h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.no-news-box p {
    color: #666;
    font-size: 1.1rem;
}

/* =========================
   DYNAMIC SCHOOL NOTICE BOARD & TICKER
========================= */
.news-ticker {
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}
.ticker-title {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
}
.ticker-title::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    border-top: 24px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 15px solid var(--primary);
    z-index: 1;
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
.ticker-content marquee {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    padding-top: 4px;
}
.ticker-item {
    margin-right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ticker-item i {
    font-size: 0.6rem;
    color: var(--gold);
}

#updates {
    padding: 80px 5%;
    background: var(--cream);
}
.updates-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.notice-board, .upcoming-events-board {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}
.board-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    text-align: center;
}
.board-header h2 {
    color: var(--white) !important;
    margin: 0 !important;
    font-size: 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.board-body {
    height: 350px;
    padding: 0 20px;
    overflow: hidden;
}
.vertical-marquee {
    height: 100%;
}
.notice-item {
    padding: 18px 0;
    border-bottom: 1px dashed #ddd;
    transition: 0.3s;
}
.notice-item:last-child {
    border-bottom: none;
}
.notice-item:hover {
    background: #fdf5f5;
}
.notice-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 32px;
    margin: 0;
}
.board-footer {
    padding: 15px 20px;
    background: #fafafa;
    text-align: center;
    border-top: 1px solid #eee;
}
.board-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: 0.3s;
}
.board-footer a:hover {
    color: var(--gold);
    gap: 10px;
}
.events-list {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
}
.events-list::-webkit-scrollbar {
    width: 6px;
}
.events-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.event-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.event-list-item::after {
    content: '\f133';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5.5rem;
    color: rgba(0,0,0,0.03);
    transition: 0.4s;
}
.event-list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.event-list-item:hover::after {
    transform: translateY(-50%) scale(1.1) rotate(-10deg);
    color: rgba(183, 28, 28, 0.08);
}

.event-list-item:nth-child(3n+1) { border-left-color: var(--primary); }
.event-list-item:nth-child(3n+1) .event-date-box { background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 5px 15px rgba(183,28,28,0.3); }

.event-list-item:nth-child(3n+2) { border-left-color: var(--secondary); }
.event-list-item:nth-child(3n+2) .event-date-box { background: linear-gradient(135deg, var(--secondary), var(--gold)); box-shadow: 0 5px 15px rgba(244,180,0,0.3); color: var(--dark); }

.event-list-item:nth-child(3n+3) { border-left-color: var(--dark); }
.event-list-item:nth-child(3n+3) .event-date-box { background: linear-gradient(135deg, #444, var(--dark)); box-shadow: 0 5px 15px rgba(33,33,33,0.3); }

.event-date-box {
    color: white;
    text-align: center;
    border-radius: 10px;
    min-width: 75px;
    padding: 12px 10px;
}
.event-date-box .date {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.event-date-box .month {
    font-size: 0.95rem;
    font-weight: 600;
}
.event-info h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blink-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 15px;
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker { 50% { opacity: 0.4; } }
.event-info p {
    color: #555;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}
@media(max-width: 992px) {
    .updates-wrapper {
        grid-template-columns: 1fr;
    }
}

.error-message {
    color: #B71C1C;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid {
    border-color: #B71C1C !important;
    background-color: #fdecea !important;
}

/* =========================
   ACADEMICS PAGE DYNAMIC
========================= */
.academics-page-banner {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.9), rgba(244, 180, 0, 0.8)), url('../images/school/campus_coridor.png') center/cover fixed;
    padding-top: 180px;
    padding-bottom: 80px;
    color: white;
    text-align: center;
    margin-top: -90px;
}
.academics-page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: fadeUp 1s ease-out;
}
.module-with-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 3D Parallax effect */
    padding: 80px 5%;
    position: relative;
}
.module-with-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Dark overlay for text readability */
    z-index: 1;
}
.module-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: auto;
    border-top: 5px solid var(--primary);
}
.module-content h2, .module-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.module-content p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}
.module-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}
.module-list li {
    background: #f9f9f9;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--gold);
    transition: 0.3s;
}
.module-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: var(--primary);
}
.module-list li i {
    color: var(--primary);
}
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    text-align: center;
}
.subject-grid div {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    cursor: default;
}
.subject-grid div:hover {
    background: var(--gold);
    transform: scale(1.05);
}

/* =========================
   STREAMS 3-CARD LAYOUT
========================= */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.stream-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.stream-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
}
.stream-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.science-card::before { background: var(--primary); }
.commerce-card::before { background: var(--secondary); }
.arts-card::before { background: var(--gold); }

.stream-icon {
    width: 85px; height: 85px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2.2rem; color: white;
    transition: 0.4s;
}
.science-card .stream-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 20px rgba(183,28,28,0.3); }
.commerce-card .stream-icon { background: linear-gradient(135deg, var(--secondary), var(--gold)); box-shadow: 0 10px 20px rgba(244,180,0,0.3); }
.arts-card .stream-icon { background: linear-gradient(135deg, var(--gold), #ffea99); box-shadow: 0 10px 20px rgba(255,213,79,0.4); }

.stream-card:hover .stream-icon { transform: scale(1.1) rotate(10deg); }
.stream-card h3 { font-size: 1.8rem; margin-bottom: 25px; color: var(--dark); font-weight: 800; }
.stream-subjects { list-style: none; padding: 0; text-align: left; }
.stream-subjects li {
    background: #fdfdfd; padding: 14px 20px; margin-bottom: 12px;
    border-radius: 12px; font-weight: 600; font-size: 1.05rem;
    display: flex; align-items: center; gap: 15px;
    border: 1px solid #f0f0f0; transition: 0.3s;
}
.stream-subjects li:hover { background: white; transform: translateX(8px); }

.science-card .stream-subjects li:hover { box-shadow: 0 5px 15px rgba(183,28,28,0.15); color: var(--primary); border-left: 4px solid var(--primary); }
.commerce-card .stream-subjects li:hover { box-shadow: 0 5px 15px rgba(244,180,0,0.15); color: var(--secondary); border-left: 4px solid var(--secondary); }
.arts-card .stream-subjects li:hover { box-shadow: 0 5px 15px rgba(255,213,79,0.2); color: var(--gold); border-left: 4px solid var(--gold); }

.science-card .stream-subjects li i { color: var(--primary); font-size: 1.2rem; }
.commerce-card .stream-subjects li i { color: var(--secondary); font-size: 1.2rem; }
.arts-card .stream-subjects li i { color: var(--gold); font-size: 1.2rem; }

@media(max-width: 768px) {
    .streams-grid {
        grid-template-columns: 1fr; /* Stacks cards on mobile */
        gap: 20px;
    }
}

/* =========================
   COMPLAINT PAGE DYNAMIC
========================= */
.complaint-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}
.complaint-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-top: 6px solid var(--primary);
}
.complaint-form-box label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: inline-block;
    font-size: 0.95rem;
}
.form-group {
    flex: 1;
    width: 100%;
}
.complaint-form-box input, .complaint-form-box select, .complaint-form-box textarea {
    background: #fdfdfd;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: 0.3s;
}
.complaint-form-box input:focus, .complaint-form-box select:focus, .complaint-form-box textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.15);
    background: var(--white);
    outline: none;
}
.complaint-info-box {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.admission-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.custom-input { background: #fdfdfd; }
.custom-input:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.15) !important;
    background: var(--white) !important;
    outline: none !important;
}

@media(max-width: 992px) {
    .complaint-wrapper, .admission-wrapper {
        grid-template-columns: 1fr;
    }
}

/* =========================
   GALLERY FILTERS & LIGHTBOX
========================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center; justify-content: center;
}
.lightbox-content {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
#lightbox-caption {
    color: var(--gold);
    font-size: 1.5rem;
    margin-top: 15px;
    font-weight: 700;
}
.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: white; font-size: 40px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: var(--secondary); }
@keyframes zoomIn { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }

/* =========================
   FLIP CARD ANIMATION (PRINCIPAL)
========================= */
.flip-container {
    perspective: 1000px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    height: 350px;
    margin: 0 auto;
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.flip-container:hover .flip-inner {
    transform: rotateY(180deg);
}
.flip-front, .flip-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
}
.flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 20px;
}
.flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 5px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.flip-back h3 {
    color: var(--gold) !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.flip-back p {
    color: white !important;
    font-size: 1.15rem !important;
    font-weight: 600;
    margin: 0;
}

/* Mobile responsiveness for flip cards */
@media(max-width:768px){
    .message-card{
        flex-direction: column;
        text-align: center;
        gap: 20px; /* Add some space between image and content */
    }
    .message-image {
        flex: none; /* Override flex:1 from desktop */
        width: 100%; /* Take full width */
        max-width: 280px; /* A slightly smaller max-width for mobile images */
        margin: 0 auto; /* Center the image container */
    }
    .message-image img {
        max-width: 280px; /* A slightly smaller max-width for mobile images */
        margin: 0 auto; /* Center the image container */
    }
    .flip-container {
            width: 260px; /* Fixed responsive width */
            height: 310px; /* Fixed height so images show properly */
            padding-bottom: 0; /* Remove hack */
            max-width: 100%;
    }
}

/* =========================
   NEW NEWS PAGE STYLES
========================= */
.news-page-section {
    padding: 80px 5%;
    background: var(--cream);
}

.news-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.news-page-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(183, 28, 28, 0.15);
}

.news-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-page-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px 30px;
    flex-grow: 1;
}

.news-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.notice-icon {
    font-size: 1.5rem;
}

@media(max-width: 768px) {
    .news-page-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   COLORFUL ICONS & SLIDE
========================= */
.color-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-icon {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
}

.phone-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.mail-icon {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.contact-slide-item {
    transition: background 0.4s ease;
    padding: 10px;
    border-radius: 10px;
    animation: slideInContact 1s ease-out forwards;
    opacity: 0;
    transform: translateX(100px);
}

.contact-slide-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Jumping effect on icon & text animation */
.contact-slide-item .color-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.contact-slide-item span {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.contact-slide-item:hover .color-icon {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.contact-slide-item:hover span {
    transform: translateX(8px);
    color: var(--gold) !important;
}

.map-slide { animation-delay: 0.1s; }
.phone-slide { animation-delay: 0.3s; }
.mail-slide { animation-delay: 0.5s; }

@keyframes slideInContact {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* =========================
   ACHIEVEMENTS SECTION
========================= */
.achievement-card {
    background: var(--cream);
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gold);
    transition: height 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.achievement-card:hover::before {
    height: 100%;
}

.achievement-card:hover .achievement-icon {
    background: white;
    box-shadow: 0 0 0 8px var(--cream);
}

.achievement-card:hover h3,
.achievement-card:hover p {
    color: white;
}

.achievement-icon,
.achievement-card h3,
.achievement-card p {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.achievement-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.icon-gold { background: linear-gradient(135deg, #F9D423 0%, #FF4E50 100%); color: white; }
.icon-primary { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); color: white; }
.icon-accent { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); color: white; }

.achievement-card:nth-child(1)::before { background: linear-gradient(to right, #F9D423, #FF4E50); }
.achievement-card:nth-child(2)::before { background: linear-gradient(to right, #8E2DE2, #4A00E0); }
.achievement-card:nth-child(3)::before { background: linear-gradient(to right, #00c6ff, #0072ff); }

.achievement-card h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.achievement-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================
   NCC SECTION
========================= */

#ncc-section {
    padding: 80px 5%;
    background: var(--white);
}

.ncc-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, var(--cream), #ffffff);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-left: 8px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.ncc-card::after {
    content: '\f132'; /* NCC Logo/Star like icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -20px;
    bottom: -40px;
    font-size: 12rem;
    color: rgba(183, 28, 28, 0.04);
    z-index: 0;
    transform: rotate(-15deg);
}

.ncc-content {
    flex: 1.5;
    position: relative;
    z-index: 1;
}

.ncc-content h2 {
    text-align: left;
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.ncc-motto {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.ncc-content p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.ncc-content ul {
    list-style: none;
    padding: 0;
}

.ncc-content ul li {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--gold);
}

.ncc-content ul li i {
    color: var(--primary);
}

.ncc-image-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ncc-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 8px solid white;
}

@media(max-width: 992px) {
    .ncc-card {
        flex-direction: column-reverse;
        padding: 40px 30px;
        text-align: center;
    }
    .ncc-content h2 {
        text-align: center;
    }
    .ncc-content ul {
        align-items: center;
        display: inline-flex;
        flex-direction: column;
    }
}