/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.8;
    letter-spacing: 0.5px;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 100px 0;
}

/* ================= HEADER ================= */
header {
    padding: 35px 0;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.school-logo {
    width: 85px;
    height: auto;
    transition: 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.05);
}

.school-title h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #0a2a66;
}

.school-title p {
    margin: 5px 0 0 0;
    color: #555;
}

/* ================= NAVIGATION ================= */
nav {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px;
    margin: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #0072ff;
}

/* Animated underline */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #0072ff;
    transition: 0.4s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 20px;
}

/* ================= NEWS ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

.gallery-section{
padding:60px 10%;
background:#f8f9fb;
}

.gallery-title{
text-align:center;
font-size:34px;
font-weight:700;
margin-bottom:40px;
color:#1b3c73;
}

/* grid layout */

.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:25px;
}

/* gallery item */

.gallery-item{
position:relative;
overflow:hidden;
border-radius:15px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
cursor:pointer;
}

.gallery-item img{
width:100%;
height:320px;
object-fit:cover;
transition:0.6s;
}

/* hover zoom */

.gallery-item:hover img{
transform:scale(1.12);
}

/* ================= IMAGE VIEWER ================= */

.image-viewer{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.viewer-img{
max-width:90%;
max-height:85%;
border-radius:10px;
box-shadow:0 0 40px rgba(0,0,0,0.5);
}

/* close button */

.close-viewer{
position:absolute;
top:30px;
right:40px;
font-size:40px;
color:white;
cursor:pointer;
font-weight:bold;
}

/* mobile */

@media(max-width:768px){

.gallery-item img{
height:240px;
}

}
/* ================= ADMISSION FORM ================= */
.admission form {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: auto;
}

.admission input,
.admission textarea {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.admission input:focus,
.admission textarea:focus {
    border-color: #0072ff;
    box-shadow: 0 0 8px rgba(0,114,255,0.3);
    outline: none;
}

.admission button {
    padding: 15px;
    background: #0072ff;
    border: none;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.admission button:hover {
    background: #0056c7;
}

/* ================= GOOGLE MAP ================= */
.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 25px;
    background: #f8f8f8;
    color: #555;
    border-top: 1px solid #eee;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .slide-content h2 {
        font-size: 26px;
    }
}

/* ================= STAFF ================= */
.staff-section {
    padding: 80px 0;
    background: #f9f9f9;
}

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

.staff-card {
    background: #ffffff;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-8px);
}

.staff-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* ================= COUNTERS ================= */
.counter-section {
    padding: 80px 0;
    text-align: center;
}

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

.counter-box h2 {
    font-size: 40px;
    color: #0072ff;
}

/* ================= ACHIEVEMENTS ================= */
.achievements {
    padding: 80px 0;
    background: #f9f9f9;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.achievement-list li {
    margin-bottom: 15px;
    font-size: 18px;
}

/* ================= CALENDAR ================= */
.calendar-section {
    padding: 80px 0;
}

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

.calendar-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
}
/* ================= STAFF HOVER ================= */
.staff-card {
    background: #ffffff;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    cursor: pointer;
}

.staff-card:hover {
    transform: translateY(-10px);
}

.staff-img {
    overflow: hidden;
    border-radius: 50%;
    width: 130px;
    height: 130px;
    margin: auto;
}

.staff-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

/* Zoom on hover */
.staff-card:hover img {
    transform: scale(1.15);
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #ffffff;
    margin: 8% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity:0; transform: translateY(-20px);}
    to {opacity:1; transform: translateY(0);}
}
/* ===== SCHOOL DETAILS SECTION ===== */

.school-details {
    padding: 80px 0;
    background: #f8fbff;
}

.school-details h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #003366;
}

/* Grid layout */

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Card style */

.detail-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Hover animation */

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Title */

.detail-item strong {
    display: block;
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}

/* Value */

.detail-item p {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* ===== ABOUT SECTION ===== */

.about-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
    color: #003366;
}

/* Grid */

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

/* Card */

