/*
 * Section base colours
 * --section-bg-primary / --section-bg-alt are set by dynamic-styles.php
 * to deeply-darkened, brand-tinted near-blacks in dark mode,
 * or white/near-white in light mode.
 * All colours reference design-tokens.css custom properties.
 */
.yre-section,
.ych-section {
    color: var(--text-primary);
    padding-block: var(--section-padding, clamp(5rem, 8vw, 8rem));
    padding-inline: var(--container-padding, clamp(1rem, 3vw, 2rem));
}

.yre-section:nth-of-type(odd),
.ych-section:nth-of-type(odd) {
    background-color: var(--section-bg-primary);
}

.yre-section:nth-of-type(even),
.ych-section:nth-of-type(even) {
    background-color: var(--section-bg-alt);
}

.yre-section .section-title,
.yre-section h1,
.yre-section h2,
.yre-section h3,
.ych-section .section-title,
.ych-section h1,
.ych-section h2,
.ych-section h3 {
    color: var(--color-title-section, var(--text-primary));
}

.yre-section .section-subtitle,
.yre-section p,
.yre-section .yre-about-text,
.yre-section .yre-about-text p,
.ych-section .section-subtitle,
.ych-section p {
    color: var(--color-subtitle-section, var(--text-secondary));
}

/* Stats accent section keeps its own gradient surface */
.yre-stats {
    background: linear-gradient(
        135deg,
        var(--section-bg-primary) 0%,
        color-mix(in srgb, var(--color-secondary) 12%, transparent) 100%
    );
}

/* CTA — bold brand gradient for maximum impact */
.yre-cta {
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 50%,
        var(--color-secondary) 100%
    );
    color: var(--text-inverse);
}

.hp1-hero,
.hp2-hero,
.hp3-hero,
.hp5-hero {
    min-height: min(100vh, 920px);
    position: relative;
    overflow: hidden;
}

/* HP1: column flex so title block is vertically centered; tint color comes from dynamic CSS */
.hp1-hero {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.hp1-video,
.hp1-image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hp1-video {
    object-fit: cover;
}

.hp1-image-bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/*
 * Fallback hero background when no video/image is set.
 * Uses a deep near-black with a subtle primary tint and a secondary shimmer
 * so it always has visual depth regardless of brand colour choice.
 */
.hp1-fallback-bg {
    background:
        radial-gradient(ellipse 70% 60% at 65% 55%, color-mix(in srgb, var(--color-secondary) 10%, transparent) 0%, transparent 70%),
        radial-gradient(ellipse 55% 45% at 30% 30%, color-mix(in srgb, var(--color-primary) 14%, transparent) 0%, transparent 65%),
        linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark) 60%, var(--color-dark) 100%);
}

.hp1-overlay,
.hp3-hero::before,
.hp5-overlay,
.hp2-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* .hp1-overlay fill color/opacity: options panel → inc/dynamic-styles.php (avoid overriding here) */

.hp1-content,
.hp2-content,
.hp3-content,
.hp5-content {
    position: relative;
    z-index: 2;
}

.hp1-content {
    box-sizing: border-box;
    width: min(920px, 92%);
    margin: 0 auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(120px, 15vh, 220px) 0 clamp(90px, 12vh, 150px);
    text-align: center;
}

.hp1-title,
.hp2-title,
.hp3-title,
.hp4-title,
.hp5-title {
    color: var(--text-inverse);
    margin: 0;
    line-height: 1.15;
}

.hp1-title {
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    margin-bottom: 14px;
    text-shadow: 0 10px 30px color-mix(in srgb, var(--surface-base) 70%, transparent);
}

.hp1-subtitle,
.hp2-subtitle,
.hp3-text,
.hp4-subtitle,
.hp5-subtitle {
    color: color-mix(in srgb, var(--text-inverse) 92%, #000);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    margin: 0 auto;
    max-width: 74ch;
    text-shadow: 0 2px 14px color-mix(in srgb, var(--surface-base) 65%, transparent);
}

.hp1-subtitle {
    margin-bottom: clamp(1.25rem, 3.5vw, 2.25rem);
}

.hp1-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-inline: auto;
    margin-bottom: 1rem;
    max-width: 100%;
    padding: 0.625rem 1.35rem;
    min-height: 44px;
    box-sizing: border-box;
    line-height: 1.35;
    border-radius: 999px;
}

