/*======================================
GREEN VALLEY PUBLIC SCHOOL
Main Stylesheet
======================================*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*=========================
CSS VARIABLES
=========================*/

:root{

--primary:#0B8A43;
--secondary:#066633;
--light:#F5FFF8;
--white:#ffffff;
--dark:#1d1d1d;
--gray:#666;
--border:#e8e8e8;

--shadow:0 10px 35px rgba(0,0,0,.08);

--radius:12px;

--transition:.4s ease;

}

/*=========================
RESET
=========================*/

*{

margin:0;
padding:0;
box-sizing:border-box;

}

html{

scroll-behavior:smooth;

}

body{

font-family:'Poppins',sans-serif;
font-size:16px;
line-height:1.7;
background:#fff;
color:#222;
overflow-x:hidden;

}

img{

max-width:100%;
display:block;

}

a{

text-decoration:none;
transition:.4s;

}

ul{

list-style:none;

}

.container{

width:90%;
max-width:1200px;
margin:auto;

}

section{

padding:90px 0;

}

.section-title{

text-align:center;
margin-bottom:60px;

}

.section-title h5{

color:var(--primary);
font-size:18px;
font-weight:600;
letter-spacing:2px;
margin-bottom:10px;

}

.section-title h2{

font-size:42px;
font-weight:700;
color:var(--dark);

}

/*=========================
BUTTONS
=========================*/

.btn{

display:inline-block;
padding:15px 35px;
background:var(--primary);
color:#fff;
border-radius:50px;
font-weight:600;
transition:.4s;
box-shadow:var(--shadow);

}

.btn:hover{

background:var(--secondary);
transform:translateY(-5px);

}

.btn2{

display:inline-block;
padding:15px 35px;
border:2px solid #fff;
color:#fff;
border-radius:50px;
margin-left:15px;
font-weight:600;
transition:.4s;

}

.btn2:hover{

background:#fff;
color:var(--primary);

}

/*=========================
LOADER
=========================*/

.loader{

position:fixed;
left:0;
top:0;
width:100%;
height:100%;
background:#fff;
display:flex;
justify-content:center;
align-items:center;
z-index:99999;

}

.spinner{

width:70px;
height:70px;
border:8px solid #ddd;
border-top:8px solid var(--primary);
border-radius:50%;
animation:spin 1s linear infinite;

}

@keyframes spin{

100%{

transform:rotate(360deg);

}

}

/*=========================
TOP BAR
=========================*/

.topbar{

background:var(--secondary);
color:#fff;
padding:10px 0;
font-size:14px;

}

.topbar .container{

display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;

}

.top-left span{

margin-right:25px;

}

.top-left i{

margin-right:8px;

}

.top-right a{

width:35px;
height:35px;
display:inline-flex;
justify-content:center;
align-items:center;
background:rgba(255,255,255,.15);
border-radius:50%;
color:#fff;
margin-left:10px;

}

.top-right a:hover{

background:#fff;
color:var(--primary);

}

/*=========================
HEADER
=========================*/

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
    z-index:999;
}

header .container{
    height:75px;   /* was around 90-100px */
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:55px;
    height:55px;
}

.logo-text h2{
    font-size:24px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;   /* Keep school name on one line */
}

.logo-text p{
    font-size:12px;
    margin-top:3px;
    color:#666;
}

/*=========================
NAVIGATION
=========================*/

nav ul{

display:flex;
align-items:center;

}

nav ul li{

margin-left:30px;

}

nav ul li a{

font-weight:600;
color:#222;
position:relative;

}

nav ul li a::after{

content:'';
position:absolute;
left:0;
bottom:-8px;
width:0;
height:3px;
background:var(--primary);
transition:.4s;

}

nav ul li a:hover::after,
nav ul li a.active::after{

width:100%;

}

nav ul li a:hover,
nav ul li a.active{

color:var(--primary);

}

.admission-btn{
    background:#0B8A43;
    color:#fff;
    padding:10px 18px;
    font-size:14px;
    border-radius:30px;
    font-weight:600;
}

