/* ==========================================================================
   Theme - change the variables below to rebrand the whole site.
   ========================================================================== */
:root {
    --color-primary: #1f7a34;        /* main green: buttons, links, icons */
    --color-primary-dark: #145a26;   /* hover, footer */
    --color-primary-light: #5fae3c;  /* highlight words, accents */
    --color-secondary: #8cc63f;      /* fresh leaf green */
    --color-deep: #0f4a22;           /* darkest green: footer background */
    --color-bg: #ffffff;
    --color-bg-soft: #f1f8ee;        /* light mint section background */
    --color-surface: #ffffff;
    --color-text: #1c3324;
    --color-muted: #5d6f63;
    --color-border: #e1ece0;

    --header-height: 76px;
    --radius: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 10px rgba(20, 70, 35, .06);
    --shadow-md: 0 10px 30px rgba(20, 70, 35, .10);
    --font-latin: 'Poppins', system-ui, sans-serif;
    --font-arabic: 'Cairo', system-ui, sans-serif;
    --font-script-ar: 'Aref Ruqaa', 'Cairo', serif;
    --font-script-latin: 'Caveat', cursive;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); overflow-x: clip; }

.site {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-latin);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

html[dir="rtl"] .site { font-family: var(--font-arabic); }

.site a { color: inherit; text-decoration: none; }
.site img { display: block; max-width: 100%; }

.site-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Arrows point "forward" in both LTR and RTL */
html[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff !important;
    transition: background .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31, 122, 52, .25);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary) !important;
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.btn--light {
    background: transparent;
    border-color: #fff;
}

.btn--light:hover { background: #fff; color: var(--color-deep) !important; border-color: #fff; }

.btn--sm { padding: .55rem 1.2rem; font-size: .9rem; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--color-primary) !important;
    font-weight: 600;
    font-size: .9rem;
}

.link-more:hover { gap: .6rem; }
.link-more { transition: gap .2s; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--color-border);
    z-index: 50;
}

.site-header .site-container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.brand-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--color-deep);
    max-width: 190px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-inline: auto;
}

.site-nav a {
    position: relative;
    font-weight: 500;
    font-size: .95rem;
    color: var(--color-text);
    padding-block: .35rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: -2px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform .2s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--color-primary); }

.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lang-switch {
    display: flex;
    background: var(--color-bg-soft);
    border-radius: var(--radius-pill);
    padding: 3px;
    font-size: .8rem;
    font-weight: 600;
}

.lang-switch a {
    padding: .3rem .65rem;
    border-radius: var(--radius-pill);
    color: var(--color-muted);
}

.lang-switch a.active {
    background: var(--color-primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--color-deep);
    cursor: pointer;
    padding: .25rem;
}

.site-main { padding-block-start: var(--header-height); }

/* ---------- Section helpers ---------- */
.section { padding-block: 5rem; position: relative; overflow-x: clip; }
.section--soft { background: var(--color-bg-soft); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: .95rem;
    margin-block-end: .5rem;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--color-primary);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--color-deep);
    line-height: 1.3;
    margin: 0 0 .5rem;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-head p { color: var(--color-muted); margin: 0; }

.section-head .section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    margin: .75rem auto 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: 2.25rem;
    flex-wrap: wrap;
}

/* ---------- Decorative leaves ---------- */
.leaves {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.deco--hero-end   { width: 150px; inset-inline-end: -30px; inset-block-end: 40px; transform: scaleX(-1) rotate(-10deg); }
.deco--values-start { width: 90px; inset-inline-start: -20px; inset-block-end: -10px; }
.deco--values-end { width: 80px; inset-inline-end: -15px; inset-block-end: -10px; transform: scaleX(-1); }
.deco--about      { width: 140px; inset-inline-end: -40px; inset-block-end: -30px; transform: scaleX(-1) rotate(20deg); }
.deco--stats-start { width: 120px; inset-inline-start: -10px; inset-block-end: 0; }
.deco--stats-end  { width: 110px; inset-inline-end: -10px; inset-block-end: 0; transform: scaleX(-1); }

html[dir="rtl"] .deco--hero-end,
html[dir="rtl"] .deco--values-end,
html[dir="rtl"] .deco--stats-end { transform: rotate(-10deg); }
html[dir="rtl"] .deco--values-start,
html[dir="rtl"] .deco--stats-start { transform: scaleX(-1); }
html[dir="rtl"] .deco--about { transform: rotate(20deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f6fbf3 0%, #ffffff 100%);
    overflow: hidden;
    padding-block: 4rem 7rem;
}

.hero-photo {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 55%;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%);
}

html[dir="rtl"] .hero-photo {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%);
            mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%);
}

