/* =========================
   CHERUPUSHPAM HIGH SCHOOL
   MODERN WEBSITE DESIGN
========================= */

:root{
  --primary:#0f4c81;
  --primary-dark:#08365b;
  --secondary:#1aa7c8;
  --accent:#f59e0b;
  --dark:#0f172a;
  --text:#475569;
  --light:#f8fafc;
  --white:#ffffff;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --shadow-hover:0 20px 40px rgba(0,0,0,.12);
  --radius:20px;
  --transition:.3s ease;
}

/* RESET */

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:#f5f7fb;
  color:var(--text);
  line-height:1.7;
  overflow-x:hidden;
}

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

a{
  text-decoration:none;
}

/* CONTAINER */

.container{
  width:min(1200px,92%);
  margin:auto;
}

/* HEADER */

.site-header{
  position:fixed;
  top:15px;
  left:50%;
  transform:translateX(-50%);
  width:min(1250px,95%);
  z-index:1000;

  background:rgba(255,255,255,.85);
  backdrop-filter:blur(20px);

  border-radius:20px;

  box-shadow:
  0 8px 30px rgba(0,0,0,.08);

  transition:.3s ease;
}
.site-header.scrolled{
  top:10px;
  box-shadow:
  0 15px 40px rgba(0,0,0,.15);
}
.site-header .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 0;
}

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

.logo img{
  width:70px;
  height:70px;
  object-fit:contain;
}

.logo h1{
  font-size:1.4rem;
  color:var(--dark);
}

.logo span{
  font-size:.85rem;
  color:#64748b;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:20px;
}

.nav-links{
  display:flex;
  list-style:none;
  gap:25px;
}

.nav-links a{
  color:var(--dark);
  font-weight:600;
  transition:.3s;
}

.nav-links a:hover{
  color:var(--primary);
}

.theme-toggle{
  border:none;
  background:#eef4ff;
  width:42px;
  height:42px;
  border-radius:50%;
  cursor:pointer;
}

/* HERO */

.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(8, 47, 73, 0.85),
      rgba(15, 76, 129, 0.65)
    ),
    url('assets/school-bg.jpeg');

  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;

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

  position: relative;
  overflow: hidden;
}


/* Background animation */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  animation: zoomBg 18s infinite alternate;
}


@keyframes zoomBg {

  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }

}



.hero-content {

  position: relative;
  z-index: 2;

  max-width: 850px;

  color:white;

  animation: fadeUp 1s ease;

}



@keyframes fadeUp {

  from {
    opacity:0;
    transform:translateY(40px);
  }

  to {
    opacity:1;
    transform:translateY(0);
  }

}



/* Badge */

.badge {

  display:inline-block;

  padding:10px 22px;

  background:
  rgba(255,255,255,.18);

  backdrop-filter:blur(10px);

  border:1px solid rgba(255,255,255,.3);

  border-radius:50px;

  font-size:15px;

  margin-bottom:25px;

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

}



/* Heading */

.hero h2 {

  font-size:clamp(35px,5vw,62px);

  line-height:1.15;

  font-weight:800;

  letter-spacing:-1px;

  margin-bottom:20px;

}



/* Paragraph */

.hero p {

  font-size:20px;

  max-width:650px;

  margin:auto;

  opacity:.95;

  line-height:1.7;

}



/* Buttons */

.hero-buttons {

  margin-top:35px;

  display:flex;

  justify-content:center;

  gap:18px;

  flex-wrap:wrap;

}



.btn-primary,
.btn-secondary {


  padding:14px 32px;

  border-radius:50px;

  font-size:16px;

  font-weight:600;

  text-decoration:none;

  transition:.3s;

}



/* Primary */

.btn-primary {

  background:white;

  color:#0f4c81;

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

}


.btn-primary:hover {

  transform:translateY(-4px);

}



/* Secondary */


.btn-secondary {

  border:2px solid white;

  color:white;

}


