
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}


/* TOP BAR */

.topbar{
background:#111;
color:#eee;
display:flex;
justify-content:space-between;
padding:8px 40px;
font-size:14px;
}

/* HEADER */

header{
background:#002147;
color:white;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
}

header h1{
font-size:24px;
}

nav a{
color:white;
margin:0 15px;
text-decoration:none;
font-weight:bold;
}

/* HERO CONTENT BOX */
hero{
height:70vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:white;
 margin-top: -5px;


}

.hero-content{

padding:40px;

border-radius:8px;
}

.hero h2{
font-size:45px;
margin-bottom:15px;
color:#002147;
}

.hero button{
padding:12px 25px;
border:none;
background:#f4b400;
font-size:16px;
cursor:pointer;
}


/* BUTTON */

.read-more-btn{
  display:inline-block;
  margin-top:25px;
  padding:14px 32px;
  border-radius:30px;
  text-decoration:none;
  font-size:16px;
  background:linear-gradient(135deg,#007BFF,#00c6ff);
  color:white;
  transition:0.3s ease;
  box-shadow:0 5px 20px rgba(0,123,255,0.4);
}

.read-more-btn:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 30px rgba(0,123,255,0.6);
}

/* ANIMATION */

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

/* MOBILE */

@media(max-width:768px){

  .hero-content{
    padding:25px;
  }

  .hero-content h2{
    font-size:34px;
  }

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

}/* SECTIONS */

.section{
padding:70px 40px;
background:white;
}

.section:nth-child(even){
background:#f7f7f7;
}

.section h2{
text-align:center;
margin-bottom:30px;
color:#002147;
}

/* GRID */

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

