.jfws-section,
.jfws-section * {
    box-sizing: border-box;
}

.jfws-section {
    --jfws-green: #063f2b;
    --jfws-green-dark: #032f21;
    --jfws-gold: #c7a23a;
    --jfws-light: #ffffff;
    --jfws-body: #35423c;
    --jfws-radius: 22px;
    --jfws-title: 42px;
    --jfws-title-mobile: 30px;
    --jfws-font: IRANYekanX, Inter, Arial, sans-serif;
    --jfws-section-bg: #ffffff;
    --jfws-card-bg: #ffffff;
    --jfws-card-border: #e4ebe7;
    --jfws-card-hover-border: #c7a23a;
    --jfws-benefit-cols: 2;
    --jfws-duration: 700ms;
    width: calc(100% - 32px);
    max-width: 1500px;
    margin: clamp(20px, 3vw, 34px) auto;
    display: grid;
    grid-template-columns: minmax(285px, .9fr) minmax(520px, 1.45fr) minmax(320px, 1fr);
    min-width: 0;
    overflow: clip;
    border: 1px solid rgba(6, 63, 43, .08);
    border-radius: var(--jfws-radius);
    background: var(--jfws-section-bg);
    box-shadow: 0 18px 50px rgba(11, 47, 33, .10);
    color: var(--jfws-body);
    font-family: var(--jfws-font);
    isolation: isolate;
}

.jfws-section img,
.jfws-section video,
.jfws-section iframe,
.jfws-section svg {
    max-width: 100%;
}

.jfws-intro,
.jfws-benefits,
.jfws-media,
.jfws-customers {
    position: relative;
    min-width: 0;
}

.jfws-intro {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: clamp(34px, 4vw, 68px);
    color: var(--jfws-light);
    background:
        linear-gradient(135deg, rgba(3, 47, 33, .97), rgba(6, 63, 43, .91)),
        var(--jfws-left-bg, none) center / cover no-repeat;
}

.jfws-intro::before,
.jfws-intro::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.jfws-intro::before {
    width: 240px;
    height: 240px;
    inset-inline-start: -140px;
    inset-block-start: -95px;
    border: 1px solid rgba(255, 255, 255, .11);
}

.jfws-intro::after {
    width: 190px;
    height: 190px;
    inset-inline-end: -110px;
    inset-block-end: -90px;
    background: radial-gradient(circle, rgba(199, 162, 58, .18), transparent 70%);
}

.jfws-intro-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.jfws-eyebrow {
    margin: 0 0 14px;
    color: var(--jfws-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jfws-title {
    margin: 0;
    max-width: 680px;
    color: var(--jfws-light);
    font-size: clamp(30px, 2.7vw, var(--jfws-title));
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.jfws-description {
    margin-top: 18px;
    max-width: 590px;
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    line-height: 1.85;
}

.jfws-description p {
    margin: 0;
}

.jfws-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 48px;
    margin-top: 26px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--jfws-gold), #a9852f);
    box-shadow: 0 10px 26px rgba(199, 162, 58, .22);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.jfws-button-arrow {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
}

.jfws-button-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jfws-section[dir="rtl"] .jfws-button-arrow svg {
    transform: scaleX(-1);
}

.jfws-benefits {
    display: grid;
    grid-template-columns: repeat(var(--jfws-benefit-cols), minmax(0, 1fr));
    align-content: center;
    gap: clamp(16px, 1.7vw, 26px);
    padding: clamp(30px, 3.3vw, 56px) clamp(24px, 3vw, 48px);
    background:
        radial-gradient(circle at 95% 5%, rgba(199, 162, 58, .08), transparent 24%),
        var(--jfws-section-bg);
}

.jfws-benefit {
    min-width: 0;
    border: 1px solid var(--jfws-card-border);
    border-radius: 16px;
    background: var(--jfws-card-bg);
    box-shadow: 0 8px 24px rgba(11, 68, 47, .055);
    overflow: clip;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.jfws-benefit-link,
.jfws-benefit > .jfws-icon,
.jfws-benefit > .jfws-benefit-copy {
    min-width: 0;
}

.jfws-benefit-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.jfws-benefit:not(.jfws-benefit--linked) {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 18px;
}

.jfws-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(7, 77, 52, .15);
    border-radius: 50%;
    color: var(--jfws-green);
    background: linear-gradient(145deg, #ffffff, #f3f8f5);
    box-shadow: 0 8px 20px rgba(11, 68, 47, .08);
    flex: 0 0 54px;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.jfws-icon img,
.jfws-icon svg {
    width: 27px;
    height: 27px;
    display: block;
    object-fit: contain;
}

.jfws-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jfws-benefit-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.jfws-benefit-number,
.jfws-benefit-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--jfws-green-dark);
    background: rgba(199, 162, 58, .14);
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.2;
}

.jfws-benefit-copy h3 {
    margin: 3px 0 7px;
    color: #16261f;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.jfws-benefit-copy p {
    margin: 0;
    color: #68746f;
    font-size: 12.5px;
    line-height: 1.7;
}

.jfws-media {
    min-height: 440px;
    overflow: hidden;
    background: linear-gradient(135deg, #dfe9e4, #edf2ef);
}

.jfws-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .34), transparent 28%, rgba(0, 0, 0, .07));
    pointer-events: none;
}

