/* Carousel Styling */
.slider-section {
    padding: 40px 0;
}
.slider-section h2{
    text-align: center;
    font-size: 34px;
}
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 300px;
    padding: 0 15px;
    flex: 0 0 33.333%;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-image img {
    padding: 20px;
    width: auto;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-details {
    padding: 20px;
}

.course-details h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.course-details p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-explore {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-explore:hover {
    background: #0056b3;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background: rgba(0, 123, 255, 1);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Responsive design */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}






/* Navigation */

.main-nav {
    list-style: none;
    padding: 0;
}

.nav-item {
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
    background: #f4f4f4;
    margin-bottom: 5px;
    border-radius: 5px;
    color: hotpink;
}

.nav-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
}

.submenu {
    list-style: none;
    padding-left: 15px;
}

.sub-nav-item {
    padding: 5px;
    background: #e0e0e0;
    margin-top: 2px;
    border-radius: 3px;
}

.sub-nav-item a {
    text-decoration: none;
    color: #000;
}
