/* ========================================
   01) متغيرات عامة
======================================== */
:root {
    --bg: #f3f3f1;
    --surface: #ffffff;
    --surface-soft: #ededeb;
    --ink: #111111;
    --muted: #5f5f59;
    --line: rgba(17, 17, 17, 0.14);
    --line-strong: rgba(17, 17, 17, 0.28);
    --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1180px;
    --header-height: 96px;
    --footer-height: 62px;
}

/* ========================================
   02) Reset + Base
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(17, 17, 17, 0.06), transparent 28%),
        linear-gradient(180deg, #fbfbfa 0%, #f1f1ef 100%);
    color: var(--ink);
    font-family: "Readex Pro", sans-serif;
    line-height: 1.8;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

/* ========================================
   03) Layout عام
======================================== */
.site-main {
    padding-top: calc(var(--header-height) + 1.4rem);
    padding-bottom: calc(var(--footer-height) + 3rem);
}

.page {
    padding-block: 1rem 3rem;
}

.muted {
    color: var(--muted);
}

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

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

/* ========================================
   04) الهيدر Header
======================================== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

.brand__mark {
    order: -1;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(17, 17, 17, 0.12);
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

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

.brand__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    gap: 0.15rem;
}

.brand__text strong,
.brand__text span {
    display: block;
    width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__text strong {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--ink);
}

.brand__text span {
    font-size: 1rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    background: rgba(17, 17, 17, 0.06);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 4px auto;
    transition: 0.2s ease;
}

/* ========================================
   05) الفوتر Footer
======================================== */
.site-footer {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    backdrop-filter: blur(14px);
}

.site-footer__inner {
    min-height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer .max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
}

.site-footer .mx-auto {
    margin-right: auto;
    margin-left: auto;
}

.site-footer .px-4 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.site-footer .py-6 {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.site-footer .text-center {
    text-align: center;
}

.site-footer .text-gray-700 {
    color: #3f3f46;
}

.site-footer .text-gray-500 {
    color: #71717a;
}

.site-footer .font-extrabold {
    font-weight: 800;
}

.site-footer .text-xl {
    font-size: 1.2rem;
    line-height: 1.8rem;
}

.site-footer .text-sm {
    font-size: 0.88rem;
    line-height: 1.4rem;
}

.site-footer .tracking-wide {
    letter-spacing: 0.08em;
}

.site-footer .mb-1 {
    margin-bottom: 0.2rem;
}

.site-footer p {
    margin-top: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--ink);
}

/* ========================================
   06) عناصر مشتركة عامة
======================================== */
.button,
.button-ghost,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.22s ease;
}

.button {
    background: var(--ink);
    color: #ffffff;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
}

.button-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.55);
}

.button-ghost:hover {
    background: rgba(17, 17, 17, 0.06);
}

.inline-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.inline-link:hover {
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    background: rgba(17, 17, 17, 0.05);
    color: var(--muted);
    font-size: 0.85rem;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink);
}

