:root {
    /*
     * Arabic font stack (fonts loaded in includes/header.php)
     * --font-ar-body: continuous reading (Noto Sans Arabic).
     * --font-ar-display: titles / brand line (Tajawal).
     */
    --font-ar-body: "Noto Sans Arabic", "Tajawal", system-ui, sans-serif;
    --font-ar-display: "Tajawal", "Noto Sans Arabic", system-ui, sans-serif;

    /* Brand — blue / steel / orange */
    --color-brand-blue: #114ab1;
    --color-brand-blue-dark: #0c3a89;
    --color-brand-steel: #6793ac;
    --color-brand-orange: #e4580b;
    --color-brand-orange-dark: #b94809;

    /* Semantic (white UI, black type) */
    --bg: #ffffff;
    --bg-elevated: #f8fafc;
    --bg-card: #ffffff;
    --text: #0a0a0a;
    --muted: #52525b;
    --accent: var(--color-brand-blue);
    --accent-dark: var(--color-brand-blue-dark);
    --accent-secondary: var(--color-brand-steel);
    --accent-warm: var(--color-brand-orange);
    --accent-warm-dark: var(--color-brand-orange-dark);
    /* Gold pills (reference UI) */
    --fab-gold: #eab308;
    --fab-gold-dark: #ca8a04;
    /* Highlights / slider dots / focus ring */
    --accent-gold: var(--color-brand-orange);
    --silver: #94a3b8;
    --card-border: rgba(17, 74, 177, 0.12);
    --card-border-strong: rgba(17, 74, 177, 0.22);
    --photo-placeholder: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    --font: var(--font-ar-body);

    /* Gallery strip (card grid) — same brand family as UI */
    --gallery-grid-bg: var(--bg-elevated);
    --gallery-grid-bg: color-mix(in srgb, var(--color-brand-blue) 5%, var(--bg-elevated));
    --gallery-card-bg: var(--bg-card);
    --gallery-card-border: var(--card-border);
    --gallery-media-bg: var(--photo-placeholder);
    --gallery-media-bg: color-mix(in srgb, var(--color-brand-steel) 14%, var(--photo-placeholder));
    --gallery-title: var(--text);
    --gallery-muted: var(--muted);
}

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

html {
    scroll-behavior: smooth;
}

/* RTL Arabic: comfortable line height + legible rendering */
html[lang="ar"] {
    font-size: 100%;
}

html[lang="ar"] body {
    line-height: 1.85;
    font-size: 1.0625rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
}

/* Display type: headings + site title (Tajawal) */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .logo,
html[lang="ar"] .footer-logo,
html[lang="ar"] .footer-heading,
html[lang="ar"] .section-head h2,
html[lang="ar"] .hero-slider__title,
html[lang="ar"] .hero-slider__fallback-title {
    font-family: var(--font-ar-display);
    letter-spacing: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
    font-weight: 700;
    line-height: 1.35;
}

html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-weight: 600;
    line-height: 1.45;
}

html[lang="ar"] .nav-cta {
    font-family: var(--font-ar-display);
    font-weight: 700;
}

/* Long-form Arabic (blog / static pages): keep Noto for reading rhythm */
html[lang="ar"] .article-body,
html[lang="ar"] .page-content {
    line-height: 1.9;
    font-size: 1.0625rem;
}

html[lang="ar"] .article-body p + p,
html[lang="ar"] .page-content p + p {
    margin-top: 0.85em;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        radial-gradient(120% 90% at 50% -40%, rgba(17, 74, 177, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 12px 40px rgba(15, 23, 42, 0.06);
}

.site-header::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-secondary) 18%,
        var(--accent) 50%,
        var(--accent-warm) 82%,
        transparent
    );
    opacity: 0.9;
}

.site-header__top {
    position: relative;
    border-bottom: 1px solid rgba(17, 74, 177, 0.08);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0 0.85rem;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.logo:hover {
    color: var(--accent-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--card-border-strong);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.nav-toggle:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 14px rgba(17, 74, 177, 0.12);
}

.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-toggle::before {
    top: 15px;
    box-shadow: 0 7px 0 currentColor;
}

.nav-toggle::after {
    bottom: 15px;
}

.nav-toggle.is-open::before {
    transform: translateY(7px) rotate(45deg);
    box-shadow: none;
}

.nav-toggle.is-open::after {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
    background: rgba(17, 74, 177, 0.07);
    border-color: rgba(17, 74, 177, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17, 74, 177, 0.08);
}

.main-nav a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.main-nav .nav-cta {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-dark));
    color: #fff !important;
    padding: 0.48rem 1.1rem;
    border-radius: 999px;
    margin-inline-start: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(228, 88, 11, 0.38);
}

.main-nav .nav-cta:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(228, 88, 11, 0.48);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
}

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

    .main-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 0.75rem 0.85rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--card-border-strong);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        gap: 0.15rem;
        border-radius: 0 0 16px 16px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.65rem 0.75rem;
        border-radius: 12px;
        border-bottom: none;
        text-align: center;
    }

    .main-nav a + a {
        border-top: 1px solid rgba(17, 74, 177, 0.08);
    }

    .main-nav a:first-of-type {
        border-top: none;
    }

    .main-nav .nav-cta {
        margin-inline-start: 0;
        text-align: center;
        margin-top: 0.35rem;
    }
}

