/* ===== Our Initiatives page ===== */

/* ===== Hero (Rectangle 51 + Frame 7) ===== */
.inithero {
    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;
}

.inithero__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 (832px wide, 30px from the left, ~134px up) */
.inithero__content {
    position: relative;
    z-index: 2;
    width: 832px;
    max-width: calc(100% - 60px);
    margin-left: 30px;
    padding-bottom: 134px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

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

/* ===== Our Ecosystem header ===== */
.initintro {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 50px 0 20px;
}

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

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

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

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

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

/* ===== Ecosystem hub (RDI logo + eco cards + entity panels + strong) ===== */
.eco {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 20px 0 70px;
}
.eco__wrap {
    position: relative;
    width: 1380px;
    max-width: calc(100% - 60px);
}

/* Row 1 : cards + centre logo (with dashed connectors between) */
.eco__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

/* horizontal dashed connector from the logo out to each side card */
.eco__hline {
    flex: 1 1 auto;
    min-width: 36px;
    align-self: center;
    height: 0;
    margin: 0 12px;
    border-top: 1.5px dashed rgba(54, 54, 54, 0.5);
    position: relative;
}
.eco__hline::after {           /* arrowhead pointing at the card */
    content: '';
    position: absolute;
    top: 50%;
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.eco__hline--left::after {     /* left card is to the left → point left */
    left: -1px;
    transform: translate(-100%, -50%);
    border-right: 9px solid rgba(54, 54, 54, 0.55);
}
.eco__hline--right::after {    /* right card is to the right → point right */
    right: -1px;
    transform: translate(100%, -50%);
    border-left: 9px solid rgba(54, 54, 54, 0.55);
}

.eco__logo {
    flex: none;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 6px solid #CF8E00;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    z-index: 2;
}
.eco__logo img { width: 74%; height: 74%; object-fit: contain; }

.eco__card {
    flex: 0 1 430px;
    min-width: 0;
    max-width: 430px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 9px 14px 10px 13px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-radius: 49px;
}
.eco__card--green { justify-content: flex-start; }

.eco__card-icon {
    flex: none;
    width: 71px;
    height: 71px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eco__card--gold .eco__card-icon { background: #CF8E00; }
.eco__card--green .eco__card-icon { background: #064700; }
.eco__card-icon img { width: 24px; height: 24px; object-fit: contain; }

.eco__card-title {
    margin: 0 0 3px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #363636;
}
.eco__card-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #363636;
}

/* Connectors (decorative dashed) */
.eco__connect { display: flex; flex-direction: column; align-items: center; }
.eco__connect--down { padding-top: 6px; }
.eco__stem { width: 0; height: 34px; border-left: 1.5px dashed rgba(54, 54, 54, 0.45); }
.eco__bracket {
    position: relative;
    width: 72%;
    max-width: 760px;
    height: 56px;
    border: 1.5px dashed rgba(54, 54, 54, 0.45);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}
/* ▼ arrowheads at the bottom of each leg (pointing down to the panels) */
.eco__bracket::before, .eco__bracket::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid rgba(54, 54, 54, 0.55);
}
.eco__bracket::before { left: -4.5px; }
.eco__bracket::after { right: -4.5px; }

.eco__connect--up { padding-bottom: 4px; }
.eco__bracket--up {
    position: relative;
    border: 1.5px dashed rgba(54, 54, 54, 0.45);
    border-top: none;
    border-radius: 0 0 16px 16px;
    width: 60%;
    max-width: 640px;
    height: 46px;
}
/* ▲ arrowheads at the top of each leg (pointing up to the panels) */
.eco__bracket--up::before, .eco__bracket--up::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid rgba(54, 54, 54, 0.55);
}
.eco__bracket--up::before { left: -4.5px; }
.eco__bracket--up::after { right: -4.5px; }

/* Row 2 : entity panels */
.eco__entities {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 34px;
}
.eco__panel {
    flex: 1 1 0;
    min-width: 0;
    background: #FFFFFF;
    box-shadow: 0 0 60px 5px rgba(0, 0, 0, 0.04);
    border-radius: 27px;
    overflow: hidden;
    --accent: #064700;
    --tint: #E9F0E6;
    --alt: #FBF4E1;
    --alt-text: #CF8E00;
    --head: #E9F0E6;
}
.eco__panel--blue {
    --accent: #0A5C90;
    --tint: #E7EEF6;
    --alt: #ECEEF1;
    --alt-text: #6B7280;
    --head: #EAEEF3;
}

.eco__panel-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 26px 30px;
    background: var(--head);
}
.eco__panel-logo {
    flex: none;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eco__panel-logo img { max-width: 72px; max-height: 72px; object-fit: contain; }
.eco__panel-title {
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #363636;
}
.eco__panel-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    color: #363636;
}

.eco__panel-body { padding: 26px 30px 30px; }
.eco__explore {
    margin: 0 0 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #363636;
}

.eco__subs-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.eco__subs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}
.eco__subs::-webkit-scrollbar { display: none; }
.eco__sub { scroll-snap-align: start; }