.hero h1,
.page-hero h1,
.section-head h2,
.detail-article h1,
.timeline-group h2,
.admin-title {
    margin: 0;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero p,
.lead,
.section-head p,
.detail-meta,
.timeline-entry p,
.list-row p,
.contact-list p {
    color: var(--muted);
}

.hero__actions,
.footer-links,
.meta-row,
.page-actions,
.contact-list,
.social-links,
.stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.92rem;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

.field textarea {
    min-height: 180px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(17, 17, 17, 0.08);
    border-color: var(--line-strong);
}

.flash-stack {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.flash {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
}

.flash--error {
    border-color: rgba(146, 21, 21, 0.18);
    background: rgba(146, 21, 21, 0.05);
}

.flash ul {
    margin: 0;
    padding-inline-start: 1rem;
}

.pager {
    margin-top: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
}

.pager__links {
    display: flex;
    gap: 0.7rem;
}

.pager__links a,
.pager__links span {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.pager__links span {
    color: #9a9a93;
}

.id-badge,
.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(17, 17, 17, 0.04);
    color: var(--muted);
    font-size: 0.82rem;
}

.surface-panel,
.page-hero {
    padding: clamp(1.4rem, 2.5vw, 2.3rem);
}

.page-hero {
    margin-bottom: 1.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 3.3rem);
    margin-bottom: 0.6rem;
}

.section {
    padding-block: 1rem 1.5rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.section-stack {
    display: grid;
    gap: 1rem;
}

.list-row,
.timeline-entry,
.contact-card,
.sidebar-panel,
.detail-article,
.form-panel {
    padding: 1.35rem;
}

.list-row__top,
.timeline-entry__top,
.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.list-row h3,
.timeline-entry h3,
.detail-article h1 {
    margin: 0.6rem 0 0.35rem;
    font-family: "Noto Kufi Arabic", sans-serif;
}

.timeline-layout {
    display: grid;
    gap: 1rem;
}

.timeline-group {
    padding: 1.35rem;
}

.timeline-list {
    display: grid;
    gap: 0.8rem;
}

.timeline-entry {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(17, 17, 17, 0.03);
}

.sidebar-panel h3,
.contact-card h3 {
    margin-top: 0;
    font-family: "Noto Kufi Arabic", sans-serif;
}

.detail-cover {
    margin-block: 1rem 1.4rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.detail-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    filter: grayscale(100%);
}

.detail-article__body {
    color: #262626;
    white-space: pre-line;
}

.social-links a {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(17, 17, 17, 0.03);
}

.social-links a:hover {
    background: rgba(17, 17, 17, 0.07);
}

/* ========================================
   07) قوالب عامة لبعض الصفحات القديمة/المشتركة
======================================== */
.hero {
    min-height: calc(100svh - var(--header-height) - var(--footer-height) - 2rem);
    display: grid;
    align-items: center;
}

.hero__grid,
.story-grid,
.contact-grid,
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}

.hero__content,
.hero__visual,
.surface-panel,
.detail-article,
.sidebar-panel,
.form-panel,
.timeline-group,
.list-row,
.contact-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero__content {
    padding: clamp(1.6rem, 3vw, 3rem);
}

.hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.1rem, 4.8vw, 4.7rem);
}

.hero__visual {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    min-height: 520px;
    background:
        linear-gradient(140deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.72)),
        linear-gradient(180deg, #ffffff, #deded9);
    color: #ffffff;
}

.hero__portrait {
    position: absolute;
    inset: 0;
}

.hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.42;
    filter: none;
}

.hero__card {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: calc(var(--radius-xl) - 8px);
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.06);
}

.hero__card .role {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.hero__card .name {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: clamp(1.9rem, 3.8vw, 3.6rem);
    line-height: 1.35;
}

.stats-strip {
    margin-top: 1.6rem;
}

.stat-box {
    flex: 1;
    min-width: 180px;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(17, 17, 17, 0.04);
}

.stat-box strong {
    display: block;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.5rem;
}

.contact-grid {
    align-items: start;
}

.contact-list {
    flex-direction: column;
}

.contact-list strong {
    display: block;
    font-family: "Noto Kufi Arabic", sans-serif;
    margin-bottom: 0.1rem;
}

/* ========================================
   08) صفحة الأنشطة والزيارات
======================================== */
.activities-page {
    display: grid;
    gap: 1.25rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 0.2rem;
}

.activity-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(17, 17, 17, 0.12);
}

.activity-card__media {
    height: 190px;
    overflow: hidden;
    background: linear-gradient(145deg, #ecece8, #dcdcd7);
}

.activity-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 1.15rem;
}

.activity-card__body h3 {
    margin: 0 0 0.55rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--ink);
}

.activity-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.95;
}

/* ========================================
   09) صفحة تفاصيل النشاط / الزيارة
======================================== */
.activity-admin-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.activity-detail-page {
    display: grid;
    gap: 1.5rem;
}

.activity-detail-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.4rem 1.4rem 1.8rem;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
}

.activity-detail-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.activity-detail-header h1 {
    margin: 0;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.7;
    color: var(--ink);
}

