/* Hero Section */
.courses-hero {
    background: linear-gradient(
            135deg,
            rgba(67, 97, 238, 0.9),
            rgba(58, 12, 163, 0.9)
        ),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.courses-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.courses-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid #e9ecef;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
/* Courses Section */
.courses-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Nav Tabs Styling */
.courses-tabs {
    margin-bottom: 40px;
}

.courses-tabs .nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 30px;
}

.courses-tabs .nav-link {
    border: none;
    color: var(--dark);
    font-weight: 500;
    padding: 12px 25px;
    margin: 0 5px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
}

.courses-tabs .nav-link:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.courses-tabs .nav-link.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-img {
    height: 200px;
    /* background-size: cover; */
    width: 100%;
    /* background-position: center; */
    position: relative;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-content {
    padding: 25px;
}

.course-category {
    display: inline-block;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.course-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    /* height: 60px; */
    overflow: hidden;
}

.course-card p {
    color: #6c757d;
    margin-bottom: 15px;
    /* height: 70px; */
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.course-meta span {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.course-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.course-old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1rem;
    margin-left: 10px;
}

.course-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.readcontent-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-grow: 1;
    margin-right: 10px;
    text-decoration: none;
    text-align: center;
}

.readcontent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}


.tab-pane {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--accent);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.cta-btn:hover {
    background: #e11575;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
    color: white;
}

@media screen and (min-width: 600px) {
    .courses-hero h1 {
        font-size: 2.5rem;
    }

    .courses-hero p {
        font-size: 1rem;
    }
    .courses-hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .course-action {
        flex-direction: column;
        gap: 10px;
    }
    .readcontent-btn{
        font-size: small;
    }
}