/* HP1 RTL: centered block, logical button order, arrow follows reading direction */
.hp1[dir="rtl"] .hp1-content {
    text-align: center;
    align-items: center;
    margin-inline: auto;
    width: 100%;
}

.hp1[dir="rtl"] .hp1-title,
.hp1[dir="rtl"] .hp1-subtitle {
    text-align: center;
    margin-inline: auto;
}

.hp1[dir="rtl"] .hp1-buttons {
    flex-direction: row-reverse;
}

.hp1[dir="rtl"] .hp1-btn-primary .hp1-btn-icon {
    transform: scaleX(-1);
}

.hp1-buttons {
    margin-top: clamp(28px, 4vw, 48px);
    display: inline-flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 18px);
    justify-content: center;
}

.hp2-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--section-bg-primary), var(--surface-subtle));
}

.hp2-image {
    position: relative;
    min-height: 100%;
}

.hp2-image img,
.hp4-card img,
.hp5-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp2-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 64px);
}

.hp2-title {
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    margin-bottom: 10px;
}

.hp2-subtitle {
    margin-bottom: 20px;
}

.hp2-search {
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: clamp(18px, 2.5vw, 30px);
    backdrop-filter: blur(8px);
}

.hp3-hero {
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.hp3-content {
    max-width: 700px;
    padding: 0 clamp(20px, 5vw, 60px);
}

.hp3-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 12px;
}

.hp3-text {
    margin-bottom: clamp(20px, 3vw, 30px);
}

.hp3-stats,
.hp5-features {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: color-mix(in srgb, var(--surface-base) 72%, transparent);
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
}

.hp3-stat,
.hp5-feature {
    padding: 24px 18px;
    text-align: center;
    border-inline-start: 1px solid var(--border-subtle);
}

.hp3-stat:first-child,
.hp5-feature:first-child {
    border-inline-start: 0;
}

.hp4-hero {
    background: linear-gradient(180deg, var(--section-bg-primary) 0%, var(--section-bg-alt) 100%);
    padding: clamp(72px, 10vw, 120px) 20px clamp(50px, 7vw, 84px);
}

.hp4-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 25px);
    max-width: 1200px;
    margin: 0 auto;
}

.hp4-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-subtle);
}

.hp4-card:first-child {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
}

.hp4-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--surface-base) 86%, transparent), transparent);
}

.hp4-card-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 24px;
}

.hp4-title {
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    margin-bottom: 10px;
    text-align: center;
}

.hp4-subtitle {
    text-align: center;
    margin-bottom: clamp(26px, 4vw, 42px);
}

.hp4-cta {
    margin-top: clamp(24px, 4vw, 40px);
    text-align: center;
}

.hp5-content {
    width: min(900px, 92%);
    margin: 0 auto;
    padding: clamp(120px, 14vh, 210px) 0 clamp(110px, 14vh, 170px);
    text-align: center;
}

.hp5-title {
    font-size: clamp(2rem, 5.2vw, 4rem);
    margin-bottom: 12px;
}

.hp5-subtitle {
    margin-bottom: 22px;
}

.hp5-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.about-content,
.yre-about-text,
.video-placeholder p,
.video-error p {
    color: var(--text-secondary);
}

.yre-about-text {
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.yre-about-text p:last-child {
    margin-bottom: 0;
}

.yre-about-cta {
    margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.yre-about-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.yre-about-cta__icon {
    flex-shrink: 0;
    margin-inline-start: 0.15rem;
}

[dir="rtl"] .yre-about .yre-about-cta__icon {
    transform: scaleX(-1);
}

.yre-video-section {
    background: transparent;
}

.video-wrapper {
    border: 1px solid var(--border-subtle);
}

.video-placeholder,
.video-error {
    background: var(--surface-elevated);
    border: 1px dashed var(--border-subtle);
}

.yre-about-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.yre-about-right,
.yre-about-left {
    grid-template-columns: 1fr 1fr;
}

.yre-about-left .yre-about-gallery,
.yre-about-left .yre-about-image {
    order: 2;
}

.yre-about-left .yre-about-content {
    order: 1;
}

.yre-about-image-wrapper {
    border-radius: var(--radius-2xl, 32px);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.yre-about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--radius-2xl, 32px) + 6px);
    background: var(--gradient-primary, linear-gradient(135deg, var(--color-primary), var(--color-secondary)));
    z-index: -1;
    opacity: 0.3;
}