.site-main {
    padding-bottom: 4rem;
}

.page-home .site-main {
    padding-bottom: 0;
}

/* ——— Home hero slider ——— */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: clamp(280px, 52vh, 560px);
    max-height: 70vh;
    background: var(--bg-elevated);
    overflow: hidden;
    isolation: isolate;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: clamp(280px, 52vh, 560px);
    max-height: 70vh;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    will-change: transform;
}

.hero-slider__slide.is-active img {
    animation: hero-slider-ken 8.5s ease-out forwards;
}

.hero-slider__slide:not(.is-active) img {
    animation: none;
}

@keyframes hero-slider-ken {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.06);
    }
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.06) 0%,
        transparent 32%,
        rgba(15, 23, 42, 0.14) 58%,
        rgba(255, 255, 255, 0.82) 92%,
        rgba(255, 255, 255, 0.95) 100%
    );
    pointer-events: none;
}

.hero-slider__caption {
    position: absolute;
    inset-inline: 0;
    bottom: clamp(5.1rem, 12vh, 7rem);
    z-index: 3;
    text-align: center;
    padding: 0 clamp(0.75rem, 3vw, 1.5rem);
    pointer-events: none;
}

.hero-slider__title {
    display: inline-block;
    font-size: clamp(1.05rem, 2.6vw, 1.65rem);
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    max-width: min(40rem, 92vw);
    line-height: 1.45;
    padding: 0.7rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 74, 177, 0.14);
    box-shadow:
        0 4px 0 rgba(255, 255, 255, 0.65) inset,
        0 12px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-slider__slide .hero-slider__title {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.5s ease 0.15s,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.hero-slider__slide.is-active .hero-slider__title {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(160deg, rgba(17, 74, 177, 0.92), rgba(12, 58, 137, 0.96));
    color: #fff;
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 10px 28px rgba(17, 74, 177, 0.35);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.hero-slider__btn:hover {
    background: linear-gradient(160deg, var(--accent), var(--accent-dark));
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 14px 36px rgba(17, 74, 177, 0.42);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__btn:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

.hero-slider__btn--prev {
    inset-inline-start: max(10px, 1.75vw);
}

.hero-slider__btn--next {
    inset-inline-end: max(10px, 1.75vw);
}

.hero-slider__dots {
    position: absolute;
    inset-inline: 0;
    bottom: 1.1rem;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    margin-inline: auto;
    width: max-content;
    max-width: calc(100% - 2rem);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 999px;
    border: 1px solid rgba(17, 74, 177, 0.12);
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.12);
}

.hero-slider__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(17, 74, 177, 0.45);
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.hero-slider__dot:hover {
    border-color: var(--accent);
    transform: scale(1.12);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

.hero-slider__dot.is-active {
    background: var(--accent-gold);
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(228, 88, 11, 0.22);
    transform: scale(1.18);
}

.hero-slider__fallback {
    min-height: clamp(280px, 45vh, 480px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.hero-slider__fallback-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    color: var(--text);
}

@media (max-width: 540px) {
    .hero-slider__btn {
        width: 42px;
        height: 42px;
        font-size: 1.45rem;
    }

    .hero-slider__caption {
        bottom: clamp(4.65rem, 20vw, 5.75rem);
    }

    .hero-slider__dots {
        padding: 0.4rem 0.85rem;
        gap: 0.38rem;
    }

    .hero-slider__title {
        padding: 0.55rem 1rem;
        font-size: clamp(0.98rem, 4.2vw, 1.25rem);
    }
}

/* About CTA strip */
.section.about-cta {
    position: relative;
    padding: clamp(1.75rem, 5vw, 3rem) 0;
    background: linear-gradient(180deg, #eff6ff 0%, rgba(239, 246, 255, 0.45) 45%, var(--bg) 100%);
    border-block-end: 1px solid var(--card-border);
}

.section.about-cta::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent) 60%, transparent);
    opacity: 0.4;
    pointer-events: none;
}

.about-cta__panel {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: clamp(1.25rem, 4.5vw, 2.15rem);
    box-shadow: var(--shadow);
}

.about-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.15rem, 3vw, 1.75rem);
}

.about-cta__text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 42rem;
}

.about-cta__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(17, 74, 177, 0.08);
    color: var(--accent);
    border: 1px solid rgba(17, 74, 177, 0.14);
}

.about-cta__heading {
    margin: 0 0 0.7rem;
    font-size: clamp(1.2rem, 3.2vw, 1.55rem);
    line-height: 1.28;
    color: var(--text);
}

.about-cta__lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    line-height: 1.85;
}

.about-cta__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: stretch;
}

.about-cta__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

@media (min-width: 720px) {
    .about-cta__inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 1.75rem 2rem;
    }

    .about-cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .about-cta__actions .btn {
        width: auto;
        min-width: 10.5rem;
    }
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.05rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(17, 74, 177, 0.08);
    filter: none;
    text-decoration: none;
}

.card-media-placeholder {
    height: 180px;
    background: var(--photo-placeholder);
}

/* Blog home cards */
.blog-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .blog-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .blog-home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .blog-home-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.blog-home-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}

.blog-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(17, 74, 177, 0.1);
    border-color: var(--card-border-strong);
}

.blog-home-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 74, 177, 0.1) 0%, #0f172a 55%);
}

