/* Section Wrapper */
.courses-section {
    margin: 50px auto;
    width: 90%; /* Adjust width to fit content */
    text-align: center; /* Center-align the section content */
}

/* Heading Style */
.courses-heading {
    font-size: 2rem;
    color: #05917e;
    margin-bottom: 20px;
}

/* Container for All Courses */
.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 40px; /* Space between cards */
    justify-items: center; /* Center each card in the grid */
}

/* Individual Course Card */
.course-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    width: 100%; /* Ensure cards are consistent */
    max-width: 300px; /* Limit the width of each card */
}

/* Course Image */
.course-image {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Match card corners */
    margin-bottom: 10px;
}

/* Course Name */
.course-name {
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 10px;
}

/* Explore Button */
.explore-button {
    background-color: #05917e;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;

    /* Ensure consistent placement */
    margin-top: auto;
    display: inline-block;
}


.explore-button:hover {
    background-color: #047a67; /* Darker shade on hover */
}