.yre-about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(var(--color-primary-rgb, 0,119,150), 0.1);
    pointer-events: none;
}

.yre-about-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.yre-about-image-wrapper:hover img {
    transform: scale(1.05);
}

.yre-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    min-height: 320px;
}

.yre-gallery-item {
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
}

.yre-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yre-gallery-item-1 {
    grid-row: span 2;
}

.projects-grid,
.projects-grid-large {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
    gap: 28px;
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.masonry-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.projects-showcase {
    display: grid;
    gap: 24px;
}

.showcase-featured .project-card-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 380px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* --------------------------------------------------------------------------
   Homepage projects carousel — track row + pagination row (dots never share row with arrows)
   -------------------------------------------------------------------------- */
.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-block: clamp(8px, 1.5vw, 20px);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(12px, 2vw, 22px);
    isolation: isolate;
}

/* Desktop / tablet: prev | swiper | next */
.projects-carousel-track-row {
    display: grid;
    grid-template-columns: minmax(40px, 48px) minmax(0, 1fr) minmax(40px, 48px);
    align-items: center;
    column-gap: clamp(10px, 2vw, 18px);
    width: 100%;
    min-width: 0;
}

.projects-carousel-track-row .projects-carousel-nav--prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.projects-carousel-track-row .projects-carousel.swiper {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    padding-block: 4px 8px;
    border-radius: clamp(12px, 2vw, 20px);
}

.projects-carousel-track-row .projects-carousel-nav--next {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

/* Pagination: always full width under the track row; LTR keeps index order 1→2→3 */
.projects-carousel-wrapper .projects-carousel-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(4px, 1vw, 8px) 0 0;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    align-self: center;
    gap: 0;
    min-height: 28px;
    direction: ltr;
    text-align: center;
    box-sizing: border-box;
}


.projects-carousel .swiper-slide {
    width: auto;
    height: auto;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    padding-inline: clamp(4px, 1vw, 10px);
}

.projects-carousel .swiper-slide > .project-card,
.projects-carousel .swiper-slide > .program-card-wrapper,
.projects-carousel .swiper-slide > .program-card-wrapper .program-card {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.projects-carousel .swiper-slide .project-card-inner {
    height: 100%;
}

/* Carousel-only: center text block (location, title, developer, price, CTA) */
.projects-carousel .project-content {
    text-align: center;
    align-items: center;
}

.projects-carousel .project-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    text-align: center;
    color: color-mix(in srgb, var(--color-title-section, var(--text-primary)) 55%, transparent);
}

.projects-carousel .project-title,
.projects-carousel .project-title a {
    text-align: center;
    justify-content: center;
}

.projects-carousel .project-developer {
    text-align: center;
    width: 100%;
}

.projects-carousel .project-price-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.projects-carousel .project-price-wrap .price {
    align-items: center;
    text-align: center;
}

.projects-carousel .project-footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.projects-carousel .details-btn {
    justify-content: center;
    max-width: min(100%, 22rem);
    margin-inline: auto;
}