.blog-home-card__media-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.blog-home-card__media-link:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: -3px;
}

.blog-home-card__media-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.blog-home-card__media-link:hover img,
.blog-home-card__media-link:focus-visible img {
    transform: scale(1.05);
}

.blog-home-card__media.blog-home-card__media--empty {
    min-height: 0;
    aspect-ratio: 16 / 10;
    background: var(--photo-placeholder);
}

.blog-home-card__body {
    padding: 0.9rem 1rem 1.05rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.blog-home-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    font-family: var(--font-ar-display);
}

.blog-home-card__title a {
    color: var(--text);
    text-decoration: none;
}

.blog-home-card__title a:hover {
    color: var(--accent-warm);
}

.blog-home-card__excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blog-home-card__more {
    margin-top: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    align-self: flex-start;
}

.blog-home-card__more:hover {
    color: var(--accent-warm);
    text-decoration: underline;
}

.section--blog-home {
    background: rgba(17, 74, 177, 0.04);
}

/* Home about block */
.section.home-about {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    border-top: 1px solid var(--card-border-strong);
    background: linear-gradient(180deg, var(--bg) 0%, rgba(239, 246, 255, 0.4) 100%);
}

.home-about__panel {
    max-width: 52rem;
    margin-inline: auto;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: clamp(1.35rem, 4.5vw, 2.35rem) clamp(1.1rem, 4vw, 2.1rem);
    box-shadow: var(--shadow);
}

.home-about__inner {
    margin: 0;
    text-align: center;
}

.home-about__title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    line-height: 1.25;
    color: var(--text);
    display: inline-block;
}

.home-about__title::after {
    content: "";
    display: block;
    margin-top: 0.45rem;
    margin-inline: auto;
    width: min(7.5rem, 45%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(228, 88, 11, 0.85));
}

.home-about__lead {
    margin: 0 auto 1.5rem;
    max-width: 40rem;
    color: var(--muted);
    text-align: start;
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    line-height: 1.9;
}

.home-about__list {
    list-style: none;
    margin: 0 auto 1.75rem;
    padding: 0;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: start;
}

.home-about__list li {
    position: relative;
    margin: 0;
    padding-inline-start: 1.65rem;
    color: var(--text);
    line-height: 1.55;
    font-weight: 500;
}

.home-about__list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(17, 74, 177, 0.12);
}

.home-about__cta {
    margin-top: 0.25rem;
}

.hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 1rem;
    line-height: 1.35;
}

.hero-lead {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.section {
    padding: 2.5rem 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--text);
}

.section-head a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

.section-head a:hover {
    color: var(--accent-warm);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--photo-placeholder);
}

.card-body {
    padding: 1.1rem 1.2rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text);
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    column-gap: 3px;
    row-gap: 3px;
    padding: 3px;
    background: var(--gallery-grid-bg);
    border-radius: 20px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .grid-gallery {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
        gap: 3px;
        column-gap: 3px;
        row-gap: 3px;
    }
}

.gallery-item {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--gallery-card-bg);
    border: 1px solid var(--gallery-card-border);
    box-shadow: var(--shadow);
    animation: gallery-item-rise 0.65s ease backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.03s; }
.gallery-item:nth-child(2) { animation-delay: 0.06s; }
.gallery-item:nth-child(3) { animation-delay: 0.09s; }
.gallery-item:nth-child(4) { animation-delay: 0.12s; }
.gallery-item:nth-child(5) { animation-delay: 0.15s; }
.gallery-item:nth-child(6) { animation-delay: 0.18s; }
.gallery-item:nth-child(7) { animation-delay: 0.21s; }
.gallery-item:nth-child(8) { animation-delay: 0.24s; }
.gallery-item:nth-child(n+9) { animation-delay: 0.27s; }

@keyframes gallery-item-rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gallery-media-bg);
}

.gallery-item__trigger {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    border-radius: 0;
}

.gallery-item__trigger:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--photo-placeholder);
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1), filter 0.35s ease;
    will-change: transform;
}

.gallery-item:hover .gallery-item__img,
.gallery-item:focus-within .gallery-item__img {
    transform: scale(1.06);
    filter: brightness(1.05) saturate(1.05);
}

.gallery-item__meta {
    padding: 0.55rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.gallery-item__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gallery-title);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.gallery-item__source {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    font-size: 0.6875rem;
    line-height: 1.2;
    color: var(--gallery-muted);
}

.gallery-item__source-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 0 0 1px var(--card-border);
}

.gallery-item__source-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    unicode-bidi: plaintext;
}

/* ——— Gallery lightbox ——— */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: min(5vw, 1.5rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lightbox.is-open .lightbox__backdrop {
    opacity: 1;
}

.lightbox__panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    margin: auto;
    transform: scale(0.9) translateY(12px);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.35s ease;
}

.lightbox.is-open .lightbox__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lightbox__close {
    position: absolute;
    top: -0.25rem;
    inset-inline-end: -0.25rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: var(--accent);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover {
    transform: scale(1.08);
    background: var(--accent-dark);
    border-color: var(--accent-gold);
}

.lightbox__figure {
    margin: 0;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    background: #ffffff;
}

.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    animation: lightbox-img-in 0.45s ease 0.08s backwards;
}

