/* ====== Advanced Services Grid Shortcode ====== */

.csg-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

/* === No Header Styles === */

/* --- Top Asymmetrical Grid --- */
.csg-asymmetrical-grid {
    display: grid;
    /* 3 Columns: Left cards (1fr), Center Image (1.5fr), Right cards (1fr) */
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-areas:
        "left1 center right1"
        "left2 center right2";
    gap: 30px;
    margin-bottom: 30px;
}

/* Center Image Area */
.csg-center-image {
    grid-area: center;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    min-height: 600px;
    /* Ensure it stretches nicely across the two rows */
}

/* Positioning the 4 surrounding cards */
.csg-card-pos-0 {
    grid-area: left1;
}

.csg-card-pos-1 {
    grid-area: right1;
}

.csg-card-pos-2 {
    grid-area: left2;
}

.csg-card-pos-3 {
    grid-area: right2;
}

/* --- Bottom Linear Grid --- */
.csg-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Shared Card Styles --- */
.csg-card {
    border-radius: 12px;
    padding: 40px 30px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.csg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Pastel Background Classes */
.csg-bg-mint {
    background-color: #e6f7ec;
}

.csg-bg-peach {
    background-color: #fff2e6;
}

.csg-bg-lavender {
    background-color: #f5f0fa;
}

.csg-bg-blue {
    background-color: #f0f4fc;
}

/* Card Header (Icon + Title Inline) */
.csg-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.csg-icon {
    width: 28px;
    height: 28px;
    background-color: #1a202c;
    /* Updated to dark icon color based on design */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.csg-card .csg-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

/* Card Description */
.csg-card .csg-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 30px 0;
    flex-grow: 1;
    /* Pushes the 'Learn More' link to the bottom */
}

/* Learn More Link */
.csg-learn-more {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.csg-learn-more span {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.csg-card:hover .csg-learn-more span {
    transform: translateX(4px);
}

/* --- Responsiveness --- */

/* Tablet (Under 1024px) */
@media (max-width: 1024px) {
    .csg-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .csg-asymmetrical-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "center center"
            "left1 right1"
            "left2 right2";
    }

    .csg-center-image {
        min-height: 400px;
    }
}

/* Mobile (Under 768px) */
@media (max-width: 768px) {
    .csg-main-title {
        font-size: 36px;
    }

    .csg-asymmetrical-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left1"
            "right1"
            "left2"
            "right2";
    }

    .csg-bottom-grid {
        grid-template-columns: 1fr;
    }

    .csg-center-image {
        min-height: 300px;
    }
}