/* YouTube video instead of the photo: covers the area like background-size: cover. */
.hero-photo--video { overflow: hidden; container-type: size; }
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero-sound {
    position: absolute;
    z-index: 3;
    inset-inline-end: 1.5rem;
    bottom: 7.5rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 61, 30, .75);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.hero-sound:hover { background: var(--color-primary); }

.hero .site-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 820px;
}

.hero-logo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 8px;
    background: #fff;
    box-shadow: 0 0 0 6px var(--color-primary), var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-kicker {
    color: var(--color-deep);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 .75rem;
}

.hero-title {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-deep);
    margin: 0 0 1rem;
}

.hero-title span { color: var(--color-primary-light); display: block; }

.hero-text {
    color: #3f5446;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 0 1.75rem;
}

.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero-wave {
    position: absolute;
    inset-inline: 0;
    inset-block-end: -1px;
    width: 100%;
    height: 110px;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ---------- Values strip ---------- */
.values {
    position: relative;
    background: var(--color-bg-soft);
    padding-block: 1.5rem 3.5rem;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 2;
}

.value {
    text-align: center;
    padding: 1rem 1.25rem;
}

.value + .value { border-inline-start: 1px solid #cfe2cb; }

.value .icon { color: var(--color-primary); margin-inline: auto; }

.value h3 {
    margin: .6rem 0 .25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-deep);
}

.value p { margin: 0; font-size: .88rem; color: var(--color-muted); }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p { color: var(--color-muted); font-size: 1.02rem; margin: 0 0 1.75rem; }

.about-media { position: relative; }

.about-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px 140px 24px 24px;
    box-shadow: var(--shadow-md);
}

html[dir="rtl"] .about-media img { border-radius: 140px 24px 24px 24px; }

/* ---------- Activity cards ---------- */
.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

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

.card-media {
    position: relative;
    aspect-ratio: 16 / 9;
}

.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-badge {
    position: absolute;
    inset-block-end: -26px;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .card-badge { translate: 50% 0; }

.card-body {
    padding: 2.25rem 1.25rem 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 700; color: var(--color-deep); }
.card-body p  { margin: 0 0 1rem; font-size: .9rem; color: var(--color-muted); flex: 1; }

/* ---------- News ---------- */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.news-card .card-media { aspect-ratio: 16 / 7; }

.news-card .card-body { text-align: start; padding: 1.25rem 1.4rem 1.5rem; }

.news-date {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-block-end: .4rem;
}

/* ---------- Members ---------- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.member {
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s;
}

.member:hover { transform: translateY(-4px); }

.member-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 0 5px var(--color-bg-soft);
    overflow: hidden;
}

.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--color-deep); }
.member p  { margin: .2rem 0 0; font-size: .85rem; color: var(--color-primary); font-weight: 500; }

/* ---------- Stats band ---------- */
.stats {
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, #2f8a3c 0%, #1f7a34 60%, #176a2c 100%);
    padding-block: 7rem 3.5rem;
    overflow: hidden;
}

.stats-mountains {
    position: absolute;
    inset-inline: 0;
    inset-block-start: -1px;
    width: 100%;
    height: 140px;
}

.stats .site-container { position: relative; z-index: 2; }

.stats-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 2.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat { text-align: center; padding: .5rem 1rem; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .25); }
.stat .icon { margin-inline: auto; opacity: .95; }

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-block-start: .5rem;
    direction: ltr;
}

.stat-label { font-size: .95rem; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-deep);
    color: #cfe3d2;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-block: 3.5rem 2.5rem;
}

