/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* Navigation Bar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 10px 10px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.5s ease-in-out;
    background: transparent;	
}

/* Header with Background Color on Scroll */
header.scrolled {
    background: rgba(0, 77, 64, 0.9);
}


/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: black;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px; /* Adjust size as needed */
    width: auto;
    border-radius: 5px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 10px;
    white-space: nowrap;
}

/* Navigation Links - Default (Black) */
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(50, 50, 50, 0.5);
}

/* Light White Transparent Background on Hover */
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.3); /* 30% transparent white */
}


/* Change Link Color to White When Scrolled */
header.scrolled .nav-links a {
    color: white;
    background: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

/* Change Hamburger Color to White When Scrolled */
header.scrolled .hamburger {
    color: white;
}

/* Mobile Navigation - Slide & Fade In */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        background: rgba(0, 77, 64, 0.9); /* Background color for menu */
        width: 250px; /* Sidebar width */
        height: 100vh; /* Full screen height */
        top: 0;
        left: -250px; /* Initially hidden */
        text-align: left;
        padding-top: 60px;
        transition: left 0.4s ease-in-out, opacity 0.4s ease-in-out;
        opacity: 0;
    }

    /* When Menu is Open */
    .nav-links.show {
        left: 0; /* Slides into view */
        opacity: 1; /* Fades in */
    }

    /* Style Navigation Links Inside Mobile Menu */
    .nav-links a {
        display: block;
        padding: 15px 20px;
        color: white;
        font-size: 1rem;
        text-decoration: none;
        transition: background 0.3s ease-in-out;
        background: none;
    }

    /* Hover Effect for Links */
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Show Hamburger Menu on Mobile */
    .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1100;
    }
}

/* Adjustments for Larger Mobile Screens */
@media (max-width: 900px) {
    .nav-links {
        gap: 20px; /* Reduce spacing between nav items */
        font-size: 14px; /* Reduce font size slightly */
    }

    .navbar {
        padding: 10px; /* Reduce padding to fit everything */
    }

    .logo {
        height: 40px; /* Adjust logo size */
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/parallax.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    transition: background 1.2s ease-in-out, opacity 1.2s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 65%; /* Moves the overlay lower */
    left: 50%;
    transform: translate(-50%, -50%);
}

/* When the overlay is visible */
.overlay.visible {
    background: rgba(0, 0, 0, 0.6); /* Darkens */
    opacity: 1;
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1.5rem;
}

#contactBtn {
  color: white;
}

/* Adjust for smaller screens */
@media (max-width: 771px) {
    .overlay {
        top: 70%; /* Moves it slightly lower on smaller screens */
        width: 92%; /* Expands the width for better fit */
    }

    .hero h1 {
    font-size: 1.5rem;
    }
}

.hero p {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .overlay {
        top: 75%; /* Moves even lower for very small screens */
        width: 95%;
        padding: 20px; /* Reduce padding to fit content */
    }
    .hero h1 {
    font-size: 1.2rem;
    }

    .hero p {
    font-size: 0.9rem;
}
}