.about-card {
    background: #f8fbff;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Headings */

.about-card h3 {
    margin-bottom: 15px;
    color: #003366;
}

/* Text */

.about-card p {
    line-height: 1.7;
    color: #444;
}

/* Mission list */

.about-card ul {
    padding-left: 18px;
}

.about-card li {
    margin-bottom: 8px;
    color: #444;
}
/* ===== ACHIEVEMENTS SECTION ===== */

.achievements {
    padding: 80px 0;
    background: #f8fbff;
}

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

.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.achievement-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* ===== CALENDAR SECTION ===== */

.calendar-section {
    padding: 80px 0;
    background: white;
}

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

.calendar-item {
    background: #f8fbff;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.calendar-item:hover {
    transform: translateY(-5px);
}

.calendar-item h3 {
    margin-bottom: 10px;
    color: #003366;
}

.calendar-item p {
    color: #444;
}
/* ===== NEWS SECTION ===== */

.news-section {
    padding: 80px 0;
    background: #f8fbff;
}

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

/* Card */

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
}

/* Image */

.news-image {
    position: relative;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Date badge */

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* Content */

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content p {
    color: #555;
    margin-bottom: 15px;
}

/* Button */

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.read-more:hover {
    background: #0056b3;
}

/* NEWS MODAL */

.news-modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
align-items:center;
justify-content:center;
z-index:9999;
}

.news-modal-content{
background:white;
padding:30px;
max-width:600px;
border-radius:10px;
text-align:center;
position:relative;
}

.news-modal-content img{
width:100%;
height:250px;
object-fit:cover;
margin-bottom:20px;
border-radius:8px;
}

.close-modal{
position:absolute;
right:20px;
top:10px;
font-size:28px;
cursor:pointer;
}
/* NEWS IMAGE */

.news-image{
position:relative;
}

/* CALENDAR DATE */

.news-date{

position:absolute;
top:15px;
left:15px;

background:white;
width:55px;
height:60px;

border-radius:6px;
box-shadow:0 4px 10px rgba(0,0,0,0.2);

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

font-weight:600;
font-size:13px;

color:#333;

}

/* Month */

.news-date::before{

content:attr(data-month);

background:#007bff;
color:white;

width:100%;
text-align:center;

font-size:12px;
padding:3px 0;

border-radius:6px 6px 0 0;

position:absolute;
top:0;
left:0;

}

.school-map{
padding:60px 20px;
background:#f7f7f7;
text-align:center;
}

.school-map h2{
font-size:32px;
margin-bottom:20px;
}

.map-text{
max-width:800px;
margin:auto;
margin-bottom:30px;
font-size:16px;
line-height:1.6;
}

.map-container{
max-width:900px;
margin:auto;
}

.school-map-image{
width:100%;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}


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

.gallery-section{
width:100%;
padding:80px 0;
background:#f5f7fb;
}

.gallery-title{
text-align:center;
font-size:36px;
margin-bottom:40px;
}

.gallery-row{
display:flex;
overflow-x:auto;
gap:20px;
padding:0 40px;
}

.gallery-row img{

height:320px;
min-width:500px;

object-fit:cover;

border-radius:12px;

cursor:pointer;

transition:0.5s;

box-shadow:0 10px 30px rgba(0,0,0,0.25);

}

.gallery-row img:hover{

transform:scale(1.05);

}



/* ===== FULL SCREEN VIEWER ===== */

.image-viewer{

display:none;

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.9);

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

z-index:9999;

}

.viewer-content{

max-width:90%;
max-height:85%;

border-radius:10px;

}

.close-viewer{

position:absolute;

top:30px;
right:50px;

font-size:40px;

color:white;

cursor:pointer;

}
/* ===== CINEMATIC AUTO SLIDING GALLERY ===== */

.cinema-gallery{
width:100%;
padding:90px 0;
background:#f5f7fb;
overflow:hidden;
}

.gallery-title{
text-align:center;
font-size:38px;
margin-bottom:50px;
}

.cinema-row{
display:flex;
gap:25px;
padding:0 40px;
animation:cinemaSlide 40s linear infinite;
}

/* images */

.cinema-row img{

height:350px;
min-width:600px;

object-fit:cover;

border-radius:12px;

cursor:pointer;

transition:0.5s;

box-shadow:0 10px 30px rgba(0,0,0,0.25);

}

/* hover zoom */

.cinema-row img:hover{

transform:scale(1.06);

}


/* auto sliding animation */

@keyframes cinemaSlide{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}

.cinema-row img:hover{

transform:scale(1.07);

}


/* ===== FULL SCREEN VIEWER ===== */

.image-viewer{

display:none;

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.9);

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

z-index:9999;

}

.viewer-img{

max-width:90%;
max-height:85%;

border-radius:10px;

box-shadow:0 10px 40px rgba(0,0,0,0.6);

}

