@font-face {
    font-family: "Somar";
    src: url("/assets/fonts/alfont_com_SomarGX.ttf") format("truetype");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "GraphikArabic";
    src: url("/assets/fonts/Graphik Arabic Medium.otf") format("opentype");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "AdobeArabic";
    src: url("/assets/fonts/AdobeArabic-Regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "MyriadPro";
    src: url("/assets/fonts/MyriadPro-Regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}

:root {
    --navy: #202f6c;
    --gold: #c9af5d;
    --gold-deep: #b6973e;
    --ink: #1d1d1d;
    --muted: #6f6f6f;
    --shell: #fbf8f0;
    --line: #eadfbc;
    --panel: #f1f1f1;
    --shadow: 0 18px 35px rgba(30, 47, 108, 0.1);
    --font-display: "Somar", "AdobeArabic", sans-serif;
    --font-body: "AdobeArabic", "Somar", sans-serif;
    --font-ui: "GraphikArabic", "Somar", sans-serif;
    --font-latin: "MyriadPro", "GraphikArabic", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id],
footer[id] {
    scroll-margin-top: 24px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.about-summary__title,
.nav-pill,
.header-links,
.header-login,
.dropdown-link,
.feature-card__title h3,
.goals-copy h2,
.goals-heading,
.member-card h3,
.stat-card strong,
.certificate-actions a,
.donate-button {
    font-family: var(--font-display);
}

p,
li,
.about-text,
.feature-card p,
.goals-copy ol,
.member-card p,
.stats-row,
.stat-card p,
.footer-links li,
.footer-contact li {
    font-family: var(--font-body);
}

input,
button,
.search-box,
.badge,
.top-strip,
.header-tools,
.project-actions,
.amounts-row button {
    font-family: var(--font-ui);
}

:lang(en),
.badge,
.footer-payments {
    font-family: var(--font-latin);
}

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

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

button,
input {
    font: inherit;
}

.top-strip {
    width: 100%;
    height: 2px;
    background: var(--navy);
    position: relative;
}

.top-strip::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 166px;
    height: 2px;
    background: #30428e;
    transform: translateX(-50%);
}

.container {
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
}

.pattern-shell {
    position: relative;
    overflow: clip;
}

.pattern-shell::before {
    /* content: ""; */
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23eadfbc' stroke-width='2.2' opacity='.65'%3E%3Cpath d='M30 18h60l30 18v36l-30 18H30L0 72V36Z'/%3E%3Cpath d='M120 18h30l30 18v36l-30 18h-30l30-18V36Z'/%3E%3Cpath d='M30 90h60l30 18v36l-30 18H30L0 144v-36Z'/%3E%3Cpath d='M120 90h30l30 18v36l-30 18h-30l30-18v-36Z'/%3E%3Cpath d='M30 18 60 0l30 18M30 90l30-18 30 18M90 18l30-18 30 18M90 90l30-18 30 18'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.78;
    pointer-events: none;
}

.site-header,
.hero,
.about-summary,
.goals-section,
.vision-section,
.board-section,
.certificate-section,
.projects-section,
.partners-section,
.site-footer {
    position: relative;
}

.site-header > *,
.hero > *,
.about-summary > *,
.goals-section > *,
.vision-section > *,
.board-section > *,
.certificate-section > *,
.projects-section > *,
.partners-section > *,
.site-footer > * {
    position: relative;
    z-index: 1;
}

.header-upper {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) auto minmax(360px, 1fr);
    align-items: start;
    gap: 24px;
    padding: 18px 0 18px;
    direction: ltr;
}

.brand-lockup {
    width: 182px;
    margin: 0 auto;
}

.brand-lockup img {
    width: 100%;
    object-fit: contain;
}

.header-links,
.header-tools {
    padding-top: 34px;
}

.header-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 42px;
    direction: rtl;
    color: var(--gold);
    font-size: 17px;
    white-space: nowrap;
}

.header-links a {
    transition: color 160ms ease;
}

.header-links a:hover {
    color: var(--navy);
}

.header-tools {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    white-space: nowrap;
}

.header-cart,
.header-globe,
.header-login svg,
.search-box__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.header-cart,
.header-globe,
.search-box__icon,
.header-login svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cart,
.header-login,
.header-globe {
    color: var(--navy);
}

.header-cart svg,
.header-login svg,
.header-globe svg,
.search-box__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 17px;
    line-height: 1;
    white-space: nowrap;
}

.search-box {
    width: 228px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #d8c796;
    border-radius: 999px;
    background: #fff;
    color: var(--gold);
}

.search-box__icon {
    color: var(--gold);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.header-nav-shell {
    position: relative;
    padding: 12px 0 10px;
}

.header-nav-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='72' viewBox='0 0 220 72'%3E%3Cg fill='none' stroke='%23efefef' stroke-width='10' opacity='.95'%3E%3Cpath d='M0 36h26l10-16 18 32 18-32 18 32 18-32 18 32 18-32 18 32 18-32 10 16h32'/%3E%3Cpath d='M18 0v18l18 18-18 18v18M202 0v18l-18 18 18 18v18'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, 220px 72px;
    background-position: center;
    pointer-events: none;
}

