/*======================================
  Course Card Styles
========================================*/

/* Wrapper for each grid item to ensure consistent spacing */
.courses .col-lg-3 {
    padding: 15px;
}

/* The main card container */
.single-course {
    /* MODIFIED: Using a separate file for the background is more reliable. */
    /* The color is set first, then the image is layered on top. */

    background-image: #FFFFFF url('../images/geometric-pattern.svg');

    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #0065CB; /* Primary Accent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* IMPORTANT: Adjust the path in the 'background' property above to match your project's folder structure. For example, it might be '../images/geometric-pattern.svg' or '/assets/geometric-pattern.svg'. */
/* Add a subtle lift and shadow on hover for a dynamic feel */
.single-course:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 101, 203, 0.15);
}

/* Icon styling */
.single-course .course-icon {
    margin-bottom: 20px;
}

.single-course .course-icon i {
    font-size: 40px;
    color: #0065CB; /* Primary Accent */
    display: inline-block;
    padding: 10px;
    transition: transform 0.3s ease;
}

.single-course:hover .course-icon i {
    transform: scale(1.1);
}

/* Card content styling */
.single-course .course-content {
    flex-grow: 1; /* Allow content to grow and push the button down */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-course .course-content h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #2C2C2C; /* Text Color */
    margin-bottom: 8px;
    line-height: 1.4;
}

.single-course .course-content p {
    font-family: 'Poppins', sans-serif;
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

/* "View" button styling */
.single-course .course-view-btn {
    display: inline-block;
    background: #0057AD; /* Light Background */
    color: #FFFFFF; /* Secondary Accent */
    padding: 8px 25px;
    border-radius: 50px; /* Pill shape */
    border: 1px solid #ddd;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.single-course:hover .course-view-btn {
    background: #0065CB; /* Primary Accent */
    color: #FFFFFF; /* Text Dark Background */
    border-color: #0065CB; /* Primary Accent */
}

/* ADDED: Style for the 'hidden' class used by the filter script */
.hidden {
    display: none;
}