.close-viewer{

position:absolute;

top:30px;
right:50px;

font-size:45px;

color:white;

cursor:pointer;

font-weight:bold;

}
.map-container{
width:100%;
max-width:1200px;
margin:auto;
}

.map-container iframe{
width:100%;
height:550px;
border:0;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}
/* ===== FLOATING EMAIL BUTTON ===== */

.floating-mail{

position:fixed;

bottom:30px;
right:30px;

z-index:9999;

}


/* main button */

.mail-btn{

width:65px;
height:65px;

border-radius:50%;

background:linear-gradient(135deg,#0072ff,#00c6ff);

color:white;

font-size:26px;

border:none;

cursor:pointer;

box-shadow:0 10px 25px rgba(0,0,0,0.3);

animation:pulse 2s infinite;

}


/* pulse animation */

@keyframes pulse{

0%{
box-shadow:0 0 0 0 rgba(0,114,255,0.6);
}

70%{
box-shadow:0 0 0 20px rgba(0,114,255,0);
}

100%{
box-shadow:0 0 0 0 rgba(0,114,255,0);
}

}


/* email list */

.mail-options{

display:none;

flex-direction:column;

position:absolute;

bottom:80px;
right:0;

backdrop-filter:blur(10px);

background:rgba(255,255,255,0.85);

border-radius:12px;

box-shadow:0 10px 30px rgba(0,0,0,0.25);

overflow:hidden;

min-width:200px;

}


/* email items */

.mail-options a{

padding:12px 18px;

text-decoration:none;

color:#333;

font-size:14px;

border-bottom:1px solid rgba(0,0,0,0.05);

transition:0.3s;

}

.mail-options a:hover{

background:#f2f6ff;

}
.principal{
padding:80px 0;
background:#f8fbff;
}

.principal-grid{
display:grid;
grid-template-columns:250px 1fr;
gap:40px;
align-items:center;
}

.principal-image img{
width:100%;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.principal-text h2{
margin-bottom:15px;
color:#003366;
}

.principal-text p{
line-height:1.7;
color:#444;
}

/* mobile */

@media (max-width:768px){

.principal-grid{
grid-template-columns:1fr;
text-align:center;
}

.principal-image img{
max-width:200px;
margin:auto;
}

}
/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 992px){

.container{
width:95%;
}

.hero-slider{
height:60vh;
}

.slide-content h2{
font-size:28px;
}

.slide-content p{
font-size:16px;
}

}



/* ================= TABLET ================= */

@media (max-width: 768px){

/* HEADER */

.header-flex{
flex-direction:column;
text-align:center;
gap:10px;
}

.school-logo{
width:70px;
}

/* NAVIGATION */

nav ul{
flex-direction:column;
align-items:center;
padding:10px 0;
}

nav ul li{
margin:8px 0;
}

/* HERO */

.hero-slider{
height:50vh;
}

.slide-content h2{
font-size:22px;
}

.slide-content p{
font-size:14px;
}

/* PRINCIPAL */

.principal-grid{
grid-template-columns:1fr;
text-align:center;
}

.principal-image img{
max-width:180px;
margin:auto;
}

/* NEWS */

.news-grid{
grid-template-columns:1fr;
}

/* COUNTERS */

.counter-grid{
grid-template-columns:repeat(2,1fr);
gap:20px;
}

}



/* ================= SMALL MOBILE ================= */

@media (max-width:480px){

.hero-slider{
height:45vh;
}

.slide-content h2{
font-size:18px;
}

.slide-content p{
font-size:13px;
}

/* counters */

.counter-grid{
grid-template-columns:1fr;
}

/* padding */

section{
padding:60px 0;
}

.news-card{
padding:20px;
}

}

/* NAV CONTAINER */

.nav-container{
display:flex;
justify-content:center;
align-items:center;
position:relative;
}

/* HAMBURGER ICON */

.menu-toggle{
display:none;
font-size:28px;
cursor:pointer;
position:absolute;
right:10px;
top:10px;
}

/* MOBILE NAV */

@media (max-width:768px){

.menu-toggle{
display:block;
}

#nav-menu{

display:none;
flex-direction:column;
background:white;

position:absolute;

top:50px;
right:0;

width:200px;

box-shadow:0 10px 25px rgba(0,0,0,0.15);

border-radius:8px;

}

#nav-menu li{
margin:10px 0;
text-align:center;
}

#nav-menu.show{
display:flex;
}

}