.main-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    direction: rtl;
    justify-content: center;
    gap: 8px;
    width: min(100% - 24px, 1420px);
}

.nav-item {
    position: relative;
}

.nav-pill {
    min-width: 0;
    height: 46px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ececf0;
    color: var(--navy);
    font-size: 18px;
    white-space: nowrap;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-item.is-active .nav-pill {
    background: #c5b067;
    color: var(--navy);
}

.nav-item:hover .nav-pill {
    background: #dddde4;
}

.nav-item.is-active:hover .nav-pill {
    background: #c5b067;
}

.chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    display: none;
    padding: 10px 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    z-index: 15;
}

.nav-item:hover .dropdown-panel {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    color: var(--navy);
    font-size: 18px;
}

.dropdown-link:hover {
    background: rgba(32, 47, 108, 0.06);
}

.hero-image-wrap {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.hero-image {
    width: 100%;
    display: block;
}

.about-summary {
    padding: 18px 0 26px;
}

.about-summary::before, body {
    background: url(/assets/images/bg_1.png);
    background-repeat: repeat;
    background-size: 149px, 206px auto;
    background-position: center;
    opacity: 38;
}

.about-summary__title {
    margin: 0 0 14px;
    color: #202020;
    font-size: clamp(32px, 3.1vw, 46px);
    line-height: 1.1;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.about-brand {
    justify-self: center;
    width: 220px;
}

.about-text h2,
.section-title {
    margin: 0 0 14px;
    color: #222;
    font-size: clamp(28px, 2.3vw, 38px);
    text-align: center;
}

.about-text p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(17px, 1.35vw, 23px);
    line-height: 1.85;
    text-align: center;
}

.feature-band {
    padding: 44px 0 52px;
}

.feature-band--light {
    background: #b6b5b5;
}

.feature-band--dark {
    background: #a7a7a7;
}

.content-section .section-title {
    margin-bottom: 20px;
}

.section-title--light {
    color: #fff;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
    align-items: start;
    direction: rtl;
}

.feature-card {
    text-align: center;
    color: #fff;
}

.feature-band--dark .feature-card {
    color: #fff;
}

.feature-card--plain {
    color: #222;
}

.feature-icon {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    border: 4px solid #d0b25a;
    display: inline-grid;
    place-items: center;
    margin-bottom: 18px;
    background: #fff;
    color: #3b4953;
}

.feature-band--dark .feature-icon {
    color: #3b4953;
}

.feature-icon svg {
    width: 74px;
    height: 74px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    width: 100%;
}

.feature-card__title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.feature-card__check,
.goals-heading__check {
    color: #d39b2a;
    font-size: 28px;
    line-height: 1;
}

.feature-card p {
    margin: 0 auto;
    max-width: 340px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
}

.goals-section {
    padding: 36px 0 44px;
}



.goals-grid {
    display: flex;
    justify-content: center;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 18px 34px;
    direction: rtl;
}

.goals-icon {
    /* width: 138px;
    height: 138px;
    border: 4px solid #d0b25a; */
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #454f58;
    /* margin-inline: auto; */
}

.goals-icon__image {
    width: 138px;
    height: 138px;
    object-fit: contain;
}

.goals-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.goals-copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
}

.goals-copy ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
    font-size: 17px;
    font-weight: bolder;
    line-height: 1.75;
    color: #252525;
}

.goals-copy li {
    margin-bottom: 3px;
}

.vision-section {
    padding: 24px 0 10px;
}

.feature-cards--vision {
    gap: 34px;
}

.board-section {
    padding: 22px 0 28px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 44px 28px;
    justify-items: center;
    align-items: start;
}

.member-card {
    width: min(100%, 320px);
    text-align: center;
}

.board-grid .member-card:nth-child(1) {
    grid-row: 1;
    grid-column: 4 / span 2;
}

.board-grid .member-card:nth-child(2) {
    grid-row: 1;
    grid-column: 2 / span 2;
}

.board-grid .member-card:nth-child(3) {
    grid-row: 2;
    grid-column: 5 / span 2;
}

.board-grid .member-card:nth-child(4) {
    grid-row: 2;
    grid-column: 3 / span 2;
}

.board-grid .member-card:nth-child(5) {
    grid-row: 2;
    grid-column: 1 / span 2;
}

.member-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.member-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.35;
}

.member-card p {
    margin: 0;
    color: #555;
    font-size: 18px;
}