.menu-btn{

display:none;
font-size:28px;
cursor:pointer;

}

/*=========================
HERO
=========================*/

.hero{
    position:relative;
    width:100%;
    height:calc(100vh - 10px);
    margin-top:80px;   /* Desktop gap */
    overflow:hidden;
    padding:0;
}

.slide{

position:absolute;
width:100%;
height:100%;
background-size:cover;
background-position:center;
display:flex;
align-items:center;
justify-content:center;
opacity:0;
visibility:hidden;
transition:1s;

}

.slide.active{

opacity:1;
visibility:visible;

}

.overlay{

position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0,.55);

}

.content{

position:relative;
z-index:2;
text-align:center;
color:#fff;
width:900px;
max-width:90%;

}

.content h4{

font-size:22px;
letter-spacing:4px;
margin-bottom:20px;
color:#9effbf;

}

.content h1{

font-size:70px;
line-height:1.2;
margin-bottom:20px;
font-weight:800;

}

.content h1 span{

color:#8cffbe;

}

.content p{

font-size:22px;
margin-bottom:35px;

}

.buttons{

display:flex;
justify-content:center;
flex-wrap:wrap;
gap:15px;

}

/*======================================
ABOUT SECTION
======================================*/

.about{
    background:var(--light);
}

.grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:60px;
    align-items:center;
}

.about-image{
    position:relative;
}

.about-image img{
    width:100%;
    border-radius:20px;
    box-shadow:var(--shadow);
    transition:.5s;
}

.about-image img:hover{
    transform:scale(1.04);
}

.about-content h5{
    color:var(--primary);
    font-size:18px;
    letter-spacing:2px;
    margin-bottom:15px;
}

.about-content h2{
    font-size:42px;
    margin-bottom:25px;
    color:var(--dark);
}

.about-content p{
    color:#666;
    margin-bottom:20px;
    text-align:justify;
}

.about-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin:30px 0;
}

.about-list div{
    background:#fff;
    padding:15px;
    border-radius:12px;
    box-shadow:var(--shadow);
    transition:.4s;
    font-weight:500;
}

.about-list div:hover{
    transform:translateY(-8px);
    background:var(--primary);
    color:#fff;
}

.about-list i{
    color:var(--primary);
    margin-right:10px;
}

.about-list div:hover i{
    color:#fff;
}

/*======================================
WHY CHOOSE US
======================================*/

.choose{
    background:#fff;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.card{
    background:#fff;
    padding:45px 30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.5s;
    overflow:hidden;
    position:relative;
}

