/* =========================================
   OUR COURSES SECTION STYLING
   ========================================= */
html {                      
    scroll-behavior: smooth;
}                           

.courses-section,
.courses-section * {
    box-sizing: border-box;
}

.courses-section {
    max-width: 1200px;
    width: 100%;
    margin: 64px auto;
    padding: 0 20px;
    text-align: center;
}

.courses-header {
    margin-bottom: 34px;
}

.courses-title {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 800;
    color: #285b40; /* Deep Green Branding */
    margin: 0 0 8px;
    line-height: 1.2;
}

.courses-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.02rem);
    color: #4a5568;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 640px;
}

/* 2-Column Grid Layout for Desktop */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

/* Individual Course Card */
.course-card {
    background: linear-gradient(145deg, #ffffff 0%, #f1f8ee 100%);
    border: 1px solid rgba(40, 91, 64, 0.16);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    text-align: left;
    box-shadow: 0 4px 14px rgba(23, 53, 45, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(23, 53, 45, 0.07);
    border-color: rgba(164, 122, 34, 0.45);
}

/* Icon Box Customization */
.course-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 1.35rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(23, 53, 45, 0.12);
    transition: transform 0.25s ease;
}

.course-card:hover .course-icon-box {
    transform: scale(1.04);
}

/* Category Specific Icon Background Colors */
.tech-icon { background-color: #285b40; }         /* Deep Green */
.computer-icon { background-color: #2e7d32; }     /* Emerald Green */
.safety-icon { background-color: #c77714; }       /* Warm Amber / Gold */
.language-icon { background-color: #6d3fd1; }     /* Deep Violet */
.driving-icon { background-color: #a47a22; }      /* Metallic Gold */
.construction-icon { background-color: #17352d; } /* Dark Forest Green */

/* Course Text Content */
.course-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.course-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #17352d;
    margin: 0 0 4px;
    line-height: 1.3;
}

.course-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.42;
    margin: 0;
}

/* =========================================
   TABLET RESPONSIVE (<= 900px)
========================================= */

@media (max-width: 900px) {
    .courses-section {
        margin: 52px auto;
        padding: 0 18px;
    }
    .courses-header {
        margin-bottom: 26px;
    }
    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 660px;
        gap: 14px;
    }
    .course-card {
        padding: 16px 18px;
    }
    .course-icon-box {
        width: 48px;
        height: 48px;
        margin-right: 14px;
        font-size: 1.2rem;
    }
    .course-name {
        font-size: 1.02rem;
    }
    .course-desc {
        font-size: 0.86rem;
    }
}

/* =========================================
   MOBILE RESPONSIVE (<= 520px)
========================================= */

@media (max-width: 520px) {
    .courses-section {
        margin: 38px auto;
        padding: 0 12px;
    }
    .courses-header {
        margin-bottom: 20px;
    }
    .courses-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    .courses-subtitle {
        font-size: 0.84rem;
        line-height: 1.45;
    }
    .courses-grid {
        gap: 10px;
    }
    .course-card {
        padding: 13px 13px;
        border-radius: 12px;
    }
    .course-icon-box {
        width: 42px;
        height: 42px;
        margin-right: 12px;
        font-size: 1.05rem;
        border-radius: 10px;
    }
    .course-name {
        font-size: 0.96rem;
        margin-bottom: 2px;
    }
    .course-desc {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

/* =========================================
   EXTRA SMALL PHONES (<= 380px)
========================================= */

@media (max-width: 380px) {
    .course-card {
        padding: 11px 11px;
    }
    .course-icon-box {
        width: 38px;
        height: 38px;
        margin-right: 10px;
        font-size: 0.95rem;
    }
    .course-name {
        font-size: 0.9rem;
    }
    .course-desc {
        font-size: 0.76rem;
    }
}