/* Nav buttons: sit in gutter columns, not over slides */
.projects-carousel-track-row .projects-carousel-nav,
.projects-carousel-wrapper .projects-carousel-nav {
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    color: var(--text-inverse, #fff);
    background: color-mix(in srgb, var(--color-primary) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-inverse) 22%, transparent);
    border-radius: 50%;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.projects-carousel-track-row .projects-carousel-nav::after,
.projects-carousel-wrapper .projects-carousel-nav::after {
    font-size: 16px;
    font-weight: 700;
}

.projects-carousel-track-row .projects-carousel-nav:hover,
.projects-carousel-track-row .projects-carousel-nav:focus-visible,
.projects-carousel-wrapper .projects-carousel-nav:hover,
.projects-carousel-wrapper .projects-carousel-nav:focus-visible {
    background: color-mix(in srgb, var(--color-primary) 72%, var(--color-tertiary) 28%);
    box-shadow: 0 8px 26px color-mix(in srgb, var(--color-tertiary) 38%, transparent);
    color: var(--text-inverse, #fff);
    outline: none;
}

.projects-carousel-track-row .projects-carousel-nav:focus-visible,
.projects-carousel-wrapper .projects-carousel-nav:focus-visible {
    outline: 2px solid var(--color-tertiary);
    outline-offset: 2px;
}

.projects-carousel-wrapper .swiper-button-disabled,
.projects-carousel-track-row .swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.projects-carousel-wrapper .projects-carousel-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 6px !important;
    opacity: 0.45;
    background: var(--color-title-section, var(--text-primary));
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    vertical-align: middle;
}

.projects-carousel-wrapper .projects-carousel-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
    background: var(--color-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

/* Narrow viewports: swiper full width; nav row symmetric; dots on separate row below */
@media (max-width: 639px) {
    .projects-carousel-track-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        column-gap: clamp(20px, 10vw, 48px);
        row-gap: 12px;
        justify-items: stretch;
    }

    .projects-carousel-track-row .projects-carousel.swiper {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .projects-carousel-track-row .projects-carousel-nav--prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .projects-carousel-track-row .projects-carousel-nav--next {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .projects-carousel-track-row {
        column-gap: clamp(16px, 8vw, 36px);
    }

    .projects-carousel-track-row .projects-carousel-nav,
    .projects-carousel-wrapper .projects-carousel-nav {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-carousel-wrapper .projects-carousel-pagination .swiper-pagination-bullet,
    .projects-carousel-track-row .projects-carousel-nav,
    .projects-carousel-wrapper .projects-carousel-nav {
        transition: none;
    }
}

.video-wrapper {
    position: relative;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    padding-bottom: 56.25%;
}

.video-iframe,
.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Homepage heroes: constrain inline SVGs (prevents full-width “giant icon” blowups) */
.hp1-hero svg,
.hp2-hero svg,
.hp3-hero svg,
.hp4-hero svg,
.hp5-hero svg {
    width: 1.25rem;
    height: 1.25rem;
    max-width: 32px;
    max-height: 32px;
    flex-shrink: 0;
}

.hp1-badge svg,
.hp2-badge svg {
    width: 1rem;
    height: 1rem;
    max-width: 22px;
    max-height: 22px;
}

.hp1-scroll {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-block: 1rem;
    color: var(--text-inverse);
    font-size: 0.85rem;
    text-shadow: 0 2px 12px color-mix(in srgb, var(--surface-base) 80%, transparent);
}

.hp1-scroll svg {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 28px;
    max-height: 28px;
}

@media (max-width: 992px) {
    .hp1-content,
    .hp5-content {
        padding-top: clamp(96px, 12vh, 150px);
        padding-bottom: clamp(82px, 10vh, 120px);
    }

    .hp2-image {
        min-height: 320px;
    }
}

/* CTA / bright green sections: keep headings readable */
.yre-cta .section-title,
.yre-cta .section-subtitle,
.yre-cta .yre-btn {
    color: var(--text-inverse);
    text-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.yre-cta .section-subtitle {
    opacity: 0.95;
}

body.light-mode .yre-cta .section-subtitle {
    color: color-mix(in srgb, var(--text-inverse) 92%, #000);
}

/* Extra readability pass for bright/contrast-heavy sections */
.yre-section .section-title,
.yre-section .project-title,
.yre-section .hp4-card-title {
    text-shadow: 0 1px 1px color-mix(in srgb, var(--surface-base) 26%, transparent);
}

.yre-section .section-subtitle,
.yre-section .project-location,
.yre-section .hp4-card-meta,
.yre-section .hp5-feature-text,
.ych-section .section-subtitle {
    color: color-mix(in srgb, var(--text-primary) 78%, var(--text-secondary));
}

/* =============================================
   yCharitable — CHARITY SECTION STYLES
   ============================================= */

.ych-section {
    padding-block: var(--section-padding);
    padding-inline: var(--container-padding);
}

.ych-section .section-header {
    text-align: center;
    margin-block-end: var(--space-2xl);
}

.ych-section .section-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-title-section, var(--text-primary));
    margin-block-end: var(--space-sm);
}

.ych-section .section-subtitle {
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    color: var(--color-subtitle-section, var(--text-secondary));
    max-width: 65ch;
    margin-inline: auto;
    line-height: var(--line-height-normal);
}

/* -------------------------------------------
   Donation CTA
   ------------------------------------------- */
.ych-donation-cta {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 100%
    );
    color: var(--text-inverse);
    padding-block: var(--space-3xl);
    padding-inline: var(--container-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ych-donation-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 50%,
        color-mix(in srgb, var(--color-tertiary) 15%, transparent),
        transparent 60%
    );
    pointer-events: none;
}

.ych-donation-cta .cta-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-block-end: var(--space-md);
    position: relative;
}

.ych-donation-cta .cta-description {
    font-size: var(--font-size-md);
    opacity: 0.9;
    margin-block-end: var(--space-xl);
    max-width: 55ch;
    margin-inline: auto;
    position: relative;
}

.ych-donation-cta .cta-amount-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-block-end: var(--space-lg);
    position: relative;
}

.ych-donation-cta .cta-amount-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid color-mix(in srgb, var(--text-inverse) 30%);
    border-radius: var(--button-radius);
    background: transparent;
    color: var(--text-inverse);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.ych-donation-cta .cta-amount-btn:hover,
.ych-donation-cta .cta-amount-btn.active {
    background: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-primary-dark);
}