.card::before{
    content:"";
    position:absolute;
    width:100%;
    height:0;
    left:0;
    bottom:0;
    background:linear-gradient(45deg,var(--primary),#00c56a);
    transition:.5s;
    z-index:0;
}

.card:hover::before{
    height:100%;
}

.card i,
.card h3,
.card p{
    position:relative;
    z-index:1;
}

.card i{
    font-size:60px;
    color:var(--primary);
    margin-bottom:20px;
}

.card h3{
    font-size:24px;
    margin-bottom:15px;
}

.card p{
    color:#666;
}

.card:hover{
    transform:translateY(-15px);
}

.card:hover i,
.card:hover h3,
.card:hover p{
    color:#fff;
}

/*======================================
PRINCIPAL SECTION
======================================*/

.principal{
    background:linear-gradient(135deg,#ffffff,#f4fff7);
}

.principal-img img{
    width:100%;
    border-radius:25px;
    box-shadow:var(--shadow);
}

.principal-content h5{
    color:var(--primary);
    font-size:18px;
    margin-bottom:15px;
}

.principal-content h2{
    font-size:40px;
    margin-bottom:25px;
}

.principal-content p{
    color:#666;
    margin-bottom:20px;
}

.principal-content h4{
    color:var(--primary);
    font-size:24px;
    margin-top:25px;
}

/*======================================
FACILITIES
======================================*/

.facilities{
    background:#fff;
}

.facility-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.facility-box{
    background:#fff;
    border-radius:18px;
    text-align:center;
    padding:45px 30px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.5s;
    position:relative;
    overflow:hidden;
}

.facility-box::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:5px;
    background:var(--primary);
    transition:.4s;
}

.facility-box:hover::after{
    height:100%;
    z-index:0;
}

.facility-box i,
.facility-box h3,
.facility-box p{
    position:relative;
    z-index:2;
}

.facility-box i{
    font-size:60px;
    color:var(--primary);
    margin-bottom:20px;
}

.facility-box h3{
    margin-bottom:15px;
    font-size:24px;
}

.facility-box p{
    color:#666;
}

.facility-box:hover{
    transform:translateY(-12px);
}

.facility-box:hover i,
.facility-box:hover h3,
.facility-box:hover p{
    color:#fff;
}

/*======================================
SECTION ANIMATION
======================================*/

.about-image,
.about-content,
.card,
.facility-box,
.principal-img,
.principal-content{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
/*======================================
COUNTER SECTION
======================================*/

.counter{
    background:linear-gradient(rgba(11,138,67,.92),rgba(6,102,51,.92)),
    url("../images/slider1.jpg") center/cover;
    color:#fff;
}

.counter-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.counter-box{
    text-align:center;
    padding:40px 20px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(8px);
    border-radius:20px;
    transition:.4s;
}

.counter-box:hover{
    transform:translateY(-10px);
    background:rgba(255,255,255,.15);
}

.counter-box h2{
    font-size:55px;
    font-weight:800;
    margin-bottom:10px;
    color:#fff;
}

.counter-box p{
    font-size:18px;
    letter-spacing:1px;
}


/*======================================
ADMISSION BANNER
======================================*/

.admission-banner{
    position:relative;
    background:url("../images/slider2.jpg") center center/cover;
    text-align:center;
    color:#fff;
    padding:120px 0;
}

.admission-banner .overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.60);
}

.admission-banner .container{
    position:relative;
    z-index:2;
}

.admission-banner h2{
    font-size:52px;
    margin-bottom:20px;
}

.admission-banner p{
    font-size:22px;
    margin-bottom:35px;
}


/*======================================
HOME GALLERY
======================================*/

.gallery-home{
    background:var(--light);
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.gallery-item{
    overflow:hidden;
    border-radius:18px;
    box-shadow:var(--shadow);
    position:relative;
}

.gallery-item img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:.6s;
}

.gallery-item:hover img{
    transform:scale(1.12);
}


/*======================================
TESTIMONIAL
======================================*/

.testimonial{
    background:#fff;
}

.testimonial-slider{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.testimonial-box{
    background:#fff;
    border-radius:20px;
    padding:40px;
    box-shadow:var(--shadow);
    transition:.4s;
}

.testimonial-box:hover{
    transform:translateY(-10px);
}

.testimonial-box p{
    color:#666;
    font-style:italic;
    margin-bottom:20px;
}

.testimonial-box h4{
    color:#FFD700;
    font-size:22px;
    margin-bottom:8px;
}

.testimonial-box h5{
    color:var(--primary);
}


/*======================================
CONTACT SECTION
======================================*/

.contact-home{
    background:var(--light);
}

.contact-home h5{
    color:var(--primary);
    margin-bottom:10px;
}

.contact-home h2{
    font-size:42px;
    margin-bottom:20px;
}

.contact-home p{
    color:#666;
    margin-bottom:20px;
}

.contact-home form{
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:var(--shadow);
}

.contact-home input,
.contact-home textarea{
    width:100%;
    padding:16px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:20px;
    font-family:Poppins,sans-serif;
    outline:none;
    transition:.3s;
}

.contact-home input:focus,
.contact-home textarea:focus{
    border-color:var(--primary);
}

.contact-home textarea{
    resize:none;
}


/*======================================
GOOGLE MAP
======================================*/

.map-section iframe{
    display:block;
    width:100%;
    border:none;
}


/*======================================
FOOTER
======================================*/

footer{
    background:#062b18;
    color:#fff;
    padding:80px 0 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.5fr;
    gap:40px;
}

.footer-logo{
    width:90px;
    margin-bottom:20px;
}

.footer-box h3{
    margin-bottom:20px;
    font-size:24px;
}

.footer-box p{
    color:#d8d8d8;
    margin-bottom:15px;
}

.footer-box ul li{
    margin-bottom:12px;
}

.footer-box ul li a{
    color:#d8d8d8;
}

.footer-box ul li a:hover{
    color:#7dffb0;
    padding-left:8px;
}

.social{
    margin-top:20px;
}

.social a{
    width:42px;
    height:42px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.10);
    color:#fff;
    margin-right:10px;
    transition:.4s;
}