.card{
background:white;
padding:20px;
border-radius:8px;
box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

/* STATS */

.stats{
display:flex;
justify-content:space-around;
text-align:center;
padding:50px;
background:#002147;
color:white;
}

.stats h3{
font-size:40px;
}

/* GALLERY */

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

.gallery img{
width:100%;
border-radius:5px;
}

/* CTA */

.cta{
text-align:center;
background:#f4b400;
padding:60px;
}

.cta button{
padding:15px 30px;
font-size:18px;
border:none;
cursor:pointer;
}

/* FOOTER */

footer{
background:#111;
color:white;
padding:50px;
}

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

footer a{
color:#ddd;
text-decoration:none;
display:block;
margin:5px 0;
}

.copyright{
text-align:center;
margin-top:30px;
border-top:1px solid #444;
padding-top:20px;
}

/* SCHOOL BADGE - DESKTOP */

.school-badge{
  width:80px;
  height:80px;
  object-fit:contain;
  display:block;
  margin-left:30px; /* slight move from left */
  margin-bottom:15px;
  background:none;
  box-shadow:none;
  padding:0;
}

@media (max-width:768px){

  .school-badge{
    width:60px;
    height:60px;
    margin-left:20px;
  }

}

.headteacher-section{
padding:60px 20px;
background:#f7f9fc;
text-align:center;
}

.section-title{
font-size:32px;
margin-bottom:40px;
color:#222;
animation:fadeDown 1s ease;
}

.headteacher-container{
display:flex;
flex-wrap:wrap;
align-items:center;
justify-content:center;
gap:40px;
max-width:1000px;
margin:auto;
animation:fadeUp 1.2s ease;
}

.headteacher-image img{
width:300px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.headteacher-text{
max-width:500px;
text-align:left;
}

.message{
font-size:18px;
line-height:1.7;
color:#444;
margin-bottom:20px;
}

.values{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.value{
display:flex;
align-items:center;
gap:10px;
background:white;
padding:10px 15px;
border-radius:8px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
transition:0.3s;
}

.value i{
color:#0a66c2;
font-size:20px;
}

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

/* Animations */

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

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


/* SECTION */

.school-intro{
    font-family: Arial, sans-serif;
    width:100%;
    padding:40px 20px;
    background:#f9fafc;
}

/* CONTAINER */

.intro-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    gap:40px;
}

/* IMAGE */

.image-container{
    flex:1;
}

.image-container img{
    width:100%;
    height:auto;
    display:block;
}

/* SECTION */

.school-intro{
    font-family:Arial, sans-serif;
    width:100%;
    margin:auto;
}

/* IMAGE CONTAINER */

.image-container{
    position:relative;
    width:100%;
}

.image-container img{
    width:100%;
    height:auto;
    object-fit:cover;
    display:block;
}

/* BLUR TEXT */

.blur-text{
    position:absolute;
    bottom:30px;
    left:30px;

    padding:12px 25px;

    font-size:1.8rem;
    font-weight:bold;
    color:white;

    backdrop-filter:blur(6px);
    background:rgba(0,0,0,0.35);

    border-radius:8px;
}

/* CONTENT */

.content-container{
    max-width:1000px;
    margin:auto;
    padding:30px 20px;
}

.sub-heading{
    color:#0077c2;
    font-size:1.1rem;
    border-bottom:3px solid #0077c2;
    display:inline-block;
}

.main-title{
    font-size:2.2rem;
    color:#1a2b48;
    margin-top:10px;
}

.description{
    margin-top:15px;
    color:#555;
    line-height:1.7;
    font-size:1.1rem;
}

/* MOBILE */

@media(max-width:768px){

.image-container img{
    height:260px;
}

.blur-text{
    font-size:1.2rem;
    left:15px;
    bottom:15px;
}

.main-title{
    font-size:1.7rem;
}

}


.admin-section{
padding:80px 20px;
background:#f5f7fb;
}

.admin-wrapper{
max-width:1100px;
margin:auto;
display:flex;
flex-direction:column;
gap:40px;
}

/* PROFILE CARD */

.admin-profile{
display:flex;
gap:30px;
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
border-left:6px solid #002147;
transition:0.3s;
}

.admin-profile:hover{
transform:translateY(-4px);
}

/* IMAGE */

.admin-photo img{
width:160px;
height:160px;
object-fit:cover;
border-radius:8px;
}

/* TEXT */

.admin-info{
flex:1;
}

.admin-info h3{
color:#002147;
margin-bottom:10px;
}

.admin-message{
color:#444;
margin-bottom:10px;
line-height:1.6;
}

/* DROPDOWN */

.extra-text{
display:none;
color:#555;
line-height:1.6;
margin-top:10px;
}

/* BUTTON */

.admin-btn{
margin-top:10px;
padding:8px 18px;
background:#002147;
color:white;
border:none;
border-radius:20px;
cursor:pointer;
}

.admin-btn:hover{
background:#004080;
}

/* MOBILE */

@media(max-width:768px){

.admin-profile{
flex-direction:column;
text-align:center;
}

.admin-photo img{
width:130px;
height:130px;
margin:auto;
}

}








/* ACADEMIC IMAGE CARDS */

.academics-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
max-width:1100px;
margin:auto;
}

.academic-card{
position:relative;
height:260px;
border-radius:10px;
overflow:hidden;
box-shadow:0 8px 25px rgba(0,0,0,0.1);
cursor:pointer;
}

.academic-card img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* BLUR OVERLAY */

.card-overlay{
position:absolute;
bottom:0;
left:0;
width:100%;

padding:20px;

color:white;

background:rgba(0,0,0,0.45);
backdrop-filter:blur(5px);

transition:0.3s;
}

.card-overlay h3{
margin-bottom:8px;
font-size:22px;
}

.card-overlay p{
font-size:15px;
line-height:1.5;
}

/* HOVER EFFECT */

.academic-card:hover img{
transform:scale(1.05);
transition:0.5s;
}

/* MOBILE */

@media(max-width:768px){

.academic-card{
height:220px;
}

.card-overlay h3{
font-size:20px;
}

.card-overlay p{
font-size:14px;
}

}






/* SCHOOL FACILITIES IMAGE CARDS */

.facilities-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
max-width:1100px;
margin:auto;
}

.facility-card{
position:relative;
height:260px;
border-radius:10px;
overflow:hidden;
box-shadow:0 8px 25px rgba(0,0,0,0.1);
cursor:pointer;
transition:0.3s;
}

.facility-card img{
width:100%;
height:100%;
object-fit:cover;
display:block;
transition:0.5s;
}

/* BLUR OVERLAY */

.facility-card .card-overlay{
position:absolute;
bottom:0;
left:0;
width:100%;

padding:20px;

color:white;

background:rgba(0,0,0,0.45);
backdrop-filter:blur(5px);

transition:0.3s;
}

.facility-card .card-overlay h3{
margin-bottom:8px;
font-size:22px;
}

.facility-card .card-overlay p{
font-size:15px;
line-height:1.5;
}

/* HOVER EFFECT */

.facility-card:hover img{
transform:scale(1.05);
}

/* MOBILE */

@media(max-width:768px){

.facility-card{
height:220px;
}

.facility-card .card-overlay h3{
font-size:20px;
}

.facility-card .card-overlay p{
font-size:14px;
}

}

/*

css for stats

*/


.stats{
display:flex;
justify-content:space-around;
align-items:center;
text-align:center;
padding:80px 20px;
background:#002147;
color:white;
flex-wrap:wrap;
gap:30px;
}

