
/* Custom CSS for a more attractive homepage */

/* Header */
header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-slider .hero-slide {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-slider .hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Darker overlay for better text readability */
    z-index: 1;
}

.hero-slider .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-content .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-content .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.hero-content .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.hero-content .btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.hero-content .btn-outline-light:hover {
    background-color: #fff;
    color: #212529;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    margin: 20px auto 0;
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Popular Courses */
.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-card .course-image {
    position: relative;
}

.course-card .course-image img {
    width: 100%;
    height: auto;
}

.course-card .course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-card .course-preview .btn {
    border-radius: 50px;
}

.course-card .course-content {
    background-color: #fff;
}

.course-card .course-footer {
    border-top: 1px solid #eee;
}

/* Success Stats */
.success-stats {
    background-color: #343a40;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
}

/* Call to Action */
.cta-section {
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
}

.cta-section .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 60px 0 0;
}

footer h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

footer p {
    font-size: 0.9rem;
}

.footer-about .foot-address {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-about .icon {
    font-size: 1.2rem;
    color: #ffc107;
    margin-right: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffc107;
}

.footer-updates .update-item {
    margin-bottom: 20px;
}

.footer-updates h4 {
    font-size: 1.1rem;
    color: #fff;
}

.footer-updates .date {
    font-size: 0.8rem;
    color: #ffc107;
}

.footer-courses ul {
    list-style: none;
    padding: 0;
}

.footer-courses ul li {
    margin-bottom: 10px;
}

.copy {
    background-color: #000;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.social-links a {
    color: #a0a0a0;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffc107;
}

/* Responsive Navigation */
.mobile-menu-btn, .close-menu {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    #menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        z-index: 999;
        padding: 60px 20px;
        transition: right 0.3s ease;
    }

    #menu.active {
        right: 0;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links li {
        margin-bottom: 15px;
    }
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-menu-btn, .close-menu {
        display: none;
    }
}