/**
 * Courses Grid Styles
 * Matches the "Our Courses" design exactly
 */

/* Main Container */
.fce-courses-grid {
    padding:0px;
   
}

/* Grid Wrapper */
.fce-cg-wrapper {
    width: 100%;
}

/* Courses Grid */
.fce-cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* Individual Course Card */
.fce-cg-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Card Inner - Container */
.fce-cg-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    overflow: hidden;
}

/* Image Overlay - Dark gradient (inside title section) */
.fce-cg-title-section .fce-cg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Title Section - Background Image Container */
.fce-cg-title-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.fce-cg-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

/* Hover zoom effect on title section using pseudo-element */
.fce-cg-card:hover .fce-cg-title-section::before {
    transform: scale(1.1);
}

/* Title Link - Makes entire title clickable */
.fce-cg-title-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: block;
    width: 100%;
}

.fce-cg-title-link:hover {
    text-decoration: none;
}

.fce-cg-title {
    position: relative;
    z-index: 2;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    transition: transform 0.3s ease;
}

.fce-cg-title {
    transition: transform 0.25s ease, color 0.25s ease;
}







/* Info Section - Dark Blue Background */
.fce-cg-info-section {
    position: relative;
    z-index: 2;
    background-color: #1a2942;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

/* Even cards get lighter background color for info section */
.fce-cg-card:nth-child(even) .fce-cg-info-section {
    background-color: rgba(46, 67, 92, 1);
}

/* Info Item */
.fce-cg-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Poppins", sans-serif;
    padding: 5px 20px;
}

/* Alternating Background Colors - Striped Pattern */
/* For odd cards (1st, 3rd) - Darker blue */
.fce-cg-card:nth-child(odd) .fce-cg-info-item:nth-child(odd) {
    background-color: #1a2942;
}

.fce-cg-card:nth-child(odd) .fce-cg-info-item:nth-child(even) {
    background-color: rgba(26, 41, 66, 0.7);
}

/* For even cards (2nd, 4th) - Lighter blue */
.fce-cg-card:nth-child(even) .fce-cg-info-item:nth-child(odd) {
    background-color: rgba(46, 67, 92, 1);
}

.fce-cg-card:nth-child(even) .fce-cg-info-item:nth-child(even) {
    background-color: rgba(46, 67, 92, 0.7);
}

.fce-cg-info-item i {
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.fce-cg-info-item span {
    flex: 1;
}

/* Button Section */
.fce-cg-button-section {
    position: relative;
    z-index: 2;
    background-color: #0f1a2b;
    padding: 0;
}

.fce-cg-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color:rgba(6, 32, 63, 1);
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: "Poppins", sans-serif;
    border: none;
    cursor: pointer;
    border: 0.8px solid #ffffff96;
}

.fce-cg-button:hover {
    background-color: rgba(0, 128, 255, 1);
    color: #ffffff;
    text-decoration: none;
}

/* Hover Effect - Removed zoom transition */
/* .fce-cg-card:hover .fce-cg-card-inner {
    background-size: 105%;d
}

.fce-cg-card-inner {
    transition: background-size 0.5s ease;
} */

/* Responsive Styles */

/* Tablet - 2 columns */
@media (max-width: 991px) {
    .fce-courses-grid {
        padding: 0px 0;
    }

    .fce-cg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        /* padding: 0 15px; */
    }

    .fce-cg-card-inner {
        min-height: 420px;
    }

    .fce-cg-title {
        font-size: 24px;
    }

    .fce-cg-info-item {
        font-size: 13px;
    }

    .fce-cg-button {
        font-size: 14px;
        padding: 16px 20px;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .fce-cg-grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .fce-cg-card-inner {
        min-height: 400px;
    }

    .fce-cg-title {
        font-size: 22px;
        padding: 25px 15px;
        margin-bottom: -35px;
    }

    .fce-cg-info-section {
        padding: 10px 15px;
        gap: 1px;
    }

    .fce-cg-info-item {
        font-size: 13px;
    }

    .fce-cg-info-item i {
        font-size: 14px;
    }

    .fce-cg-button {
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .fce-courses-grid {
        padding: 5px 0 0;
    }

    .fce-cg-card-inner {
        min-height: 380px;
    }

    .fce-cg-title {
        font-size: 25px;
    }

    .fce-cg-info-item {
        font-size: 12px;
    }
}