.social a:hover{
    background:var(--primary);
    transform:translateY(-5px);
}

.copyright{
    margin-top:60px;
    padding:20px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.15);
    color:#ccc;
}


/*======================================
WHATSAPP BUTTON
======================================*/

.whatsapp{
    position:fixed;
    right:25px;
    bottom:25px;
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    font-size:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    z-index:999;
    transition:.4s;
}

.whatsapp:hover{
    transform:scale(1.1);
}


/*======================================
BACK TO TOP
======================================*/

#topBtn{
    position:fixed;
    right:25px;
    bottom:100px;
    width:50px;
    height:50px;
    border:none;
    background:var(--primary);
    color:#fff;
    border-radius:50%;
    cursor:pointer;
    display:none;
    z-index:999;
    font-size:18px;
    transition:.4s;
}

#topBtn:hover{
    background:var(--secondary);
    transform:translateY(-5px);
}


/*======================================
FLOATING SHAPES
======================================*/

.shape{
    position:fixed;
    border-radius:50%;
    opacity:.08;
    z-index:-1;
    animation:float 10s ease-in-out infinite;
}

.shape1{
    width:250px;
    height:250px;
    background:#00c853;
    left:-80px;
    top:150px;
}

.shape2{
    width:180px;
    height:180px;
    background:#0B8A43;
    right:-60px;
    top:300px;
}

.shape3{
    width:150px;
    height:150px;
    background:#8BC34A;
    left:40%;
    bottom:50px;
}

@keyframes float{

0%,100%{
    transform:translateY(0px);
}

50%{
    transform:translateY(-25px);
}

}


/*======================================
IMAGE HOVER
======================================*/

img{
    transition:.5s;
}

img:hover{
    filter:brightness(1.03);
}


/*======================================
CUSTOM SCROLLBAR
======================================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f2f2f2;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--secondary);
}



/*==============================
SLIDER DOTS
==============================*/

.slider-dots{

position:absolute;
bottom:35px;
left:50%;
transform:translateX(-50%);
display:flex;
gap:12px;
z-index:10;

}

.dot{

width:14px;
height:14px;
background:rgba(255,255,255,.5);
border-radius:50%;
cursor:pointer;
transition:.4s;

}

.dot:hover{

transform:scale(1.2);

}

.active-dot{

background:#0B8A43;
width:36px;
border-radius:20px;

}


/*======================================
LIGHTBOX
======================================*/

#lightbox{

position:fixed;

left:0;
top:0;

width:100%;
height:100%;

background:rgba(0,0,0,.95);

display:none;

justify-content:center;
align-items:center;

z-index:99999;

animation:fadeIn .4s;

}

#lightbox img{

max-width:90%;
max-height:85%;
border-radius:12px;
box-shadow:0 20px 60px rgba(0,0,0,.4);

}

#lightbox .close{

position:absolute;

top:30px;
right:40px;

font-size:45px;

color:#fff;

cursor:pointer;

transition:.3s;

}

#lightbox .close:hover{

color:#0B8A43;

}

#lightbox .prev,
#lightbox .next{

position:absolute;

top:50%;

transform:translateY(-50%);

font-size:50px;

color:#fff;

cursor:pointer;

padding:15px;

user-select:none;

transition:.3s;

}

#lightbox .prev{

left:25px;

}

#lightbox .next{

right:25px;

}

#lightbox .prev:hover,
#lightbox .next:hover{

color:#0B8A43;

transform:translateY(-50%) scale(1.2);

}