html, body {
    overflow-x: hidden;
}
    /* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: #F8F9FB;
    color: #333;
}
/* ================= SCHOOL INFO SECTION ================= */
.school-info-section {
    background: #ffffff;
    padding: 70px 0;
}
.fees-section {
padding: 80px 20px;
background: #ffffff;
text-align: center;
}

.fees-table {
width: 90%;
max-width: 700px;
margin: auto;
border-collapse: collapse;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.fees-table th {
background: #8b0000;
color: white;
padding: 15px;
}

.fees-table td {
padding: 14px;
border: 1px solid #eee;
}

.fees-table tr:nth-child(even) {
background: #f9f9f9;
}
.info-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: #F8F9FB;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
/* ================= MAP SECTION ================= */

.map-section {
    padding: 80px 0;
    background: #F8F9FB;
    text-align: center;
}

.map-container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.map-button a {
    display: inline-block;
    padding: 12px 30px;
    background: #8b0000;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.estd-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    letter-spacing: 1px;
}
.map-button a:hover {
    background: #b30000;
}
.info-box h3 {
    color: #8b0000;
    margin-bottom: 15px;
}
.container
{
    padding-top: 0px;
    padding-bottom: 0px;
    margin-right: 15px;
}
/* ================= PRELOADER ================= */

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #8b0000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    perspective: 1000px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.book {
    width: 120px;
    height: 80px;
    position: relative;
}

.page {
    width: 60px;
    height: 80px;
    background: white;
    position: absolute;
    top: 0;
    border-radius: 4px;
}
.section-title {
    font-weight: 700;
    color: #222;
}

.section-title::after {
    background: #C9A227;
}
.page.left {
    left: 0;
}

.page.right {
    right: 0;
    transform-origin: left;
    animation: flipPage 1.5s infinite ease-in-out;
}

@keyframes flipPage {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(-160deg); }
    100% { transform: rotateY(0deg); }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ================= TOP BAR ================= */
.header {
    background: #b30000;
    color: white;
}
.logo-section img {
    height: 110px;
    margin-top: 30px;
}

.school-info {
    text-align: center;
    flex: 1;
    margin-left: 130px;
}

.school-info h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.school-info p {
    margin: 5px 0 0;
    font-size: 16px;
}
.contact-info {
    margin-left: auto;
    text-align: right;
    padding-right: 20px;
    line-height: 1.6;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-right: 15px;
}
/* Left Contact Numbers */
.top-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Right Side (Email + Button) */
.top-right {
    display: flex;
    align-items: center;
    gap: 25px;
}
/* ================= PREMIUM ADMISSION BUTTON ================= */
.topbar-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-contact a{
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
}

.top-email{
    color: white;
    font-size: 14px;
}
.contact-info a{
    color: white;
    text-decoration: none;
}
.logo-text span{
    display: block;
    margin-top: 10px;   /* moves it slightly down */
    font-size: 15px;
    letter-spacing: 1px;
}
.contact-info{
    margin-top: 10px;      /* move slightly down */
    margin-right: 15px;    /* move slightly left */
}
.contact-info a:hover{
    text-decoration: underline;
}
.icon{
    width:16px;
    vertical-align: middle;
    margin-right: 5px;
}
.highlight-btn {
    position: relative;
    overflow: hidden;
    appearance: none;
    border: 2px solid #8b0000;
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #000;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 153, 0, 0.4);
}

/* Hover effect */
.highlight-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.6);
}

/* Shine animation */
.highlight-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.highlight-btn:hover::before {
    left: 130%;
}

/* Soft glowing pulse */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 153, 0, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    }
}
/* ================= HEADER ================= */
/* ================= HEADER LAYOUT ================= */

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-left: 50px;
    margin-right: 50px;
}

.school-title {
    flex: 1;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-bottom {
    text-align: center;
    padding-bottom: 10px;
}

.header-bottom nav ul {
    justify-content: center;
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}
.logo {
    width: fit-content;
    display: flex;
    align-items: center;
}
.logo {
    justify-self: start;
}

.contact-btn {
    justify-self: end;
}

.logo {
    flex: 1;
}

nav {
    flex: 2;
    display: flex;
    justify-content: center;
}
/* ================= RAM STYLE HEADER ================= */

.header-banner {
    background: linear-gradient(135deg, #8b0000, #b30000);
    color: white;
    margin-right: auto;
    padding: 10px 0;
}
.banner-logo img {
    width: 90px;
    height: auto;
}
.banner-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.banner-title p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Navigation strip like temple site */
.nav-strip {
    background: #8b0000;
    padding: 10px 0;
}
.nav-strip nav ul {
    justify-content: center;
    padding: 0px;
}

.nav-strip nav ul li a {
    color: white;
    font-weight: 600;
}

.nav-strip nav ul li a:hover {
    color: #fffacd;
}
/* ===== PERFECT CENTER SCHOOL NAME ===== */
nav {
    margin: 0 auto;
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}
nav {
    margin-left: auto;
}
.nav-admission {
    margin-left: 30px;
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;       /* increased from 60px */
    height: auto;
    margin-right: 20px;
}
/* ================= CENTER SCHOOL NAME ================= */
.logo-text h2 {
    font-size: 20px;
    color: #8b0000;
}

/* ================= NAVIGATION ================= */

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #8b0000;
}
/* FIX DROPDOWN TEXT VISIBILITY */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #ffffff;
    display: none;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 9999;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    color: #222 !important;   /* FORCE DARK COLOR */
    font-weight: 500;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #8b0000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 50px;
    font-weight: 700;
}

