* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    background: #000000 url('Images/loader.gif') no-repeat center center;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 10000;
    
}

/* Navigation Bar */
.navbar {
    background-color: #1a3a5f;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar1 {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: ease all 0.5s;
}

.header-scrolled {
    background-color: #1a3a5f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-jpg {
    width: 65px;
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./Images/background1.jpg') no-repeat center center/cover; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.mobile-break {
    display: inline;
}

.cta-button {
    display: inline-block;
    background-color: #ffd700;
    color: #1a3a5f;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a3a5f;
}

.section-title-2 {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-title-2 p {
    color: #666;
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #ffd700;
    bottom: 0;
    left: 25%;
}

/* Cards Section */
.section-title p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #e9b64a;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s;
}

.feature-card:hover .icon-wrapper {
    background: #2d4b8e;
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s;
}

.feature-card:hover .icon-wrapper svg {
    fill: white;
}

.feature-title {
    color: #2d4b8e;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.feature-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-description strong {
    color: #2d4b8e;
    font-weight: 600;
}

/* About Section */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1em;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image h3 {
    color: #1a3a5f;
}

.about-image p {
    font-style: italic;
    color: #666;
}

/* Courses Section */
.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;

}

.course-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #e9b64a;
    z-index: -1;
}

.course-card:hover {
    transform: translateY(-10px);

}

.course-image {
    height: 200px;
    background-color: #e0e0e0;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    color: #1a3a5f;
    margin-bottom: 0.5rem;
}

.course-content p {
    color: #666;
    margin-bottom: 1rem;
}

.course-details {
    display: flex;
    justify-content: space-between;
}

.course-details span {
    font-size: 0.9rem;
    color: #888;
}

.lang {
    margin-top: 5px;
}

.lang span {
    font-size: 0.9rem;
    color: #888;
}

/* Teachers Section */
.teachers {
    background-color: #f9f9f9;
    text-align: center;
}

.teachers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.teacher-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-image {
    /* height: 200px; */
    aspect-ratio: 4 / 5;
    background-color: #e0e0e0;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.teacher-content {
    padding: 1.5rem;
}

.teacher-content h3 {
    color: #1a3a5f;
    margin-bottom: 0.5rem;
}

.teacher-content p {
    color: #666;
}

.faculty-2pg {
    padding-top: 110px;
}

/* Testimonials Section */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.student-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 1rem;
    overflow: hidden;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-details h4 {
    color: #1a3a5f;
}

.student-details p {
    margin: 0;
    font-style: normal;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-controls button {
    background-color: #1a3a5f;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-controls button:hover {
    background-color: #ffd700;
}

/* Gallery Section Main Page */
.gallery {
    background-color: #f9f9f9;
    padding: 5rem 2rem;
    text-align: center;
}

.gallery-description {
    max-width: 800px;
    margin: 2rem auto 2rem;
    font-size: 1.1rem;
    color: #444;
}

.gallery-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-button {
    display: inline-block;
    background-color: #1a3a5f;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.gallery-button:hover {
    background-color: #ffd700;
    color: #1a3a5f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Second Page */
.gallery-header {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('Images/photos/2024/2024\ 1.JPG') no-repeat center 30%/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    /* margin-top: 70px; */
    
}

.gallery-header-content {
    max-width: 800px;
    padding: 2rem;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.2rem;
}

.gallery-categories {
    padding: 5rem 2rem;
}

.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 1rem;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #1a3a5f;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Hide gallery items that don't match the selected category */
.gallery-item.hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 1110;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    padding: 10px 0;
    width: 100%;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* video gallery */
.video-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 50px auto 0;
    flex-wrap: wrap;
}

.video iframe {
    aspect-ratio: 16 / 9;
    width: 560px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.video-h1 {
    text-align: center;
    margin-top: 20px;
    color: #1a3a5f;
    font-size: 2rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: #1a3a5f;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    color: #1a3a5f;
    font-size: 1.2rem;
}

.contact-details h4 {
    margin-bottom: 0.3rem;
}

.contact-form form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background-color: #1a3a5f;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-self: start;
}

button[type="submit"]:hover {
    background-color: #ffd700;
    color: #1a3a5f;
}

/*Footer */
.footer {
    background-color: #1a3a5f;
    color: white;
    padding: 40px 0 0 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 20px;
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: #ffd700;
    bottom: 0;
    left: 0;
}

.footer-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.footer-nav {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav ul li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #e6c200;
    text-decoration: underline;
}

.bottom-bar {
    background-color: #2d4b8e;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bottom-bar p {
    margin: 0;
}

.developer-link {
    color: #e6c200;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.developer-link:hover {
    color: white;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    /* bottom: 30px; */
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffd700;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    display: block;
    opacity: 1;
}

.back-to-top:hover {
    background-color: #e67e22;
    ;
}

/*Responsive Web */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        flex-direction: column;
        background-color: #1a3a5f;
        width: 100%;
        top: 70px;
        left: 0;
        padding: 1rem 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 2rem;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .mobile-break {
        display: block;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-header h1 {
        font-size: 2.5rem;
    }

    .lightbox-content {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .categories-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .lightbox-nav {
        padding: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-nav ul {
        flex-direction: column;
    }

    .footer-nav ul li {
        margin-right: 0;
    }

    .bottom-bar {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 80px;
        right: 25px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video iframe {
        width: 100%;
        max-width: 560px;
        height: 315px; /* Adjust height for better aspect ratio */
    }

    .video-h1 {
        font-size: 1.5rem;
        margin-top: 20px;
    }
    
    
}

@media (max-width: 576px) {
    .video iframe {
        width: 100%;
        height: 200px; /* Adjust height for smaller screens */
    }

    .video-h1 {
        font-size: 1.2rem;
        margin-top: 15px;
    }
    
};

/* @media (max-width: 576) {
    .gallery-cta {
        flex-direction: column;
        align-items: center;
        
    }

    .gallery-cta a {
        
    }
  
} */