.footer-brand p { font-size: .92rem; margin: 1rem 0 0; max-width: 340px; }
.footer-brand .brand-name { color: #fff; }

.site-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a:hover { color: #fff; }

.footer-contact li { display: flex; align-items: center; gap: .6rem; }
.footer-contact .icon { color: var(--color-secondary); flex-shrink: 0; }

.footer-bar {
    border-block-start: 1px solid rgba(255, 255, 255, .12);
    padding-block: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-tagline {
    font-family: var(--font-script-latin);
    font-size: 2rem;
    color: #fff;
    line-height: 1;
}

html[dir="rtl"] .footer-tagline { font-family: var(--font-script-ar); font-size: 1.9rem; }

.socials { display: flex; gap: .6rem; }

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .2s;
}

.socials a:hover { background: var(--color-primary-light); }

.footer-copy {
    text-align: center;
    font-size: .82rem;
    padding-block: 1rem;
    background: rgba(0, 0, 0, .15);
    color: #9fbfa6;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-logo { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .site-nav { gap: 1.1rem; }
    .brand-name { display: none; }
    .members-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        inset-block-start: var(--header-height);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: .5rem 1.25rem 1rem;
    }

    .site-nav.open { display: flex; }
    .site-nav a { padding-block: .8rem; border-block-end: 1px solid var(--color-border); }
    .site-nav a::after { display: none; }
    .header-actions { margin-inline-start: auto; }

    .hero { padding-block: 3rem 6rem; }
    .hero-photo {
        width: 100%;
        opacity: .18;
        -webkit-mask-image: none;
                mask-image: none;
    }
    html[dir="rtl"] .hero-photo { -webkit-mask-image: none; mask-image: none; }
    .hero-photo--video { opacity: .3; }
    .hero-sound { top: 1rem; bottom: auto; inset-inline-end: 1rem; }
    .hero-logo { width: 150px; height: 150px; }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cards-4, .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-3 { grid-template-columns: 1fr 1fr; }
    .value:nth-child(3), .stat:nth-child(3) { border-inline-start: 0; }
    .stats-grid { row-gap: 2rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .header-actions .btn span { display: none; }
    .header-actions .btn { padding: .55rem .7rem; }
    .section { padding-block: 3.5rem; }
    .hero-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero-logo { width: 120px; height: 120px; box-shadow: 0 0 0 4px var(--color-primary), var(--shadow-md); }
    .cards-4, .cards-3 { grid-template-columns: 1fr; }
    .members-grid { grid-template-columns: repeat(2, 1fr); }
    .value { padding: 1rem .5rem; }
    .stat-number { font-size: 2rem; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bar { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Inner pages (Phase 3)
   ========================================================================== */

/* ---------- Page hero banner ---------- */
.page-hero {
    position: relative;
    color: #fff;
    padding-block: 4.5rem 5.5rem;
    background:
        linear-gradient(120deg, rgba(15, 74, 34, .94) 0%, rgba(31, 122, 52, .82) 55%, rgba(31, 122, 52, .55) 100%),
        var(--hero-image, none) center / cover no-repeat,
        var(--color-primary);
    overflow: hidden;
}

.page-hero-inner { position: relative; z-index: 1; max-width: 1200px; }

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .75rem;
    max-width: 820px;
}

.page-hero p { margin: 0; max-width: 640px; font-size: 1.05rem; opacity: .92; }

.page-hero-crumb {
    display: flex;
    gap: .5rem;
    font-size: .9rem;
    opacity: .85;
    margin-block-end: .75rem;
}

.page-hero-crumb a:hover { text-decoration: underline; }

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.75rem;
    margin-block-start: 1rem;
    font-weight: 500;
}

.page-hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }

.page-hero-wave {
    position: absolute;
    inset-inline: 0;
    inset-block-end: -1px;
    width: 100%;
    height: 50px;
    color: var(--color-bg);
}

/* ---------- Filter pills ---------- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-block-end: 2.25rem;
}

.filter-pills a, .filter-pills button {
    padding: .5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: .92rem;
    font-weight: 500;
    color: var(--color-muted);
    white-space: nowrap;
    transition: all .2s;
}

.filter-pills a:hover, .filter-pills button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-pills a.active, .filter-pills button.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.filter-pills--scroll { flex-wrap: nowrap; overflow-x: auto; padding-block-end: .5rem; scrollbar-width: thin; }

/* ---------- Activity cards ---------- */
.activity-card .card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.activity-card .card-media img { transition: transform .5s ease; }
.activity-card:hover .card-media img { transform: scale(1.05); }
.activity-card .card-body { text-align: start; padding: 1.25rem 1.4rem 1.5rem; }
.activity-card h3 a:hover { color: var(--color-primary); }

.card-media-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-soft), #d7ebcf);
    color: var(--color-primary);
}

.date-badge {
    position: absolute;
    inset-block-start: .85rem;
    inset-inline-start: .85rem;
    background: #fff;
    border-radius: 10px;
    padding: .35rem .7rem;
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow-sm);
    color: var(--color-deep);
}

.date-badge strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--color-primary); }
.date-badge span { font-size: .75rem; font-weight: 600; text-transform: uppercase; }

