/* style.css */

/* =========================
RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#111;
    overflow-x:hidden;
    position:relative;
}

/* =========================
GLOBAL
========================= */

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.center{
    text-align:center;
}

/* =========================
GLASS EFFECT
========================= */

.glass{
    background:rgba(255,255,255,0.65);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,0.3);
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
}

/* =========================
FLOATING CLOUDS
========================= */

.floating-cloud{
    position:fixed;
    opacity:0.13;
    z-index:-1;
    animation:floatCloud 40s linear infinite;
    filter:blur(1px);
}

.cloud1{
    width:650px;
    top:60px;
    left:-250px;
}

.cloud2{
    width:520px;
    bottom:60px;
    right:-220px;
}

@keyframes floatCloud{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(1600px);
    }

}

/* =========================
LOADER
========================= */

#loader{
    position:fixed;
    width:100%;
    height:100vh;
    background:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:1s;
}

.loading-text{
    margin-top:15px;
    font-size:18px;
    font-weight:600;
    color:#356dff;
}

/* =========================
NAVBAR
========================= */

.navbar{
    width:92%;
    margin:25px auto;
    padding:18px 28px;
    border-radius:30px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    position:sticky;
    top:12px;

    z-index:999;
}

.logo-box{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo{
    width:58px;
}

.logo-box h2{
    font-size:22px;
    font-weight:700;
}

.logo-box p{
    color:#777;
    font-size:13px;
}

nav{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

nav a{
    color:#222;
    padding:12px 20px;
    border-radius:18px;
    font-weight:500;
    transition:0.35s ease;
}

nav a:hover{
    background:#356dff;
    color:white;
    transform:translateY(-4px);
}

nav .active{
    background:#111;
    color:white;
}

/* =========================
HERO
========================= */

.hero{
    width:92%;
    margin:40px auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:60px;
}

.hero-content h1{
    font-size:72px;
    line-height:1.1;
    margin:20px 0;
}

.hero-content p{
    color:#666;
    line-height:1.9;
    font-size:17px;
}

.hero-image img{
    border-radius:40px;
    height:620px;
    object-fit:cover;
    box-shadow:0 20px 50px rgba(0,0,0,0.15);

    transition:opacity 0.8s ease-in-out;
    opacity:1;
}

/* =========================
PAGE HERO
========================= */

.page-hero{
    width:92%;
    margin:60px auto;
    padding:90px 30px;
}

.page-hero h1{
    font-size:68px;
    margin:18px 0;
}

.page-hero p{
    color:#666;
    max-width:760px;
    margin:auto;
    line-height:1.9;
}

/* =========================
PREMIUM BADGE
========================= */

.premium-badge{
    display:inline-block;
    background:#eef3ff;
    color:#356dff;
    padding:10px 18px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
}

/* =========================
BUTTONS
========================= */

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-top:35px;
}

.primary-btn,
.secondary-btn{
    padding:15px 28px;
    border-radius:18px;
    font-weight:600;
    transition:0.4s ease;
    display:inline-block;
}

.primary-btn{
    background:#356dff;
    color:white;
}

.secondary-btn{
    background:white;
    color:#111;
    border:1px solid #ddd;
}

.primary-btn:hover,
.secondary-btn:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 35px rgba(0,0,0,0.12);
}

/* =========================
FEATURES
========================= */

.features-grid{
    width:92%;
    margin:90px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.feature-card{
    padding:35px;
    border-radius:30px;
}

.feature-card img{
    width:70px;
    margin-bottom:20px;
}

.feature-card h3{
    margin-bottom:15px;
    font-size:24px;
}

.feature-card p{
    color:#666;
    line-height:1.8;
}

.feature-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#eef3ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    margin-bottom:22px;
}

/* =========================
PRINCIPAL / TRUSTEE
========================= */