@keyframes lightbox-img-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox__caption {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    border-top: 1px solid var(--card-border);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    align-items: stretch;
}

.post-row img {
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
    background: var(--photo-placeholder);
}

.post-row .inner {
    padding: 1rem 1rem 1rem 0;
}

.post-row h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.post-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 560px) {
    .post-row {
        grid-template-columns: 1fr;
    }

    .post-row img {
        min-height: 160px;
    }

    .post-row .inner {
        padding: 1rem;
    }
}

.page-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    margin-top: 1.25rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(17, 74, 177, 0.1);
    border-color: var(--card-border-strong);
}

.video-card__media {
    position: relative;
    background: #0f172a;
}

.video-card__media .video-wrap {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.video-card__body {
    padding: 0.9rem 1rem 1.05rem;
}

.video-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    font-family: var(--font-ar-display);
}

html[lang="ar"] .video-card__title {
    font-family: var(--font-ar-display);
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--card-border-strong);
}

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

.site-footer {
    --footer-accent-glow: rgba(17, 74, 177, 0.14);
    margin-top: 0;
    padding: 0;
    position: relative;
    color: var(--muted);
    font-size: 0.9rem;
    background:
        radial-gradient(120% 80% at 50% -20%, var(--footer-accent-glow), transparent 55%),
        linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 72%);
    border-top: 1px solid var(--card-border-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-secondary) 25%,
        var(--accent) 50%,
        var(--accent-warm) 75%,
        transparent
    );
    opacity: 0.85;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 2rem;
    padding: 2.75rem 0 2.25rem;
}

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

