/* =========================================================
   START — SECTION 10
   RANG SAREH — PREMIUM NEWSLETTER
   WordPress-safe namespace: rsx-news
========================================================= */

.rsx-news,
.rsx-news * {
    box-sizing: border-box;
}


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

.rsx-news {
    position: relative;

    width: 100vw;

    margin-left:
        calc(50% - 50vw);

    margin-right:
        calc(50% - 50vw);

    padding:
        92px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 9% 22%,
            rgba(255,225,97,.12),
            transparent 22%
        ),
        radial-gradient(
            circle at 91% 80%,
            rgba(40,96,67,.08),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f5f7f3 0%,
            #edf2ed 100%
        );

    isolation: isolate;
}


/* =========================================================
   OUTER GLOWS
========================================================= */

.rsx-news__glow {
    position: absolute;

    z-index: 0;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}


.rsx-news__glow--one {
    top: -170px;
    left: 14%;

    width: 390px;
    height: 390px;

    background:
        rgba(255,225,97,.10);
}


.rsx-news__glow--two {
    right: -120px;
    bottom: -180px;

    width: 430px;
    height: 430px;

    background:
        rgba(42,100,72,.09);
}


/* =========================================================
   INNER
========================================================= */

.rsx-news__inner {
    position: relative;

    z-index: 3;

    width:
        min(
            1320px,
            calc(100% - 70px)
        );

    margin: 0 auto;
}


/* =========================================================
   MAIN PANEL
========================================================= */

.rsx-news__panel {
    position: relative;

    overflow: hidden;

    padding:
        59px 59px 28px;

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

    border-radius:
        35px;

    background:
        radial-gradient(
            circle at 12% 30%,
            rgba(255,225,97,.07),
            transparent 25%
        ),
        radial-gradient(
            circle at 88% 75%,
            rgba(85,132,206,.065),
            transparent 26%
        ),
        linear-gradient(
            125deg,
            #082419 0%,
            #123c2a 50%,
            #09271b 100%
        );

    box-shadow:
        0 30px 70px
        rgba(31,52,40,.18);

    isolation: isolate;

    opacity: 0;

    transform:
        translateY(30px);
}


/* grid lines */

.rsx-news__panel::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    -webkit-mask-image:
        radial-gradient(
            ellipse at center,
            #000 8%,
            transparent 82%
        );

    mask-image:
        radial-gradient(
            ellipse at center,
            #000 8%,
            transparent 82%
        );

    pointer-events: none;
}


/* premium top line */

.rsx-news__panel::after {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 70%;

    height: 1px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,225,97,.38),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   COLOR ORBS
========================================================= */

.rsx-news__orb {
    position: absolute;

    z-index: 0;

    border-radius: 50%;

    filter:
        blur(45px);

    opacity: .19;

    pointer-events: none;
}


.rsx-news__orb--yellow {
    top: -50px;
    right: 23%;

    width: 160px;
    height: 160px;

    background: #ffe161;
}


.rsx-news__orb--blue {
    left: 7%;
    bottom: -70px;

    width: 180px;
    height: 180px;

    background: #4e83be;
}


.rsx-news__orb--red {
    left: 41%;
    top: -85px;

    width: 155px;
    height: 155px;

    background: #dc694f;
}


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

.rsx-news__grid {
    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns:
        1fr .92fr;

    align-items: center;

    gap: 62px;

    direction: rtl;
}


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

.rsx-news__content {
    direction: rtl;

    text-align: right;
}


/* =========================================================
   EYEBROW
========================================================= */

.rsx-news__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    direction: ltr;

    color: #91aa9b;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .20em;
}


.rsx-news__eyebrow-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 28px;
    height: 28px;

    border:
        1px solid
        rgba(255,225,97,.14);

    border-radius: 9px;

    background:
        rgba(255,225,97,.05);

    color: #ffe161;
}


.rsx-news__eyebrow-icon svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


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

.rsx-news__title {
    max-width: 610px;

    margin:
        0 0 15px;

    color: #f4f8f5;

    font-size:
        clamp(
            31px,
            3vw,
            46px
        );

    font-weight: 800;

    line-height: 1.55;

    letter-spacing: -.025em;
}


.rsx-news__title span {
    color: #ffe161;
}


/* =========================================================
   TEXT
========================================================= */

