/* =========================================================
   ADI YOGPEETH — TRUST / SCHOOL INTRODUCTION STRIP
   File: assets/css/trust-strip.css
   Version: 4.0
   ========================================================= */


/* =========================================================
   01. SECTION
   ========================================================= */

.ayp-trust-strip {

    position: relative;

    width: 100%;

    color: #f7f2e8;

    background-color: #0c3329;

    overflow: hidden;

    border-top:
        1px solid
        rgba(198, 165, 101, 0.42);

    border-bottom:
        1px solid
        rgba(198, 165, 101, 0.42);

}


/* =========================================================
   02. BACKGROUND IMAGE
   ========================================================= */

.ayp-trust-strip__background {

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:
        url("../images/bg/rishikesh-bg.webp");

    background-repeat: no-repeat;

    background-position:
        center center;

    background-size:
        cover;

    transform:
        scale(1.015);

}


/* =========================================================
   03. GREEN OVERLAY
   ========================================================= */

.ayp-trust-strip__overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(
            90deg,
            rgba(7, 38, 30, 0.93) 0%,
            rgba(10, 52, 41, 0.88) 25%,
            rgba(10, 55, 43, 0.87) 50%,
            rgba(7, 40, 32, 0.91) 100%
        );

}


/* =========================================================
   04. ADDITIONAL IMAGE DEPTH
   ========================================================= */

.ayp-trust-strip__overlay::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            180deg,
            rgba(4, 27, 21, 0.18) 0%,
            transparent 30%,
            rgba(4, 27, 21, 0.20) 100%
        );

}


/* =========================================================
   05. CONTAINER
   ========================================================= */

.ayp-trust-strip__container {

    position: relative;

    z-index: 2;

    width:
        min(
            94%,
            1480px
        );

    margin-inline: auto;

}


/* =========================================================
   06. GRID
   ========================================================= */

.ayp-trust-strip__grid {

    display: grid;

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

}


/* =========================================================
   07. TRUST POINT
   ========================================================= */

.ayp-trust-point {

    position: relative;

    display: flex;

    min-width: 0;

    min-height: 292px;

    padding:
        38px
        32px
        40px;

    background:
        rgba(
            8,
            48,
            38,
            0.16
        );

    transition:
        background-color 240ms ease;

}


/* =========================================================
   08. DIVIDERS
   ========================================================= */

.ayp-trust-point + .ayp-trust-point {

    border-left:
        1px solid
        rgba(
            225,
            202,
            151,
            0.34
        );

}


/* =========================================================
   09. CONTENT
   ========================================================= */

.ayp-trust-point__content {

    display: flex;

    flex-direction: column;

    width: 100%;

    min-width: 0;

}


/* =========================================================
   10. LABEL
   ========================================================= */

.ayp-trust-point__label {

    display: block;

    margin-bottom:
        17px;

    color:
        #d0b06e;

    font-family:
        var(--font-body);

    font-size:
        0.61rem;

    font-weight:
        var(--font-weight-semibold);

    letter-spacing:
        0.18em;

    line-height:
        1.35;

    text-transform:
        uppercase;

}


/* =========================================================
   11. LABEL RULE
   ========================================================= */

.ayp-trust-point__label::after {

    content: "";

    display: block;

    width:
        34px;

    height:
        1px;

    margin-top:
        11px;

    background:
        #b99754;

}


/* =========================================================
   12. TITLE
   ========================================================= */

.ayp-trust-point__title {

    width: 100%;

    max-width:
        305px;

    min-height:
        61px;

    margin: 0;

    color:
        #f8f3e9;

    font-family:
        var(--font-display);

    font-size:
        clamp(
            1.28rem,
            1.48vw,
            1.62rem
        );

    font-weight:
        var(--font-weight-medium);

    line-height:
        1.14;

    letter-spacing:
        -0.015em;

}


/* =========================================================
   13. DESCRIPTION
   ========================================================= */