.chip {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
    background: #eef2ef;
    color: var(--color-muted);
}

.card-media .chip { position: absolute; inset-block-start: .85rem; inset-inline-end: .85rem; }
.chip--open { background: var(--color-secondary); color: #173b12; }
.chip--upcoming { background: #e0f2fe; color: #075985; }

.meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem !important;
    color: var(--color-primary) !important;
    font-weight: 500;
    margin: 0 0 .6rem !important;
    flex: none !important;
}

.news-card h3 a:hover { color: var(--color-primary); }

/* ---------- Members page ---------- */
.members-grid--full { grid-template-columns: repeat(4, 1fr); }
.member-avatar span { line-height: 1; }
.section-cta { text-align: center; margin-block-start: 2.5rem; }

.join-band {
    background: linear-gradient(120deg, var(--color-deep), var(--color-primary));
    color: #fff;
    padding-block: 3rem;
}

.join-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.join-band h2 { margin: 0 0 .35rem; font-size: 1.6rem; font-weight: 700; }
.join-band p { margin: 0; opacity: .9; }

.empty-state {
    text-align: center;
    color: var(--color-muted);
    padding: 3rem 1rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-soft);
}

/* ---------- Pagination (Laravel's Tailwind view) ---------- */
.pagination-wrap { margin-block-start: 2.5rem; }
.pagination-wrap nav span[aria-current] > span { background: var(--color-primary) !important; color: #fff !important; border-color: var(--color-primary) !important; }

/* ---------- Activity detail ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
    align-items: start;
}

.prose { font-size: 1.05rem; color: #34483b; line-height: 1.85; }
.prose p { margin: 0 0 1.1rem; }

.detail-block { margin-block-start: 2.75rem; }

.detail-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-deep);
    margin: 0 0 1.1rem;
}

.detail-title .count {
    font-size: .8rem;
    font-weight: 600;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    padding: .1rem .6rem;
}

.detail-aside { position: sticky; top: calc(var(--header-height) + 1.5rem); display: grid; gap: 1.5rem; }

.info-card, .register-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-card dl { margin: 0; display: grid; gap: 1rem; }
.info-card dt { font-size: .8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
.info-card dd { margin: .15rem 0 0; font-weight: 600; color: var(--color-deep); }
.info-card--muted { background: var(--color-bg-soft); color: var(--color-muted); }
.info-card--muted p { margin: 0; }

.register-card { border-top: 4px solid var(--color-primary); }
.register-card h2 { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 700; color: var(--color-deep); }
.register-intro { margin: 0 0 1.25rem; font-size: .92rem; color: var(--color-muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-block-end: .35rem; color: var(--color-text); }
.field .req { color: #c0392b; }

.field input {
    width: 100%;
    border: 1px solid #cfdccf;
    border-radius: 10px;
    padding: .7rem .9rem;
    font: inherit;
    font-size: .95rem;
    background: #fbfdfb;
    transition: border-color .2s, box-shadow .2s;
}

html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 122, 52, .15);
    background: #fff;
}

.field input.has-error { border-color: #c0392b; }
.field-error { margin: .35rem 0 0; font-size: .82rem; color: #c0392b; }
.field-hint { margin: -.25rem 0 0; font-size: .8rem; color: var(--color-muted); }
.btn--block { width: 100%; justify-content: center; }

.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 10px;
    font-size: .95rem;
}

.alert .icon { flex-shrink: 0; margin-block-start: .1rem; }
.alert--success { background: var(--color-bg-soft); color: var(--color-deep); border: 1px solid #c7e3bd; }

/* ---------- Photos ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}

.photo-grid--large { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.photo-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--color-bg-soft);
}

.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-tile:hover img { transform: scale(1.06); }

.photo-caption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 1.5rem .8rem .6rem;
    font-size: .82rem;
    font-weight: 500;
    color: #fff;
    text-align: start;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

.gallery-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    color: var(--color-muted);
    margin: -1rem 0 2rem;
}

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); }

.video-tile iframe,
.video-poster {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-poster { position: relative; padding: 0; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-poster:hover img { opacity: 1; }

.video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: transform .2s;
}

.video-poster:hover .video-play { transform: scale(1.1); }
.video-caption { margin: .5rem 0 0; font-size: .88rem; font-weight: 500; color: var(--color-muted); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 25, 14, .92);
    padding: 3rem 4rem;
}

.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { inset-block-start: 1rem; inset-inline-end: 1rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-count { position: absolute; inset-block-end: 1rem; color: #fff; opacity: .8; font-size: .9rem; direction: ltr; }

/* ---------- Responsive (inner pages) ---------- */
@media (max-width: 960px) {
    .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .detail-aside { position: static; }
    .members-grid--full { grid-template-columns: repeat(3, 1fr); }
    .video-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .page-hero { padding-block: 3rem 4rem; }
    .members-grid--full { grid-template-columns: repeat(2, 1fr); }
    .video-grid, .video-grid--3 { grid-template-columns: 1fr; }
    .photo-grid--large { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .lightbox { padding: 3.5rem .5rem; }
    .lightbox-nav { top: auto; bottom: 1rem; }
    .join-band-inner { flex-direction: column; text-align: center; }
}
/* ---------- Activity results & volunteers ---------- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .25rem;
    padding: 1.4rem 1rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--color-bg-soft), #e3f1dc);
    color: var(--color-primary);
}

.result strong { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--color-deep); direction: ltr; }
.result span { font-size: .88rem; color: var(--color-muted); font-weight: 500; }

.volunteers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}

.volunteers li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
}

.volunteers strong { display: block; font-size: .95rem; color: var(--color-deep); }
.volunteers small { display: block; font-size: .8rem; color: var(--color-muted); line-height: 1.35; }

.volunteers li.has-rewards { align-items: flex-start; }
.volunteer-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.volunteer-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; }
.volunteer-points {
    padding: .1rem .55rem;
    border-radius: 999px;
    background: #fff4d6;
    color: #8a5a00;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.volunteer-rewards { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.volunteer-cert {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    font-size: .75rem;
    font-weight: 600;
}
.volunteer-rewards .stars { font-size: .9rem; }

.volunteer-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
/* ---------- About page ---------- */
.about-text p + p { margin-top: -.75rem; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }

.vm-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
}

.vm-card h2 { margin: 1rem 0 .6rem; font-size: 1.45rem; font-weight: 800; color: var(--color-deep); }
.vm-card p { margin: 0; color: #34483b; line-height: 1.85; font-size: 1.02rem; }

.vm-icon, .goal-icon, .contact-icon {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.vm-icon { width: 60px; height: 60px; }

.goals {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.goal {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color .2s, box-shadow .2s;
}

.goal:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-sm); }
.goal p { margin: 0; color: var(--color-text); font-weight: 500; }
.goal-num { font-size: 1.4rem; font-weight: 800; color: var(--color-secondary); min-width: 2ch; direction: ltr; }
.goal-icon { width: 44px; height: 44px; flex-shrink: 0; }

.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }
.partner-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.partner-head .vm-icon { flex-shrink: 0; }
.partner-card h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--color-deep); line-height: 1.5; }
.partner-num { color: var(--color-secondary); margin-inline-end: .5rem; }
.partner-card p + p { margin-top: .75rem; }
.partner-card h4 { margin: 1.4rem 0 .7rem; font-size: 1.05rem; font-weight: 800; color: var(--color-primary); }
.partner-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.partner-areas li { display: flex; align-items: flex-start; gap: .6rem; color: var(--color-text); font-weight: 500; }
.partner-areas .icon { flex-shrink: 0; margin-top: .3rem; color: var(--color-primary); }