.rsx-news__text {
    max-width: 570px;

    margin:
        0 0 25px;

    color: #a4b6ab;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   BENEFITS
========================================================= */

.rsx-news__benefits {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}


.rsx-news__benefit {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        8px 10px;

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

    border-radius:
        11px;

    background:
        rgba(255,255,255,.035);

    color: #a8bbb0;

    font-size: 9.5px;

    line-height: 1.5;
}


.rsx-news__benefit-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 7px;

    background:
        rgba(255,225,97,.08);

    color: #ffe161;
}


.rsx-news__benefit-icon svg {
    width: 11px;
    height: 11px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   SUBSCRIBE BOX
========================================================= */

.rsx-news__subscribe {
    position: relative;

    padding:
        27px;

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

    border-radius:
        25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.085),
            rgba(255,255,255,.035)
        );

    -webkit-backdrop-filter:
        blur(18px);

    backdrop-filter:
        blur(18px);

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.08),
        0 20px 40px
        rgba(0,0,0,.11);
}


/* =========================================================
   SUBSCRIBE TOP
========================================================= */

.rsx-news__subscribe-top {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 23px;

    direction: rtl;
}


.rsx-news__subscribe-icon {
    display: grid;

    place-items: center;

    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    padding: 0;

    border:
        1px solid
        rgba(255,225,97,.18);

    border-radius:
        14px;

    background:
        rgba(255,225,97,.08);

    color:
        #ffe161;

    line-height: 0;
}


.rsx-news__subscribe-icon svg {
    display: block;

    width: 21px;
    height: 21px;

    margin: auto;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.rsx-news__subscribe-top strong {
    display: block;

    margin-bottom: 3px;

    color: #f5f8f6;

    font-size: 14px;

    font-weight: 750;

    line-height: 1.4;
}


.rsx-news__subscribe-top span {
    display: block;

    color: #8ea398;

    font-size: 9.5px;

    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.rsx-news__form {
    width: 100%;
    margin: 0;
}


/*
   مهم:
   input و button دقیقاً در یک خط
*/

.rsx-news__form-row {
    display: flex;

    align-items: stretch;

    width: 100%;

    gap: 8px;

    direction: rtl;
}


/* =========================================================
   FIELD
========================================================= */

.rsx-news__field {
    position: relative;

    display: flex;

    align-items: center;

    flex:
        1 1 auto;

    min-width: 0;

    height: 58px;

    margin: 0;

    padding:
        0 15px;

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

    border-radius:
        16px;

    background:
        rgba(255,255,255,.94);

    direction: rtl;

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background-color .3s ease;
}


.rsx-news__field:focus-within {
    border-color:
        rgba(255,225,97,.72);

    background:
        #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(255,225,97,.08);
}


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

.rsx-news__mail {
    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    margin-left: 9px;

    color: #668072;
}


.rsx-news__mail svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   INPUT
========================================================= */

.rsx-news__field input {
    display: block;

    flex:
        1 1 auto;

    width: 100%;

    min-width: 0;

    height: 100%;

    margin: 0;

    padding: 0;

    border: 0;

    outline: 0;

    box-shadow: none;

    background: transparent;

    color: #264a37;

    direction: rtl;

    text-align: right;

    font-size: 12px;

    line-height: 1;

    appearance: none;

    -webkit-appearance: none;
}


.rsx-news__field input::placeholder {
    color: #96a39b;

    opacity: 1;
}


/* =========================================================
   BUTTON
========================================================= */

.rsx-news__button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex:
        0 0 auto;

    gap: 9px;

    height: 58px;

    margin: 0;

    padding:
        0 18px;

    border:
        1px solid
        rgba(255,225,97,.40);

    border-radius:
        16px;

    background:
        linear-gradient(
            145deg,
            #ffe161,
            #efc849
        );

    color: #173f2e;

    cursor: pointer;

    box-shadow:
        0 13px 25px
        rgba(0,0,0,.13),
        inset 0 1px 0
        rgba(255,255,255,.45);

    white-space: nowrap;

    font-family: inherit;

    font-size: 11px;

    font-weight: 750;

    line-height: 1;

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


.rsx-news__button-arrow {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 26px;
    height: 26px;

    border-radius: 8px;

    background:
        rgba(23,63,46,.09);
}


.rsx-news__button-arrow svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;
}


@media (hover:hover) and (pointer:fine) {

    .rsx-news__button:hover {
        transform:
            translateY(-3px);

        filter:
            brightness(1.025);

        box-shadow:
            0 17px 30px
            rgba(0,0,0,.18),
            inset 0 1px 0
            rgba(255,255,255,.50);
    }

}


/* =========================================================
   MESSAGE
========================================================= */

.rsx-news__message {
    min-height: 19px;

    margin-top: 8px;

    padding-right: 4px;

    direction: rtl;

    text-align: right;

    font-size: 9.5px;

    line-height: 1.6;
}


.rsx-news__message.is-error {
    color: #ffc0b5;
}


.rsx-news__message.is-success {
    color: #bce3c8;
}


/* =========================================================
   PRIVACY
========================================================= */

.rsx-news__privacy {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 10px;

    color: #82988c;

    direction: rtl;

    font-size: 8.5px;

    line-height: 1.6;
}


.rsx-news__privacy-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    color: #9fb2a7;
}


