:root {
    --ink: #09110d;
    --ink-2: #14231b;
    --forest: #073b24;
    --green: #17b65f;
    --green-2: #0f8f4b;
    --lime: #b9f23f;
    --gold: #f2c94c;
    --paper: #f7f9f5;
    --paper-2: #edf2ea;
    --white: #ffffff;
    --muted: #617166;
    --muted-dark: #b9c7bd;
    --line: rgba(9, 17, 13, 0.12);
    --line-light: rgba(255, 255, 255, 0.16);
    --shadow: 0 22px 60px rgba(9, 17, 13, 0.18);
    --content-width: 1180px;
    --nav-height: 66px;
    --radius: 8px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    font-family: "Barlow", sans-serif;
    background: var(--ink);
    color: var(--ink);
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: "Cairo", sans-serif;
    font-size: 0.92rem;
}

img,
video,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(9, 17, 13, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(9, 17, 13, 0.025) 1px, transparent 1px),
        var(--paper);
    background-size: 64px 64px;
}

.section {
    position: relative;
    padding: 72px 0;
    color: var(--ink);
}

.section:nth-of-type(odd) {
    background: var(--paper);
}

.section:nth-of-type(even) {
    background: var(--paper-2);
}

.section-inner {
    width: min(calc(100% - 36px), var(--content-width));
    margin: 0 auto;
}

.panel,
.news-card,
.info-card,
.video-card,
.category-card,
.media-button,
.contact-card,
.form-card,
.map-card {
    border-radius: var(--radius);
}

.panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    min-height: 82vh;
    margin-top: 0;
    color: var(--white);
    overflow: clip;
    background: var(--ink);
}

.home-page .hero {
    padding-top: 1px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 128px 0 74px;
    background:
        linear-gradient(90deg, rgba(5, 12, 8, 0.94), rgba(7, 59, 36, 0.84)),
        repeating-linear-gradient(110deg, transparent 0 22px, rgba(185, 242, 63, 0.1) 22px 23px),
        var(--ink);
    color: var(--white);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 360px;
    height: 360px;
    border: 34px solid rgba(185, 242, 63, 0.18);
    border-radius: 50%;
}

.page-hero .section-inner {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.9;
    text-transform: uppercase;
    text-wrap: balance;
}

.page-hero p:not(.eyebrow) {
    max-width: 690px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 12, 8, 0.95) 0%, rgba(5, 12, 8, 0.72) 46%, rgba(5, 12, 8, 0.18) 100%),
        linear-gradient(180deg, rgba(5, 12, 8, 0.14) 0%, rgba(5, 12, 8, 0.9) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--paper));
    pointer-events: none;
}

.hero-video,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.08);
}

.hero-overlay {
    z-index: 1;
    background:
        repeating-linear-gradient(110deg, transparent 0 20px, rgba(255, 255, 255, 0.04) 20px 21px),
        linear-gradient(110deg, transparent 0%, rgba(185, 242, 63, 0.12) 62%, transparent 100%);
    mix-blend-mode: screen;
    opacity: 0.82;
}

.navbar {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: min(calc(100% - 28px), calc(var(--content-width) + 28px));
    min-height: var(--nav-height);
    margin: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: var(--radius);
    background: rgba(9, 17, 13, 0.74);
    border: 1px solid var(--line-light);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.is-scrolled {
    position: fixed;
    background: rgba(9, 17, 13, 0.94);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--white);
}

.brand-copy strong {
    font-family: "Teko", sans-serif;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0;
}

.brand-copy span {
    color: var(--muted-dark);
    font-size: 0.36rem;
    font-weight: 600;
}

.nav-panel,
.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    gap: 4px;
}

.nav-links a {
    position: relative;
    padding: 9px 8px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 7px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--lime);
    transition: transform var(--transition);
}

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

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

.button,
.lang-switch,
.filter-button {
    border-radius: var(--radius);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line-light);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 9px 12px;
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
}

.lang-choice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lang-flag {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 1px rgba(9, 17, 13, 0.26);
    flex: 0 0 auto;
}

.lang-flag-fr {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.lang-flag-ma {
    background: #c1272d;
}

.lang-flag-ma::before {
    content: "★";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #006233;
    font-size: 0.78rem;
    line-height: 1;
}

.lang-switch[data-current="fr"] .lang-choice-fr .lang-flag,
.lang-switch[data-current="ar"] .lang-choice-ar .lang-flag {
    box-shadow: 0 0 0 3px rgba(185, 242, 63, 0.26);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid transparent;
    font-weight: 900;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.button-primary {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 20px 38px rgba(185, 242, 63, 0.18);
}

.button-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.lang-switch:hover,
.filter-button:hover,
.media-button:hover,
.news-card:hover,
.video-card:hover,
.info-card:hover,
.category-card:hover,
.social-links a:hover {
    transform: translateY(-2px);
}

.hero-grid {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 36px), var(--content-width));
    min-height: calc(82vh - 96px);
    margin: 28px auto 0;
    padding: 22px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.72fr);
    align-items: end;
    gap: 36px;
}