.activity-detail-excerpt {
    max-width: 720px;
    margin: 0.7rem auto 0;
    font-size: 0.98rem;
    line-height: 2;
    color: var(--muted);
}

.activity-detail-cover {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.35rem;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #f0f0ec;
}

.activity-detail-cover img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    object-position: center;
}

.activity-detail-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 2.15;
    color: #2a2a2a;
    white-space: pre-line;
    text-align: right;
}

.activity-detail-section {
    max-width: 760px;
    margin: 1.5rem auto 0;
}

.activity-detail-section h2 {
    margin: 0 0 0.9rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
}

.activity-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.activity-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #f2f2ef;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.activity-gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.activity-gallery__item:hover img {
    transform: scale(1.03);
}

.activity-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #000;
    padding-top: 56.25%;
}

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

.activity-external-box {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.activity-related {
    display: grid;
    gap: 1rem;
}

.activity-related h2 {
    margin: 0;
    text-align: center;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ========================================
   10) صفحة السيرة الذاتية
======================================== */
.biography-page {
    max-width: 1080px;
    margin: 0 auto;
}

.biography-card {
    padding: 1.4rem;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
}

.biography-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.biography-tile {
    min-height: 132px;
    padding: 1rem 1rem 1.1rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 242, 238, 0.82));
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.05);
}

.biography-tile--wide {
    grid-column: 1 / -1;
}

.biography-tile__label {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.05);
    color: var(--muted);
    font-size: 0.82rem;
}

.biography-tile__value {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1rem;
    line-height: 2;
    color: var(--ink);
    white-space: pre-line;
}

/* ========================================
   11) صفحة تواصل معنا
======================================== */
.contact-page {
    max-width: 1120px;
    margin: 0 auto;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.25rem;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    padding: 1.35rem;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.contact-page__head {
    margin-bottom: 1rem;
}

.contact-page__head h1,
.contact-page__head h2 {
    margin: 0 0 0.45rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.45rem;
    line-height: 1.8;
}

.contact-page__head p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
}

.contact-page__tag {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--muted);
    font-size: 0.82rem;
}

.contact-info-list {
    display: grid;
    gap: 0.85rem;
}

.contact-info-item {
    padding: 1rem 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 243, 239, 0.84));
}

.contact-info-item__label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.contact-info-item__value {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--ink);
    word-break: break-word;
}

.contact-socials {
    margin-top: 1rem;
}

.contact-socials h3 {
    margin: 0 0 0.8rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1rem;
}

.contact-socials__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(17, 17, 17, 0.04);
    color: var(--ink);
    transition: 0.22s ease;
}

.social-pill:hover {
    background: rgba(17, 17, 17, 0.08);
}

.contact-form-card .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form-card .field--full {
    grid-column: 1 / -1;
}

.contact-form-card textarea {
    min-height: 190px;
}

/* ========================================
   12) الصفحة الرئيسية
======================================== */
.home-page {
    display: grid;
    gap: 1.5rem;
}

.home-hero {
    padding: 0.2rem 0 0.4rem;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 1.25rem;
    align-items: center;
}

.home-hero__visual,
.home-hero__content,
.home-section-card,
.home-contact-card {
    border-radius: 32px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.home-hero__visual {
    padding: 1rem;
}

.home-hero__image-wrap {
    overflow: hidden;
    border-radius: 28px;
    min-height: 520px;
    background: linear-gradient(145deg, #1a1a1a, #3a3a3a);
}

.home-hero__image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center top;
}

.home-hero__content {
    padding: 1.8rem;
    text-align: center;
}

.home-hero__content h1 {
    margin: 0 0 0.8rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    line-height: 1.7;
}

.home-hero__content p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 2;
}

.home-section-tag {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--muted);
    font-size: 0.82rem;
}

.home-section-card {
    padding: 1.25rem;
}

.home-section-head {
    margin-bottom: 1rem;
}

.home-section-head h2 {
    margin: 0;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.35rem;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 310px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.11);
}