.principal-section,
.trustee-section,
.about-box,
.leadership-card,
.social-highlight{
    width:92%;
    margin:90px auto;
    padding:50px;
    border-radius:35px;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.principal-image img,
.trustee-image img,
.about-image img,
.leader-image img,
.highlight-image img{
    border-radius:28px;
    height:480px;
    object-fit:cover;
}

.principal-content h2,
.trustee-content h2,
.about-text h2,
.leader-content h2{
    font-size:42px;
    margin:20px 0;
}

.principal-content p,
.trustee-content p,
.about-text p,
.leader-content p{
    color:#666;
    line-height:1.9;
    margin-top:18px;
}

.reverse{
    direction:rtl;
}

.reverse .leader-content{
    direction:ltr;
}

/* =========================
MENTOR
========================= */

.mentor-box,
.mentor-section{
    width:92%;
    margin:90px auto;
    padding:40px;
    border-radius:35px;

    display:flex;
    align-items:center;
    gap:35px;
}

.mentor-box img,
.mentor-image{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
}

/* =========================
GALLERY
========================= */

.gallery-grid{
    width:92%;
    margin:80px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:28px;
}

.gallery-card{
    border-radius:30px;
    overflow:hidden;
    position:relative;
}

.gallery-card img{
    height:380px;
    object-fit:cover;
    transition:0.5s ease;
}

.gallery-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,0.75),transparent);
    display:flex;
    align-items:flex-end;
    padding:30px;
}

.gallery-overlay h3{
    color:white;
    font-size:26px;
}

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

/* =========================
VIDEO
========================= */

.video-grid{
    width:92%;
    margin:70px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.video-card{
    border-radius:30px;
    overflow:hidden;
    position:relative;
}

.video-card img{
    height:350px;
    object-fit:cover;
}

.video-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,0.7),transparent);
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:30px;
}

.play-btn{
    width:70px;
    height:70px;
    border-radius:50%;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    margin-bottom:20px;
}

.video-overlay h3{
    color:white;
}

/* =========================
TOPPERS
========================= */

.toppers-hero{
    width:92%;
    margin:50px auto;
    border-radius:40px;
    overflow:hidden;
    position:relative;
}

.toppers-bg{
    height:650px;
    object-fit:cover;
}

.toppers-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    padding:20px;
}

.toppers-overlay h1{
    color:white;
    font-size:72px;
    margin:25px 0;
}

.toppers-overlay p{
    color:#eee;
    max-width:700px;
    line-height:1.9;
}

/* =========================
STATS
========================= */

