/* ===== How We Work — Hero (Rectangle 51 + Frame 7) ===== */
.hwwhero {
    position: relative;
    width: 100%;
    height: 804px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}

/* Rectangle 51 : gradient overlay */
.hwwhero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) -4.21%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* centered play button */
.hwwhero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hwwhero__play svg { width: 100%; height: 100%; display: block; }
.hwwhero__play:hover { transform: translate(-50%, -50%) scale(1.08); opacity: 0.9; }

/* Frame 7 : bottom-left text block (832px wide, 30px from the left) */
.hwwhero__content {
    position: relative;
    z-index: 2;
    width: 832px;
    max-width: calc(100% - 60px);
    margin-left: 30px;
    padding-bottom: 44px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hwwhero__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 60px;
    color: #CF8E00;
}

.hwwhero__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #FFFFFF;
}

/* ===== How We Work — intro header (Frame 216) ===== */
.hwwintro {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 50px 0 30px;
}

.hwwintro__inner {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.hwwintro__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}

.hwwintro__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hwwintro__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}

.hwwintro__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: justify;
    color: #363636;
}

/* ===== How We Work — centered description box (Frame 241) ===== */
.hwwdesc {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 14px 0 40px;
}

.hwwdesc__box {
    width: 1380px;
    max-width: calc(100% - 60px);
    box-sizing: border-box;
    padding: 75px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: rgba(6, 71, 0, 0.1);
    border-radius: 30px;
}

.hwwdesc__text {
    margin: 0;
    max-width: 1325px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #363636;
}

/* ===== How We Work — plain section header (bar + title + subtitle) ===== */
.hwwhead {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 30px 0 16px;
}

.hwwhead__inner {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

/* medium-weight subtitle variant (RDI Entities) */
.hwwhead--medium .hwwapproach__desc { font-weight: 500; }

/* ===== How We Work — Our Approach (bar + title + text + chevron + divider) ===== */
.hwwapproach {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 30px 0 0;
}

.hwwapproach__inner {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hwwapproach__head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.hwwapproach__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}

.hwwapproach__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hwwapproach__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}

.hwwapproach__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #363636;
}

.hwwapproach__chevron {
    align-self: center;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
a.hwwapproach__chevron:hover { transform: translateY(2px); opacity: 0.8; }
.hwwapproach__chevron svg { width: 24px; height: 24px; display: block; }

.hwwapproach__divider {
    width: 100%;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== RDI Entities — logo marquee (Component 2 + fade masks) ===== */
.rdilogos {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    padding: 34px 0 60px;
    overflow: hidden;
}

.rdilogos__viewport {
    width: 1380px;
    max-width: calc(100% - 60px);
    margin: 0 auto;
    overflow: hidden;
}

.rdilogos__track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 90px;
    animation: rdi-marquee 32s linear infinite;
}
.rdilogos:hover .rdilogos__track { animation-play-state: paused; }

.rdilogos__item {
    flex: none;
    display: inline-flex;
    align-items: center;
}
.rdilogos__item img {
    height: 91px;
    width: auto;
    display: block;
    object-fit: contain;
}

@keyframes rdi-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* white fade masks on both edges */
.rdilogos__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    max-width: 22%;
    z-index: 2;
    pointer-events: none;
}
.rdilogos__fade--left {
    left: max(0px, calc((100% - 1380px) / 2));
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}
.rdilogos__fade--right {
    right: max(0px, calc((100% - 1380px) / 2));
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .rdilogos__track { animation: none; }
}

/* ===== How We Work — video banner (Rectangle 95 + 111) ===== */
.hwwvideo {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 30px 0 40px;
}

.hwwvideo__box {
    position: relative;
    width: 1380px;
    max-width: calc(100% - 60px);
    aspect-ratio: 1380 / 667;
    border-radius: 30px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hwwvideo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 22, 22, 0.72);
    z-index: 0;
}

