
/* =========================
   COURSES PAGE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 80px;
    content: "♫";

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(190, 141, 5, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 55%,
            rgba(0, 0, 0, 0.07),
            transparent 25%
        ),
        linear-gradient(
            101deg,
            #4d0401 50%,
            #3f0202 50%,
            #860404 50%
        );

    color: var(--white);

    overflow-x: hidden;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

.courses-header {
    text-align: center;
    padding: 80px 20px 35px; /* Space at top for menu */
    
    color: #fff;
}

.courses-header h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 42px);
}

.courses-header h1 span {
    color: #e8bd69;
    text-shadow:
        0 0 10px
        rgb(226, 179, 26);
}

.courses-header p {
    color: #d5c5c7;
    font-size: 16px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================
   COURSE CARDS
========================= */

.courses-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    padding: 40px 5%;
    
}

.course-card {
    min-width: 0;
    overflow: hidden;
    background: #1b1215;
    border: 1px solid #46232b;
    border-radius: 12px;
    box-shadow:
        0 0 40px rgba(95, 5, 5, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: #e8bd69;
    box-shadow:
        0 3px 40px rgba(233, 224, 143, 0.2);
}

.course-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-info h2 {
    color: #e8bd69;
    font-size: 22px;
    margin: 0 0 12px;
}

.course-info p {
    color: #d4c9cb;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 15px;
}

.course-info a {
    display: inline-block;
    margin-top: 5px;
    padding: 11px 17px;
    background: #8f1d2c;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.course-info a:hover {
    background: #e8bd69;
    color: #16150b;
}

/* =========================
   BOTTOM SECTION
========================= */

.courses-bottom {
    text-align: center;
    padding: 45px 20px;
    text-shadow:
        0 0 12px
        rgb(212, 175, 55);  
    color: #fff;
}

.courses-bottom h2 {
    color: #ca9326;

    font-size: clamp(23px, 3vw, 28px);
    margin: 0 0 12px;
}

.courses-bottom p {
    color: #e2d5d7;
    line-height: 1.7;
    margin: 0 auto 25px;
    max-width: 650px;
}

.courses-bottom a {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    background: #e8bd69;
    color: #1a0c0e;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.courses-bottom a:hover {
    background: #e29c05;
}

/* =========================
   SMALL DESKTOP / LAPTOP
========================= */

@media (max-width: 1100px) {
    .courses-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        padding: 35px 4%;
    }
}

/* =========================
   TABLETS
========================= */

@media (max-width: 800px) {
    .courses-header {
        padding: 70px 20px 30px;
    }

    .courses-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 30px 5%;
    }

    .course-card img {
        height: 180px;
    }

    .course-info {
        padding: 16px;
    }

    .course-info h2 {
        font-size: 20px;
    }
}

/* =========================
   MOBILE PHONES
========================= */

@media (max-width: 520px) {
    .courses-header {
        padding: 60px 18px 28px;
    }

    .courses-header h1 {
        font-size: 30px;
    }

    .courses-header p {
        font-size: 14px;
    }

    .courses-container {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 25px 18px;
    }

    .course-card img {
        height: 220px;
    }

    .course-info {
        padding: 20px;
    }

    .course-info h2 {
        font-size: 22px;
    }

    .course-info p {
        font-size: 14px;
    }

    .course-info a {
        padding: 12px 18px;
    }

    .courses-bottom {
        padding: 35px 18px;
    }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 350px) {
    .courses-header h1 {
        font-size: 26px;
    }

    .courses-container {
        padding: 22px 12px;
    }

    .course-info {
        padding: 15px;
    }

    .course-card img {
        height: 180px;
    }
}

/* Respect reduced motion settings */

@media (prefers-reduced-motion: reduce) {
    .course-card,
    .course-info a,
    .courses-bottom a {
        transition: none;
    }

    .course-card:hover {
        transform: none;
    }
}
