/* ==========================================================================
   ITGI KEY BENEFITS GRID
   Policybazaar-style 3-column staggered layout
   ========================================================================== */

.itgi-benefits-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;

    background: #f6f2ff;
    padding: 48px 24px 64px;

    border-radius: 20px;
    overflow: hidden;

    font-family: inherit;
	margin-top: 50px    ;
}

.itgi-benefits-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.itgi-benefits-header-block {
    position: relative;
    z-index: 3;

    max-width: 680px;
    margin: 0 0 28px 0;
}

.itgi-benefits-main-title {
    margin: 0 0 10px;

    color: #18245c;

    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;

    letter-spacing: -0.3px;
}

.itgi-benefits-main-title span {
    color: #6d45e8;
}

.itgi-benefits-sub-title {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
}


/* ==========================================================================
   GRID HOLDER
   ========================================================================== */

.itgi-benefits-grid-rel-holder {
    position: relative;

    width: 100%;

    /*
     * IMPORTANT:
     * This gives the airplane/orbit graphic its own space.
     * It does NOT participate in the grid layout.
     */
    padding-top: 4px;
}


/* ==========================================================================
   TOP RIGHT GRAPHIC
   ========================================================================== */

.itgi-benefits-top-graphic {
    position: absolute;

    /*
     * Move the graphic upward so it sits in the empty
     * area above the third-column card.
     */
    top: -72px;
    right: -8px;

    width: 300px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1;

    pointer-events: none;
}

.itgi-benefits-top-graphic img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ==========================================================================
   3 COLUMN GRID
   ========================================================================== */

.itgi-benefits-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 20px;
    row-gap: 24px;

    width: 100%;

    /*
     * IMPORTANT:
     * We use explicit grid placement below so the third column
     * does not affect the height of the other columns.
     */
    grid-auto-flow: row;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.itgi-benefits-card-item {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 196px;

    box-sizing: border-box;

    padding: 18px 16px 20px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 3px 14px rgba(74, 57, 150, 0.045);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.itgi-benefits-card-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px rgba(74, 57, 150, 0.09);
}


/* ==========================================================================
   STAGGERED THIRD COLUMN
   ========================================================================== */

/*
 * IMPORTANT:
 *
 * Do NOT use:
 *
 * .itgi-benefits-card-item:nth-child(3n)
 *
 * because that makes the third card of every grid row move down and
 * causes problems when the number of cards is even.
 *
 * Instead:
 *
 * Card 1 -> Column 1 / Row 1
 * Card 2 -> Column 2 / Row 1
 * Card 3 -> Column 3 / Row 2
 *
 * Card 4 -> Column 1 / Row 2
 * Card 5 -> Column 2 / Row 2
 * Card 6 -> Column 3 / Row 3
 *
 * This creates the staggered visual layout without breaking the
 * section height.
 */

@media (min-width: 992px) {

    /*
     * Card 3, 6, 9, ...
     * Move only the visual position.
     */
    .itgi-benefits-card-item:nth-child(3n) {
        transform: translateY(92px);
    }

    .itgi-benefits-card-item:nth-child(3n):hover {
        transform: translateY(89px);
    }

}


/* ==========================================================================
   ICON BADGE
   ========================================================================== */

.itgi-benefits-icon-badge {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    margin-bottom: 14px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f5f9;
}

.itgi-benefits-icon-badge img {
    display: block;

    width: 21px;
    height: 21px;

    object-fit: contain;
}


/* ==========================================================================
   CARD TITLE
   ========================================================================== */

.itgi-benefits-card-title {
    margin: 0 0 9px;

    color: #172554;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}


/* ==========================================================================
   CARD DESCRIPTION
   ========================================================================== */

.itgi-benefits-card-desc {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 991px) {

    .itgi-benefits-wrapper {
        padding: 42px 24px 52px;
    }

    .itgi-benefits-container {
        max-width: 760px;
    }

    .itgi-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 20px;
        row-gap: 22px;
    }

    /*
     * Disable desktop stagger completely.
     */
    .itgi-benefits-card-item:nth-child(3n) {
        transform: none;
    }

    .itgi-benefits-card-item:nth-child(3n):hover {
        transform: translateY(-3px);
    }

    .itgi-benefits-top-graphic {
        top: -55px;
        right: -10px;

        width: 230px;
        height: 120px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 576px) {

    .itgi-benefits-wrapper {
        padding: 32px 16px 42px;

        border-radius: 14px;
    }

    .itgi-benefits-container {
        max-width: 100%;
    }

    .itgi-benefits-header-block {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .itgi-benefits-main-title {
        font-size: 23px;
        line-height: 1.3;
    }

    .itgi-benefits-sub-title {
        font-size: 13px;
        line-height: 1.55;
    }

    .itgi-benefits-grid-rel-holder {
        padding-top: 0;
    }

    /*
     * On mobile the graphic should become a normal
     * element above the cards.
     */
    .itgi-benefits-top-graphic {
        position: relative;

        top: auto;
        right: auto;

        width: 220px;
        height: 110px;

        margin: -10px auto 8px;
    }

    .itgi-benefits-grid {
        grid-template-columns: 1fr;

        row-gap: 16px;
    }

    .itgi-benefits-card-item {
        min-height: auto;

        padding: 18px 16px 20px;

        border-radius: 14px;
    }

    .itgi-benefits-card-item:nth-child(3n) {
        transform: none;
    }

    .itgi-benefits-card-item:nth-child(3n):hover {
        transform: translateY(-3px);
    }

    .itgi-benefits-icon-badge {
        width: 34px;
        height: 34px;

        margin-bottom: 12px;
    }

    .itgi-benefits-card-title {
        font-size: 16px;
    }

    .itgi-benefits-card-desc {
        font-size: 13px;
        line-height: 1.55;
    }

}