.jfws-media-image,
.jfws-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .75s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

.jfws-media-placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(199, 162, 58, .24), transparent 22%),
        linear-gradient(135deg, #dce9e2, #f5f8f6 55%, #d8e2dd);
}

.jfws-play {
    position: absolute;
    z-index: 3;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 122px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    color: #ffffff;
    background: rgba(4, 61, 42, .92);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
    cursor: pointer;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.jfws-play-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--jfws-gold);
    box-shadow: 0 0 0 8px rgba(199, 162, 58, .14);
}

.jfws-play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-inline-start: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-inline-start: 11px solid #ffffff;
}

.jfws-play-text {
    max-width: 88px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

/* Customer / partner image strip */
.jfws-customers {
    grid-column: 1 / -1;
    padding: 22px clamp(20px, 3vw, 38px) 26px;
    border-top: 1px solid var(--jfws-card-border);
    background: var(--jfws-section-bg);
}

.jfws-customers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.jfws-customers-head h3 {
    margin: 0;
    color: var(--jfws-green-dark);
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 750;
    line-height: 1.4;
}

.jfws-customer-controls {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.jfws-customer-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(6, 63, 43, .18);
    border-radius: 50%;
    color: var(--jfws-green);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(6, 63, 43, .08);
    cursor: pointer;
    transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease, opacity .22s ease;
}

.jfws-customer-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jfws-customer-arrow[disabled],
.jfws-customer-arrow.is-hidden {
    opacity: .36;
    cursor: default;
}

.jfws-customer-controls.is-unneeded {
    display: none;
}

.jfws-customer-track {
    direction: ltr;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(135px, 170px);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 1px 5px;
}

.jfws-customer-track::-webkit-scrollbar {
    display: none;
}

.jfws-customer-item {
    scroll-snap-align: start;
    min-width: 0;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    padding: 14px;
    border: 1px solid var(--jfws-card-border);
    border-radius: 14px;
    background: var(--jfws-card-bg);
    box-shadow: 0 5px 16px rgba(6, 63, 43, .05);
}

.jfws-customer-item a {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.jfws-customer-image {
    width: 100%;
    height: 100%;
    max-height: 76px;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Hover effects only where hover is actually available. */
@media (hover: hover) and (pointer: fine) {
    .jfws-button:hover,
    .jfws-button:focus-visible {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(199, 162, 58, .30);
        filter: brightness(1.04);
    }

    .jfws-benefit:hover {
        transform: translateY(-4px);
        border-color: var(--jfws-card-hover-border);
        box-shadow: 0 14px 30px rgba(11, 68, 47, .09);
    }

    .jfws-benefit:hover .jfws-icon {
        transform: translateY(-2px) scale(1.035);
        border-color: var(--jfws-card-hover-border);
        box-shadow: 0 12px 24px rgba(11, 68, 47, .12);
    }

    .jfws-hover-zoom .jfws-media:hover .jfws-media-image {
        transform: scale(1.045);
    }

    .jfws-hover-lift .jfws-media {
        transition: transform .35s ease, box-shadow .35s ease;
    }

    .jfws-hover-lift .jfws-media:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 34px rgba(7, 54, 38, .16);
    }

    .jfws-hover-shine .jfws-media::before {
        content: "";
        position: absolute;
        z-index: 2;
        inset-block: 0;
        inset-inline-start: -55%;
        width: 36%;
        transform: skewX(-18deg);
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
        transition: inset-inline-start .8s ease;
        pointer-events: none;
    }

    .jfws-hover-shine .jfws-media:hover::before {
        inset-inline-start: 125%;
    }

    .jfws-play:hover,
    .jfws-play:focus-visible {
        transform: translate(-50%, -50%) scale(1.045);
        background: var(--jfws-green);
        box-shadow: 0 24px 52px rgba(0, 0, 0, .27);
    }

    .jfws-customer-arrow:not([disabled]):hover,
    .jfws-customer-arrow:focus-visible {
        border-color: var(--jfws-gold);
        color: var(--jfws-green-dark);
        background: rgba(199, 162, 58, .12);
        transform: translateY(-1px);
    }
}

/* Gentle float keeps motion small and image proportions intact. */
.jfws-hover-float .jfws-media-image {
    animation: jfwsFloat 5.8s ease-in-out infinite;
}

@keyframes jfwsFloat {
    0%, 100% { transform: scale(1.01) translateY(0); }
    50% { transform: scale(1.025) translateY(-5px); }
}

/* Entrance animations */
.jfws-section [data-jfws-item] {
    transition-property: opacity, transform;
    transition-duration: var(--jfws-duration);
    transition-delay: var(--jfws-delay, 0ms);
    transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.jfws-animate-fade-up:not(.is-visible) [data-jfws-item] {
    opacity: 0;
    transform: translateY(22px);
}

.jfws-animate-fade-in:not(.is-visible) [data-jfws-item] {
    opacity: 0;
}

.jfws-animate-slide-left:not(.is-visible) [data-jfws-item] {
    opacity: 0;
    transform: translateX(-26px);
}

.jfws-animate-slide-right:not(.is-visible) [data-jfws-item] {
    opacity: 0;
    transform: translateX(26px);
}

.jfws-animate-zoom-in:not(.is-visible) [data-jfws-item] {
    opacity: 0;
    transform: scale(.96);
}

/* Inline video player */
.jfws-media--inline-video {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #000000;
}

.jfws-inline-video,
.jfws-inline-video iframe,
.jfws-inline-video video {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: block;
    border: 0;
    background: #000000;
}

.jfws-inline-video video {
    object-fit: contain;
}

/* Video modal */
.jfws-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .82);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.jfws-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.jfws-modal-dialog {
    position: relative;
    width: min(1100px, 94vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.jfws-modal-content,
.jfws-modal-content iframe,
.jfws-modal-content video {
    width: 100%;
    height: 100%;
}

.jfws-modal-content iframe,
.jfws-modal-content video {
    display: block;
    border: 0;
    object-fit: contain;
}

.jfws-modal-close {
    position: absolute;
    z-index: 2;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(3, 47, 33, .88);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.jfws-modal-open {
    overflow: hidden;
}

.jfws-button:focus-visible,
.jfws-benefit-link:focus-visible,
.jfws-play:focus-visible,
.jfws-customer-arrow:focus-visible,
.jfws-customer-track:focus-visible,
.jfws-customer-item a:focus-visible,
.jfws-modal-close:focus-visible {
    outline: 3px solid rgba(199, 162, 58, .72);
    outline-offset: 3px;
}

/* Direction refinements */
.jfws-section[dir="rtl"] .jfws-title,
.jfws-section[dir="rtl"] .jfws-eyebrow {
    letter-spacing: 0;
}

.jfws-section[dir="rtl"] .jfws-intro,
.jfws-section[dir="rtl"] .jfws-benefit-copy,
.jfws-section[dir="rtl"] .jfws-customers-head {
    text-align: right;
}

/* Large tablet / small laptop */
@media (max-width: 1240px) {
    .jfws-section {
        grid-template-columns: minmax(280px, .9fr) minmax(0, 1.6fr);
    }

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

    .jfws-media {
        grid-column: 1 / -1;
        min-height: 380px;
        aspect-ratio: 16 / 7;
    }

    .jfws-media-image,
    .jfws-media-placeholder,
    .jfws-inline-video,
    .jfws-inline-video iframe,
    .jfws-inline-video video {
        min-height: 380px;
    }
}

/* Tablet */
@media (max-width: 860px) {
    .jfws-section {
        width: calc(100% - 24px);
        grid-template-columns: minmax(0, 1fr);
        margin: 24px auto;
    }

    .jfws-intro {
        min-height: auto;
        padding: 42px 28px;
        text-align: center;
    }

    .jfws-intro-inner,
    .jfws-title,
    .jfws-description {
        margin-inline: auto;
    }

    .jfws-title {
        font-size: var(--jfws-title-mobile);
    }

    .jfws-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 28px 22px;
    }

    .jfws-media {
        grid-column: auto;
        min-height: 320px;
        aspect-ratio: 16 / 9;
    }

    .jfws-media-image,
    .jfws-media-placeholder,
    .jfws-inline-video,
    .jfws-inline-video iframe,
    .jfws-inline-video video {
        min-height: 320px;
    }

    .jfws-section[dir="rtl"] .jfws-intro {
        text-align: center;
    }

    .jfws-customer-track {
        grid-auto-columns: minmax(130px, 155px);
    }
}

/* Mobile */
@media (max-width: 560px) {
    .jfws-section {
        width: calc(100% - 18px);
        margin: 18px auto;
        border-radius: min(var(--jfws-radius), 18px);
    }

    .jfws-intro {
        padding: 34px 20px 36px;
    }

    .jfws-eyebrow {
        font-size: 10.5px;
    }

    .jfws-title {
        font-size: min(var(--jfws-title-mobile), 30px);
        line-height: 1.22;
    }

    .jfws-description {
        margin-top: 14px;
        font-size: 13.8px;
        line-height: 1.75;
    }

    .jfws-button {
        width: 100%;
        max-width: 320px;
        min-height: 46px;
        margin-top: 22px;
    }

    .jfws-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 16px;
    }

    .jfws-benefit-link,
    .jfws-benefit:not(.jfws-benefit--linked) {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .jfws-icon {
        width: 48px;
        height: 48px;
    }

    .jfws-icon img,
    .jfws-icon svg {
        width: 24px;
        height: 24px;
    }

    .jfws-benefit-copy h3 {
        font-size: 14.5px;
    }

    .jfws-benefit-copy p {
        font-size: 12.2px;
    }

    .jfws-media,
    .jfws-media-image,
    .jfws-media-placeholder,
    .jfws-inline-video,
    .jfws-inline-video iframe,
    .jfws-inline-video video {
        min-height: 260px;
    }

    .jfws-play {
        width: 102px;
        border-radius: 23px;
    }

    .jfws-play-icon {
        width: 38px;
        height: 38px;
    }

    .jfws-customers {
        padding: 18px 15px 20px;
    }

    .jfws-customers-head {
        align-items: center;
        gap: 10px;
    }

    .jfws-customer-arrow {
        width: 38px;
        height: 38px;
    }

    .jfws-customer-track {
        grid-auto-columns: minmax(118px, 142px);
        gap: 10px;
    }

    .jfws-customer-item {
        padding: 10px;
        border-radius: 12px;
    }

    .jfws-modal {
        padding: 10px;
    }

    .jfws-modal-dialog {
        width: 100%;
        border-radius: 12px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .jfws-section {
        width: calc(100% - 12px);
    }

    .jfws-intro {
        padding-inline: 16px;
    }

    .jfws-benefits {
        padding-inline: 12px;
    }

    .jfws-benefit-link,
    .jfws-benefit:not(.jfws-benefit--linked) {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 13px;
    }

    .jfws-icon {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jfws-section *,
    .jfws-section *::before,
    .jfws-section *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