/* -------------------------------------------
   Orphans / Sponsorship Section
   ------------------------------------------- */
.ych-orphans-section {
    background: var(--section-bg-alt);
}

.sponsorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-lg);
}

.sponsorship-card {
    background: var(--color-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.sponsorship-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sponsorship-card .card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.sponsorship-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.sponsorship-card:hover .card-image img {
    transform: scale(1.08);
}

.sponsorship-card .card-urgent-badge {
    position: absolute;
    inset-block-start: var(--space-sm);
    inset-inline-end: var(--space-sm);
    background: var(--color-danger);
    color: var(--text-inverse);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.sponsorship-card .card-body {
    padding: var(--space-lg);
}

.sponsorship-card .card-name {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-block-end: var(--space-xs);
}

.sponsorship-card .card-age {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-block-end: var(--space-sm);
}

.sponsorship-card .card-monthly {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block-start: var(--space-sm);
    border-block-start: 1px solid var(--border-color);
}

.sponsorship-card .card-monthly .amount {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    font-size: var(--font-size-md);
}

.sponsorship-card .sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--button-radius);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.sponsorship-card .sponsor-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* -------------------------------------------
   Volunteer Section
   ------------------------------------------- */
.ych-volunteer-section {
    background: var(--section-bg-primary);
}

.ych-volunteer-section .volunteer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.volunteer-form {
    background: var(--color-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: var(--space-xl);
}

.volunteer-form .form-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-block-end: var(--space-lg);
}

.volunteer-form .form-group {
    margin-block-end: var(--space-md);
}

.volunteer-form label {
    display: block;
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-block-end: var(--space-xs);
}

.volunteer-form input,
.volunteer-form select,
.volunteer-form textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: var(--surface-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.volunteer-form input:focus,
.volunteer-form select:focus,
.volunteer-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.volunteer-form textarea {
    min-height: 120px;
    resize: vertical;
}

.volunteer-form .submit-btn {
    width: 100%;
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--button-radius);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.volunteer-form .submit-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* -------------------------------------------
   Partners Section
   ------------------------------------------- */
.ych-partners-section {
    background: var(--section-bg-alt);
}

.partner-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
    align-items: center;
    justify-items: center;
}

.partner-logo-grid .partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--color-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.partner-logo-grid .partner-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.partner-logo-grid .partner-item img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter var(--transition-normal), opacity var(--transition-normal);
}

.partner-logo-grid .partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* -------------------------------------------
   News Section
   ------------------------------------------- */
.ych-news-section {
    background: var(--section-bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: var(--space-lg);
}

.news-card {
    background: var(--color-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card .card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .card-image img {
    transform: scale(1.08);
}

.news-card .card-body {
    padding: var(--space-lg);
}

.news-card .card-date {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-block-end: var(--space-xs);
}

.news-card .card-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-block-end: var(--space-sm);
}

.news-card .card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    margin-block-end: var(--space-md);
}

.news-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.news-card .card-link:hover {
    color: var(--color-primary-light);
}

/* -------------------------------------------
   Zakat Section
   ------------------------------------------- */
.ych-zakat-section {
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 100%
    );
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.ych-zakat-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 70% 30%,
        color-mix(in srgb, var(--color-tertiary) 12%, transparent),
        transparent 50%
    );
    pointer-events: none;
}

