/* assets/css/features.css */

/* HERO */
strong {
    font-weight: 700;
}

.features-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 90px 70px;
    background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.features-hero__mini {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #0040a6;
    margin-bottom: 18px;
}

.features-hero h1 {
    font-size: 58px;
    line-height: 1.15;
    color: #111;
    font-weight: 700;
    margin-bottom: 22px;
    max-width: 650px;
}

.features-hero__desc {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 620px;
    margin-bottom: 30px;
}

.more-text {
    display: none;
}

.features-hero__desc.expanded .more-text {
    display: inline;
}

.read-more-btn {
    margin-top: -12px;
    margin-bottom: 30px;
    background: none;
    border: none;
    color: #0040a6;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: .3s ease;
}

.read-more-btn:hover {
    transform: translateX(6px);
}

.features-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 28px;
    background: #0040a6;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: .3s ease;
    margin-top: 10px;
}

.features-hero__btn:hover {
    background: #00338a;
    transform: translateY(-3px);
}

.features-hero__right img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
}


/* COMMON TITLE */
.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 48px;
}

.section-title span {
    width: 70px;
    height: 4px;
    background: #ffb200;
    border-radius: 20px;
}

.section-title h2 {
    font-size: 44px;
    font-weight: 700;
    color: #111;
}

.section-title--white h2 {
    color: #fff;
}


/* GROUPS */
.feature-groups {
    padding: 90px 70px;
    background: #fff;
    /* 003a9c */
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.group-card {
    background: #fff;
    border: 1px solid #e8edf7;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .05);
    transition: .35s ease;
    cursor: pointer;
    overflow: hidden;
}

.group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .08);
    border-color: #d4e3ff;
}

.group-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.group-card h3 {
    font-size: 26px;
    color: #0040a6;
    line-height: 1.35;
    margin: 0;
}

.group-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef5ff;
    color: #0040a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
    transition: .35s ease;
}

.group-card__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .55s ease, opacity .35s ease, margin-top .35s ease;
    margin-top: 0;
}

.group-card__content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.group-card__content ul {
    padding-left: 18px;
    margin-bottom: 16px;
}

.group-card__content li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.6;
}

.group-card.open .group-card__content {
    max-height: 800px;
    opacity: 1;
    margin-top: 22px;
}

.group-card.open .group-card__icon {
    transform: rotate(45deg);
    background: #0040a6;
    color: #fff;
}

/* desktop hover auto open */
@media(min-width:769px) {

    .group-card:hover .group-card__content {
        max-height: 800px;
        opacity: 1;
        margin-top: 22px;
    }

    .group-card:hover .group-card__icon {
        transform: rotate(45deg);
        background: #0040a6;
        color: #fff;
    }

}

/* CTA */
.feature-cta {
    padding: 100px 30px;
    text-align: center;
    background: #fff;
}

.feature-cta h2 {
    font-size: 52px;
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
}

.feature-cta p {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
}

.feature-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 34px;
    background: #0040a6;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: .3s ease;
}

.feature-cta__btn:hover {
    background: #00338a;
    transform: translateY(-3px);
}


/* responsiveness */
/* Tablet */
@media(max-width:1024px) {

    .features-hero {
        grid-template-columns: 1fr;
    }

    .groups-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-hero h1 {
        font-size: 46px;
    }

    .section-title h2 {
        font-size: 36px;
    }

    .feature-cta h2 {
        font-size: 40px;
    }

}


/* Mobile */
@media(max-width:768px) {

    .features-hero,
    .feature-groups,
    .feature-list {
        padding: 55px 22px;
    }

    .features-hero h1 {
        font-size: 36px;
    }

    .features-hero__desc,
    .feature-cta p {
        font-size: 16px;
    }

    .more-text {
        display: none;
    }

    .features-hero__desc.expanded .more-text {
        display: inline;
    }

    .read-more-btn {
        margin-top: -12px;
        margin-bottom: 30px;
        background: none;
        border: none;
        color: #0040a6;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        padding: 0;
        transition: .3s ease;
    }

    .read-more-btn:hover {
        transform: translateX(6px);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        gap: 12px;
    }

    .section-title span {
        width: 46px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .group-card,
    .feature-box {
        padding: 24px;
    }

    .group-card h3,
    .feature-box h3 {
        font-size: 22px;
    }

    .feature-cta {
        padding: 70px 22px;
    }

    .feature-cta h2 {
        font-size: 30px;
    }

}