/* ">" scroll arrow — its own space to the right of the cards */
.eco__subs-nav {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.eco__subs-nav svg { width: 26px; height: 26px; }
.eco__subs-nav:hover { transform: translateX(3px); opacity: 0.75; }

.eco__sub {
    flex: 0 0 auto;
    width: 162px;
    box-sizing: border-box;
    padding: 20px 16px;
    background: var(--tint);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}
.eco__sub:nth-child(even) { background: var(--alt); }
.eco__sub-logo { height: 46px; display: flex; align-items: center; justify-content: center; }
.eco__sub-logo img { max-height: 46px; max-width: 120px; object-fit: contain; }
.eco__sub-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: var(--accent);
}
.eco__sub:nth-child(even) .eco__sub-title { color: var(--alt-text); }
.eco__sub-arrow {
    margin-top: 2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.eco__sub:nth-child(even) .eco__sub-arrow { border-color: var(--alt-text); color: var(--alt-text); }
.eco__sub-arrow svg { width: 18px; height: 18px; }
.eco__sub-arrow:hover { background: currentColor; }
.eco__sub-arrow:hover svg { stroke: #FFFFFF; }

/* Strong Together pill */
.eco__strong {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    align-self: center;
    margin: 0 auto;
    padding: 8px 22px 8px 8px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-radius: 49px;
    width: fit-content;
}
.eco__connect--up + .eco__strong,
.eco__strong { display: flex; justify-content: center; }
.eco__strong {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.eco__strong-icon {
    flex: none;
    width: 71px;
    height: 71px;
    border-radius: 50%;
    background: #C4622D;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eco__strong-icon svg { width: 24px; height: 22px; }
.eco__strong-title {
    margin: 0 0 3px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #363636;
}
.eco__strong-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #363636;
}

/* ===== About Organizations (Rupani / Apex) ===== */
.org {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 30px 0 20px;
}
.org__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
}

.org__head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 26px;
}
.org__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}
.org__head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.org__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}
.org__subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #363636;
}

.org__box {
    box-sizing: border-box;
    padding: 33px 30px;
    border-radius: 30px;
}
.org__box--green { background: rgba(6, 71, 0, 0.1); }
.org__box--blue { background: rgba(7, 172, 228, 0.1); }

.org__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 29px;
}
.org__media {
    flex: 0 0 54%;
    aspect-ratio: 712 / 514;
    border-radius: 29px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #dfe4df;
}
.org__right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}
.org__right-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
}
.org__logo { display: flex; }
.org__logo img { max-height: 150px; max-width: 100%; object-fit: contain; }
.org__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: justify;
    color: #363636;
}
.org__arrow {
    align-self: flex-end;
    flex: none;
    width: 71px;
    height: 71px;
    border-radius: 50%;
    background: #CF8E00;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.org__arrow svg { width: 30px; height: 30px; }
.org__arrow:hover { transform: translate(2px, -2px); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .inithero { height: 640px; }
    .initintro__title { font-size: 38px; line-height: 56px; }
    .eco__logo { width: 170px; height: 170px; }
    .eco__panel-title { font-size: 21px; }
    .org__title { font-size: 36px; line-height: 54px; }
    .inithero__content { padding-bottom: 100px; }
    .inithero__title { font-size: 34px; line-height: 48px; }
}

@media (max-width: 768px) {
    .inithero { height: 520px; }
    .inithero__content { margin-left: 22px; padding-bottom: 70px; }
    .inithero__title { font-size: 28px; line-height: 38px; }
    .inithero__desc { font-size: 16px; line-height: 24px; }
    .initintro { padding: 40px 0 16px; }
    .initintro__title { font-size: 30px; line-height: 44px; }
    .initintro__desc { font-size: 16px; line-height: 24px; }
    .initintro__bar { height: 84px; }
    /* Ecosystem hub stacks on mobile; connectors hide */
    .eco__top { flex-direction: column; align-items: stretch; gap: 20px; }
    .eco__logo { align-self: center; width: 150px; height: 150px; }
    .eco__card { max-width: none; order: 2; }
    .eco__logo { order: 1; }
    .eco__connect { display: none; }
    .eco__entities { flex-direction: column; gap: 24px; margin-top: 24px; align-items: stretch; }
    .eco__panel-title { font-size: 20px; }
    .eco__strong { margin-top: 24px; flex-wrap: wrap; }
    /* org boxes stack */
    .org__title { font-size: 28px; line-height: 40px; }
    .org__bar { height: 84px; }
    .org__box { padding: 22px; border-radius: 24px; }
    .org__inner { flex-direction: column; gap: 22px; }
    .org__media { flex-basis: auto; width: 100%; }
    .org__right-top { gap: 22px; }
    .org__desc { text-align: left; font-size: 16px; line-height: 24px; }
    .org__arrow { width: 58px; height: 58px; }
}

@media (max-width: 480px) {
    .inithero { height: 420px; }
    .inithero__content { margin-left: 16px; padding-bottom: 50px; }
    .inithero__title { font-size: 23px; line-height: 32px; }
    .inithero__desc { font-size: 14px; line-height: 21px; }
}