.hero-copy {
    max-width: 860px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    width: fit-content;
    padding: 7px 10px;
    color: var(--ink);
    background: var(--lime);
    border-radius: var(--radius);
}

.hero h1,
.section-title {
    margin: 0;
    font-family: "Teko", sans-serif;
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(2.05rem, 4.45vw, 3.85rem);
    text-wrap: balance;
}

.hero-text,
.section-text,
.about-story p,
.president-copy p,
.news-card p,
.video-card p,
.category-card p,
.contact-list,
.benefits,
.footer p {
    line-height: 1.72;
    font-size: 0.88rem;
}

.hero-text {
    max-width: 600px;
    margin: 16px 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    max-width: 640px;
}

.hero-stats li {
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line-light);
    backdrop-filter: blur(12px);
}

.hero-stats strong {
    display: block;
    font-family: "Teko", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.hero-card {
    position: relative;
    align-self: center;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line-light);
    backdrop-filter: blur(16px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-card::before {
    content: "";
    display: block;
    width: 100%;
    height: 7px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--lime), var(--green));
}

.hero-card h2 {
    margin: 12px 0 10px;
    font-size: 1.12rem;
    line-height: 1.05;
}

.hero-card p,
.hero-card .match-meta {
    color: rgba(255, 255, 255, 0.8);
}

.match-badge,
.tag,
.media-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius);
    padding: 7px 10px;
    font-weight: 900;
}

.match-badge,
.tag {
    background: rgba(185, 242, 63, 0.12);
    color: var(--lime);
}

.news-card .tag,
.filter-button.active {
    color: var(--ink);
    background: var(--lime);
}

.match-meta {
    display: grid;
    gap: 8px;
    margin: 18px 0 16px;
}

.inline-link {
    color: var(--green-2);
    font-weight: 900;
}

.hero .inline-link,
.join-section .inline-link {
    color: var(--lime);
}

.intro-strip {
    padding: 44px 0;
    background: #466505 !important;
    color: var(--white);
}

.intro-strip .section-title,
.intro-strip .section-text {
    color: var(--white);
}

.split-intro,
.about-layout,
.president-layout,
.join-layout,
.contact-layout,
.footer-grid {
    display: grid;
    gap: 28px;
}

.split-intro {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.section-heading {
    max-width: 900px;
    margin-bottom: 28px;
}

.section-title {
    color: var(--ink);
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    text-wrap: balance;
}

.section-title.left::after {
    margin-inline: 0;
}

.section-text {
    max-width: 760px;
    color: var(--muted);
}

.section-cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.news-grid,
.about-cards,
.media-grid,
.video-grid,
.categories-grid,
.feature-grid,
.category-detail-grid {
    display: grid;
    gap: 18px;
}

.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card,
.info-card,
.video-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(9, 17, 13, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover,
.video-card:hover,
.info-card:hover,
.category-card:hover {
    box-shadow: 0 26px 58px rgba(9, 17, 13, 0.14);
}

.news-card h3,
.info-card h3,
.video-card h3,
.contact-card h3,
.category-card h3 {
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 1rem;
}

.news-card p,
.info-card p,
.video-card p,
.category-card p {
    color: var(--muted);
}

.about-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
}

.about-story {
    padding: 24px;
    background:
        linear-gradient(140deg, rgba(9, 17, 13, 0.96), rgba(7, 59, 36, 0.94)),
        var(--ink);
    color: var(--white);
}

.about-story h3 {
    margin-top: 0;
    font-size: 1.24rem;
}

.about-story p {
    color: rgba(255, 255, 255, 0.8);
}

.about-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon-wrap {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--lime);
    font-size: 1.08rem;
}

.categories-section {
    background: var(--paper) !important;
}

.categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
    position: relative;
    min-height: 190px;
    padding: 18px;
    overflow: hidden;
    background: var(--ink);
    border: 1px solid rgba(9, 17, 13, 0.14);
    box-shadow: 0 20px 52px rgba(9, 17, 13, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform var(--transition), box-shadow var(--transition);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.68) 72%),
        repeating-linear-gradient(135deg, rgba(185, 242, 63, 0.16) 0 1px, transparent 1px 18px);
    opacity: 0.82;
}

.category-card::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 22px;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(185, 242, 63, 0.72);
    border-radius: var(--radius);
    border-left: 0;
    border-bottom: 0;
}

