
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f6f9;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #8B4513;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.school-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo h2 {
  margin: 0;
  font-size: 20px;
}

.logo small {
  font-size: 12px;
  color: #ffd700;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: gold;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0b3c5d;
    width: 200px;
    padding: 20px;
    border-radius: 0 0 0 10px;
  }
  .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
  align-items: center;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: gold;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .social-icons {
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }
}

/* Hero Section - Full Width */
.hero {
  width: 100%;
  background: #0b3c5d;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide styling */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Image styling - covers entire area without distortion */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(1); /* Remove any dimming */
}

/* REMOVED dark overlay - this was making images faded */
.slide-overlay {
  display: none; /* Completely remove the dark overlay */
}

/* Hero text overlay - made cleaner without background */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  width: 80%;
  max-width: 800px;
  padding: 20px;
  /* Removed background and blur that was causing faded look */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-out;
  pointer-events: none;
}

.hero-text h1 {
  font-size: clamp(32px, 6vw, 60px);
  margin-bottom: 15px;
  color: white;
  font-weight: 700;
}

.hero-text p {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
}

/* Navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 20;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: gold;
  color: #0b3c5d;
  transform: translateY(-50%) scale(1.1);
  border-color: gold;
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* Slide indicators */
.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator.active {
  background: gold;
  transform: scale(1.2);
  border-color: white;
}

.indicator:hover {
  background: white;
}

/* Sections with alternating backgrounds */
.section {
  padding: 80px 10%;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.section:nth-child(odd) {
  background-color: #ffffff;
}

.section:nth-child(even) {
  background-color: #f0f7fa;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  margin-bottom: 40px;
  font-size: 32px;
  color: #0b3c5d;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #8B4513;
  border-radius: 2px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
}

/* Footer */
footer {
  background: #8B4513;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: gold;
}

.footer-info p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-info a {
  color: gold;
  text-decoration: none;
  font-size: 12px;
}

.footer-info a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
}

/* Admission Banner */
.admission-banner {
  background: gold;
  color: black;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Leadership */
.leader-card {
  text-align: center;
  transition: 0.5s;
}

.leader-card:hover {
  transform: scale(1.05);
}

.leader-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid gold;
}

/* Notice Board */
.notice-container {
  height: 200px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.scrolling-text {
  animation: scrollUp 10s linear infinite;
  line-height: 2;
  text-align: left;
  font-size: 16px;
}

@keyframes scrollUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

.download-list {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-list h3 {
  margin-bottom: 15px;
  color: #0b3c5d;
}

.download-list ul {
  list-style: none;
  padding: 0;
}

.download-list li {
  margin: 10px 0;
}

.download-list a {
  color: #0b3c5d;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s;
  display: inline-block;
}

.download-list a:hover {
  background: #ffd700;
  color: #000;
}

.admin-upload {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-upload input,
.admin-upload button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.admin-upload button {
  background: #0b3c5d;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.admin-upload button:hover {
  background: #0a2a40;
}

/* Carousel base (students & teachers) */
.carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollStudents 20s linear infinite;
}

.carousel-track img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.carousel-track img:hover {
  transform: scale(1.1);
}

@keyframes scrollStudents {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Carousel items for teachers */
.carousel-item {
  flex: 0 0 auto;
  width: 250px;
  text-align: center;
}

.carousel-item img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.carousel-item img:hover {
  transform: scale(1.05);
}

.teacher-name {
  margin-top: 10px;
  font-weight: 600;
  color: #0b3c5d;
  font-size: 1rem;
}

.teacher-subject {
  font-size: 0.85rem;
  color: #8B4513;
  margin-bottom: 10px;
}

/* Enhanced Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: left;
  font-weight: 500;
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px black;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Flipbook */
.flip-btn {
  padding: 12px 25px;
  background: #0b3c5d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.flip-btn:hover {
  background: #0a2a40;
}

.flipbook-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.flipbook-content {
  background: white;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  border-radius: 10px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

/* Top Bar */
.top-bar {
  background: #1a4b77;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 3000;
  cursor: pointer;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

/* Admission Form Enhancements */
.admission-form {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admission-form input,
.admission-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.admission-form textarea {
  resize: vertical;
  font-family: 'Poppins', sans-serif;
}

.admission-form .file-input {
  text-align: left;
  margin-bottom: 15px;
}

.admission-form .file-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #0b3c5d;
}

.admission-form .file-input input[type="file"] {
  padding: 5px;
  border: 1px dashed #ccc;
  border-radius: 5px;
  width: 100%;
}

.admission-form button {
  background: #0b3c5d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.admission-form button:hover {
  background: #0a2a40;
}

/* Preview Area */
.preview-area {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
}

.preview-area h3 {
  color: #0b3c5d;
  margin-bottom: 20px;
  border-bottom: 2px solid gold;
  padding-bottom: 10px;
}

#previewContent {
  line-height: 1.8;
}

#previewContent img {
  max-width: 150px;
  border-radius: 10px;
  margin: 10px 0;
  border: 2px solid #8B4513;
}

#downloadAppBtn {
  margin-top: 20px;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider-container {
    height: 60vh;
    min-height: 350px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .slider-arrow.prev {
    left: 10px;
  }
  
  .slider-arrow.next {
    right: 10px;
  }
  
  .hero-text {
    width: 90%;
    padding: 15px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 18px;
  }
  
  .slide-indicators {
    bottom: 20px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .section {
    padding: 60px 5%;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 50vh;
    min-height: 300px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
/* ABOUT SECTION */

.about-school{
padding:70px 20px;
background:#f9fafc;
}

.about-container{
display:flex;
align-items:center;
justify-content:space-between;
gap:40px;
max-width:1100px;
margin:auto;
}

.about-text{
flex:1;
}

.about-text h2{
font-size:34px;
color:#1e3a8a;
margin-bottom:15px;
}

.about-text p{
font-size:16px;
line-height:1.7;
color:#555;
margin-bottom:15px;
}

.about-btn{
display:inline-block;
padding:12px 25px;
background:#2563eb;
color:white;
text-decoration:none;
border-radius:6px;
margin-top:10px;
}

.about-btn:hover{
background:#1e40af;
}

.about-image{
flex:1;
}

.about-image img{
width:100%;
border-radius:10px;
box-shadow:0 10px 20px rgba(0,0,0,0.15);
}



/* WHY CHOOSE SECTION */

.why-school{
padding:70px 20px;
background:#eef2ff;
text-align:center;
}

.section-title{
font-size:34px;
color:#1e3a8a;
margin-bottom:40px;
}

.why-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:25px;
max-width:1100px;
margin:auto;
}

.why-card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.3s;
}

.why-card:hover{
transform:translateY(-8px);
}

.why-card h3{
color:#1e3a8a;
margin-bottom:10px;
}

.why-card p{
color:#555;
font-size:15px;
line-height:1.6;
}



/* MOBILE RESPONSIVE */

@media(max-width:768px){

.about-container{
flex-direction:column;
text-align:center;
}

}