/**
 * Cards Grid - Flexible Content Block
 * A responsive grid of 4 cards with icons, titles, and descriptions
 */

.fce-cards-grid {
    position: relative;
    width: 100%;
}

.cg-grid-wrapper {
    position: relative;
}

.cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    width: 100%;
}

/* Individual Card */
.cg-card {
    position: relative;
    background-color: rgba(23, 46, 74, 1);
    border-radius: 24px;
    padding: 30px 25px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cg-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Icon Styling */
.cg-card-icon {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cg-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cg-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title Styling */
.cg-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

/* Description Styling */
.cg-card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Tablet - 2 cards per row */
@media (max-width: 991px) {
    .cg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cg-card {
        padding: 25px 25px;
        border-radius: 20px;
    }

    .cg-icon-wrapper {
        width: 70px;
        height: 70px;
        padding: 10px;
    }

    .cg-card-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .cg-card-description {
        font-size: 14px;
    }
}

/* Mobile - 1 card per row */
@media (max-width: 767px) {
    .cg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cg-card {
        padding: 30px 20px;
        border-radius: 16px;
        height: auto;
        width: 100%;
    }

    .cg-card-inner {
        min-height: 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .cg-card-icon {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cg-icon-wrapper {
        width: 65px;
        height: 65px;
        padding: 14px;
    }

    .cg-card-title {
        font-size: 17px;
        margin-bottom: 12px;
        text-align: center;
        width: 100%;
    }

    .cg-card-description {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        width: 100%;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .cg-card {
        padding: 25px 45px;
    }

    .cg-icon-wrapper {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .cg-card-title {
        font-size: 18px;
    }

    .cg-card-description {
        font-size: 15px;
    }
}