.hero p {
    margin: 15px 0;
    font-size: 18px;
}

.primary-btn {
    background: #8b0000;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.secondary-btn {
    background: white;
    color: #333;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

/* ================= ABOUT ================= */

.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}

/* ================= SECTION TITLE ================= */

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 3px;
    background: #8b0000;
    display: block;
    margin: 10px auto;
}

/* ================= CARDS ================= */

.card-container {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.card {
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background: white;
    border: 1px solid #eee;
    transition: 0.3s ease;
}
.card:hover {
    border-color: #C9A227;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= GALLERY ================= */

.gallery {
    padding: 80px 0;
    background: #F8F9FB;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* ================= TESTIMONIAL ================= */

.testimonial {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.testimonial-box {
    max-width: 700px;
    margin: auto;
    background: #111827;
    color: white;
    padding: 40px;
    border-radius: 15px;
}
/* ================= ADMISSION POPUP ================= */
/* ================= PREMIUM ADMISSION POPUP ================= */
.admission-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;  /* center properly */
    padding: 20px;        /* prevent overflow */
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.admission-popup {
    pointer-events: none;
}

.admission-popup.active {
    pointer-events: auto;
}

.admission-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: #ffffff;
    width: 92%;
    max-width: 480px;
    padding: 30px 20px;   /* reduced padding */
    border-radius: 20px;
    position: relative;
    text-align: center;
    box-sizing: border-box;   /* VERY IMPORTANT */
    transform: translateY(0); /* remove scale */
    transition: 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
/* Heading */
.popup-box h2 {
    color: #8b0000;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 24px;
}

.popup-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* Inputs */
.popup-box select {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
    outline: none;
}

.popup-box input:focus,
.popup-box select:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* Submit Button */
.popup-box button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #8b0000, #b30000);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.popup-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139,0,0,0.3);
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
}
.close-popup:hover {
    background: #8b0000;
    color: #fff;
}
.popup-box input,
.popup-box select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}
/* ================= FOOTER ================= */
footer {
    background: #111827;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col h3 {
    color: #C9A227;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
}

/* ================= RESPONSIVE ================= */


/* ================= PREMIUM HERO SLIDER ================= */
/* ================= MOBILE RESPONSIVE FIX ================= */
@media (max-width: 480px) {
    .close-popup {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px)
{
    .close-popup
    {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
    /* HEADER STACK */
    .header-top {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        gap: 15px;
    }

    .logo-section img {
        height: 80px;
        margin-top: 15px;
        margin-left: 60px;
    }

    .school-info h1 {
        font-size: 20px;
    }

    .school-info p {
        font-size: 14px;
    }

    .contact-info {
        text-align: center;
        padding-right: 0;
    }

    /* NAVIGATION */
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        display: flex;   /* show instead of hide */
        align-items: center;
    }

    /* HERO SECTION */
    .hero {
        height: 70vh;
    }

    .slide-content {
        left: 5%;
        max-width: 90%;
    }

    .slide-content h1 {
        font-size: 22px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* ABOUT SECTION */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    /* CARDS */
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    /* SCHOOL INFO SECTION */
    .info-container {
        flex-direction: column;
    }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

}
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    z-index: 1;
}
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
    top: 0;
    left: 0;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    max-width: 500px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 3;
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: white;
}
/* ================= SUCCESS MESSAGE ================= */

.success-message {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #1e7e34, #28a745);
    color: #fff;
    padding: 16px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 9999;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}
/* ================= POPUP MOBILE FIX ================= */

@media (max-width: 480px) {

    .popup-box {
        width: 92%;
        max-width: 92%;
        padding: 25px 18px;
        border-radius: 15px;
    }

    .popup-box h2 {
        font-size: 18px;
    }

    .popup-box p {
        font-size: 13px;
    }

    .popup-box input,
    .popup-box select {
        padding: 10px;
        font-size: 13px;
    }

    .popup-box button {
        padding: 12px;
        font-size: 14px;
    }

}