body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.p-t-container {
    max-width: 1200px;
    margin: auto;
    padding-top: 30px;

}

.announcement {
    background-color: #004aad;
    color: #fff;
    padding: 10px 0;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.p-one {
    text-align: center;
    background: #ffffff;
    padding: 0px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.welcome-text .small {
    font-size: 20px;
    color: #777;
    letter-spacing: 1px;
}

.welcome-text .large {
    font-size: 40px;
    font-weight: bold;
    margin: 10px 0;
    color: #004aad;
}

.description {
    font-size: 18px;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.8;
    color: #555;
}

.admission-btn-container {
    margin-top: 20px;
}

.admission-btn {
    display: inline-block;
    background-color: #004aad;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 25px;
    text-decoration: none;
}

.admission-btn:hover {
    background-color: #00338e;
}

/* 🔄 Image Slider Styling */
.image-slider-container {
    margin-top: 40px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
}

.image-slider-container::-webkit-scrollbar {
    height: 6px;
}
.image-slider-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.image-slider {
    display: flex;
    gap: 20px;
}

.image-slider img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.image-slider img:hover {
    transform: scale(1.05);
}
/* navbar */


.nav-links li {
    margin: 0;
  }

  .nav-links a {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    display: inline-block;
  }

  .fees-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
  }

  .gallery-btn {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
  }

  .test-btn {
    background: linear-gradient(135deg, #7F00FF, #E100FF);
  }

  .admission-btn-nav {
    background: linear-gradient(135deg, #00b09b, #96c93d);
  }

  .nav-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
  }

  .right-nav {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
  }

  @media (max-width: 768px) {
    .nav-container {
      flex-direction: column;
      align-items: center;
    }

    .left-nav {
      margin-bottom: 10px;
    }

    .right-nav {
      font-size: 18px;
      margin-top: 10px;
    }

    .nav-links {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      flex-wrap: nowrap; 
      gap: 10px;
    }

    .nav-links a {
      padding: 8px 16px;
      font-size: 14px;
      font-weight: normal;
    }

    .translate-btn {
      font-size: 12px;
      padding: 6px 12px;
    }
  }

/* page two */


.achievementss {
  background: #f8f9fa; 
  color: black;
  text-align: center;
  padding: 60px 20px;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.achievement-card {
  background: white;
  border: 1px solid #ddd;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 280px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.icon {

  font-size: 36px;
  margin-bottom: 15px;
  color: #008cff; 
  transition: transform 0.3s ease-in-out;
}

.achievement-card:hover .icon {
  transform: scale(1.1);
  color:#279dfd;
}

.number {
  font-size: 2rem;
  font-weight: bold;
  color: black;
}

.text {
  font-size: 1.1rem;
  margin-top: 8px;
  font-weight: 500;
  color:black;
}

@media (max-width: 1024px) {
  .grid {
      flex-direction: column;
      align-items: center;
  }
  
  .achievement-card {
      width: 90%;
  }
}

@media (max-width: 768px) {
  .title {
      font-size: 1.8rem;
  }

  .achievement-card {
      padding: 20px;
      width: 100%;
  }

  .icon {
      font-size: 32px;
  }

  .number {
      font-size: 1.8rem;
  }

  .text {
      font-size: 1rem;
  }
}


/* page three */

main-content {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2); /* Premium Soft Gradient */
    padding: 60px 20px;
    text-align: center;
}

.about-section, .offerings, .legacy {
    max-width: 1200px;
    margin: 0 auto 50px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.about-section:hover, .offerings:hover, .legacy:hover {
    transform: translateY(-5px);
}

h2 {
    font-size: 2rem;
    color: black;
    margin-bottom: 15px;
}

p {
    font-size: 1rem;
    color: black;
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.4rem;
    color: black;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-section, .offerings, .legacy {
        padding: 30px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* page four */

.p_two {
  background: linear-gradient(to right, #000000, #434343, #f39c12);
  padding: 50px 0;
  text-align: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease-in-out;
}

.box:hover {
  transform: translateY(-8px);
}

.box h1 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.text {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.icon img {
  width: 60px;
  height: auto;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .container {
      flex-direction: column;
      align-items: center;
  }
}

/* page five */


.topper-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background: #ffffff;
    text-align: center;
    flex-wrap: wrap;
}
.topper-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
}
.topper-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}


@media (max-width: 600px) {
    .topper-section {
        flex-direction: column;
        align-items: center;
    }
}


/* Scrollable Topper List */
.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.student-grid {
    display: flex;
    gap: 15px;
}

.student-box {
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.student-box img {
    width: 200px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
}

.student-box>h4{
    color: black;
}


.student_box>img{
width: 100%;
}

/* page six */

        h2 {
            text-align: center;
            color: #333;
            margin: 20px 0;
            font-size: 2em;
        }

        .topper-section {
            margin-bottom: 40px;
            padding: 0;
        }

        .topper-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh; /* Ensure each box takes full viewport height */
        }

        .topper-box {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            padding: 20px;
            width: 100%;
            max-width: 400px;
            margin: 20px auto;
            opacity: 0;
            transform: scale(0.8);
            transition: opacity 0.5s ease, transform 0.5s ease;
            box-sizing: border-box;
            min-height: calc(100vh - 80px); /* Adjust for header and margins */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .topper-box.visible {
            opacity: 1;
            transform: scale(1);
        }

        .topper-box img {
            width: 100%;
            height: 400px;
            max-height: 600px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .topper-box p {
            margin: 8px 0;
            color: #555;
            font-size: 1.1em;
        }

        .topper-box h4 {
            margin: 8px 0;
            color: #333;
            font-size: 1.2em;
        }

        .scroll-container {
            overflow: hidden;
            width: 100%;
            position: relative;
        }

        .student-grid {
            display: flex;
            white-space: nowrap;
            will-change: transform;
        }

        .student-box {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            padding: 15px;
            margin: 10px;
            width: 200px;
            flex-shrink: 0;
        }

        .student-box img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 10px;
        }

        .student-box p, .student-box h4 {
            margin: 5px 0;
            color: #555;
        }

        .student-box h4 {
            font-size: 1em;
        }

        .student_box {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            padding: 20px;
            margin: 20px auto;
            width: 100%;
            max-width: 400px;
        }

        .student_box img {
            width: 100%;
            height: 600px;
            max-height: 200px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 10px;
        }

        .student_box h3 {
            margin: px 0;
            color: #333;
            font-size: 1.3em;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .topper-box, .student_box {
                max-width: 90%;
                padding: 15px;
            }

            .topper-box img {
                max-height: 250px;
            }

            .student-box {
                width: 150px;
                padding: 10px;
            }

            .student-box img {
                height: 350px;
            }

            h2 {
                font-size: 1.8em;
            }
        }

        @media (max-width: 480px) {
            .topper-box, .student_box {
                max-width: 95%;
                margin: 10px auto;
                padding: 10px;
            }

            .topper-box img {
                max-height: 600px;
            }

            .topper-box p, .topper-box h4 {
                font-size: 1em;
            }

            .student-box {
                width: 120px;
                padding: 8px;
            }

            .student-box img {
                height: 350px;
            }

            .student-box p, .student-box h4 {
                font-size: 0.9em;
            }

            h2 {
                font-size: 1.5em;
            }
        }

@media (min-width: 1025px) {
    .student-box {
        width: 250px;
        padding: 20px;
    }

    .student-box img {
        height: 300px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    .student-box h4, 
    .student-box p {
        font-size: 1.1em;
    }
}

/* footer */

.footer-section {
    z-index: 10;
}
.footer-container {
    position: fixed;
    bottom: 0;
    width: 100%;

    background: linear-gradient(to right, #000000, #434343, #f39c12);
    color: #fff;
    padding: 5px;
    text-align: center;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #f39c12;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    margin: 0 10px;
    text-decoration: none;
    transition: 0.3s;
}
.social-icons a:hover {
    color: #f39c12;
}


@media (max-width: 600px) {
    .topper-section {
        flex-direction: column;
        align-items: center;
    }
}

.creator-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    /* margin-top: 10px; */
}


.cccontainer {
    width: 90%;
    margin: 50px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: center;

}

.contact-info {
    font-size: 18px;
}
.contact-info>p{
    color: #fff;

}
iframe {
    width: 100%;
    height: 300px;
    border: 0;
    margin-top: 20px;
    margin-bottom: 130px;
}


/* g */
 .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            text-align: center;
        }

        .gallery-container h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: #222;
            animation: fadeIn 1s ease-in;
        }

        .gallery-container p {
            font-size: 1.2em;
            color: #666;
            margin-bottom: 30px;
            animation: fadeIn 1s ease-in 0.2s;
            animation-fill-mode: backwards;
        }

        .gallery-grid {
            column-gap: 20px;
            margin: 0 10px;
        }

        .image-box {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-bottom: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            opacity: 0;
            animation: slideUp 0.5s ease forwards;
            break-inside: avoid;
        }

        .image-box:nth-child(2) { animation-delay: 0.1s; }
        .image-box:nth-child(3) { animation-delay: 0.2s; }
        .image-box:nth-child(4) { animation-delay: 0.3s; }
        .image-box:nth-child(5) { animation-delay: 0.4s; }
        .image-box:nth-child(6) { animation-delay: 0.5s; }

        .image-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

        .image-box .instagram-media {
            margin: 0 auto !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }

        .image-box img {
            width: 100%;
            height: auto;
            display: block;
            cursor: pointer;
        }

        .caption {
            padding: 10px;
            font-size: 1em;
            color: #333;
            background: #f9f9f9;
            text-align: center;
        }

        .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: 1000;
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 80vh;
            border-radius: 5px;
        }

        .lightbox-caption {
            color: #fff;
            font-size: 1.2em;
            margin-top: 10px;
            text-align: center;
        }

        .close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 2.5em;
            cursor: pointer;
            font-weight: bold;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive Design */
        @media (min-width: 1200px) {
            .gallery-grid {
                column-count: 4;
            }
        }

        @media (min-width: 768px) and (max-width: 1199px) {
            .gallery-grid {
                column-count: 3;
            }
        }

        @media (min-width: 480px) and (max-width: 767px) {
            .gallery-grid {
                column-count: 2;
            }
        }

        @media (max-width: 479px) {
            .gallery-grid {
                column-count: 1;
            }

            .gallery-container {
                padding: 20px 10px;
            }

            .gallery-container h1 {
                font-size: 1.8em;
            }

            .gallery-container p {
                font-size: 1em;
            }

            .image-box {
                margin: 0 auto 15px;
            }

            .lightbox-content {
                max-width: 95%;
                max-height: 70vh;
            }

            .close {
                font-size: 2em;
                right: 20px;
            }
        }
