/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Navbar */
header {
  background: #1D3557;
  color: white;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  text-decoration: underline;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-area img {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  object-fit: contain;
  margin-right: 10px;
}
.school-name {
  font-size: 30px;
  font-weight: 700;
  color: white;
}

/* Hero */

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  
}

.hero {
  height: 50vh;
  width: 100%;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
  transition: background-image 1s ease-in-out; /* Smooth fade */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background: #8B2E2E;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
    font-weight: bold;
    animation: fadeInUp 1.8s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.btn:hover {
  background: #457B9D;
}

.hero-slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active, .dot:hover {
  background: #ff9800;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section:nth-child(even) {
  background: #f9f9f9;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1D3557;
}

.section p {
  max-width: 800px;
  margin: auto;
}

/* Programs */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card {
  background: #8B2E2E;
  color: #ccc;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 300px;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-10px);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Admissions Section*/
.admissions {
  background: #003366 url('images/admission-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.admissions-container {
  max-width: 800px;
  margin: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.admissions h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #cc7a00;
}

.admissions p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.btn-admission {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-admission:hover {
  background: #cc7a00;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.contact-form button {
  align-self: flex-start;
}

.contact-info {
  margin-top: 20px;
  font-size: 1rem;
}

/* Highlight Section */
.highlight {
  background: #003366;
  color: white;
}

/* Testimonials */
.testimonials {
  background: #f0f4ff;
  padding: 60px 20px;
}

.testimonials h2 {
  color: #003366;
  margin-bottom: 30px;
}

.testimonial-carousel {
  max-width: 700px;
  margin: auto;
  position: relative;
}

.testimonial {
  display: none;
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
}

.testimonial.active {
  display: block;
}

.testimonial h4 {
  margin-top: 15px;
  font-weight: bold;
  color: #003366;
}

.testimonial-dots {
  margin-top: 20px;
  text-align: center;
}

.testimonial-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.testimonial-dots .dot.active {
  background: #004aad;
}

/* Footer */
footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

footer p {
  margin: 10px 0;
  font-size: 14px;
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #8B2E2E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ff9800;
  color: #fff;
  transform: scale(1.1);
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 24px;
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Responsive */
    @media (max-width: 768px) {
      .hamburger {
    display: flex;
    margin-left: auto;
      }
      header {
        flex-direction: column;
        text-align: center;
      }
      header img {
        margin-bottom: 10px;
      }
        .navbar {
            flex-direction: column;
            gap: 10px;
        }
        .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    height: 100vh;
    width: 200px;
    background: #1D3557;
    padding: 20px 10px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }
  .nav-links.show {
    display: flex;
    right: 0;
  }
  .nav-links li {
    margin: 10px 0;
  }
  /* Animate hamburger to X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
      .container {
        margin: 10px;
        padding: 15px;
      }
    }