.ych-zakat-section .section-title {
    color: var(--text-inverse);
}

.ych-zakat-section .section-subtitle {
    color: color-mix(in srgb, var(--text-inverse) 85%, transparent);
}

.zakat-calculator {
    background: color-mix(in srgb, var(--text-inverse) 10%);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--text-inverse) 15%);
    border-radius: var(--card-radius);
    padding: var(--space-xl);
    max-width: 500px;
    margin-inline: auto;
}

.zakat-calculator .calc-group {
    margin-block-end: var(--space-md);
}

.zakat-calculator label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-block-end: var(--space-xs);
    color: color-mix(in srgb, var(--text-inverse) 90%, transparent);
}

.zakat-calculator input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid color-mix(in srgb, var(--text-inverse) 20%);
    border-radius: var(--input-radius);
    background: color-mix(in srgb, var(--text-inverse) 8%);
    color: var(--text-inverse);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.zakat-calculator input:focus {
    outline: none;
    border-color: var(--color-tertiary);
}

.zakat-calculator input::placeholder {
    color: color-mix(in srgb, var(--text-inverse) 40%);
}

/* -------------------------------------------
   Program Cards (with Progress Bar)
   ------------------------------------------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--space-lg);
}

.program-card {
    background: var(--color-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.program-card .card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.program-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover .card-image img {
    transform: scale(1.08);
}

.program-card .card-category {
    position: absolute;
    inset-block-start: var(--space-sm);
    inset-inline-start: var(--space-sm);
    background: var(--color-primary);
    color: var(--text-inverse);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.program-card .card-body {
    padding: var(--space-lg);
}

.program-card .card-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-block-end: var(--space-xs);
}

.program-card .card-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    margin-block-end: var(--space-md);
}

.program-card .card-progress {
    margin-block-end: var(--space-md);
}

.program-card .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-block-end: var(--space-xs);
}

.program-card .progress-info .progress-percent {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.donation-progress-bar {
    width: 100%;
    height: var(--progress-bar-height);
    background: var(--border-color);
    border-radius: var(--progress-bar-radius);
    overflow: hidden;
}

.donation-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--progress-bar-radius);
    transition: width var(--transition-slow);
}

.program-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block-start: var(--space-md);
    border-block-start: 1px solid var(--border-color);
}

.program-card .card-goal {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.program-card .card-goal .goal-amount {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.program-card .donate-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--button-radius);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.program-card .donate-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* -------------------------------------------
   Charity Section Responsive (Mobile-first)
   ------------------------------------------- */