.home-post-card__media {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(145deg, #ecece8, #dcdcd7);
}

.home-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-post-card__body {
    padding: 1rem;
}

.home-post-card__body h3 {
    margin: 0 0 0.45rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.home-post-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.95;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 0.95fr 1.1fr;
    gap: 1rem;
    align-items: start;
}

.home-contact-card {
    padding: 1.25rem;
}

.home-contact-card h2 {
    margin: 0 0 0.75rem;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.2rem;
}

.home-contact-card__intro {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.9;
}

.home-mini-grid {
    display: grid;
    gap: 0.8rem;
}

.home-mini-item {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 243, 239, 0.86));
}

.home-mini-item span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.home-mini-item strong {
    display: block;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 0.94rem;
    line-height: 1.9;
    color: var(--ink);
    word-break: break-word;
}

.home-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(17, 17, 17, 0.04);
    color: var(--ink);
    transition: 0.22s ease;
}

.home-social-pill:hover {
    background: rgba(17, 17, 17, 0.08);
}

.home-empty-note {
    color: var(--muted);
    line-height: 1.9;
}

.home-contact-card--form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-contact-card--form .field--full {
    grid-column: 1 / -1;
}

.home-contact-card--form textarea {
    min-height: 190px;
}

/* ========================================
   13) Responsive عام
======================================== */
@media (max-width: 1100px) {
    .home-card-grid,
    .activities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .site-nav {
        position: fixed;
        inset: calc(var(--header-height) + 0.8rem) 1rem auto 1rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    body.menu-open .site-nav {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .nav-toggle {
        display: block;
    }

    .hero__grid,
    .story-grid,
    .contact-grid,
    .detail-grid,
    .contact-page__grid,
    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero__visual {
        min-height: 360px;
    }

    .home-hero__image-wrap,
    .home-hero__image-wrap img {
        min-height: 380px;
    }

    .home-hero__content {
        text-align: center;
    }

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

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 82px;
        --footer-height: 78px;
    }

    .container {
        width: min(calc(100% - 1rem), var(--container));
    }

    .site-footer__inner,
    .site-header__inner {
        align-items: center;
    }

    .site-footer__inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.35rem;
        padding-block: 0.65rem;
    }

    .brand {
        gap: 0.65rem;
    }

    .brand__mark {
        width: 52px;
        height: 52px;
    }

    .brand__text strong {
        font-size: 1.02rem;
        text-align: center;
    }

    .brand__text span {
        font-size: 0.84rem;
        text-align: center;
    }

    .section-head,
    .list-row__top,
    .timeline-entry__top,
    .detail-meta,
    .pager {
        align-items: start;
        flex-direction: column;
    }

    .hero__content,
    .page-hero,
    .surface-panel,
    .detail-article,
    .sidebar-panel,
    .form-panel,
    .timeline-group,
    .list-row,
    .contact-card,
    .biography-card,
    .contact-info-card,
    .contact-form-card,
    .home-hero__content,
    .home-section-card,
    .home-contact-card,
    .home-hero__visual {
        border-radius: 24px;
        padding: 1rem;
    }

    .home-card-grid,
    .activities-grid,
    .biography-grid,
    .activity-gallery {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        min-height: 340px;
    }

    .home-hero__image-wrap {
        min-height: 320px;
        border-radius: 20px;
    }

    .home-hero__content h1 {
        font-size: 1.6rem;
        line-height: 1.85;
    }

    .contact-form-card .form-grid,
    .home-contact-card--form .form-grid {
        grid-template-columns: 1fr;
    }

    .activity-detail-card {
        padding: 1rem 1rem 1.3rem;
        border-radius: 24px;
    }

    .activity-detail-cover img {
        max-height: 280px;
    }

    .activity-gallery__item img {
        height: 220px;
    }

    .activity-detail-body {
        font-size: 0.95rem;
    }

    .site-footer .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .site-footer .text-xl {
        font-size: 1rem;
    }

    .site-footer .text-sm {
        font-size: 0.8rem;
    }
}