@keyframes footer-col-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footer-link-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footer-bar-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.site-footer[data-footer] .footer-grid > [data-footer-col] {
    animation: footer-col-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.site-footer[data-footer] .footer-grid > [data-footer-col]:nth-child(1) {
    animation-delay: 0.04s;
}

.site-footer[data-footer] .footer-grid > [data-footer-col]:nth-child(2) {
    animation-delay: 0.12s;
}

.site-footer[data-footer] .footer-grid > [data-footer-col]:nth-child(3) {
    animation-delay: 0.2s;
}

.site-footer[data-footer] .footer-quick li {
    animation: footer-link-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.site-footer[data-footer] .footer-quick li:nth-child(1) {
    animation-delay: 0.18s;
}
.site-footer[data-footer] .footer-quick li:nth-child(2) {
    animation-delay: 0.22s;
}
.site-footer[data-footer] .footer-quick li:nth-child(3) {
    animation-delay: 0.26s;
}
.site-footer[data-footer] .footer-quick li:nth-child(4) {
    animation-delay: 0.3s;
}
.site-footer[data-footer] .footer-quick li:nth-child(5) {
    animation-delay: 0.34s;
}
.site-footer[data-footer] .footer-quick li:nth-child(6) {
    animation-delay: 0.38s;
}
.site-footer[data-footer] .footer-quick li:nth-child(7) {
    animation-delay: 0.42s;
}
.site-footer[data-footer] .footer-quick li:nth-child(8) {
    animation-delay: 0.46s;
}
.site-footer[data-footer] .footer-quick li:nth-child(9) {
    animation-delay: 0.5s;
}
.site-footer[data-footer] .footer-quick li:nth-child(10) {
    animation-delay: 0.54s;
}
.site-footer[data-footer] .footer-quick li:nth-child(11) {
    animation-delay: 0.58s;
}
.site-footer[data-footer] .footer-quick li:nth-child(12) {
    animation-delay: 0.62s;
}
.site-footer[data-footer] .footer-quick li:nth-child(n + 13) {
    animation-delay: 0.66s;
}

.site-footer[data-footer] .footer-bottom__inner {
    animation: footer-bar-in 0.55s ease 0.35s backwards;
}

.footer-logo {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.55rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-brand:hover .footer-logo {
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.footer-brand p {
    margin: 0;
    line-height: 1.7;
    max-width: 320px;
    color: var(--muted);
}

.footer-heading {
    display: block;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.45rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 2.75rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    transform-origin: center;
    transition: transform 0.3s ease, width 0.3s ease;
}

.footer-links:hover .footer-heading::after {
    transform: scaleX(1.12);
    width: 3.1rem;
}

.footer-cta:hover .footer-heading::after {
    transform: scaleX(1.12);
    width: 3.1rem;
}

.footer-quick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    align-content: start;
}

@media (max-width: 380px) {
    .footer-quick {
        grid-template-columns: 1fr;
    }
}

.footer-quick li {
    margin: 0;
}

.footer-quick a {
    display: block;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.35;
    border: 1px solid transparent;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.footer-quick a:hover {
    color: var(--accent-warm-dark);
    background: rgba(17, 74, 177, 0.07);
    border-color: rgba(17, 74, 177, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17, 74, 177, 0.1);
}

.footer-quick a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.footer-cta p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: var(--muted);
}

.footer-cta .btn {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.footer-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(17, 74, 177, 0.18);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 1.1rem 0;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-bottom a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0.4rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent-gold);
    background: rgba(228, 88, 11, 0.08);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .site-footer[data-footer] .footer-grid > [data-footer-col],
    .site-footer[data-footer] .footer-quick li,
    .site-footer[data-footer] .footer-bottom__inner {
        animation: none !important;
    }

    .footer-logo,
    .footer-quick a,
    .footer-cta .btn,
    .footer-bottom a {
        transition: none !important;
    }

    .footer-quick a:hover,
    .footer-cta .btn:hover,
    .footer-bottom a:hover,
    .footer-brand:hover .footer-logo {
        transform: none !important;
    }

    .footer-links:hover .footer-heading::after {
        transform: none !important;
    }

    .footer-cta:hover .footer-heading::after {
        transform: none !important;
    }

    .nav-toggle::before,
    .nav-toggle::after,
    .logo,
    .logo--brand,
    .main-nav a,
    .main-nav .nav-cta,
    .header-quick-call--gold,
    .site-search__btn {
        transition: none !important;
    }

    .nav-toggle.is-open::before,
    .nav-toggle.is-open::after {
        transition: none !important;
    }

    .logo:hover,
    .main-nav a:hover,
    .main-nav .nav-cta:hover,
    .header-quick-call--gold:hover,
    .site-search__btn:hover {
        transform: none !important;
    }

    .hero-slider__slide.is-active img,
    .hero-slider__slide img {
        animation: none !important;
    }

    .hero-slider__slide .hero-slider__title,
    .hero-slider__slide.is-active .hero-slider__title {
        transition: none !important;
    }

    .hero-slider__btn:hover {
        transform: translateY(-50%) !important;
    }

    .hero-slider__dot:hover,
    .hero-slider__dot.is-active {
        transform: none !important;
    }
}

@media (min-width: 1280px) {
    .blog-home-grid.blog-home-grid--archive {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-home-card__media-link--empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-home-card__date {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.blog-page__header {
    margin-bottom: clamp(1.25rem, 3vw, 1.85rem);
    padding: clamp(0.85rem, 2.5vw, 1.15rem) clamp(1rem, 3vw, 1.35rem) clamp(1rem, 2.8vw, 1.35rem);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(239, 246, 255, 0.9) 0%, var(--bg-card) 48%, var(--bg-card) 100%);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.blog-page__title {
    margin: 0;
    font-family: var(--font-ar-display);
    font-size: clamp(1.45rem, 3.5vw, 2.05rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--text);
    position: relative;
    padding-bottom: 0.5rem;
    max-width: 42rem;
}

.blog-page__title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: min(5.5rem, 42%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.blog-page__summary {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-page__summary-filters {
    font-weight: 600;
    color: var(--accent);
}

.blog-toolbar {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.blog-toolbar__form {
    margin: 0;
}

.blog-toolbar__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
}

.blog-toolbar__fields {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
}

.blog-toolbar__search,
.blog-toolbar__select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    /* Avoid iOS zoom on focus when root font-size is under 16px */
    font-size: max(1rem, 16px);
    line-height: 1.35;
}

.blog-toolbar__search {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--card-border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: inherit;
}

.blog-toolbar__search:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(17, 74, 177, 0.12);
}

.blog-toolbar__select {
    padding: 0.6rem 2.25rem 0.6rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--card-border-strong);
    background-color: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2352525b' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.85rem center;
    background-size: 12px 8px;
}

html[dir="rtl"] .blog-toolbar__select {
    padding: 0.6rem 0.85rem 0.6rem 2.25rem;
    background-position: right 0.85rem center;
}

.blog-toolbar__select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(17, 74, 177, 0.12);
}

.blog-toolbar__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    gap: 0.55rem;
    width: 100%;
}

.blog-toolbar__submit,
.blog-toolbar__reset {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.blog-toolbar__reset {
    text-decoration: none;
}

@media (min-width: 720px) {
    .blog-toolbar__row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
    }

    .blog-toolbar__fields {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        min-width: 0;
        width: auto;
    }

    .blog-toolbar__search {
        flex: 1 1 0;
        min-width: 12rem;
        width: auto;
    }

    .blog-toolbar__select {
        flex: 0 1 16rem;
        min-width: 11rem;
        width: auto;
        max-width: min(20rem, 40vw);
    }

    .blog-toolbar__actions {
        flex: 0 0 auto;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: flex-end;
        gap: 0.5rem;
        grid-template-columns: none;
    }

    .blog-toolbar__submit,
    .blog-toolbar__reset {
        width: auto;
        min-width: 7.5rem;
        flex: 0 0 auto;
    }
}

@media (min-width: 960px) {
    .blog-toolbar__select {
        flex-basis: 18rem;
        max-width: 22rem;
    }
}

.blog-toolbar__hint {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(228, 88, 11, 0.08);
    border: 1px solid rgba(228, 88, 11, 0.22);
    color: var(--accent-warm-dark);
    font-size: 0.9rem;
    line-height: 1.55;
}

.blog-page__empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    background: var(--bg-card);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius);
}

/* Pagination (blog archive, etc.) */
.pagination {
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.pagination__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.35rem;
}

.pagination__list > li {
    margin: 0;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0 0.45rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--bg-card);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.pagination__link:hover {
    border-color: var(--accent-secondary);
    background: rgba(17, 74, 177, 0.06);
    color: var(--accent-dark);
    text-decoration: none;
}

.pagination__link:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

.pagination__link--prev,
.pagination__link--next {
    padding-inline: 0.75rem;
    min-width: auto;
    font-size: 0.88rem;
}

.pagination__link--disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
    color: var(--muted);
}

.pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0 0.45rem;
    border-radius: 10px;
    border: 1px solid rgba(17, 74, 177, 0.35);
    background: linear-gradient(135deg, rgba(17, 74, 177, 0.12), rgba(17, 74, 177, 0.06));
    color: var(--text);
    font-weight: 800;
    font-size: 0.92rem;
}

.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 0.2rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Blog */
.blog-list article {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    border: 1px solid var(--card-border);
}

.blog-list h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.blog-list .excerpt {
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.article-hero {
    margin-bottom: 1.5rem;
}

.article-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--photo-placeholder);
}

.article-body {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--card-border);
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* Article page: header + related */
.article-page__header {
    margin-bottom: 1.25rem;
}

.article-page__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-ar-display);
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

.article-page__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-page__back {
    margin: 2rem 0 0;
}

.article-related {
    margin-top: clamp(2rem, 5vw, 2.75rem);
    padding-top: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid var(--card-border);
}

.article-related--pages {
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    padding-top: clamp(1.25rem, 3vw, 1.75rem);
}

.article-related__title {
    margin: 0 0 1rem;
    font-family: var(--font-ar-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--text);
}

.article-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 520px) {
    .article-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .article-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-related-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}

.article-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(17, 74, 177, 0.1);
    border-color: var(--card-border-strong);
}

.article-related-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 74, 177, 0.08) 0%, #0f172a 50%);
}

.article-related-card__media--empty {
    background: var(--photo-placeholder);
}

.article-related-card__link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.article-related-card__link--empty {
    position: absolute;
    inset: 0;
}

.article-related-card__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.article-related-card:hover .article-related-card__link img {
    transform: scale(1.04);
}

.article-related-card__body {
    padding: 0.75rem 0.9rem 0.95rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.article-related-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    font-family: var(--font-ar-display);
}

.article-related-card__title a {
    color: var(--text);
    text-decoration: none;
}

.article-related-card__title a:hover {
    color: var(--accent-warm);
}

.article-related-card__excerpt {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.article-related-pages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 560px) {
    .article-related-pages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 860px) {
    .article-related-pages {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-related-pages__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--bg-elevated);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.article-related-pages__link:hover {
    background: rgba(17, 74, 177, 0.06);
    border-color: var(--accent-secondary);
    color: var(--accent-dark);
    text-decoration: none;
}

/* Contact */
.form-grid {
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

.form-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--card-border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-grid textarea {
    min-height: 140px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-dark));
    color: #fff;
}

.btn:hover {
    filter: brightness(1.06);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(46, 160, 67, 0.12);
    border: 1px solid rgba(46, 160, 67, 0.35);
    color: #1d5c2e;
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.35);
    color: #8a1f1a;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 0.85rem;
    line-height: 1.5;
}

.breadcrumb a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb__sep {
    color: rgba(17, 74, 177, 0.22);
    font-weight: 400;
    user-select: none;
}

.breadcrumb__current {
    color: var(--text);
    font-weight: 700;
    max-width: 100%;
    word-break: break-word;
}

/* Static inner pages (page.php intro + body) */
.static-page__header {
    margin-bottom: clamp(1.15rem, 3.5vw, 1.85rem);
    padding: clamp(0.85rem, 2.5vw, 1.15rem) clamp(1rem, 3vw, 1.35rem) clamp(1rem, 2.8vw, 1.35rem);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(239, 246, 255, 0.9) 0%, var(--bg-card) 48%, var(--bg-card) 100%);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.static-page__title {
    margin: 0;
    font-family: var(--font-ar-display);
    font-size: clamp(1.45rem, 3.5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--text);
    position: relative;
    padding-bottom: 0.55rem;
    max-width: 42rem;
}

.static-page__title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: min(5.5rem, 42%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.static-page .static-page__body.page-content {
    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(1.15rem, 3.2vw, 1.85rem) clamp(1.1rem, 3vw, 1.75rem);
    border-radius: 18px;
    border: 1px solid var(--card-border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 14px 36px rgba(15, 23, 42, 0.06);
}

.static-page .static-page__body.page-content h1:first-child,
.static-page .static-page__body.page-content h2:first-child,
.static-page .static-page__body.page-content h3:first-child {
    margin-top: 0;
}

/* ——— A11y ——— */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Header: mobile 3-up + search ——— */
@media (max-width: 900px) {
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.5rem 0.75rem;
        padding: 0.65rem 0 0.5rem;
    }

    .nav-toggle--gold {
        grid-column: 1;
        grid-row: 1;
    }

    .logo--brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .header-quick-call--gold {
        grid-column: 3;
        grid-row: 1;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (min-width: 901px) {
    .header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(0.75rem, 2vw, 1.75rem);
        padding: 0.5rem 0 0.55rem;
    }

    .header-inner .logo--brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .header-inner .main-nav {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        min-width: 0;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 0.28rem 0.4rem;
        padding-block: 0.12rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(17, 74, 177, 0.35) transparent;
    }

    .header-inner .main-nav::-webkit-scrollbar {
        height: 5px;
    }

    .header-inner .main-nav::-webkit-scrollbar-thumb {
        background: rgba(17, 74, 177, 0.28);
        border-radius: 999px;
    }

    .header-inner .main-nav a {
        flex: 0 0 auto;
        padding: 0.34rem 0.62rem;
        font-size: 0.84rem;
        line-height: 1.25;
    }

    .header-inner .main-nav a:hover,
    .header-inner .main-nav a:focus-visible {
        transform: none;
    }

    .header-inner .main-nav .nav-cta {
        flex: 0 0 auto;
        align-self: center;
        margin-inline-start: 0.4rem;
        padding: 0.38rem 0.95rem;
        font-size: 0.84rem;
        line-height: 1.25;
    }

    .header-inner .main-nav .nav-cta:hover {
        transform: translateY(-1px);
    }

    .header-quick-call--gold {
        display: none !important;
    }

    .site-search-bar {
        padding: 0.38rem 0 0.48rem;
    }

    .site-search__form {
        gap: 0.45rem;
    }

    .site-search__form input[type="search"] {
        padding-block: 0.5rem;
        font-size: 0.94rem;
    }

    .site-search__btn {
        padding: 0.5rem 1.15rem;
        font-size: 0.92rem;
    }
}

.logo--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    padding: 0.15rem 0.5rem;
    border-radius: 14px;
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.logo--brand:hover {
    background: rgba(17, 74, 177, 0.06);
    box-shadow: 0 8px 24px rgba(17, 74, 177, 0.08);
}

.logo--brand .logo__title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
}

.logo--brand .logo__tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fab-gold);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-toggle--gold {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--fab-gold), var(--fab-gold-dark));
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.45);
}