.hero button {
    background: #ff9900;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

/* Sections with Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    padding: 50px 20px;
    text-align: center;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Show Modal */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

/* When Modal is Active */
.modal.show .modal-content {
    transform: translateY(0);
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close:hover {
    color: #ff5252;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 1rem;
    font-weight: 600;
    color: #004d40;
}

input, textarea {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s ease-in-out;
}

input:focus, textarea:focus {
    border: 1px solid #004d40;
    outline: none;
}

/* Submit Button */
.submit-btn {
    background: #004d40;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.submit-btn:hover {
    background: #00695c;
}

/* Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .close {
        font-size: 1.5rem;
    }

    label {
        font-size: 0.9rem;
    }

    input, textarea {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* For screens with height less than 500px */
@media (max-height: 500px) {
    .modal-content {
        max-height: 90vh; /* Ensures it does not exceed 90% of viewport height */
        overflow-y: auto; /* Enables scrolling if content overflows */
        padding: 12px;
    }

    .modal-content h2 {
        font-size: 1.2rem; /* Reduce heading size */
    }

    form {
        gap: 8px; /* Reduce spacing between elements */
    }

    input, textarea {
        font-size: 0.85rem;
        padding: 6px; /* Reduce padding */
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 8px 12px; /* Adjust button size */
    }

    .close {
        font-size: 1.4rem; /* Slightly smaller close button */
    }
}

/* For screens with height less than 300px */
@media (max-height: 300px) {
    .modal-content {
        max-height: 85vh; /* Further restrict height to prevent overflow */
        overflow-y: auto; /* Enables scrolling */
        padding: 10px;
    }

    .modal-content h2 {
        font-size: 1rem; /* Reduce heading size */
        margin-bottom: 5px;
    }

    form {
        gap: 5px; /* Reduce spacing between elements */
    }

    input, textarea {
        font-size: 0.75rem;
        padding: 4px; /* Minimal padding to save space */
    }

    .submit-btn {
        font-size: 0.8rem;
        padding: 6px 10px; /* Reduce button size */
    }

    .close {
        font-size: 1.2rem; /* Small close button */
        top: 5px;
        right: 10px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 15px;
    font-size: 1.5rem;
    border-radius: 45%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}


/* About Section */
.about-section {
    padding: 20px 20px;
    text-align: center;
    background: #f9f9f9;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
}

.about-text {
    flex: 1;
    text-align: left;
    text-align: justify;
}

.about-text h2 {
    font-size: 2rem;
    color: #004d40;
    text-align: center;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    font-size: 1rem;
    color: #004d40;
    margin: 5px 0;
}

@media (max-width: 891px) {
    .about-text h2 {
        font-size: 1.8rem; /* Reduce heading size */
    }

    .about-text p {
        font-size: 0.8rem; /* Decrease text size */
        line-height: 1.2; /* Adjust line spacing */
    }

    .about-text ul li {
        font-size: 0.8rem; /* Decrease bullet point text size */
    }
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
        text-align: justify;
    }

    .about-text ul {
        text-align: left;
        display: inline-block;
    }
}


/* Courses Section */
.courses-section {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
}

.courses-container {
    max-width: 1200px;
    margin: auto;
}

.courses-container h2 {
    font-size: 2rem;
    color: #004d40;
    margin-bottom: 20px;
}

.courses-container p {
    font-size: 1rem;
    color: #333;
    max-width: 800px;
    margin: auto;
    margin-bottom: 40px;
}

/* Grid Layout for Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Course Card */
.course-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 250px; /* Adjust as needed */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Dark overlay for better text visibility */
.course-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Adjust darkness */
    z-index: 1;
}

/* Content inside the course card */
.course-card .course-content {
    position: relative;
    z-index: 2;
    padding: 15px;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Ensure text inside the course card is visible */
.course-card p {
    font-size: 1rem;
    color: white; /* Make text white */
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Adds shadow for better readability */
}

/* Button Styling */
.btn {
    display: inline-block;
    background: white;
    color: #004d40;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn:hover {
    background: #00695c;
    color: white;
}

/* Hover Effect */
.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments for Narrow Screens */
@media (max-width: 768px) {
    .courses-container h2 {
        font-size: 1.8rem;
    }

    .courses-container p {
        font-size: 0.9rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px; /* Reduce gap between cards */
    }

    .course-card {
        height: 220px; /* Reduce height slightly */
        padding: 15px; /* Reduce padding */
    }

    .course-card h3 {
        font-size: 1.3rem; /* Reduce heading size */
    }

    .course-card p {
        font-size: 0.9rem; /* Reduce paragraph text */
    }

    .btn {
        font-size: 0.9rem; /* Reduce button text */
        padding: 8px 16px; /* Reduce button padding */
    }
}

@media (max-width: 480px) {
    .courses-container h2 {
        font-size: 1.6rem;
    }

    .courses-container p {
        font-size: 0.85rem;
    }

    .course-card {
        height: 200px; /* Reduce card height */
        padding: 12px;
    }

    .course-card h3 {
        font-size: 1.2rem; /* Reduce heading size */
    }

    .course-card p {
        font-size: 0.85rem; /* Reduce text */
    }

    .btn {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
}

@media (max-width: 320px) {
    .courses-container h2 {
        font-size: 1.4rem;
    }

    .courses-container p {
        font-size: 0.8rem;
    }

    .course-card {
        height: 180px; /* Further reduce height */
        padding: 10px;
    }

    .course-card h3 {
        font-size: 1rem;
    }

    .course-card p {
        font-size: 0.75rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}




.testimonials {
    text-align: center;
    padding: 10px 20px;
    background:white;
    position: relative;
    flex-direction: row-reverse; /* Reverses the order of reviews */
}

.testimonials h2 {color: #004d40;}

.testimonial-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    gap: 20px;
    padding: 10px 0;
    white-space: nowrap;
    max-width: 85%;
}

/* Hide scrollbar for WebKit browsers */
.testimonial-container::-webkit-scrollbar {
    display: none;
}

.testimonial-container iframe {
    flex: 0 0 auto;
    width: 500px;
    height: 250px;
    border: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 77, 64, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
    z-index: 10;
}

.scroll-btn:hover {
    background: rgba(0, 77, 64, 1);
}

/* Positioning the buttons */
.left {
    left: 0;
}

.right {
    right: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-container {
        max-width: 95%;
    }

    .testimonial-container iframe {
        width: 90%;
        height: 200px;
    }

    .scroll-btn {
        font-size: 10px;
        padding: 8px 10px;
    }
}



/* Styling the Leave a Review Button Row */
.review-row {
    background: #004d40; /* Match testimonials background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0; /* Add spacing for better alignment */
    margin-top: 0; 
}

/* Styling the Leave a Review Button */
.leave-review-btn {
    background: #1877f2; /* Facebook Blue */
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Hover Effect */
.leave-review-btn:hover {
    background: #1558b1;
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .leave-review-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Responsive Adjustments for Testimonials h2 */
@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 1.8rem; /* Reduce heading size */
    }
}

@media (max-width: 480px) {
    .testimonials h2 {
        font-size: 1.5rem; /* Further reduce for smaller screens */
    }
}

@media (max-width: 320px) {
    .testimonials h2 {
        font-size: 1.3rem; /* Minimize for very small screens */
    }
}



/* Contact Section */
.contact {
    max-width: 80%;
    margin: 20px auto;
    padding: 5px;
    background: #F8F8F8; /* Light gray background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-items: center;
    transition: transform 0.5s ease-in-out, box-shadow 0.25s ease-in-out;
}

.contact p {
    text-align: center;
    margin-bottom: 3;
}

.contact h2 {color: #004d40;}

/* Footer */
footer {
    background: #004d40;
    color: white;
    padding: 0.3rem;
}

/* Footer Social Links */
.social-links {
    display: flex;
    justify-content: center; /* Center aligns the links */
    gap: 10px; /* Reduce spacing between links */
    padding: 5px 0; /* Reduce vertical padding */
    flex-wrap: nowrap; /* Prevents wrapping to the next line */
}

/* Social Links Styling */
.social-links a {
    font-size: 0.8rem; /* Make text slightly smaller */
    padding: 5px 5px; /* Reduce padding */
    text-decoration: none;
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.social-links a:hover {
    background: #003a30; /* Darken on hover */
}

/* Footer Bottom Bar */
.bottom-bar {
    background: #004d40; /* Slightly transparent dark green */
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Soft white line */
}





/* COURSE SECTIONS - Precise Alignment */
.course-section-unique {
    padding: 50px 20px; /* Removed side padding */
    background: #f9f9f9;
}

/* Section Heading */
.course-section-unique h2 {
    color: #004d40;
    text-align: center;
    margin-bottom: 30px;
}

/* Flex container with consistent spacing */
.course-container-unique {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Small consistent horizontal padding */
    box-sizing: border-box;
}

/* Staggered layout: reverse flex direction for even sections */
.course-section-unique:nth-of-type(even) .course-container-unique {
    flex-direction: row-reverse;
}

/* Text Column */
.course-text-unique {
    flex: 1;
    text-align: left;
    padding: 0; /* No extra padding */
    margin: 0;
}

/* Remove bullet points */
.course-text-unique ul {
    list-style: none;
    padding-left: 0;
}

.course-text-unique ul li {
    font-size: 1rem;
    color: #004d40;
    margin: 5px 0;
}

/* Image Column */
.course-image-unique {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: 0; /* Remove any margin */
    padding: 0;
    overflow: hidden;
}

/* Image Styling */
.course-image-unique img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Button */
.btn-unique {
    display: inline-block;
    background: #004d40;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease-in-out;
    margin-top: 15px;
}

.btn-unique:hover {
    background: #00695c;
}




/* For screens 768px and below */
@media (max-width: 768px) {
    .course-container-unique {
        flex-direction: column;
        position: relative;
        padding: 0;
    }

    .course-image-unique {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }

    .course-image-unique img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
        box-shadow: none;
    }

    .course-text-unique {
        position: relative;
        z-index: 2;
        padding: 20px;
        background: rgba(255, 255, 255, 0.8); /* Light overlay for text visibility */
        text-align: left;
        border-radius: 10px;
        margin: 20px;
    }


    .course-text-unique ul {
        padding: 0;
    }

    .course-text-unique ul li {
        margin: 5px 0;
    }

}




.course-buttons {
    display: flex;
    overflow-x: hidden;
    white-space: nowrap;
    gap: 10px;
}


.dropdown-content {
    display: none;
    background: #fff;
    color: #004d40;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.dropdown-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.dropdown-content input,
.dropdown-content select {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.dropdown-content button[type="submit"] {
    background: #004d40;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.dropdown-content button[type="submit"]:hover {
    background: #00695c;
}


.dropdown-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #004d40;
    font-weight: bold;
    z-index: 5;
}
.dropdown-content {
    position: relative;
}



@media (max-width: 768px) {
    .course-buttons .btn-unique {
        font-size: 0.9rem;
        padding: 10px 16px;
        margin: 5px;
    }
}

@media (max-width: 530px) {
    .course-buttons .btn-unique {
        font-size: 0.85rem;
        padding: 8px 12px;
        margin: 4px;
    }

    .course-text-unique h2 {
        font-size: 1.25rem;
    }

    .course-text-unique p,
    .course-text-unique ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 466px) {
    .course-buttons .btn-unique {
        font-size: 0.7rem;
        padding: 6px 10px;
        margin: 3px;
        gap: 3px;
    }

    .course-text-unique h2 {
        font-size: 1rem;
    }

    .course-text-unique p,
    .course-text-unique ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 417px) {
    .course-buttons .btn-unique {
        font-size: 0.6rem;
        padding: 5px 4px;
        margin: 2px;
        gap: 2px;
    }

    .course-text-unique h2 {
        font-size: 0.95rem;
    }

    .course-text-unique p,
    .course-text-unique ul li {
        font-size: 0.7rem;
    }
    
    .course-text-unique {
        width: 70%;
        min-height: 200px; /* Slightly taller to allow for text wrap */
    }
}

@media (max-width: 376px) {
    .course-buttons .btn-unique {
        font-size: 0.55rem;
        padding: 4px 3px;
        margin: 1px;
        gap: 1px;
    }

    .course-text-unique h2 {
        font-size: 0.9rem;
    }

    .course-text-unique p,
    .course-text-unique ul li {
        font-size: 0.65rem;
    }
    
    .course-text-unique {
        width: 65%;
        min-height: 200px; /* Adjusted for smaller screens */
    }
}

@media (max-width: 358px) {
    .course-buttons .btn-unique {
        font-size: 0.5rem;
        padding: 3px 3px;
        margin: 1px;
        gap: 0.5px;
    }

    .course-text-unique h2 {
        font-size: 0.85rem;
    }

    .course-text-unique p,
    .course-text-unique ul li {
        font-size: 0.6rem;
    }

    .course-text-unique {
        width: 68%; /* Slightly more space for wrapping */
        min-height: 220px;
        padding: 10px;
    }
}



/* Success message below form fields */
#success-message {
    display: none;
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Main popup container (positioned overlay) */
#success-popup {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    z-index: 9999;
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Inner content of the popup */
.success-popup-content {
    position: relative;
    padding: 20px;
    text-align: center;
}

/* Close button inside popup */
.close-success {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* Text inside success popup */
.success-text {
    color: green;
    font-weight: bold;
    margin-top: 40px;
}

/* Optional fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -30%);
    }
}



/* Resources Section */
.resources-section {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtext {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #555;
}

.accordion {
  background-color: #f2f2f2;
  cursor: pointer;
  padding: 1rem;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  transition: 0.3s;
  border-bottom: 1px solid #ccc;
  color: black;
}

.accordion.active, .accordion:hover {
  background-color: #e0e0e0;
}

.panel {
  display: none;
  background-color: #fafafa;
  overflow: hidden;
  padding: 1rem;
}

.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
}

.file-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.file-icon.pdf::before {
  content: "📄";
  color: crimson;
}

.file-icon.docx::before {
  content: "📃";
  color: royalblue;
}

.file-icon.ppt::before,
.file-icon.pptx::before {
  content: "📊";
  color: darkorange;
}

.resource-info {
  flex: 1;
  padding-right: 1rem;
}

.resource-info p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #444;
}

.download-btn {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background-color: #0056b3;
}


@media (max-width: 600px) {
  .resources-section {
    padding: 1.5rem 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtext {
    font-size: 0.95rem;
  }

  .accordion {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .resource-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-info {
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .download-btn {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }
}



  .modal1 {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
  }

  .modal1 .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 1rem;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
  }

  .modal1 .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
  }



/* Team Section */
/* Team Section - Grid Layout */
.team-section-grid {
  background-color: #0c0c0c; /* dark background like in the screenshot */
  padding: 4rem 2rem;
  color: white;
  font-family: 'Georgia', serif;
}

.team-grid-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.team-heading-text {
  flex: 1 1 35%;
}

.team-heading-text h2 {
  font-size: 3rem;
  line-height: 1.1;
  color: white;
}

.team-heading-text .light {
  color: #d3d0c7;
  font-style: italic;
}

.team-subtext {
  font-size: 1rem;
  color: #bbb;
  margin-top: 1rem;
  line-height: 1.5;
}

.team-grid-cards {
  flex: 1 1 60%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.team-card-grid {
  background-color: #121212;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

.team-card-grid:hover {
  transform: translateY(-5px);
}

.team-card-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.team-card-grid h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.3rem;
  color: white;
}

.team-card-grid p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
  .team-grid-container {
    flex-direction: column;
    align-items: center;
  }

  .team-heading-text {
    text-align: center;
    margin-bottom: 2rem;
  }

  .team-subtext {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}


.team-mission-vision {
  margin-top: 3rem; /* Increases gap from 'Our Team' paragraph */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Optional subtle divider */
  padding-top: 2rem;
}

.team-mission-vision h4 {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem; /* Adds space between Mission and Vision titles */
}

.team-mission-vision p {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
    .navbar {
        padding-left: 1px;
        padding-right: 10px;
    }
}