.certificate-section {
    padding: 20px 0 28px;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.certificate-card img {
    width: 100%;
    border-radius: 18px;
}

.certificate-actions {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.certificate-actions a {
    min-width: 200px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-size: 18px;
}

.projects-section {
    padding: 18px 0 28px;
}

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

.projects-grid--needs {
    padding-bottom: 30px;
}

.project-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    padding: 12px;
    box-shadow: 0 10px 24px rgba(30, 47, 108, 0.15);
}

.project-poster {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #c9b564;
}

.projects-grid--needs .project-poster {
    aspect-ratio: 1.18 / 1;
}

.project-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card--placeholder .project-poster {
    background: #c9b564;
}

.project-stats {
    margin-top: 12px;
    border-radius: 16px;
    background: #f2f2f2;
    padding: 10px 10px 8px;
}

.progress-bar {
    height: 14px;
    border-radius: 999px;
    background: #fff;
    position: relative;
}

.progress-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    top: -1px;
    right: calc(100% - 18px);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    color: #b3b3b3;
    font-size: 16px;
}

.amounts-row {
    display: flex;
    gap: 8px;
    padding: 10px 0 8px;
}

.amounts-row button {
    flex: 1;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
    background: #fff;
    color: #7b7b89;
    cursor: pointer;
}

.amounts-row__currency {
    max-width: 48px;
    color: #202020;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-actions {
    display: flex;
    gap: 10px;
    color: #5d6270;
}

.project-actions span {
    width: 18px;
    height: 18px;
}

.project-actions svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.donate-button {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.stats-band {
    background: var(--navy);
    color: #fff;
    padding: 24px 0 22px;
}

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

.stat-card {
    text-align: center;
}

.stat-icon {
    width: 34px;
    height: 34px;
    display: inline-block;
    margin-bottom: 10px;
    color: #fff;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}

.stat-card strong {
    color: var(--gold);
    font-size: 36px;
    line-height: 1;
}

.partners-section {
    padding: 24px 0 28px;
}

.section-title--small {
    font-size: 32px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 680px);
    margin: 0 auto;
}

.partner-card {
    min-height: 92px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    place-items: center;
}

.partner-card img {
    max-height: 56px;
    object-fit: contain;
}

.footer-card {
    background: rgba(247, 244, 238, 0.96);
    border-radius: 6px;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.footer-brand {
    order: 4;
}

.footer-brand img {
    width: 210px;
    margin-inline-start: auto;
}

.footer-links h3,
.footer-contact h3,
.footer-payments h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #444;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 6px;
    color: #5d5d5d;
    font-size: 15px;
    line-height: 1.55;
}

.payment-badges,
.social-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    font-family: "GraphikArabic", sans-serif;
    font-size: 14px;
}

.badge--mada {
    color: #0b6a9a;
}

.badge--visa {
    color: #1b4ab8;
}

.badge--master {
    color: #db7b16;
}

.badge--apple {
    color: #111;
}

.social-badges {
    margin-top: 14px;
}

.social-badges span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
}

@media (max-width: 1100px) {
    .about-grid,
    .footer-card {
        grid-template-columns: 1fr;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .header-upper {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .header-links,
    .header-tools {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 0;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .board-grid,
    .projects-grid,
    .partners-grid,
    .stats-grid,
    .feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .board-grid .member-card:nth-child(1),
    .board-grid .member-card:nth-child(2),
    .board-grid .member-card:nth-child(3),
    .board-grid .member-card:nth-child(4),
    .board-grid .member-card:nth-child(5) {
        grid-column: auto;
    }

    .footer-brand {
        order: 0;
    }

    .footer-brand img {
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .top-strip {
        width: 100%;
    }

    .brand-lockup {
        width: 138px;
    }

    .header-links,
    .header-login {
        font-size: 18px;
    }

    .header-links {
        gap: 18px;
    }

    .header-tools {
        gap: 12px;
    }

    .search-box {
        width: min(100%, 220px);
    }

    .nav-pill {
        min-width: 132px;
        font-size: 16px;
        padding-inline: 16px;
    }

    .main-nav {
        gap: 8px;
    }

    .about-text h2,
    .section-title {
        font-size: 28px;
    }

    .about-text p,
    .feature-card p,
    .goals-copy ol,
    .stat-card p,
    .member-card p {
        font-size: 16px;
    }

    .feature-card h3,
    .goals-copy h2,
    .member-card h3 {
        font-size: 21px;
    }

    .board-grid,
    .projects-grid,
    .partners-grid,
    .stats-grid,
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .feature-band {
        padding: 28px 0 34px;
    }

    .feature-cards {
        gap: 28px;
    }

    .feature-icon {
        width: 108px;
        height: 108px;
    }

    .feature-icon svg {
        width: 58px;
        height: 58px;
    }

    .goals-section {
        padding: 28px 0 34px;
    }

    .goals-icon {
        width: 110px;
        height: 110px;
    }

    .goals-icon svg {
        width: 64px;
        height: 64px;
    }

    .stats-row,
    .donate-button {
        font-size: 16px;
    }

    .footer-card {
        padding: 24px;
    }
}