.slogan-band {
    background: linear-gradient(120deg, var(--color-deep), var(--color-primary));
    padding-block: 3.5rem;
    text-align: center;
}

.slogan {
    margin: 0;
    color: #fff;
    font-family: var(--font-script-latin);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.3;
}

html[dir="rtl"] .slogan { font-family: var(--font-script-ar); }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .4rem;
    padding: 1.75rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
}

a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card strong { color: var(--color-deep); }
.contact-card span:last-child { color: var(--color-muted); font-size: .92rem; word-break: break-word; }
.contact-icon { width: 54px; height: 54px; margin-bottom: .35rem; }
.contact-icon--wa { background: #dcf8e5; color: #128c4a; }

.footer-contact a:hover { color: #fff; }

@media (max-width: 960px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .vm-grid, .goals, .partner-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

.footer-map {
    display: block;
    width: 100%;
    height: 170px;
    margin-top: 1rem;
    border: 0;
    border-radius: 12px;
    filter: saturate(.9);
}

.about-map {
    display: block;
    width: 100%;
    height: 380px;
    margin-top: 2rem;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ---------- Membership application ---------- */
.join-wrap { max-width: 900px; }
.join-intro { margin-bottom: 2rem; color: #34483b; font-size: 1.05rem; line-height: 1.85; }
.join-intro p { margin: 0 0 .6rem; }
.join-form { display: grid; gap: 1.5rem; }

.join-card {
    margin: 0;
    padding: 1.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.join-card legend {
    padding: .3rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field--full { grid-column: 1 / -1; }
.field-label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .5rem; color: var(--color-text); }

.field textarea,
.field select {
    width: 100%;
    border: 1px solid #cfdccf;
    border-radius: 10px;
    padding: .7rem .9rem;
    font: inherit;
    font-size: .95rem;
    background: #fbfdfb;
}

.field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 122, 52, .15);
    background: #fff;
}

.field textarea.has-error, .field select.has-error { border-color: #c0392b; }

.choices { display: flex; flex-wrap: wrap; gap: .6rem; }

.choice {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1rem;
    border: 1px solid #cfdccf;
    border-radius: 10px;
    background: #fbfdfb;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.choice:hover { border-color: var(--color-primary-light); }
.choice input { accent-color: var(--color-primary); width: 18px; height: 18px; }
.choice:has(input:checked) { border-color: var(--color-primary); background: var(--color-bg-soft); font-weight: 600; }

.join-minor { background: #fffaf0; border: 1px dashed #e8c77a; border-radius: 12px; padding: 1rem; }
.join-minor .link-more { margin: .25rem 0 .75rem; }

.pledge-text {
    max-height: 260px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--color-bg-soft);
    font-size: .92rem;
    line-height: 1.8;
    color: #34483b;
}

.pledge-text p { margin: 0 0 .6rem; }
.choice--pledge { font-weight: 600; }
.join-submit { padding-block: 1rem; font-size: 1.05rem; }
.join-done { font-size: 1.1rem; padding: 1.5rem; }
.alert--error { background: #fdecea; color: #8a1f12; border: 1px solid #f5c2bb; margin-bottom: 1rem; }

@media (max-width: 640px) {
    .join-grid { grid-template-columns: 1fr; }
    .join-card { padding: 1.25rem; }
    .choice { width: 100%; }
}

/* Radio / checkbox inside form fields: keep their native size */
.field .choice input,
.choice input {
    width: 18px;
    height: 18px;
    flex: none;
    padding: 0;
    margin: 0;
    border-radius: revert;
    box-shadow: none;
    accent-color: var(--color-primary);
}
.field .choice input[type="radio"] { border-radius: 50%; }

/* ---------- Feedback & ratings ---------- */
.stars { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; }
.star { color: #d6dfd5; }
.star.is-on { color: #f2b01e; }
.star.is-half { background: linear-gradient(90deg, #f2b01e 50%, #d6dfd5 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--color-bg-soft);
    margin-bottom: 1rem;
}

.rating-summary strong { font-size: 2.4rem; font-weight: 800; color: var(--color-deep); line-height: 1; }
.rating-summary span { display: grid; gap: .2rem; }
.rating-summary .stars { font-size: 1.3rem; }
.rating-summary small { color: var(--color-muted); }

.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }

.reviews li {
    padding: 1rem 1.15rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
}

.review-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.review-head strong { color: var(--color-deep); }
.reviews p { margin: 0 0 .35rem; color: #34483b; line-height: 1.7; }
.reviews small { color: var(--color-muted); font-size: .8rem; }

.feedback-card { border-top-color: #f2b01e; }

/* Clickable 5-star input: inputs are in DOM order 5..1, displayed 1..5 left to right */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    direction: ltr;
    gap: .15rem;
}

.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.star-input label {
    font-size: 2.1rem;
    line-height: 1;
    color: #d6dfd5;
    cursor: pointer;
    transition: color .15s, transform .15s;
    margin: 0 !important;
    font-weight: 400 !important;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f2b01e; }

.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- Membership documents upload ---------- */
.doc-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.4rem 1rem;
    border: 2px dashed #cfdccf;
    border-radius: 12px;
    background: #fbfdfb;
    color: var(--color-primary);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.doc-drop:hover { border-color: var(--color-primary); background: var(--color-bg-soft); }
.doc-drop span { font-weight: 600; color: var(--color-text); }
.doc-drop small { color: var(--color-muted); font-size: .82rem; }

.doc-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .4rem; }

.doc-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .8rem;
    border-radius: 8px;
    background: var(--color-bg-soft);
    font-size: .88rem;
}

.doc-list small { color: var(--color-muted); white-space: nowrap; }