.btn-secondary:hover {

  background:white;

  color:#0f4c81;

  transform:translateY(-4px);

}





/* Mobile */

@media(max-width:600px){


.hero{

padding:80px 20px;

}


.hero h2{

font-size:36px;

}


.hero p{

font-size:17px;

}



.btn-primary,
.btn-secondary{

width:100%;

}



}

.hero-content{
  max-width:900px;
  animation:fadeUp 1s ease;
}

.badge{
  display:inline-block;
  padding:10px 20px;
  border-radius:40px;
  background:rgba(255,255,255,.15);
  color:white;
  backdrop-filter:blur(10px);
  margin-bottom:25px;
  font-weight:600;
}

.hero h2{
  color:white;
  font-size:4rem;
  line-height:1.15;
  margin-bottom:20px;
}

.hero p{
  color:white;
  font-size:1.2rem;
  max-width:700px;
  margin:auto;
  margin-bottom:35px;
}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

.btn-primary{
  background:var(--accent);
  color:white;
  padding:15px 30px;
  border-radius:50px;
  font-weight:700;
  transition:.3s;
}

.btn-primary:hover{
  transform:translateY(-3px);
}

.btn-secondary{
  border:2px solid white;
  color:white;
  padding:15px 30px;
  border-radius:50px;
  font-weight:700;
}

/* STATS */

.stats{
  width:min(1200px,92%);
  margin:-70px auto 80px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  position:relative;
  z-index:5;
}

.stat-card{
  background:white;
  padding:35px;
  border-radius:25px;
  text-align:center;
  box-shadow:var(--shadow);
  transition:.3s;
}

.stat-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-hover);
}

.stat-card h3{
  color:var(--primary);
  font-size:2rem;
}

.stat-card p{
  color:#64748b;
  font-weight:600;
}

/* PRINCIPAL */

.principal-section{
  padding:40px 0 80px;
}

.principal-card{
  width:min(1200px,92%);
  margin:auto;
  display:grid;
  grid-template-columns:350px 1fr;
  gap:50px;
  align-items:center;
  background:white;
  border-radius:30px;
  padding:40px;
  box-shadow:var(--shadow);
}

.principal-image img{
  border-radius:25px;
  height:400px;
  object-fit:cover;
  width:100%;
}

.principal-content h2{
  color:var(--primary);
  margin-bottom:20px;
  font-size:2rem;
}

/* COMMON SECTIONS */

.section{
  padding:90px 5%;
}

.light{
  background:#f8fafc;
}

.section-header{
  text-align:center;
  margin-bottom:50px;
}

.section-header h2{
  color:var(--dark);
  font-size:2.4rem;
  margin-bottom:10px;
}

.section-header p{
  color:#64748b;
}

/* CARDS */

.cards,
.staff-grid,
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.card,
.testimonial-card{
  background:white;
  border-radius:25px;
  padding:30px;
  box-shadow:var(--shadow);
  transition:.3s;
}

.card:hover,
.testimonial-card:hover{
  transform:translateY(-10px);
  box-shadow:var(--shadow-hover);
}

.card h4{
  color:var(--primary);
  margin-bottom:10px;
}

/* NEWS & EVENTS */

.news-events{
  width:min(1200px,96%);
  margin:40px auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}

.news-card,
.events-card{
  background:white;
  padding:35px;
  border-radius:25px;
  box-shadow:var(--shadow);
}

.news-card h2,
.events-card h2{
  color:var(--primary);
  margin-bottom:20px;
}

.news-card ul,
.events-card ul{
  list-style:none;
}

.news-card li,
.events-card li{
  padding:12px 0;
  border-bottom:1px solid #e2e8f0;
}

/* GALLERY */

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

.gallery-grid img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:20px;
  transition:.4s;
  cursor:pointer;
}

.gallery-grid img:hover{
  transform:scale(1.05);
}
/* IMAGE MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}
/* TESTIMONIALS */
.testimonials-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.testimonial-card{
    position:relative;
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
    transition:all .35s ease;
    overflow:hidden;
}

