/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
   font-family: 'Arial', sans-serif;
    height: 100%;
    background-color: rgb(173, 177, 181);
}

.container {
    margin: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    background-color: white;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 10px 20px;
    position: relative; /* Ensure navbar is positioned */
    z-index: 1000; /* Ensure navbar is above other content */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(65, 12, 130);
}

.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(65, 12, 130);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 2;
    width: 200px; /* Adjust the width as per your design */
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: rgb(65, 12, 130);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section Styles */
.hero {
    display: flex;
    align-items: center;
    height: 400px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    z-index: 0; /* Lower than navbar by default */
}

.hero-image {
    flex: 1;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    flex: 1;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: rgb(65, 12, 130);
}

.hero-content p {
    font-size: 1.2em;
}

/* About Section Styles */
.about {
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    background-color: white;
}

.about-image {
    flex: 1;
    margin-right: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}

.about-content {
    flex: 2;
}

.about-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: rgb(65, 12, 130);
}

.about-content p {
    font-size: 1.2em;
}

/* Courses Section Styles */
.courses {
    padding: 20px;
    text-align: center;
}

.courses h2 {
    margin-bottom: 10px;
    font-size: 2em;
    color: rgb(65, 12, 130);
}

.course-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.course-item {
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    background-color: white;
}

.course-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-item p {
    padding: 10px;
    font-size: 1.2em;
    color: rgb(65, 12, 130);
}

/* Reviews Section Styles */
.reviews {
    margin-top: 40px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    background-color: white;
    text-align: center;
}

.reviews h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: rgb(65, 12, 130);
}

.reviews-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.review-item {
    flex: 1;
    text-align: center;
}



.review-text {
    font-size: 1.2em;
    color: rgb(65, 12, 130);
}

/* Footer Styles */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.footer a {
    color: #1b2256;
    font-size: 1.5em;
    text-decoration: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .navbar {
        z-index: 1000; /* Ensure navbar is above other content */
    }

    .hero {
        z-index: 0; /* Lower than navbar by default */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero-image,
    .hero-content {
        flex: none;
        width: 100%;
    }

    .course-grid {
        flex-direction: column;
        align-items: center;
    }

    .course-item {
        width: 100%;
    }

    .about {
        flex-direction: column;
        margin-top: 20px;
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        font-size: 1.5em;
    }

    .about-content p {
        font-size: 1em;
    }

    .reviews-grid {
        flex-direction: column;
        gap: 10px;
    }

    .review-item {
        margin-bottom: 20px;
    }

    .review-image {
        width: 120px;
        height: 120px;
    }

    .review-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .about-content h2 {
        font-size: 1.2em;
    }

    .about-content p {
        font-size: 0.9em;
    }

    .review-image {
        width: 100px;
        height: 100px;
    }

    .review-text {
        font-size: 0.9em;
    }
}