.rsx-news__privacy-icon svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   BOTTOM
========================================================= */

.rsx-news__bottom {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 39px;
}


.rsx-news__bottom-line {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );
}


.rsx-news__bottom-center {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #738b7e;

    direction: ltr;

    white-space: nowrap;

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .14em;
}


/* =========================================================
   PALETTE
========================================================= */

.rsx-news__palette {
    display: flex;

    align-items: center;

    gap: 3px;
}


.rsx-news__palette i {
    display: block;

    width: 5px;
    height: 14px;

    border-radius: 999px;
}


.rsx-news__palette i:nth-child(1) {
    background: #ec6956;
}


.rsx-news__palette i:nth-child(2) {
    background: #ffe161;
}


.rsx-news__palette i:nth-child(3) {
    background: #58a37a;
}


.rsx-news__palette i:nth-child(4) {
    background: #5b89ba;
}


/* =========================================================
   REVEAL
========================================================= */

.rsx-news--visible
.rsx-news__panel {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity .85s ease,
        transform .9s
        cubic-bezier(.18,.76,.2,1);
}


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

@media (max-width: 1199px) {

    .rsx-news {
        padding:
            78px 0;
    }


    .rsx-news__inner {
        width:
            calc(100% - 44px);
    }


    .rsx-news__panel {
        padding:
            45px 38px 26px;
    }


    .rsx-news__grid {
        grid-template-columns:
            1fr;

        gap: 35px;
    }


    .rsx-news__content {
        text-align: center;
    }


    .rsx-news__title,
    .rsx-news__text {
        margin-left: auto;
        margin-right: auto;
    }


    .rsx-news__benefits {
        justify-content: center;
    }


    .rsx-news__eyebrow {
        justify-content: center;
    }

}


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

@media (max-width: 767px) {

    .rsx-news {
        padding:
            60px 0;
    }


    .rsx-news__inner {
        width:
            calc(100% - 20px);
    }


    .rsx-news__panel {
        padding:
            34px 18px 22px;

        border-radius:
            25px;
    }


    .rsx-news__grid {
        gap: 27px;
    }


    .rsx-news__title {
        font-size:
            clamp(
                27px,
                8.5vw,
                35px
            );
    }


    .rsx-news__text {
        font-size: 11.5px;

        line-height: 1.9;
    }


    .rsx-news__benefits {
        gap: 7px;
    }


    .rsx-news__benefit {
        padding:
            7px 8px;

        font-size:
            8.5px;
    }


    .rsx-news__subscribe {
        padding:
            20px 15px;

        border-radius:
            20px;
    }


    /*
       موبایل:
       فرم زیر هم می‌آید چون عرض محدود است.
       دسکتاپ/تبلت همچنان دقیقاً یک خط است.
    */

    .rsx-news__form-row {
        display: grid;

        grid-template-columns:
            1fr;

        gap: 8px;
    }


    .rsx-news__field,
    .rsx-news__button {
        width: 100%;

        height: 54px;
    }


    .rsx-news__button {
        justify-content: center;
    }


    .rsx-news__bottom {
        margin-top: 28px;
    }


    .rsx-news__bottom-line {
        display: none;
    }


    .rsx-news__bottom-center {
        width: 100%;

        justify-content: center;

        white-space: normal;

        text-align: center;

        flex-wrap: wrap;
    }

}


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

@media (max-width: 400px) {

    .rsx-news__inner {
        width:
            calc(100% - 16px);
    }


    .rsx-news__panel {
        padding:
            30px 14px 20px;
    }


    .rsx-news__subscribe {
        padding:
            17px 12px;
    }


    .rsx-news__benefit {
        font-size:
            8px;
    }

}


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

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

    .rsx-news__panel {
        opacity: 1;

        transform: none;

        transition: none;
    }


    .rsx-news__button {
        transition: none;
    }

}

/* =========================================================
   END — SECTION 10
========================================================= */