.stats-grid{
    width:92%;
    margin:80px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.stat-card{
    padding:40px;
    border-radius:30px;
    text-align:center;
}

.stat-icon{
    font-size:42px;
    margin-bottom:18px;
}

.stat-card h2{
    font-size:52px;
}

.stat-card p{
    color:#666;
    margin-top:10px;
}

/* =========================
TABLE
========================= */

.hall-section{
    width:92%;
    margin:90px auto;
    padding:45px;
    border-radius:35px;
}

.table-container{
    overflow-x:auto;
    margin-top:40px;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:22px;
    text-align:left;
}

th{
    background:#eef3ff;
}

tbody tr{
    border-bottom:1px solid #eee;
}

.hover-row:hover{
    background:#f7f9ff;
}

.score-badge{
    background:#356dff;
    color:white;
    padding:8px 16px;
    border-radius:50px;
}

/* =========================
COURSES
========================= */

.courses-grid{
    width:92%;
    margin:80px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:35px;
}

.course-card{
    border-radius:35px;
    overflow:hidden;
}

.course-image img{
    height:260px;
    object-fit:cover;
}

.course-content{
    padding:30px;
}

.course-tag{
    display:inline-block;
    background:#eef3ff;
    color:#356dff;
    padding:8px 14px;
    border-radius:50px;
    font-size:13px;
    margin-bottom:15px;
}

.course-content h3{
    font-size:28px;
}

.course-content p{
    color:#666;
    line-height:1.8;
    margin:18px 0;
}

.course-content ul{
    list-style:none;
    margin-bottom:25px;
}

.course-content li{
    margin:10px 0;
    color:#444;
}

/* =========================
CONTACT
========================= */

.contact-layout{
    width:92%;
    margin:80px auto;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
}

.contact-info,
.contact-form{
    padding:40px;
    border-radius:35px;
}

.contact-info h2,
.contact-form h2{
    font-size:42px;
    margin:20px 0;
}

.contact-item{
    display:flex;
    gap:20px;
    margin-top:30px;
}

.contact-icon{
    width:60px;
    height:60px;
    border-radius:18px;
    background:#eef3ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
}

.contact-form form{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:30px;
}

.contact-form input,
.contact-form textarea{
    padding:18px;
    border:none;
    border-radius:18px;
    background:#f6f7fb;
    font-family:'Poppins',sans-serif;
}

/* =========================
MAP
========================= */

.map-section{
    width:92%;
    margin:90px auto;
}

.map-box{
    margin-top:40px;
    border-radius:35px;
    overflow:hidden;
}

.map-box iframe{
    width:100%;
    height:500px;
    border:none;
}

.map-btn-box{
    margin-top:30px;
    text-align:center;
}

/* =========================
SOCIAL
========================= */

.social-grid{
    width:92%;
    margin:80px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.social-card{
    padding:40px;
    border-radius:35px;
    text-align:center;
}

.social-icon{
    width:85px;
    height:85px;
    border-radius:25px;
    margin:auto auto 25px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:38px;

    background:#eef3ff;
}

.social-card h2{
    margin-bottom:15px;
}

.social-card p{
    color:#666;
    line-height:1.8;
    margin-bottom:25px;
}

/* =========================
VALUES / RULES
========================= */

.values-grid,
.rules-grid,
.curriculum-grid,
.achievement-grid,
.quick-actions{
    width:92%;
    margin:80px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.value-card,
.curriculum-card,
.achievement-card,
.action-card{
    padding:35px;
    border-radius:30px;
}

.value-icon,
.achievement-icon,
.action-icon{
    font-size:42px;
    margin-bottom:18px;
}

.rule-item{
    background:white;
    padding:24px;
    border-radius:22px;
    box-shadow:0 5px 18px rgba(0,0,0,0.05);
}

/* =========================
MOTTO
========================= */

.motto-section{
    width:92%;
    margin:90px auto;
    padding:70px 30px;
    border-radius:35px;
}

.motto-section h2{
    font-size:52px;
    margin:20px 0;
}

/* =========================
ENQUIRY SECTION
========================= */

.enquiry-section{
    width:92%;
    margin:90px auto;
    padding:80px 30px;
    border-radius:40px;
    text-align:center;
}

.enquiry-section h2{
    font-size:56px;
    margin:22px 0;
}

.enquiry-section p{
    max-width:760px;
    margin:auto;
    color:#666;
    line-height:1.9;
}

/* =========================
FOOTER
========================= */

.footer{
    background:#0f172a;
    margin-top:120px;
    padding:90px 5%;
    color:white;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
}

.footer-logo{
    width:70px;
    margin-bottom:18px;
}

.footer p{
    color:#cbd5e1;
    line-height:1.9;
}

.footer h3{
    margin-bottom:18px;
}

.footer a{
    display:block;
    color:#cbd5e1;
    margin-bottom:12px;
}

/* =========================
HOVER EFFECT
========================= */

.hover-card{
    transition:0.45s ease;
}

.hover-card:hover{
    transform:
    translateY(-10px)
    scale(1.02);

    box-shadow:0 25px 50px rgba(0,0,0,0.12);
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:992px){

    .hero,
    .principal-section,
    .trustee-section,
    .about-box,
    .leadership-card,
    .social-highlight,
    .contact-layout{
        grid-template-columns:1fr;
    }

    .hero-content h1,
    .page-hero h1,
    .toppers-overlay h1{
        font-size:48px;
    }

    .principal-content h2,
    .trustee-content h2,
    .about-text h2,
    .leader-content h2,
    .contact-info h2,
    .contact-form h2,
    .enquiry-section h2{
        font-size:36px;
    }

    .navbar{
        flex-direction:column;
        gap:20px;
    }

    nav{
        justify-content:center;
    }

    .mentor-box,
    .mentor-section{
        flex-direction:column;
        text-align:center;
    }

    .hero-image img{
        height:450px;
    }

}