/**
 * Sarvoty Mega Menu Features
 * WordPress / Mega Menu Compatible
 * Desktop: 3 Columns
 * Tablet: 2 Columns
 * Mobile: 1 Column
 */

/* =========================================================
   MAIN FEATURE GRID
   ========================================================= */

.sarvoty-mega-features {
    width: 100% !important;
    max-width: 1400px !important;

    display: grid !important;

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

    gap: 10px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    list-style: none !important;

    align-items: stretch !important;
}

.sarvoty-mega-features,
.sarvoty-mega-features *,
.sarvoty-mega-features *::before,
.sarvoty-mega-features *::after {
    box-sizing: border-box;
}


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

.sarvoty-mega-feature-card {
    position: relative !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 112px !important;

    margin: 0 !important;

    padding: 18px 42px 18px 18px !important;

    border: 1px solid #e5e9e6 !important;
    border-radius: 16px !important;

    background: #ffffff !important;

    color: #151a17 !important;

    text-decoration: none !important;

    box-shadow:
        0 2px 10px rgba(16, 20, 17, 0.035) !important;

    overflow: hidden !important;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}


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

.sarvoty-mega-feature-card:hover {
    transform: translateY(-2px) !important;

    border-color: #cfd8d2 !important;

    background: #fafcfb !important;

    color: #151a17 !important;

    text-decoration: none !important;

    box-shadow:
        0 8px 22px rgba(16, 20, 17, 0.07) !important;
}


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

.sarvoty-mega-feature-card:focus,
.sarvoty-mega-feature-card:focus-visible {
    color: #151a17 !important;
    text-decoration: none !important;

    outline: 2px solid #25a86b !important;
    outline-offset: 2px !important;
}


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

.sarvoty-mega-feature-card__icon {
    flex: 0 0 32px !important;

    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;

    height: 32px !important;

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

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dce7df !important;
    border-radius: 13px !important;

    background: #f1f8f4 !important;

    color: #25a86b !important;

    font-size: 20px !important;
    line-height: 1 !important;

    text-align: center !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease !important;
}


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

.sarvoty-mega-feature-card:hover
.sarvoty-mega-feature-card__icon {
    background: #e5f5eb !important;

    border-color: #c8dfd1 !important;

    transform: scale(1.04) !important;
}


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

.sarvoty-mega-feature-card__content {
    flex: 1 1 auto !important;

    min-width: 0 !important;
    max-width: none !important;

    display: block !important;

    margin: 0 !important;
    padding: 1px 0 0 14px !important;
}


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

.sarvoty-mega-feature-card__title {
    display: block !important;

    margin: 0 0 5px !important;
    padding: 0 !important;

    color: #151a17 !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;

    letter-spacing: -0.01em !important;
}


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

.sarvoty-mega-feature-card__description {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #737c76 !important;

    font-size: 12.5px !important;
    font-weight: 400 !important;

    line-height: 1.5 !important;
}


/* =========================================================
   ARROW
   ========================================================= */

.sarvoty-mega-feature-card__arrow {
    position: absolute !important;

    right: 14px !important;
    bottom: 14px !important;

    width: 25px !important;
    height: 25px !important;

    min-width: 25px !important;

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

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #e1e7e3 !important;
    border-radius: 50% !important;

    background: #ffffff !important;

    color: #25a86b !important;

    font-size: 13px !important;
    font-weight: 400 !important;

    line-height: 1 !important;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease !important;
}


/* =========================================================
   ARROW HOVER
   ========================================================= */

.sarvoty-mega-feature-card:hover
.sarvoty-mega-feature-card__arrow {
    transform: translate(2px, -2px) !important;

    background: #25a86b !important;

    border-color: #25a86b !important;

    color: #ffffff !important;
}


/* =========================================================
   WORDPRESS / THEME OVERRIDES
   ========================================================= */

/*
 * Some WordPress themes add styles such as:
 *
 * display: block
 * width: auto
 * float: left
 * margin
 * padding
 * flex
 *
 * These overrides keep the mega-menu cards controlled
 * by this component.
 */

.sarvoty-mega-features > a.sarvoty-mega-feature-card {
    display: flex !important;

    width: 100% !important;
    max-width: none !important;

    float: none !important;

    margin: 0 !important;
}


/* Remove common menu pseudo-elements */

.sarvoty-mega-feature-card::before,
.sarvoty-mega-feature-card::after {
    display: none !important;
}


/* =========================================================
   TABLET
   901px - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .sarvoty-mega-features {
        /* max-width: 900px !important; */

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


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

@media (max-width: 900px) {

    .sarvoty-mega-features {
        width: 100% !important;

        max-width: 100% !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;
    }

}


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

@media (max-width: 700px) {

    .sarvoty-mega-features {
        width: 100% !important;

        max-width: 100% !important;

        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 8px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    .sarvoty-mega-feature-card {
        width: 100% !important;

        min-height: 96px !important;

        padding: 15px 40px 15px 15px !important;

        border-radius: 14px !important;
    }


    .sarvoty-mega-feature-card__icon {
        flex: 0 0 40px !important;

        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;

        height: 40px !important;

        border-radius: 11px !important;

        font-size: 18px !important;
    }


    .sarvoty-mega-feature-card__content {
        padding-left: 12px !important;
    }


    .sarvoty-mega-feature-card__title {
        font-size: 14px !important;

        line-height: 1.3 !important;
    }


    .sarvoty-mega-feature-card__description {
        font-size: 12px !important;

        line-height: 1.5 !important;
    }


    .sarvoty-mega-feature-card__arrow {
        right: 12px !important;
        bottom: 12px !important;

        width: 23px !important;
        height: 23px !important;

        min-width: 23px !important;

        font-size: 12px !important;
    }

}


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

@media (max-width: 400px) {

    .sarvoty-mega-feature-card {
        padding: 14px 38px 14px 14px !important;

        gap: 0 !important;
    }


    .sarvoty-mega-feature-card__icon {
        flex-basis: 38px !important;

        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;

        height: 38px !important;

        font-size: 17px !important;
    }


    .sarvoty-mega-feature-card__content {
        padding-left: 10px !important;
    }


    .sarvoty-mega-feature-card__title {
        font-size: 13px !important;
    }


    .sarvoty-mega-feature-card__description {
        font-size: 11.5px !important;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sarvoty-mega-feature-card,
    .sarvoty-mega-feature-card__icon,
    .sarvoty-mega-feature-card__arrow {
        transition: none !important;
    }

    .sarvoty-mega-feature-card:hover {
        transform: none !important;
    }

}