.nav-toggle--gold:hover {
    box-shadow: 0 6px 22px rgba(234, 179, 8, 0.55);
}

.nav-toggle--gold::before,
.nav-toggle--gold::after {
    background: currentColor;
}

.header-quick-call--gold {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--fab-gold), var(--fab-gold-dark));
    color: #0a0a0a;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.45);
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.header-quick-call--gold:hover {
    filter: brightness(1.06);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.5);
}

.header-quick-call--gold:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-search-bar {
    position: relative;
    padding: 0.6rem 0 0.85rem;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-top: 1px solid rgba(17, 74, 177, 0.06);
}

.site-search__form {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    flex-direction: row-reverse;
}

.site-search__field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.site-search__icon {
    position: absolute;
    inset-inline-end: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--accent-secondary);
    opacity: 0.85;
    pointer-events: none;
}

.site-search__form input[type="search"] {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding-block: 0.68rem;
    padding-inline-start: 1rem;
    padding-inline-end: 2.75rem;
    border-radius: 14px;
    border: 1px solid var(--card-border-strong);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-search__form input[type="search"]:focus {
    outline: none;
    border-color: rgba(17, 74, 177, 0.45);
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.04),
        0 0 0 3px rgba(17, 74, 177, 0.12);
}

.site-search__form input[type="search"]::placeholder {
    color: #94a3b8;
}

.site-search__btn {
    flex-shrink: 0;
    padding: 0.68rem 1.4rem;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-family: var(--font-ar-display), var(--font-ar-body), sans-serif;
    cursor: pointer;
    background: linear-gradient(145deg, var(--fab-gold), var(--fab-gold-dark));
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.site-search__btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.42);
}

.site-search__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-search__form--page {
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.site-search__form--page input[type="search"] {
    padding: 0.68rem 1rem;
}

/* ——— Section title + watermark (خدماتنا style) ——— */
.section-head--watermark {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.section-head--watermark__inner {
    position: relative;
    max-width: 40rem;
    margin-inline: auto;
}

.section-title-visual {
    position: relative;
    z-index: 1;
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 800;
    color: var(--text);
}

.section-title-visual::before {
    content: attr(data-watermark);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    z-index: -1;
    font-size: clamp(3rem, 18vw, 7rem);
    font-weight: 900;
    color: rgba(228, 88, 11, 0.1);
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

.section-head--watermark__inner::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin: 0.4rem auto 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--fab-gold), var(--fab-gold-dark));
}

.section-head__lead {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    text-align: center;
}

/* ——— Service showcase cards ——— */
.grid-cards--showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .grid-cards--showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .grid-cards--showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .grid-cards--showcase {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.35rem;
    }

    .grid-cards--showcase .card-showcase__media {
        min-height: clamp(200px, 22vw, 320px);
    }

    .grid-cards--showcase .card-showcase__panel {
        width: calc(100% - 1rem);
        max-width: 100%;
        margin: -2.35rem auto 1rem;
        padding: 1.15rem 1.2rem 1.25rem;
    }
}

.card--showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid var(--card-border-strong);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    background: var(--photo-placeholder);
}

.card--showcase:hover .card-showcase__media img,
.card--showcase:focus-within .card-showcase__media img {
    transform: scale(1.06);
}

.card-showcase__media {
    position: relative;
    flex: 1 1 auto;
    min-height: clamp(248px, 58vw, 400px);
    border-radius: 1.75rem 1.75rem 0 0;
    overflow: hidden;
    z-index: 0;
}

.card-showcase__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-showcase__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #e2e8f0, #cbd5e1);
}

/* Full-card hit area + hover dim over photo area */
.card-showcase__link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 1.75rem;
    outline: none;
}

.card-showcase__link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0);
    transition: background 0.35s ease;
    border-radius: 1.75rem;
    pointer-events: none;
}

.card--showcase:hover .card-showcase__link::after,
.card--showcase:focus-within .card-showcase__link::after {
    background: rgba(10, 10, 10, 0.45);
}