.category-card span,
.category-card h3,
.category-card p {
    position: relative;
}

.category-card span {
    width: fit-content;
    margin-bottom: auto;
    padding: 7px 10px;
    border-radius: var(--radius);
    background: var(--lime);
    color: var(--ink);
    font-weight: 900;
}

.category-card h3 {
    color: var(--white);
    text-transform: uppercase;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.category-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-detail-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(9, 17, 13, 0.08);
}

.category-detail-card h2 {
    margin: 16px 0 10px;
    font-family: "Teko", sans-serif;
    font-size: 2rem;
    line-height: 0.95;
    text-transform: uppercase;
}

.category-detail-card h3 {
    margin: 18px 0 6px;
    color: var(--green-2);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.category-detail-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.president-section {
    background: var(--white) !important;
}

.president-layout {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
}

.president-frame {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--forest);
    box-shadow: var(--shadow);
}

.president-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: saturate(1.08) contrast(1.05);
}

.president-overlay {
    position: absolute;
    inset: auto 20px 20px 20px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(9, 17, 13, 0.82);
    color: var(--white);
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.president-copy {
    padding: 26px;
    background: var(--paper);
}

.president-copy p {
    color: var(--muted);
}

.signature {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--green);
}

.signature strong {
    font-size: 1rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-button {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 9px 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}

.media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
    max-width: 1040px;
    margin-inline: auto;
}

.media-button {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--ink);
    box-shadow: 0 20px 48px rgba(9, 17, 13, 0.14);
    transition: transform var(--transition), box-shadow var(--transition);
}

.media-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.media-button:hover img {
    transform: scale(1.06);
}

.media-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(9, 17, 13, 0.92) 100%);
}

.media-label {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    justify-content: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-frame {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    background: var(--ink);
}

.video-frame iframe,
.video-frame video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.join-section {
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(9, 17, 13, 0.98), rgba(7, 59, 36, 0.96)),
        var(--ink) !important;
    color: var(--white);
}

.join-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(110deg, transparent 0 26px, rgba(255, 255, 255, 0.055) 26px 27px);
    pointer-events: none;
}

.join-section .section-inner {
    position: relative;
}

.join-section .section-title,
.join-section .section-text,
.join-section .eyebrow,
.join-section .benefits {
    color: var(--white);
}

.join-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.benefits li {
    position: relative;
    padding-left: 28px;
    font-weight: 700;
}

.benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--lime);
}

.steps-list {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 14px;
}

.steps-list li {
    position: relative;
    counter-increment: steps;
    padding: 16px 16px 16px 64px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line-light);
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--lime);
    color: var(--ink);
    font-weight: 900;
}

.steps-list strong,
.steps-list span {
    display: block;
}

.steps-list span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

.form-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line-light);
    color: var(--white);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.contact-section .form-card,
.contact-section .contact-card,
.map-card {
    color: var(--ink);
    background: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-grid label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.form-wide {
    grid-column: 1 / -1;
}

.form-grid label span {
    font-size: 0.84rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    min-height: 42px;
    border-radius: var(--radius);
    border: 1px solid var(--line-light);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    padding: 10px 12px;
    outline: none;
}

.form-grid select option {
    color: var(--ink);
}

.contact-section .form-grid input,
.contact-section .form-grid textarea,
.contact-section .form-grid select {
    background: var(--paper);
    border-color: var(--line);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(23, 182, 95, 0.14);
}

.form-feedback {
    min-height: 1.3em;
    margin: 14px 0 0;
    color: var(--lime);
    font-weight: 800;
}

.contact-layout {
    grid-template-columns: 0.82fr 1.18fr;
}

.contact-card {
    padding: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(9, 17, 13, 0.08);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
    display: grid;
    gap: 14px;
}

.contact-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    color: var(--muted);
}

.contact-list i {
    color: var(--green);
    font-size: 1.1rem;
    margin-top: 4px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
    transition: transform var(--transition), background var(--transition);
}

.social-links a:hover {
    background: var(--green);
}

.map-card {
    margin-top: 24px;
    padding: 14px;
    border: 1px solid var(--line);
}

.map-card iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: var(--radius);
}

.map-placeholder,
.video-placeholder,
.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
}

.map-placeholder {
    min-height: 300px;
    gap: 8px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(185, 242, 63, 0.16), rgba(23, 182, 95, 0.08)),
        var(--paper);
    color: var(--ink);
}

.map-placeholder i,
.video-placeholder i {
    color: var(--green);
    font-size: 2.4rem;
}

.map-placeholder span {
    max-width: 420px;
    color: var(--muted);
}

.video-placeholder {
    min-height: 190px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 30% 20%, rgba(185, 242, 63, 0.28), transparent 30%),
        var(--ink);
}

