/* ================= HERO ================= */
.courses-hero {
    padding: 110px 8% 85px;
    text-align: center;
    background: radial-gradient(circle at top, #111 0%, #000 65%);
}

.courses-hero h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
}

.courses-hero h2 span {
    color: var(--second-color, #ff0000);
}

.courses-hero p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #bdbdbd;
}

/* ================= COURSES ================= */
.courses-section {
    padding: 90px 8%;
    background: #000;
    text-align: center;
}

.courses-section h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    margin-bottom: 45px;
    color: #ffffff;
}

.courses-section h2 span {
    color: var(--second-color, #ff0000);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* ================= COURSE CARD ================= */
.course-card {
    background: #0b0b0b;
    padding: 38px 26px;
    border-radius: 14px;
    border: 1px solid #1a1a1a;
    transition: all 0.35s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--second-color, #ff0000);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.25);
}

.course-card i {
    font-size: 42px;
    color: var(--second-color, #ff0000);
    margin-bottom: 16px;
}

.course-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.course-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #bcbcbc;
    margin-bottom: 18px;
}

/* ================= COURSE BUTTON ================= */
.course-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid var(--second-color, #ff0000);
    padding-bottom: 4px;
    transition: 0.3s;
}

.course-btn:hover {
    color: var(--second-color, #ff0000);
}

/* ================= CTA ================= */
.courses-cta {
    padding: 95px 8%;
    text-align: center;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
}

.courses-cta h2 {
    font-size: clamp(30px, 4vw, 38px);
}

.courses-cta h2 span {
    color: var(--second-color, #ff0000);
}

.courses-cta p {
    margin-top: 12px;
    font-size: 16px;
    color: #bdbdbd;
}

.courses-btn {
    margin-top: 30px;
    padding: 12px 34px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .courses-hero {
        padding: 90px 6% 70px;
    }

    .courses-section,
    .courses-cta {
        padding: 70px 6%;
    }

    .course-card {
        padding: 30px 22px;
    }

    .courses-hero p,
    .courses-cta p {
        font-size: 15px;
    }
}

/* FIX: Hero going behind navbar on mobile */
@media (max-width: 768px) {
    .courses-hero {
        padding-top: 150px; /* adjust if navbar height changes */
    }
}
