*{
    margin: 0;
    padding: 0;
   font-family: "Poppins", sans-serif;
   scrollbar-width: none;
   top : 5px;
   /* background-color: #E3F2FD; */
  
}
body {
  /* background: linear-gradient(to bottom, #E3F2FD 0%, #E8F5E9 100%); */
  background-color: #111D4A;
   color: #1E293B;
}

.header {
  min-height: 100vh;
  width: 100%;
  background-image: url("images/school\ 1.webp"); /* ✅ first image only */
  background-size: cover;
  background-position: center;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav span{
    font-size: 40px;
    color: #fff;
}
nav img{
width: 100px;
left: 0;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
color: #fff;
text-decoration: none;
font-size: 13px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 63px;
    animation: scrolling 13s linear infinite;
}
.text-box h2{
    font-size: 45px;
}
.text-box h3{
    font-size: 30px;
}

@keyframes scrolling {
    from{
        transform: translate(81%);
    }
    to{
        transform: translate(-79%);
    }
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #ffffff3e;
}
/* nav .fa{
    display: none;
} */

@media(max-width: 700px){
    .header{ padding: 0;
    margin: 0;
    width: 100%;
    object-fit: contain;
    }
    
    nav img{
        margin-top: 5px;
        margin: 0 auto;
width: 75px;
}
.text-box h1{
    font-size: 25px;
}
.text-box h2{
    font-size: 15px;
}
.text-box h3{
    font-size: 15px;
}
.nav-links ul li{
   padding: 6px 6px; 
}
nav span{
    font-size: 10px;
    align-items: center;
    
}
.nav-links ul li{
    padding: 0;
    justify-content: space-between;
    margin-left: 3px;
}

/* .nav-links ul li{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.nav-links{
    display: flex;
    align-items: center;
} */
/* .nav-links{
    position: absolute; 
    display: flex;
    flex-direction: row;
    background: #f443f4;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: center;
    z-index: 2;
    transition: 1s;
} */
/* nav .fa{
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 25px;
    cursor: pointer;
} */

}
/*-------- course -----*/

.course{
   width: 80%;
   margin: auto;
   text-align: center;
   padding-top: 100px; 
}
.course h1,h2{ 
    color: white;
}
h2{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: white;
    font-size: 17px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 20%;
    /* background: #fff3f3; */
    /* background: #BBDEFB; */
    background: #E3F2FD;
    border-radius: 10px;
    margin: 2%;
    padding: 20px 12px;
    /* box-sizing: border-box; */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.5s;
}
.course-col p{
    color: #0F172A;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0,0.2);
    

}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
    .course h1{
        font-size: 20px;
    }
    .course h2{
        font-size: 17px;
    }
}

/*---------Facilities----------*/
.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.facilities-col{
    flex: 20;
    border-radius: 10px;
    margin-bottom: 20%;
    margin-left: 5%;
    position: relative;
    text-align: left;
    
}
.facilities h1,h2{
    color: white;
    font-size: 25px;
}
.facilities img{
    width: 100%;
    border-radius: 10px;
}
.facilities-col p{
    padding: 0;
}
.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
.facilities p{
     color: white;
}
@media(max-width: 700px){
    
    .facilities h1{
        font-size: 20px;
    }
}




/*--------------footer-----------*/
.footer{
  width: 100%;
  text-align: center;
  margin-top: 20px;  
}
@media(max-width: 700px){
    
    .footer h2{
        font-size: 20px;
    }
    .course-col .fa{
        display: flex;
        flex-direction: column;
        font-size: medium;
    }

}
.course-col img{
    width: 60px;
    cursor: pointer;
}
.footer-icons{
    display: flex;
    flex-direction: column;
}


/* staff slider */
/* staff slider */
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  height: 100vh;                 /* Reduced from 100vh – better for placement in page flow */
  max-width: 100vw;
  position: relative;           /* ← CRITICAL: This makes child absolute elements position relative to the slider */
  margin: 50px auto;            /* Optional: Adds space above/below and centers horizontally */
  background: #000;             /* Optional: Dark overlay if images are bright */
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navigation Buttons – Now correctly centered on the slider */
.slider-container::scroll-button(left) {
  content: "❮";
  position: absolute;
  top: 280%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(17, 29, 74, 0.8);  /* Your dark blue (#111D4A) with transparency */
  color: white;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;                       /* Round buttons – modern & neat */
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background-color 0.3s;
  left: 20px;
}

.slider-container::scroll-button(right) {
  content: "❯";
  position: absolute;
  top: 280%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(17, 29, 74, 0.8);  /* Your dark blue (#111D4A) with transparency */
  color: white;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;                       /* Round buttons – modern & neat */
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background-color 0.3s;
  right: 20px;
}



.slider-container::before:hover,
.slider-container::after:hover {
  background-color: rgba(0, 123, 255, 0.9); /* Bright blue on hover for feedback */
}
@media (max-width: 700px) {
  .slider-container {
    height: 40vh;               /* Shorter on mobile */
  }
 .slider-container::scroll-button(right), .slider-container::scroll-button(left)
  { display: none; content: none; /* ensures they don’t render */ }

.slider-container .slide { animation: slideShow 12s infinite; } @keyframes slideShow { 0% { transform: translateX(0%); } 30% 
{ transform: translateX(0%); } 33% { transform: translateX(-100%); } 63% { transform: translateX(-100%); } 66% 
{ transform: translateX(-200%); } 100% 
{ transform: translateX(-200%); } }

 .slide img {
    object-fit: contain;        /* Forces full image visible on phones */
  }
  
}
.staff-title {
  text-align: center;
  margin: 40px 0 20px 0;   /* Space above and below */
  color: white;            /* Matches your other headings */
}

.staff-title h2 {
  font-size: 36px;
  margin: 10px 0;
  font-weight: 600;
}

/* Smaller on mobile */
@media (max-width: 700px) {
  .staff-title h2 {
    font-size: 20px;
  }
  .gallery-title {
    margin: 30px 0 15px 0;
  }
}