.empty-state {
    min-height: 220px;
    padding: 28px;
    color: var(--muted);
    font-weight: 800;
}

.footer {
    padding: 44px 0 22px;
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    align-items: start;
}

.footer h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: var(--lime);
}

.footer a,
.footer p {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-social {
    margin-top: 16px;
}

.footer-social a {
    display: grid;
    margin: 0;
    color: var(--white);
}

.footer-bottom {
    width: min(calc(100% - 36px), var(--content-width));
    margin: 26px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.56);
    text-align: center;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(9, 17, 13, 0.9);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    width: min(100%, 980px);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow);
}

.lightbox-image {
    min-height: 380px;
    background: linear-gradient(135deg, var(--forest), var(--green));
}

.lightbox-caption {
    padding: 24px;
    color: var(--white);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 80ms;
}

.delay-2 {
    transition-delay: 160ms;
}

[data-hidden="true"] {
    display: none !important;
}

body[dir="rtl"] .navbar,
body[dir="rtl"] .hero-grid,
body[dir="rtl"] .split-intro,
body[dir="rtl"] .about-layout,
body[dir="rtl"] .president-layout,
body[dir="rtl"] .join-layout,
body[dir="rtl"] .contact-layout,
body[dir="rtl"] .footer-grid {
    direction: rtl;
}

body[dir="rtl"] .brand-copy strong {
    font-size: 0.92rem;
}

body[dir="rtl"] .brand-copy span {
    font-size: 0.34rem;
}

body[dir="rtl"] .nav-links a {
    font-size: 0.72rem;
}

body[dir="rtl"] .button,
body[dir="rtl"] .lang-switch,
body[dir="rtl"] .filter-button {
    font-size: 0.8rem;
}

body[dir="rtl"] .eyebrow {
    font-size: 0.62rem;
}

body[dir="rtl"] .hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.02;
}

body[dir="rtl"] .section-title {
    font-size: clamp(1.5rem, 2.7vw, 2.25rem);
    line-height: 1.08;
}

body[dir="rtl"] .hero-text,
body[dir="rtl"] .section-text,
body[dir="rtl"] .about-story p,
body[dir="rtl"] .president-copy p,
body[dir="rtl"] .news-card p,
body[dir="rtl"] .video-card p,
body[dir="rtl"] .category-card p,
body[dir="rtl"] .contact-list,
body[dir="rtl"] .benefits,
body[dir="rtl"] .footer p {
    font-size: 0.82rem;
    line-height: 1.65;
}

body[dir="rtl"] .news-card h3,
body[dir="rtl"] .info-card h3,
body[dir="rtl"] .video-card h3,
body[dir="rtl"] .contact-card h3,
body[dir="rtl"] .category-card h3,
body[dir="rtl"] .about-story h3 {
    font-size: 0.92rem;
    line-height: 1.35;
}

body[dir="rtl"] .form-grid label span,
body[dir="rtl"] .form-grid input,
body[dir="rtl"] .form-grid textarea,
body[dir="rtl"] .form-grid select {
    font-size: 0.8rem;
}

body[dir="rtl"] .nav-links a::after {
    transform-origin: center;
}

body[dir="rtl"] .benefits li {
    padding-left: 0;
    padding-right: 28px;
}

body[dir="rtl"] .benefits li::before {
    left: auto;
    right: 0;
}

body[dir="rtl"] .contact-list li {
    flex-direction: row-reverse;
}

body[dir="rtl"] .signature {
    padding-left: 0;
    padding-right: 16px;
    border-left: 0;
    border-right: 4px solid var(--green);
}

@media (max-width: 1120px) {
    .nav-panel {
        gap: 8px;
    }

    .nav-links a {
        padding-inline: 7px;
        font-size: 0.78rem;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .about-layout,
    .president-layout,
    .join-layout,
    .contact-layout,
    .split-intro,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .media-grid,
    .video-grid,
    .about-cards,
    .categories-grid,
    .feature-grid,
    .category-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        align-items: start;
        padding-bottom: 70px;
    }
}

@media (max-width: 900px) {
    .navbar {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
        margin-inline-start: auto;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: var(--radius);
        background: rgba(9, 17, 13, 0.96);
        border: 1px solid var(--line-light);
        box-shadow: var(--shadow);
    }

    .nav-panel.open {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid {
        margin-top: 34px;
        padding-bottom: 68px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 54px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
        padding: 18px 0 62px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-stats,
    .news-grid,
    .media-grid,
    .video-grid,
    .about-cards,
    .categories-grid,
    .feature-grid,
    .category-detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .brand-copy span {
        display: none;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .hero-card,
    .president-copy,
    .form-card,
    .contact-card {
        padding: 18px;
    }

    .lightbox-image {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