.ayp-trust-point__text {

    width: 100%;

    max-width:
        315px;

    min-height:
        137px;

    margin:
        17px
        0
        0;

    color:
        rgba(
            247,
            242,
            232,
            0.78
        );

    font-family:
        var(--font-body);

    font-size:
        0.75rem;

    font-weight: var(--font-weight-regular);

    line-height:
        1.58;

}


/* =========================================================
   14. HOVER
   ========================================================= */

.ayp-trust-point:hover {

    background:
        rgba(
            7,
            42,
            33,
            0.32
        );

}


/* =========================================================
   15. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1440px) {

    .ayp-trust-point {

        min-height:
            300px;

        padding:
            41px
            37px
            42px;

    }


    .ayp-trust-point__title {

        font-size:
            1.58rem;

    }


    .ayp-trust-point__text {

        font-size:
            0.77rem;

        line-height:
            1.6;

    }

}


/* =========================================================
   16. TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1199px) {

    .ayp-trust-strip__container {

        width:
            92%;

    }


    .ayp-trust-point {

        min-height:
            285px;

        padding:
            32px
            24px
            34px;

    }


    .ayp-trust-point__title {

        max-width:
            275px;

        font-size:
            1.27rem;

    }


    .ayp-trust-point__text {

        max-width:
            285px;

        font-size:
            0.71rem;

    }

}


/* =========================================================
   17. TABLET
   ========================================================= */

@media (max-width: 991px) {

    .ayp-trust-strip__container {

        width:
            92%;

    }


    .ayp-trust-strip__grid {

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

    }


    .ayp-trust-point {

        min-height:
            255px;

        padding:
            30px
            27px;

    }


    .ayp-trust-point:nth-child(3),
    .ayp-trust-point:nth-child(4) {

        border-top:
            1px solid
            rgba(
                225,
                202,
                151,
                0.30
            );

    }


    .ayp-trust-point:nth-child(3) {

        border-left:
            0;

    }


    .ayp-trust-point__title {

        min-height:
            55px;

        font-size:
            1.22rem;

    }


    .ayp-trust-point__text {

        min-height:
            115px;

    }

}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ayp-trust-strip__background {

        background-position:
            center center;

    }


    .ayp-trust-strip__overlay {

        background:

            linear-gradient(
                180deg,
                rgba(7, 38, 30, 0.95),
                rgba(10, 52, 41, 0.94)
            );

    }


    .ayp-trust-strip__container {

        width:
            90%;

    }


    .ayp-trust-strip__grid {

        grid-template-columns:
            1fr;

    }


    .ayp-trust-point,
    .ayp-trust-point:nth-child(3),
    .ayp-trust-point:nth-child(4) {

        min-height:
            auto;

        padding:
            28px
            0
            30px;

        border-left:
            0;

        border-top:
            1px solid
            rgba(
                225,
                202,
                151,
                0.25
            );

        background:
            transparent;

    }


    .ayp-trust-point:first-child {

        border-top:
            0;

    }


    .ayp-trust-point__label {

        margin-bottom:
            15px;

        font-size:
            0.57rem;

    }


    .ayp-trust-point__title {

        max-width:
            100%;

        min-height:
            auto;

        font-size:
            1.28rem;

    }


    .ayp-trust-point__text {

        max-width:
            100%;

        min-height:
            auto;

        margin-top:
            13px;

        font-size:
            0.74rem;

        line-height:
            1.58;

    }

}


/* =========================================================
   19. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .ayp-trust-strip__container {

        width:
            88%;

    }


    .ayp-trust-point {

        padding:
            25px
            0
            27px;

    }


    .ayp-trust-point__title {

        font-size:
            1.16rem;

    }


    .ayp-trust-point__text {

        font-size:
            0.71rem;

        line-height:
            1.56;

    }

}


/* =========================================================
   20. ACCESSIBILITY
   ========================================================= */

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

    .ayp-trust-point {

        transition:
            none;

    }

}


/* =========================================================
   END
   ========================================================= */

