body {
    margin: 0;
    font-family: Tahoma, sans-serif;
    background-color: #f2f2f2; /* Light gray background */
    color: black; /* Default text color */
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f2f2f2; /* Light gray background */
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 5px solid black; /* Thick black border */
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: black; /* Black text color */
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 5px;
}

.nav-links a.active {
    background: #D32F2F; /* Dark red background */
    color: white;
    font-weight: bold;
    border: 3px solid black;
}

.hamburger {
    display: none;
    font-size: 30px;
    color: black; /* Black text color */
    cursor: pointer;
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #f2f2f2; /* Light gray background */
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    body {
        overflow-x: hidden;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    background: url('../assets/home-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.site-logo {
    width: 500px; /* Increased logo size */
    height: auto;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category {
    text-align: center;
}

.category img {
    width: 50px;
    height: 50px;
}

.category p {
    margin: 10px 0 0;
    font-size: 18px;
}

/* Main Content */
.main-content {
    padding: 20px;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    height: 60vh; /* 50% of viewport height */
    background: #D32F2F; /* Dark red background */
    border-radius: 10px;
    border: 5px solid black; /* Thick black border */
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 90%;
    height: 80%;
    background: #D32F2F; /* Dark red background */
    border-radius: 10px;
    overflow: hidden;
    color: white;
}

.carousel-left {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.carousel-left h3 {
    font-size: 20px; /* Smaller font size */
    margin-bottom: 10px;
    color: #FFAE46; /* Golden color */
}

.carousel-left .rating {
    font-size: 14px; /* Smaller font size */
    color: #FFD700; /* Gold color for ratings */
    margin-bottom: 10px;
}

.carousel-left p {
    font-size: 14px; /* Smaller font size */
    margin-bottom: 10px;
}

.carousel-middle {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-middle img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-right {
    flex: 1;
    padding: 20px;
    text-align: left;
    border: 3px solid black; /* Black border added */
    border-radius: 10px;
}

.carousel-right h4 {
    font-size: 16px; /* Smaller font size */
    margin-bottom: 10px;
    color: #FFAE46; /* Golden color */
}

.carousel-right ul {
    list-style-type: none;
    padding: 0;
}

.carousel-right li {
    margin: 5px 0;
    font-size: 14px; /* Smaller font size */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    border-radius: 50%;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}
/* Course Section */
.course-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.filter-box {
    flex: 1;
    background: #D32F2F; /* Dark red background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    box-sizing: border-box;
    border: 5px solid black; /* Thick black border */
}

.filter-box h3 {
    margin-bottom: 20px;
    text-align: center;
}

.filter-option {
    margin-bottom: 10px;
}

.filter-option label {
    display: block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
}

.filter-option input:checked + label {
    color: #FFAE46; /* Golden color for selected filters */
    font-weight: bold;
}

.apply-button {
    width: 100%;
    padding: 10px;
    background: white;
    color: #D32F2F;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.apply-button:hover {
    background: #FFAE46; /* Golden color */
    color: white;
}

/* Course Cards Container */
.course-cards {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Individual Course Card */
.course-card {
    background: #D32F2F; /* Dark red background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
    padding: 20px;
    border: 5px solid black; /* Thick black border */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.course-card h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #FFAE46; /* Golden color */
}

.course-card p {
    margin: 10px 0;
    font-size: 16px;
    color: #FFFFFF;
    opacity: 0.9;
}

.course-card .rating {
    font-size: 16px;
    color: #FFD700; /* Gold color for ratings */
    margin-bottom: 10px;
}

/* Hover Overlay */
.course-card .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.course-card:hover .hover-overlay {
    opacity: 1; /* Show overlay on hover */
}

.hover-overlay h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.hover-overlay p {
    font-size: 14px;
    margin: 5px 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .categories {
        flex-wrap: wrap;
        gap: 20px;
    }

    .category img {
        width: 40px;
        height: 40px;
    }

    .category p {
        font-size: 16px;
    }

    .carousel {
        height: 60vh;
    }

    .carousel-content {
        flex-direction: column;
        text-align: center;
        height: 90%;
    }

    .carousel-content img {
        width: 100%;
        height: 200px;
    }

    .carousel-text {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .carousel-text h3 {
        font-size: 20px;
    }

    .carousel-text p {
        font-size: 16px;
    }

    .course-section {
        flex-direction: column;
    }

    .filter-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .course-cards {
        grid-template-columns: 1fr;
    }

    .site-logo {
        width: 300px;
        height: auto;
    }
}