@media (max-width: 768px) {
    .ych-volunteer-section .volunteer-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .sponsorship-grid,
    .programs-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .ych-donation-cta .cta-amount-grid {
        gap: var(--space-xs);
    }

    .zakat-calculator {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .ych-section {
        padding-block: var(--space-xl);
    }

    .ych-donation-cta .cta-amount-btn {
        flex: 1 1 calc(50% - var(--space-xs));
        text-align: center;
    }
}

/* -------------------------------------------
   prefers-reduced-motion
   ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .sponsorship-card,
    .program-card,
    .news-card,
    .partner-logo-grid .partner-item,
    .program-card .card-image img,
    .sponsorship-card .card-image img,
    .news-card .card-image img {
        transition: none;
    }

    .sponsorship-card:hover,
    .program-card:hover,
    .news-card:hover,
    .partner-logo-grid .partner-item:hover {
        transform: none;
    }

    .sponsorship-card:hover .card-image img,
    .program-card:hover .card-image img,
    .news-card:hover .card-image img {
        transform: none;
    }

    .donation-progress-bar .progress-fill {
        transition: none;
    }
}

/* ============================================
   HERO SLIDER (Swiper)
   ============================================ */
.hp1-swiper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hp1-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hp1-swiper .swiper-slide .hp1-image-bg {
    position: absolute;
    inset: 0;
}

.hp1-slider-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hp1-slider-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hp1-slider-pagination .swiper-pagination-bullet-active {
    background: var(--color-tertiary, #D1915B);
    width: 32px;
}

.hp1-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp1-slider-nav::after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.hp1-slider-prev {
    left: 24px;
}

.hp1-slider-prev::after {
    transform: rotate(-135deg);
}

.hp1-slider-next {
    right: 24px;
}

.hp1-slider-next::after {
    transform: rotate(45deg);
}

[dir="rtl"] .hp1-slider-prev {
    right: 24px;
    left: auto;
}

[dir="rtl"] .hp1-slider-next {
    left: 24px;
    right: auto;
}

.hp1-slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
    .hp1-slider-nav {
        width: 40px;
        height: 40px;
    }
    .hp1-slider-prev { left: 12px; }
    .hp1-slider-next { right: 12px; }
    [dir="rtl"] .hp1-slider-prev { right: 12px; left: auto; }
    [dir="rtl"] .hp1-slider-next { left: 12px; right: auto; }
    .hp1-slider-pagination { bottom: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE SECTION BACKGROUND MODES
   Each section reads bg_mode from options via inline style/class.
   
   COLOR DISTRIBUTION:
   ┌─────────────────────────────────────────────────┐
   │ Hero:       Dark overlay (gradient-hero)         │
   │ Stats:      Dark bg, PRIMARY glow numbers        │
   │ About:      Light bg, PRIMARY eyebrow & CTA      │
   │ Features:   White bg, SECONDARY accent icons      │
   │ Programs:   White bg, PRIMARY cards, TERTIARY nav│
   │ CTA:        Dark bg, SECONDARY gradient text      │
   │ Testimonials: TERTIARY tinted bg                 │
   └─────────────────────────────────────────────────┘
   ═══════════════════════════════════════════════════════════════ */

/* ── Section bg mode classes ── */
.ych-section-bg--default { background: transparent; }
.ych-section-bg--light   { background: var(--color-neutral-100, #f5f3f0); }
.ych-section-bg--dark    { background: var(--color-dark, #121a2e); color: #fff; }
.ych-section-bg--custom  { /* inline style */ }
.ych-section-bg--is-dark { color: #fff; }
.ych-section-bg--is-dark .section-title,
.ych-section-bg--is-dark .yre-section-title,
.ych-section-bg--is-dark h2,
.ych-section-bg--is-dark h3 { color: #fff; }
.ych-section-bg--is-dark p,
.ych-section-bg--is-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.ych-section-bg--is-light { color: var(--color-text, #121a2e); }

/* ── STATS: Primary glow on dark ── */
.yre-stats-section .yre-stat-item .stat-number,
.yre-stats-section .stat-number,
.yre-stats-section .yre-stat-number {
    color: var(--color-primary, #007aa1);
    text-shadow: 0 0 40px rgba(var(--color-primary-rgb), 0.2);
}
.yre-stats-section .stat-label,
.yre-stats-section .yre-stat-label {
    color: var(--color-neutral-600, #868e96);
}
.ych-section-bg--dark .yre-stats-section .stat-number,
.ych-section-bg--dark .yre-stats-section .yre-stat-number {
    color: #fff;
    text-shadow: 0 0 60px rgba(var(--color-primary-rgb), 0.35);
}
.ych-section-bg--dark .yre-stats-section .stat-label {
    color: rgba(255,255,255,0.6);
}

/* ── ABOUT: Primary accent ── */
.yre-about-section .yre-about-title,
.yre-about-section .about-title {
    color: var(--color-dark, #121a2e);
}
.yre-about-section .about-eyebrow,
.yre-about-section .yre-about-eyebrow {
    color: var(--color-primary, #007aa1);
}
.yre-about-section .about-content,
.yre-about-section .yre-about-content {
    color: var(--color-neutral-700, #495057);
}

/* ── FEATURES: Secondary accent ── */
.yre-features-section .feature-icon,
.yre-features-section .yre-feature-icon {
    color: var(--color-secondary, #c67c55);
    background: rgba(var(--color-secondary-rgb, 198,124,85), 0.08);
}
.yre-features-section .feature-title,
.yre-features-section .yre-feature-title {
    color: var(--color-dark, #121a2e);
}
.yre-features-section .feature-text,
.yre-features-section .yre-feature-text {
    color: var(--color-neutral-700, #495057);
}

/* ── PROGRAMS: Primary cards, Tertiary filter ── */
.yre-programs-section .programs-filter-nav .filter-btn.active,
.yre-programs-section .filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
}
.yre-programs-section .programs-filter-nav .filter-btn {
    color: var(--color-neutral-600, #868e96);
    border: 1px solid var(--border-subtle);
}
.yre-programs-section .program-card .program-title {
    color: var(--color-dark, #121a2e);
}
.yre-programs-section .program-card .program-category {
    color: var(--color-secondary, #c67c55);
}
.yre-programs-section .program-card:hover {
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.12);
    border-color: rgba(var(--color-primary-rgb), 0.15);
}

/* ── CTA: Secondary gradient text on dark ── */
.yre-cta-section .cta-title,
.yre-cta-section .yre-cta-title {
    color: #fff;
}
.yre-cta-section .cta-subtitle,
.yre-cta-section .yre-cta-subtitle {
    color: rgba(255,255,255,0.75);
}
.yre-cta-section .cta-btn,
.yre-cta-section .yre-cta-btn {
    background: var(--color-secondary, #c67c55);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--color-secondary-rgb), 0.3);
}
.yre-cta-section .cta-btn:hover {
    background: var(--color-secondary-hover, #b06d49);
    box-shadow: 0 8px 30px rgba(var(--color-secondary-rgb), 0.4);
    transform: translateY(-2px);
}

/* ── TESTIMONIALS: Tertiary tint ── */
.yre-testimonials-section {
    background: var(--color-tertiary-50, #f0faf8);
}

/* ── DARK MODE SECTION ADJUSTMENTS ── */
[data-theme="dark"] .ych-section-bg--light {
    background: var(--color-neutral-100, #1a1a1a);
}
[data-theme="dark"] .ych-section-bg--default {
    background: transparent;
}
[data-theme="dark"] .yre-features-section .feature-icon {
    background: rgba(var(--color-secondary-rgb), 0.12);
}
[data-theme="dark"] .yre-features-section .feature-title {
    color: #f0f0f0;
}
[data-theme="dark"] .yre-features-section .feature-text {
    color: #a0a0a0;
}
[data-theme="dark"] .yre-about-section .yre-about-title,
[data-theme="dark"] .yre-about-section .about-title {
    color: #f0f0f0;
}
[data-theme="dark"] .yre-about-section .about-content {
    color: #b0b0b0;
}
[data-theme="dark"] .yre-programs-section .program-card {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .yre-programs-section .program-card .program-title {
    color: #f0f0f0;
}
[data-theme="dark"] .yre-programs-section .program-card .program-text {
    color: #a0a0a0;
}
[data-theme="dark"] .yre-cta-section .cta-btn {
    background: var(--color-secondary, #daa07a);
    color: var(--color-dark, #121a2e);
}

/* ── LTR/RTL section fixes ── */
[dir="ltr"] .yre-about-grid,
.ltr .yre-about-grid {
    direction: ltr;
}
[dir="rtl"] .yre-about-grid,
.rtl .yre-about-grid {
    direction: rtl;
    flex-direction: row-reverse;
}
[dir="ltr"] .yre-features-grid { direction: ltr; }
[dir="rtl"] .yre-features-grid { direction: rtl; }
[dir="ltr"] .yre-stats-grid { direction: ltr; }
[dir="rtl"] .yre-stats-grid { direction: rtl; }
