/* Courses Hero Section */
.courses-hero {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--primary-color);
    margin-bottom: 4rem;
    color: white;
}

.courses-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.courses-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Courses Filter */
.courses-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 52, 89, 0.2);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 52, 89, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 52, 89, 0.15);
}

.course-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 2rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.course-level {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.level-beginner {
    background: var(--light-gray);
    color: var(--primary-color);
}

.level-intermediate {
    background: var(--light-gray);
    color: var(--secondary-color);
}

.level-advanced {
    background: var(--light-gray);
    color: var(--accent-color);
}

.course-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.course-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.instructor-name {
    font-weight: 600;
    color: var(--primary-color);
}

.course-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-duration,
.course-students {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.course-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.course-link i {
    transition: transform 0.3s ease;
}

.course-link:hover i {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary-color);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 1rem;
    color: white;
}

.newsletter-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .courses-hero {
        padding: 4rem 1rem;
        margin: 0 -1rem 3rem;
    }

    .courses-hero h1 {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .courses-filter {
        padding: 0;
        margin: 0 -1rem 2rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .course-card {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .course-content {
        padding: 1.5rem;
    }

    .newsletter-section {
        margin: 3rem -1rem;
        border-radius: 0;
        padding: 3rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .courses-hero {
        padding: 3rem 1rem;
    }

    .courses-hero h1 {
        font-size: 1.8rem;
    }

    .course-image {
        height: 180px;
    }

    .course-content h2 {
        font-size: 1.3rem;
    }

    .course-instructor {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .instructor-avatar {
        width: 35px;
        height: 35px;
    }
} 