.card-showcase__link:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(234, 179, 8, 0.75);
}

/* Centered white card overlapping image (reference: title + body + pill, generous padding) */
.card-showcase__panel {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 2rem), 22.5rem);
    max-width: 92%;
    margin: -2.85rem auto 1.1rem;
    padding: 1.35rem 1.45rem 1.45rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: center;
    pointer-events: none;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.06);
}

.card-showcase__title {
    margin: 0;
    width: 100%;
    font-size: clamp(1.1rem, 3.2vw, 1.35rem);
    font-weight: 800;
    font-family: var(--font-ar-display), var(--font-ar-body), sans-serif;
    color: var(--text);
    line-height: 1.45;
    text-align: center;
}

.card-showcase__text {
    margin: 0;
    width: 100%;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.8;
    color: #3f3f46;
    text-align: center;
}

.card-showcase__cta {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.5rem 1.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-ar-display), var(--font-ar-body), sans-serif;
    color: #0a0a0a;
    background: linear-gradient(145deg, var(--fab-gold), var(--fab-gold-dark));
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.38);
}

/* Watermark section: “كل المقالات” under lead */
.section-head__link-all {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    color: #0a0a0a;
    background: linear-gradient(145deg, var(--fab-gold), var(--fab-gold-dark));
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}

.section-head__link-all:hover {
    filter: brightness(1.05);
}

/* ——— Floating contact rail (screen physical left) ——— */
.contact-floating-rail {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

@media (min-width: 1200px) {
    .contact-floating-rail {
        display: none;
    }
}

.contact-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-fab:hover {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.contact-fab--phone {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
}

.contact-fab--wa {
    background: linear-gradient(145deg, #25d366, #128c7e);
}

.contact-fab--tiktok {
    background: #0f0f0f;
    color: #fff;
}

.contact-fab--snap {
    background: #fffc00;
    color: #0a0a0a;
}

/* ——— Bottom gold dock (mobile) ——— */
.mobile-contact-dock {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 96;
    display: none;
    align-items: stretch;
    height: 52px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
    background: linear-gradient(145deg, var(--fab-gold), var(--fab-gold-dark));
}

@media (max-width: 900px) {
    .mobile-contact-dock {
        display: flex;
    }

    body {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.mobile-contact-dock__half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #0a0a0a;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-contact-dock__sep {
    width: 1px;
    align-self: stretch;
    margin: 10px 0;
    background: rgba(10, 10, 10, 0.15);
}

/* ——— Search results page ——— */
.search-page__h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.search-page__empty {
    color: var(--muted);
    margin-top: 1rem;
}

.search-block {
    margin-bottom: 2rem;
}

.search-block__title {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--card-border);
}

.search-list a {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.search-list a:hover {
    color: var(--accent-warm);
}

.search-list--blog li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-list__excerpt {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ——— Home: customer feedback auto-slider ——— */
.page-home .section--feedback {
    background: rgba(17, 74, 177, 0.03);
    border-block: 1px solid var(--card-border);
}

.page-home .feedback-slider {
    position: relative;
    max-width: 42rem;
    margin-inline: auto;
}

.page-home .feedback-slider__viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 22px;
}

.page-home .feedback-slider__track {
    --feedback-n: 1;
    --feedback-i: 0;
    display: flex;
    width: calc(var(--feedback-n) * 100%);
    transform: translate3d(calc(-100% * var(--feedback-i) / var(--feedback-n)), 0, 0);
    transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.page-home .feedback-slider__slide {
    flex: 0 0 calc(100% / var(--feedback-n));
    width: calc(100% / var(--feedback-n));
    max-width: calc(100% / var(--feedback-n));
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 0.25rem;
}

.page-home .feedback-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.page-home .feedback-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--bg-card);
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.page-home .feedback-slider__btn:hover {
    background: rgba(17, 74, 177, 0.08);
    border-color: rgba(17, 74, 177, 0.35);
    color: var(--accent-warm);
}

.page-home .feedback-slider__btn:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

.page-home .feedback-slider__dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-home .feedback-slider__dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 74, 177, 0.22);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        width 0.2s ease;
}

.page-home .feedback-slider__dot.is-active {
    width: 1.35rem;
    background: var(--accent);
}

.page-home .feedback-slider__dot:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.page-home .feedback-slider--reduced .feedback-slider__viewport {
    overflow: visible;
}

.page-home .feedback-slider--reduced .feedback-slider__track {
    flex-wrap: wrap;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
}

.page-home .feedback-slider--reduced .feedback-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.page-home .feedback-slider--reduced .feedback-slider__nav {
    display: none;
}

.page-home .feedback-card {
    margin: 0;
    padding: 1.1rem 1.15rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 8.5rem;
    transition: box-shadow 0.3s ease, border-color 0.25s ease;
}

.page-home .feedback-card:hover {
    box-shadow: 0 14px 40px rgba(17, 74, 177, 0.08);
    border-color: var(--card-border-strong);
}

.page-home .feedback-card__quote {
    margin: 0 0 0.85rem;
    flex: 1;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.page-home .feedback-card__meta {
    margin: 0;
    padding-top: 0.65rem;
    border-top: 1px solid var(--card-border);
}

.page-home .feedback-card__name {
    font-family: var(--font-ar-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
