/* ===== Rupani Foundation page ===== */

/* ===== Hero (Frame 335 / 334 : image + gradient + bottom-left text) ===== */
.rfhero {
    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;
}

.rfhero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Frame 7 : bottom-left text, 59px side padding / 134px up (Figma 1440 frame) */
.rfhero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 0 59px 134px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

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

/* ===== About Rupani Foundation header (Frame 216) ===== */
.rfabout {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 44px 0 20px;
}
.rfabout__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}
.rfabout__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}
.rfabout__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.rfabout__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}
.rfabout__subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    text-align: justify;
    color: #363636;
}

/* ===== About story (Frame 325 : photo + two justified paragraphs) ===== */
.rfstory {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 26px 0 40px;
}
.rfstory__wrap {
    width: 1375px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 65px;
}
.rfstory__media {
    flex: 0 0 681px;
    max-width: 50%;
    aspect-ratio: 681 / 475;
    border-radius: 23px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #dfe4df;
}
.rfstory__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 44px;
}
.rfstory__text p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: justify;
    color: #363636;
}

/* ===== Belief box (Frame 330 : centered gold-tinted quote) ===== */
.rfbelief {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 26px 0 40px;
}
.rfbelief__box {
    box-sizing: border-box;
    width: 1375px;
    max-width: calc(100% - 60px);
    min-height: 383px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 75px 22px 75px 28px;
    background: rgba(207, 142, 0, 0.12);
    border-radius: 30px;
}
/* Apex & Co. uses a blue tint for the belief box */
.rfbelief__box--blue {
    background: rgba(0, 83, 136, 0.1);
}
.rfbelief__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;
}

/* ===== Our Initiatives header (Frame 245 : bar + uppercase title) ===== */
.rfihead {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 44px 0 6px;
}
.rfihead__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}
.rfihead__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}
.rfihead__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}

/* ===== Initiatives (Frame 326/327 : alternating title+text / photo rows) ===== */
.rfprog {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 24px 0 40px;
}
.rfprog__wrap {
    width: 1375px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    gap: 85px;
}
.rfprog__row {
    display: flex;
    flex-direction: row;              /* [text, media] → text left, media right */
    justify-content: space-between;
    align-items: center;
    gap: 65px;
}
.rfprog__row--img-left {
    flex-direction: row-reverse;      /* media left, text right */
}
.rfprog__media {
    flex: 0 0 681px;
    max-width: 50%;
    aspect-ratio: 681 / 475;
    border-radius: 23px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #dfe4df;
}
.rfprog__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 31px;
}
.rfprog__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 54px;
    color: #363636;
}
.rfprog__body {
    display: flex;
    flex-direction: column;
    gap: 44px;
}
.rfprog__body p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: justify;
    color: #363636;
}

/* ===== Entities (Frame 340 : logo + italic name + orange arrow) ===== */
.rfent {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 60px 0 70px;
}
.rfent__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px 103px;
}
.rfent__card {
    flex: 0 0 261px;
    max-width: 261px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
}
.rfent__logo {
    width: 261px;
    max-width: 100%;
    height: 78px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}
.rfent__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}
.rfent__name {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #363636;
}
.rfent__arrow {
    flex: none;
    transition: transform 0.2s ease;
}
.rfent__card:hover .rfent__arrow { transform: translateX(4px); }

/* ===== Partner logos marquee (Frame 336 : auto-scroll) ===== */
.pmarquee {
    width: 100%;
    background: #FFFFFF;
    padding: 40px 0 60px;
    overflow: hidden;
}
.pmarquee__track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 23px;
    width: max-content;
    animation: pmarquee-scroll 45s linear infinite;
}
.pmarquee:hover .pmarquee__track {
    animation-play-state: paused;
}
.pmarquee__item {
    flex: none;
    height: 132px;
    display: flex;
    align-items: center;
    text-decoration: none;
}
a.pmarquee__item { transition: opacity 0.2s ease; }
a.pmarquee__item:hover { opacity: 0.7; }
.pmarquee__item img {
    height: 132px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}
@keyframes pmarquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .pmarquee__track { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .rfhero { height: 640px; }
    .rfabout__title { font-size: 36px; line-height: 54px; }
    .rfstory__wrap { gap: 40px; }
    .rfent__wrap { gap: 36px 60px; }
    .rfihead__title { font-size: 36px; line-height: 54px; }
    .rfprog__wrap { gap: 60px; }
    .rfprog__row { gap: 40px; }
    .rfprog__title { font-size: 30px; line-height: 44px; }
    .rfhero__content { padding: 0 40px 100px; }
    .rfhero__title { font-size: 34px; line-height: 48px; }
}

@media (max-width: 768px) {
    .rfhero { height: 520px; }
    .rfhero__content { padding: 0 22px 70px; }
    .rfhero__title { font-size: 28px; line-height: 40px; }
    .rfhero__desc { font-size: 16px; line-height: 24px; }
    .rfabout__title { font-size: 28px; line-height: 40px; }
    .rfabout__bar { height: 84px; }
    .rfabout__subtitle { font-size: 16px; line-height: 24px; text-align: left; }
    /* stack story */
    .rfstory__wrap { flex-direction: column; gap: 26px; }
    .rfstory__media { flex-basis: auto; width: 100%; max-width: 100%; }
    .rfstory__text { gap: 24px; }
    .rfstory__text p { text-align: left; font-size: 16px; line-height: 24px; }
    .rfbelief__box { min-height: 0; padding: 40px 24px; border-radius: 24px; }
    .rfbelief__text { font-size: 16px; line-height: 24px; }
    .rfihead__title { font-size: 26px; line-height: 38px; }
    .rfihead__bar { height: 84px; }
    /* stack initiatives — image always on top */
    .rfprog__wrap { gap: 44px; }
    .rfprog__row, .rfprog__row--img-left { flex-direction: column-reverse; gap: 22px; align-items: stretch; }
    .rfprog__media { flex-basis: auto; width: 100%; max-width: 100%; }
    .rfprog__text { gap: 20px; }
    .rfprog__title { font-size: 26px; line-height: 38px; }
    .rfprog__body { gap: 22px; }
    .rfprog__body p { text-align: left; font-size: 16px; line-height: 24px; }
    .pmarquee__item { height: 100px; }
    .pmarquee__item img { height: 100px; max-width: 240px; }
}
