*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
    background-color: white;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    border-radius: 10px;
    margin: 20px auto;
    width: 85%;
    max-width: 1200px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.logo a img {
    width: 55px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo a:hover img {
    transform: scale(1.1);
}

.menu {
    display: flex;
    gap: 25px;
}

.menu > a {
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #000000;
    border-radius: 5px;
    transition: 0.3s;
}

.menu > a:hover {
    color: #007BFF;
    background-color: rgba(0, 123, 255, 0.08);
}

.menu .login-button{
    color: #ffffff;
    background-color:  #007BFF;
    border: none;
    padding: 8px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    gap: 60px;
    margin: 80px auto;
}

.home-content-text-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.home-content-text-buttons h1 {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.home-content-text-buttons p {
    font-size: 18px;
    font-weight: 300;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.home-content-text-buttons button {
    align-self: flex-start;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background-color:  #007BFF;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    width: 150px;
}

.home-content-text-buttons button:hover {
    background-color: #0062CC;
}

.home-content-image {
    flex: 1;
    max-width: 450px;
}

.home-content-image img {
    width: 100%;
    height: auto;
}

.slider-container {
    width: 85%;
    max-width: 1200px;
    margin: 80px auto;
    text-align: center;
}

.slider-container h2 {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
}

.home-image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.home-image-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    z-index: 5;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-wrapper .slide {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Aligns image to the top of the container */
    vertical-align: middle;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.slider-button:hover {
    background-color: #007BFF;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-button.prev {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.slider-dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: #007BFF;
    border-color: #0056b3;
}

.home-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    gap: 60px;
    margin: 80px auto;
}

.about-image {
    flex: 1;
    max-width: 450px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.home-about-text {
    flex: 1;
    margin: 0;
    width: auto;
}

.home-about-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.home-about-text p {
    font-size: 18px;
    font-weight: 300;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.home-mission-vision{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    gap: 60px;
    margin: 80px auto;
    padding: 20px;
}

.mission-vision{
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color:  #007BFF;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.mission-vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.home-number-stats{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    gap: 40px;
    margin: 80px auto;
    font-size: 16px;
    text-wrap: none;
}

.number-stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
    transition: transform 0.3s ease-in-out;
}

.number-stat:hover {
    transform: scale(1.08);
}

.teaches_from_to {
  font-size: 20px;
  font-weight: bold;
  color: rgb(0, 0, 0);
  font-family: Arial, sans-serif;
  text-align: center;
  justify-items: center;
  white-space: nowrap;
}

.timeline-section {
  padding: 100px 20px;
  text-align: center;
  min-height: 100vh; /* ensures full section height */
}

.timeline-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #222;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  letter-spacing: 1px;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
  max-width: 900px;
  gap: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
}

/* Vertical Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #007BFF;
  transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
  width: 100%;
  display: flex;
  margin: 40px 0;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}


/* Timeline Dot */
.timeline-dot {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 5px solid #007BFF;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 10px #007BFF;
}

.timeline-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  max-width: 420px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.timeline-card h3 {
  margin-bottom: 12px;
  color: #007BFF;
  font-size: 1.3rem;
}

.timeline-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
}
/* Gallery Section */

#school-gallery {
    max-width: 1100px;   /* controls overall width */
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

#public-gallery-container {
    max-width: 900px;   /* 👈 THIS limits gallery width */
    margin: 0 auto;     /* 👈 centers gallery */
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}


/* Apply Now Section */
.home-apply-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

/* Image */
.apply-now-image {
  max-width: 380px;
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.apply-now-image:hover {
  transform: scale(1.05);
}

/* Text Section */
.apply-now-text {
  max-width: 600px;
  text-align: left;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.apply-now-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007bff;
}

.apply-now-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
}

/* Button */
.apply-now-text button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.apply-now-text button:hover {
  background: #0056b3;
  transform: translateY(-3px);
}

/* Generic Animation Class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 992px) {
  .home-apply-now {
    flex-direction: column;
    text-align: center;
  }

  .apply-now-text {
    text-align: center;
  }

    .home-number-stats {
        flex-direction: column;
        gap: 50px;
    }
}

@media (max-width: 779px) {
    .navbar {
        width: 90%;
        padding: 15px 20px;
    }

    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #fff;
        width: 90%;
        margin: 0 auto;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .menu.active {
        max-height: 350px; /* Increased height to fit all items */
        padding: 10px 0;
    }

    .menu a {
        text-align: center;
        padding: 15px;
        width: 100%;
    }

    .login-button {
        width: 100%;
        padding: 15px;
        margin: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

  .timeline-container::before {
    left: 10px; /* move vertical line to the left */
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 20px;
    margin: 30px 0;
    left: 0 !important; /* reset positioning */
    justify-content: flex-start !important;
  }

  .timeline-item:nth-child(even) {
    left: 0; /* force even items to align left */
  }

  .timeline-dot {
    left: 10px; /* align dot with line */
    transform: translateX(0);
  }

  .timeline-card {
    width: 80%;
    text-align: left;
  }

  .home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .home-content-text-buttons {
    align-items: center;
  }

  .home-about {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .home-content-text-buttons button {
    align-self: center;
  }

  .home-about-text {
    text-align: center;
    width: 90%;
  }

  .home-mission-vision {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .mission-vision {
    width: 100%;
  }
}

@media (max-width: 992px) {
    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .home-content-text-buttons {
        align-items: center;
    }

    .home-about {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .home-content-text-buttons button {
        align-self: center;
    }

    .home-about-text {
        text-align: center;
        width: 90%;
    }

    .home-mission-vision {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .mission-vision {
        width: 100%;
    }
}

/* Responsive Navbar Menu */
@media (max-width: 779px) {
    .navbar {
        width: 100%;
        padding: 15px 20px;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
    }

    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #fff;
        width: 90%;
        margin: 0 auto;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .menu.active {
        max-height: 350px; /* Increased height to fit all items */
        padding: 10px 0;
    }

    .menu a {
        text-align: center;
        padding: 15px;
        width: 100%;
    }

    /* Ensure login buttons in mobile menu take full width */
    .menu .login-button {
        width: 100%;
        box-sizing: border-box;
        margin: 5px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* Footer Styles */

.footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 70px 0 0;
    width: 100%;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col .footer-logo {
    width: 90px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 18px;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #007BFF;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-col ul li a {
    text-transform: capitalize;
    color: #bbb;
    text-decoration: none;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #1a1a1a;
    background-color: #fff;
}

.footer-col ul li i {
    margin-right: 10px;
    color: #007BFF;
    width: 15px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

@media(max-width: 779px){
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
}
@media(max-width: 574px){
  .footer-col {
    width: 100%;
  }
}