.testimonial-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,0.12);
}

.quote-icon{
    position:absolute;
    top:15px;
    right:20px;
    font-size:40px;
    color:rgba(15,76,129,0.08);
}

.testimonial-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:15px;
}

.testimonial-avatar{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #eef5fb;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.testimonial-user h4{
    margin:0;
    color:#0f172a;
    font-size:18px;
    font-weight:700;
}

.testimonial-user span{
    color:#64748b;
    font-size:14px;
}

.testimonial-rating{
    color:#fbbf24;
    font-size:18px;
    margin-bottom:15px;
    letter-spacing:2px;
}

.testimonial-message{
    color:#475569;
    line-height:1.8;
    font-size:15px;
    margin:0;
}

.empty-msg,
.error-msg{
    text-align:center;
    color:#64748b;
    padding:20px;
}
/* NEWSLETTER */

.newsletter{
  background:
  linear-gradient(135deg,
  var(--primary),
  var(--secondary));
  padding:90px 20px;
  text-align:center;
  color:white;
}

.newsletter-content{
  max-width:700px;
  margin:auto;
}

.newsletter h2{
  font-size:2.5rem;
  margin-bottom:10px;
}

.newsletter form{
  margin-top:25px;
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

.newsletter input{
  width:350px;
  max-width:100%;
  padding:16px;
  border:none;
  border-radius:50px;
}

.newsletter button{
  background:var(--accent);
  border:none;
  color:white;
  padding:16px 28px;
  border-radius:50px;
  cursor:pointer;
  font-weight:700;
}

/* FOOTER */

.site-footer{
  background:var(--dark);
  color:white;
  padding:70px 0 20px;
}

.footer-grid{
  width:min(1200px,92%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:40px;
}

.footer-grid h3,
.footer-grid h4{
  margin-bottom:15px;
}

.footer-grid ul{
  list-style:none;
}

.footer-grid li{
  margin-bottom:10px;
}

.footer-grid a{
  color:#cbd5e1;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem;
  padding: 1rem 30px 0; /* top | left-right | bottom */

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p{
  margin: 0;
}

.footer-credit a{
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.footer-credit a:hover{
  text-decoration: underline;
}

@media (max-width: 768px){
  .footer-bottom{
    flex-direction: column;
    text-align: center;
  }
}
/* LOADER */

.spinner{
  width:40px;
  height:40px;
  border:4px solid #e2e8f0;
  border-top:4px solid var(--primary);
  border-radius:50%;
  margin:auto;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  100%{
    transform:rotate(360deg);
  }
}

/* ANIMATION */

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* MOBILE */

@media(max-width:768px){

  .hero h2{
    font-size:2.3rem;
  }

  .hero p{
    font-size:1rem;
  }

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

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

  .nav-links{
  display:none;
}

.nav-links.active{
  display:flex;
  flex-direction:column;
  gap:15px;
}

  .stats{
    margin-top:-40px;
  }

  .section-header h2{
    font-size:2rem;
  }
}
/* STAFF SECTION */

#staffContainer {

  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
  margin-top: 30px;

}


.staff-card {

  background: #ffffff;
  border-radius: 20px;
  padding: 25px 20px;

  text-align:center;

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

  transition: all .35s ease;

  position:relative;
  overflow:hidden;

}


.staff-card::before {

  content:"";

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

  width:100%;
  height:5px;

  background:linear-gradient(
    90deg,
    #0f4c81,
    #1aa7c8
  );

}


.staff-card:hover {

  transform:translateY(-8px);

  box-shadow:
  0 20px 40px rgba(0,0,0,0.15);

}



.staff-img-wrapper {

  width:120px;
  height:120px;

  margin:0 auto 18px;

  border-radius:50%;

  padding:5px;

  background:
  linear-gradient(
    135deg,
    #0f4c81,
    #1aa7c8
  );

}


.staff-image {

  width:100%;
  height:100%;

  object-fit:cover;

  border-radius:50%;

  background:#f5f5f5;

}



.staff-info h4 {

  margin:10px 0 8px;

  font-size:18px;

  color:#0f172a;

  font-weight:700;

}



.designation {

  display:inline-block;

  padding:6px 15px;

  border-radius:20px;

  background:#e0f2fe;

  color:#0369a1;

  font-size:13px;

  font-weight:600;

}



.error-text {

 color:red;
 text-align:center;

}

.reveal{
  opacity:0;
  transform:translateY(60px);
  transition:all .8s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}
/* MAP SECTION */

.map-section{
  padding:80px 5%;
  background:#f8fafc;
}

.map-container{
  width:min(1200px,100%);
  margin:auto;

  border-radius:25px;
  overflow:hidden;

  box-shadow:
  0 15px 40px rgba(0,0,0,.08);

  transition:.4s ease;
}

.map-container:hover{
  transform:translateY(-5px);
  box-shadow:
  0 25px 50px rgba(0,0,0,.12);
}

.map-container iframe{
  width:100%;
  height:500px;
  border:none;
  display:block;
}
.location-card{
  position:absolute;
  left:30px;
  top:30px;
  z-index:10;

  width:320px;

  background:rgba(255,255,255,.95);
  backdrop-filter:blur(15px);

  padding:25px;

  border-radius:20px;

  box-shadow:
  0 15px 35px rgba(0,0,0,.15);

  display:flex;
  flex-direction:column;
  gap:15px;
}


.location-card h3{
  color:var(--primary);
  margin:0;
}


.location-card p{
  margin:0;
  line-height:1.6;
}


/* Fix button overlap */
.location-card .btn-primary{

  display:inline-flex;
  width:fit-content;

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

  padding:12px 22px;

  margin-top:10px;

  white-space:nowrap;

}

.map-container iframe{
  filter:saturate(1.1);
}

@media(max-width:768px){

  .location-card{

    position:relative;

    left:auto;
    top:auto;

    width:100%;

    margin-bottom:20px;
  }


  .location-card .btn-primary{

    width:100%;

  }

}

/* ===========================
   ACADEMIC HIGHLIGHTS DESIGN
=========================== */


.academic-cards{


display:grid;

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


gap:30px;

margin-top:45px;


}



.academic-card{


background:white;


border-radius:28px;


padding:35px 30px;


position:relative;


overflow:hidden;


box-shadow:
0 15px 35px rgba(0,0,0,.08);


transition:.4s;


}



.academic-card:after{


content:"";


position:absolute;


width:150px;

height:150px;


right:-50px;

bottom:-50px;


background:#e0f2fe;


border-radius:50%;


transition:.4s;


}



.academic-card:hover{


transform:translateY(-10px);


box-shadow:
0 25px 50px rgba(0,0,0,.15);


}




.academic-card:hover:after{


transform:scale(1.5);


}



.icon-box{


width:75px;

height:75px;


border-radius:22px;


display:flex;


align-items:center;

justify-content:center;


font-size:32px;


background:

linear-gradient(
135deg,
#0f4c81,
#1aa7c8
);


color:white;


margin-bottom:25px;


position:relative;

z-index:2;


}



.card-body{


position:relative;

z-index:2;


}





.card-body h3{

font-size:22px;
color:#0f172a;
margin-bottom:12px;

}


.card-body p{

font-size:15px;
line-height:1.7;
color:#64748b;

margin:0;

}




.card-body a{


display:inline-block;


margin-top:18px;


text-decoration:none;


font-weight:600;


color:#0f4c81;


}



.small-title{


color:#1aa7c8;

font-weight:700;


font-size:13px;


letter-spacing:2px;


}

.staff-btn-wrapper{

  text-align:center;

  margin-top:35px;

}


#viewAllStaffBtn{


  background:linear-gradient(
    135deg,
    #0f4c81,
    #1aa7c8
  );


  color:white;

  border:none;

  padding:12px 35px;

  border-radius:30px;

  font-size:15px;

  font-weight:600;

  cursor:pointer;


  transition:.3s;


}


#viewAllStaffBtn:hover{


  transform:translateY(-3px);


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


}

.about-section{

background:#f8fafc;

}



.about-wrapper{

display:flex;

align-items:center;

gap:60px;

}



.about-image-box{

position:relative;

flex:1;

}



.about-image-box img{


width:100%;

max-width:500px;

height:420px;

object-fit:cover;

border-radius:30px;


box-shadow:
0 25px 50px rgba(0,0,0,.15);

}



.experience-card{


position:absolute;

bottom:25px;

right:30px;


background:white;

padding:20px 30px;


border-radius:20px;


box-shadow:
0 15px 30px rgba(0,0,0,.15);


text-align:center;


}



.experience-card h3{


font-size:35px;

margin:0;

color:#0f4c81;


}



.experience-card p{


margin:5px 0;

color:#64748b;

}




.about-details{


flex:1;

}



.about-tag{


display:inline-block;


background:#e0f2fe;


color:#0369a1;


padding:8px 18px;


border-radius:30px;


font-size:14px;


font-weight:600;


}



.about-details h3{


font-size:38px;


margin:20px 0;


color:#0f172a;


}



.about-details p{


font-size:17px;

line-height:1.8;

color:#475569;


}





.about-features{


display:grid;


grid-template-columns:1fr;


gap:15px;


margin-top:30px;


}



.feature-card{


display:flex;

align-items:center;

gap:18px;


background:white;


padding:18px;


border-radius:18px;


box-shadow:

0 8px 25px rgba(0,0,0,.06);


transition:.3s;


}



.feature-card:hover{


transform:translateX(8px);


}



.icon{


width:50px;

height:50px;


display:flex;

align-items:center;

justify-content:center;


font-size:25px;


background:#f1f5f9;


border-radius:15px;


}



.feature-card h4{


margin:0;

color:#0f172a;


}



.feature-card p{


margin:4px 0 0;

font-size:14px;


}





@media(max-width:900px){


.about-wrapper{

flex-direction:column;

}


.about-image-box img{

height:300px;

}


.about-details h3{

font-size:28px;

}


}

.about-wrapper{

  display:flex;

  align-items:center;

  gap:40px;

  width:100%;

}


.about-image-box{

  width:33.33%;

  display:flex;

  justify-content:center;

  align-items:center;

  padding:15px;

}


.about-image-box img{

  width:100%;

  max-width:100%;

  aspect-ratio:4 / 3;

  height:auto;

  object-fit:cover;

  border-radius:25px;

  display:block;

}



.about-details{

  width:66.66%;

}

@media(max-width:900px){

  .about-wrapper{

    flex-direction:column;

  }


  .about-image-box,
  .about-details{

    width:100%;

  }


  .about-image-box img{

    max-width:420px;

  }

}

.menu-toggle{
    display:none;
    font-size:30px;
    background:none;
    border:0;
    cursor:pointer;
    color:#0f4c81;
    z-index:1001;
}


@media(max-width:768px){

.site-header{
    position:relative;
    z-index:1000;
}


.container{
    display:flex;
    align-items:center;
    justify-content:space-between;
}


.menu-toggle{
    display:block;
}


.main-nav{
    position:relative;
}


.nav-links{

    display:none;

    position:absolute;

    right:0;
    top:45px;

    width:230px;

    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:0 8px 25px rgba(0,0,0,.2);

    flex-direction:column;

    z-index:9999;

}


.nav-links li{
    margin:10px 0;
}


.nav-links.show{

    display:flex;

}


}
.affiliation-details {
  margin-top: 3px;
  line-height: 1.1;
}

.affiliation-details p {
  margin: 0;
  padding: 0;
}

.affiliation-details span {
  font-size: 14px;
  display: block;
}

