/* =========================================================
   LIFE INSURANCE SECTION
========================================================= */

.lic-life-section {
    position: relative;
    overflow: hidden;

    padding: 105px 25px 115px;

    background: #285e8e;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.lic-life-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1420px;

    margin: 0 auto;
}


/* =========================================================
   SUBTLE BACKGROUND
========================================================= */

.lic-life-section::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: -300px;
    top: -300px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.07);
}

.lic-life-section::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -400px;
    bottom: -400px;

    border-radius: 50%;

    border: 1px solid rgba(255,205,50,.09);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.lic-life-heading {
    max-width: 760px;

    margin: 0 auto 60px;

    text-align: center;
}

.lic-life-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #f7c62f;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.8px;
}

.lic-life-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(38px, 4vw, 45px);
    line-height: 1.15;

    font-weight: 400;
}

.lic-life-heading h2 span {
    color: #f7c62f;

    font-weight: 700;
}

.lic-life-title-line {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 20px auto 20px;
}

.lic-life-title-line span {
    width: 42px;
    height: 1px;

    background: rgba(255,255,255,.55);
}

.lic-life-title-line i {
    width: 7px;
    height: 7px;

    display: block;

    background: #f7c62f;

    transform: rotate(45deg);
}

.lic-life-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: rgba(255,255,255,.78);

    font-size: 16px;
    line-height: 1.75;
}


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

.lic-life-grid {
    display: grid;

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

    gap: 24px;
}


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

.lic-life-card {
    position: relative;

    overflow: hidden;

    min-height: 345px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 6px;

    box-shadow:
        0 12px 35px rgba(8, 36, 61, .15);

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        box-shadow .4s ease;
}

.lic-life-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(8, 36, 61, .25);
}


/* =========================================================
   GOLD TOP LINE
========================================================= */

.lic-life-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 0;
    height: 4px;

    background: #f7c62f;

    transition: width .4s ease;

    z-index: 5;
}

.lic-life-card:hover::before {
    width: 100%;
}


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

.lic-life-card-top {
    position: relative;

    height: 145px;

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

    background:
        linear-gradient(
            145deg,
            #f8fafc 0%,
            #eef4f8 100%
        );
}


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

.lic-life-number {
    position: absolute;

    top: 15px;
    right: 18px;

    color: #dce5ec;

    font-size: 38px;
    font-weight: 700;

    line-height: 1;
}


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

.lic-life-icon {
    position: relative;

    width: 78px;
    height: 78px;

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

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid rgba(40,94,142,.12);

    box-shadow:
        0 10px 30px rgba(40,94,142,.12);

    transition:
        transform .4s ease,
        background .4s ease,
        box-shadow .4s ease;
}

.lic-life-card:hover .lic-life-icon {
    transform: scale(1.08);

    background: #285e8e;

    box-shadow:
        0 14px 35px rgba(40,94,142,.2);
}

.lic-life-icon i {
    color: #285e8e;

    font-size: 34px;

    transition: color .4s ease;
}

.lic-life-card:hover .lic-life-icon i {
    color: #f7c62f;
}


/* =========================================================
   CONTENT
========================================================= */

.lic-life-card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px 25px 25px;
}

.lic-life-card h3 {
    margin: 0 0 12px;

    color: #1c3858;

    font-size: 19px;
    line-height: 1.35;

    font-weight: 700;

    text-align: center;
}

.lic-life-card p {
    margin: 0;

    color: #68798b;

    font-size: 14px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   READ MORE
========================================================= */

.lic-life-readmore {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: max-content;

    margin: auto auto 0;
    padding-top: 20px;

    color: #285e8e;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.3px;
}

.lic-life-readmore i {
    width: 27px;
    height: 27px;

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

    border-radius: 50%;

    background: #285e8e;

    color: #ffffff;

    font-size: 13px;

    transition:
        transform .3s ease,
        background .3s ease;
}

.lic-life-readmore:hover {
    color: #285e8e;
}

.lic-life-readmore:hover i {
    background: #f7c62f;

    color: #285e8e;

    transform: translateX(5px);
}


/* =========================================================
   7TH CARD
   Center the final card in the fourth column layout
========================================================= */

.lic-life-card:nth-child(5) {
    grid-column: 1;
}

.lic-life-card:nth-child(6) {
    grid-column: 2;
}

.lic-life-card:nth-child(7) {
    grid-column: 3;
}


/* =========================================================
   LARGE LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .lic-life-section {
        padding: 90px 22px 100px;
    }

    .lic-life-grid {
        gap: 20px;
    }

    .lic-life-card-content {
        padding-left: 20px;
        padding-right: 20px;
    }

}


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

@media (max-width: 991px) {

    .lic-life-section {
        padding: 75px 20px 80px;
    }

    .lic-life-heading {
        margin-bottom: 45px;
    }

    .lic-life-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .lic-life-card:nth-child(5),
    .lic-life-card:nth-child(6),
    .lic-life-card:nth-child(7) {
        grid-column: auto;
    }

    .lic-life-card {
        min-height: 350px;
    }

}


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

@media (max-width: 767px) {

    .lic-life-section {
        padding: 65px 15px 70px;
    }

    .lic-life-heading {
        margin-bottom: 38px;
    }

    .lic-life-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .lic-life-heading h2 {
        font-size: 38px;
    }

    .lic-life-heading p {
        font-size: 15px;
    }

    .lic-life-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .lic-life-card {
        min-height: 0;
    }

    .lic-life-card-top {
        height: 150px;
    }

    .lic-life-card-content {
        padding: 23px 25px 28px;
    }

    .lic-life-card h3 {
        font-size: 19px;
    }

    .lic-life-card p {
        font-size: 14px;
    }

}


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

@media (max-width: 480px) {

    .lic-life-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lic-life-heading h2 {
        font-size: 34px;
    }

    .lic-life-heading p {
        font-size: 14px;
    }

    .lic-life-card-top {
        height: 140px;
    }

    .lic-life-icon {
        width: 72px;
        height: 72px;
    }

    .lic-life-icon i {
        font-size: 30px;
    }

    .lic-life-card-content {
        padding-left: 20px;
        padding-right: 20px;
    }

}