.stats h3{
font-size:48px;
margin-bottom:10px;
}

.stats p{
font-size:18px;
}

/* MOBILE */

@media(max-width:768px){
.stats h3{
font-size:36px;
}
.stats p{
font-size:16px;
}
}






/* STUDENT LIFE GRID */

.student-life-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  max-width:1100px;
  margin:auto;
}

/* CARD */

.life-card{
  position:relative;
  height:260px;
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 8px 25px rgba(0,0,0,0.1);
}

/* IMAGE */

.life-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:0.5s;
}

/* BLUR OVERLAY */

.life-overlay{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:20px;

  color:white;

  background:rgba(0,0,0,0.4);
  backdrop-filter:blur(6px);

  transition:0.3s;
}

/* TEXT */

.life-overlay h3{
  font-size:22px;
  margin-bottom:8px;
}

.life-overlay p{
  font-size:15px;
  line-height:1.5;
}

/* HOVER EFFECT (DESKTOP ONLY FEEL) */

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

.life-card:hover .life-overlay{
  background:rgba(0,0,0,0.55);
}

/* MOBILE OPTIMIZATION */

@media(max-width:768px){

  .life-card{
    height:220px;
  }

  .life-overlay{
    padding:15px;
  }

  .life-overlay h3{
    font-size:20px;
  }

  .life-overlay p{
    font-size:14px;
  }

}






/* MVVM SECTION */

.mvvm-section{
  background:#f7f9fc;
}

/* GRID */

.mvvm-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  max-width:1100px;
  margin:auto;
}

/* CARD */

.mvvm-card{
  background:white;
  padding:25px;
  border-radius:12px;
  text-align:center;
  box-shadow:0 8px 25px rgba(0,0,0,0.08);
  transition:0.3s;
  position:relative;
  overflow:hidden;
}

/* ICON */

.mvvm-card i{
  font-size:30px;
  color:#002147;
  margin-bottom:15px;
}

/* TITLE */

.mvvm-card h3{
  margin-bottom:10px;
  color:#002147;
}

/* TEXT */

.mvvm-card p{
  color:#555;
  font-size:15px;
  line-height:1.6;
}

/* HOVER EFFECT */

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

/* MOBILE */

@media(max-width:768px){

  .mvvm-card{
    padding:20px;
  }

  .mvvm-card i{
    font-size:26px;
  }

  .mvvm-card h3{
    font-size:18px;
  }

  .mvvm-card p{
    font-size:14px;
  }

}







/* NEWS SECTION */

.news-section{
  background:#f7f9fc;
}

/* GRID */

.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  max-width:1100px;
  margin:auto;
}

/* CARD */

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

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

/* IMAGE */

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

/* CONTENT */

.news-content{
  padding:20px;
}

/* DATE */

.news-date{
  font-size:13px;
  color:#888;
}

/* TITLE */

.news-content h3{
  margin:10px 0;
  color:#002147;
  font-size:18px;
}

/* TEXT */

.news-content p{
  font-size:14px;
  color:#555;
  line-height:1.5;
}

/* BUTTON */

.news-btn{
  display:inline-block;
  margin-top:12px;
  text-decoration:none;
  color:#007BFF;
  font-weight:bold;
}

/* VIEW MORE */

.news-more{
  text-align:center;
  margin-top:30px;
}

.news-more a{
  display:inline-block;
  padding:12px 30px;
  background:#002147;
  color:white;
  text-decoration:none;
  border-radius:25px;
  transition:0.3s;
}

.news-more a:hover{
  background:#004080;
}

/* MOBILE */

/* MOBILE HORIZONTAL SMALL CARDS */
@media (max-width: 768px) {
  .news-grid {
    display: flex;                  /* horizontal layout */
    overflow-x: auto;               /* scrollable */
    gap: 10px;                      /* space between cards */
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  .news-card {
    flex: 0 0 45%;                  /* two cards in viewport with some margin */
    min-width: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
  }

  .news-card img {
    height: 100px;                   /* smaller images */
    object-fit: cover;
  }

  .news-content {
    padding: 10px;                    /* smaller padding */
  }

  .news-date {
    font-size: 11px;                  /* smaller date */
  }

  .news-content h3 {
    margin: 6px 0;
    font-size: 14px;                  /* smaller title */
  }

  .news-content p {
    font-size: 12px;                  /* smaller excerpt */
    line-height: 1.3;
    height: 34px;                     /* limit paragraph height to 1-2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-btn {
    font-size: 12px;                  /* smaller button text */
    margin-top: 6px;
  }
}

.news-card {
  cursor: pointer;
}