.hwwvideo__play {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hwwvideo__play svg { width: 100%; height: 100%; display: block; }
.hwwvideo__play:hover { transform: scale(1.08); opacity: 0.9; }

/* ===== How We Work — Programs carousel (HWWCrousal) ===== */
.hwwcards {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 40px;
}

.hwwcards__track {
    width: 100%;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* First card aligns with the centered 1380 content column; the track runs
       full-bleed to the right so the last card reaches the screen edge. */
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 6px;
    padding-left: max(30px, calc((100% - 1380px) / 2));
    scroll-padding-left: max(30px, calc((100% - 1380px) / 2));
    scrollbar-width: none;
}
.hwwcards__track::-webkit-scrollbar { display: none; }

/* Rectangle 12 : tall image card */
.hwwcard {
    position: relative;
    flex: 0 0 auto;
    width: min(405px, calc(100vw - 54px));
    aspect-ratio: 405 / 739;
    border-radius: 30px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a2a2a;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hwwcard__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(196.16deg, rgba(3, 32, 0, 0) 0.64%, #032000 97.76%);
    z-index: 0;
}

.hwwcard__body {
    position: relative;
    z-index: 1;
    padding: 0 17px 26px;             /* 405 - 34 = 371px content width (Figma) */
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hwwcard__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    color: #FFFFFF;
}

.hwwcard__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

/* Frame 39 : gold circular arrow button — sits below the text, right-aligned */
.hwwcard__arrow {
    flex: none;
    align-self: flex-end;
    margin-top: 4px;
    width: 70px;
    height: 68px;
    border-radius: 50%;
    background: #CF8E00;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hwwcard__arrow svg { width: 26px; height: 26px; display: block; }

/* Frame 37 : gold progress indicator */
.hwwcards__dots {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 26px;
}

.hwwcards__dot {
    width: 14px;
    height: 6px;
    border-radius: 30px;
    background: #CF8E00;
    opacity: 0.5;
    cursor: pointer;
    transition: width 0.35s ease, opacity 0.35s ease;
}
.hwwcards__dot.is-active {
    width: 107px;
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .hwwhero { height: 640px; }
    .hwwintro__title { font-size: 38px; line-height: 56px; }
    .hwwapproach__title { font-size: 38px; line-height: 56px; }
    .hwwdesc__box { padding: 56px 26px; }
    .hwwhero__title { font-size: 34px; line-height: 48px; }
    .hwwhero__play { width: 66px; height: 66px; }
}

@media (max-width: 768px) {
    .hwwhero { height: 520px; }
    .hwwhero__content { margin-left: 22px; padding-bottom: 34px; }
    .hwwhero__title { font-size: 28px; line-height: 38px; }
    .hwwhero__desc { font-size: 16px; line-height: 24px; }
    .hwwhero__play { width: 56px; height: 56px; }
    .hwwintro { padding: 40px 0 24px; }
    .hwwintro__title { font-size: 30px; line-height: 44px; }
    .hwwintro__desc { font-size: 16px; line-height: 24px; }
    .hwwintro__bar { height: 84px; }
    .hwwapproach__title { font-size: 30px; line-height: 44px; }
    .hwwapproach__desc { font-size: 16px; line-height: 24px; }
    .hwwapproach__bar { height: 84px; }
    .hwwdesc__box { padding: 44px 22px; border-radius: 24px; }
    .hwwdesc__text { font-size: 17px; line-height: 26px; }
}

@media (max-width: 480px) {
    .hwwhero { height: 420px; }
    .hwwhero__content { margin-left: 16px; padding-bottom: 26px; }
    .hwwhero__title { font-size: 23px; line-height: 32px; }
    .hwwhero__desc { font-size: 14px; line-height: 21px; }
    .hwwhero__play { width: 48px; height: 48px; }
    .hwwintro__title { font-size: 24px; line-height: 34px; }
    .hwwintro__desc { font-size: 15px; line-height: 23px; text-align: left; }
    .hwwintro__bar { height: 70px; }
    .hwwapproach__title { font-size: 24px; line-height: 34px; }
    .hwwapproach__desc { font-size: 15px; line-height: 23px; }
    .hwwapproach__bar { height: 70px; }
    .hwwcards__dot.is-active { width: 72px; }
    .hwwcard__arrow { width: 58px; height: 56px; margin-top: 2px; }
    .hwwcard__body { padding: 0 18px 20px; }
    .hwwvideo__box { border-radius: 20px; }
    .hwwvideo__play { width: 60px; height: 60px; }
    .rdilogos__track { gap: 56px; }
    .rdilogos__item img { height: 64px; }
    .rdilogos__fade { width: 90px; }
}
