/* Global Box Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Active Courses Section */
.active-courses-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    position: relative;
    height: 50vh;
    background: url('../assets/active-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Course Container */
.course-container {
    display: flex;
    gap: 20px; /* Space between course card and progress box */
    margin-bottom: 20px;
}

/* Course Card */
.course-card {
    flex: 2; /* Takes 2/3 of the space */
    background: #D32F2F; /* Dark red background */
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 5px solid black; /* Thick black border */
    display: flex;
}

.course-info {
    flex: 1;
    padding-right: 20px;
}

.course-info h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #FFAE46; /* Golden color */
}

.course-info p {
    margin: 5px 0;
    font-size: 16px;
}

.course-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    border: 3px solid black; /* Thick black border */
}

/* Progress Box */
.progress-box {
    flex: 1; /* Takes 1/3 of the space */
    background: #D32F2F; /* Dark red background */
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 5px solid black; /* Thick black border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center text horizontally */
    text-align: center; /* Center text within the box */
}

.progress-box p {
    margin: 5px 0;
    font-size: 18px; /* Bigger font size */
}

.progress-box p strong {
    font-weight: bold;
}

.progress-box #course1-progress,
.progress-box #course2-progress {
    color: #FFAE46; /* Golden color for percentage */
    font-size: 24px; /* Bigger font size for percentage */
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: #FFAE46; /* Golden color */
    border-radius: 5px;
}

.resume-button {
    padding: 10px 20px;
    background: white;
    color: #D32F2F;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    border: 3px solid black; /* Thick black border */
}

.resume-button:hover {
    background: #FFAE46; /* Golden color */
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-container {
        flex-direction: column; /* Stack course card and progress box vertically on mobile */
    }

    .course-card {
        flex-direction: column;
        text-align: center;
    }

    .course-info, .course-image, .progress-box {
        padding: 10px 0;
    }

    .course-image img {
        max-width: 100%;
    }
    .progress-box {
        padding: 10px;
    }
}