/* =====================================================
   صفحات الموقع المرتبطة بقاعدة البيانات
   (صفحة القسم، تفاصيل الايتم، البحث) + تعديلات الصفحة الرئيسية
   تستعمل متغيرات الألوان من style.rtl.css
   ===================================================== */

/* ── عناصر الصفحة الرئيسية التي صارت روابط ── */
/* (بدون تغيير display — التخطيط يبقى من style.rtl.css) */
a.doc,
a.studies-card-inner,
a.kuttab-card {
    color: inherit;
    text-decoration: none;
}

.kuttab-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--navy-soft);
    color: var(--gold-light);
    font-size: 1.6rem;
    font-weight: 700;
}

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

/* عنوان فرعي ووصف تحت عنوان فقرة "الدراسات والتقارير" (من لوحة التحكم) */
.studies-subtitle {
    margin: 6px 0 0;
    color: var(--gold-muted);
    font-size: 1.05rem;
    font-weight: 700;
}

.studies-desc {
    max-width: 720px;
    margin: 8px 0 0;
    color: #5b6456;
    font-size: 0.95rem;
    line-height: 1.9;
}

.hero-subheading {
    margin-top: 12px;
    color: var(--white-90);
    font-size: 1.1rem;
}

/* ── نموذج البحث في الهيدر ── */
.search-inner form {
    display: contents;
}

/* =====================================================
   الهيكل العام للصفحات الداخلية
   ===================================================== */
.wp-page {
    min-height: 70vh;
    background: var(--bg-section);
    padding-bottom: 80px;
    font-family: "Tajawal", sans-serif;
}

.wp-container {
    width: min(1200px, 100% - 32px);
    margin: 0 auto;
}

/* ترتيب الطبقات كباقي الموقع: خلفية الصفحة (0) ← النقش المشبك .site-bg-overlay (2) ← المحتوى (3) */
.wp-hero-inner,
.wp-container {
    position: relative;
    z-index: 3;
}

/* ── الترويسة ── */
.wp-hero {
    position: relative;
    overflow: hidden;
    padding: 190px 0 56px;
    background:
        linear-gradient(180deg, rgba(20, 30, 18, 0.72), rgba(56, 77, 50, 0.94)),
        var(--wp-hero-img, none) center / cover no-repeat,
        var(--navy-deep);
    color: var(--white);
    text-align: center;
}

.wp-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.wp-hero-inner {
    width: min(960px, 100% - 32px);
    margin: 0 auto;
}

.wp-hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 0.85rem;
}

.wp-hero-title {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.5;
}

.wp-hero-subtitle {
    margin: 10px 0 0;
    color: var(--gold-light);
    font-size: 1.15rem;
    font-weight: 600;
}

.wp-hero-desc {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--white-90);
    font-size: 1rem;
    line-height: 1.9;
}

/* ── المسار التنقلي ── */
.wp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--white-70);
    font-size: 0.88rem;
}

.wp-breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
}

.wp-breadcrumb a:hover {
    text-decoration: underline;
}

.wp-breadcrumb-sep {
    opacity: 0.6;
}

/* ── معلومات الايتم ── */
.wp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 18px;
    color: var(--white-90);
    font-size: 0.92rem;
}

.wp-meta i {
    margin-inline-end: 4px;
    color: var(--gold);
}

.wp-meta-writer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
}

.wp-meta-writer img {
    width: 34px;
    height: 34px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    object-fit: cover;
}

/* ── تبويبات الأقسام الفرعية ── */
.wp-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 32px 0 8px;
}

.wp-tab {
    padding: 9px 20px;
    border: 1px solid rgba(56, 77, 50, 0.25);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.wp-tab:hover {
    border-color: var(--gold);
}

.wp-tab.active {
    border-color: var(--navy-deep);
    background: var(--navy-deep);
    color: var(--gold-light);
}

/* ── شبكة البطاقات ── */
.wp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.wp-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 6px 22px rgba(56, 77, 50, 0.08);
    color: var(--navy-deep);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.wp-card:hover {
    box-shadow: 0 14px 34px rgba(56, 77, 50, 0.16);
    transform: translateY(-4px);
}

.wp-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-section2);
}

.wp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.wp-card:hover .wp-card-img img {
    transform: scale(1.05);
}

.wp-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--navy-soft);
    font-size: 2.2rem;
    opacity: 0.45;
}

.wp-card-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--navy-deep);
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 600;
}

.wp-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(233, 187, 79, 0.92);
    color: var(--navy-deep);
    transform: translate(-50%, -50%);
}

.wp-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
}

.wp-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wp-card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #5b6456;
    font-size: 0.9rem;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(56, 77, 50, 0.08);
    color: #7a8373;
    font-size: 0.8rem;
}

.wp-card-meta i {
    margin-inline-end: 3px;
    color: var(--gold-muted);
}

/* ── الكتّاب ── */
.wp-grid--writers {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.wp-writer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 16px;
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 6px 22px rgba(56, 77, 50, 0.08);
    color: var(--navy-deep);
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s;
}

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

.wp-writer-avatar {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: var(--navy-soft);
    color: var(--gold-light);
    font-size: 2rem;
    font-weight: 700;
}

.wp-writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-writer-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.wp-writer-title {
    color: #7a8373;
    font-size: 0.85rem;
}

/* ── تفاصيل الايتم ── */
.wp-article-layout {
    margin-top: -24px;
}

.wp-article {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 44px);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: 0 10px 34px rgba(56, 77, 50, 0.1);
    color: #2b3327;
}

.wp-article-cover {
    overflow: hidden;
    margin: 0 0 26px;
    border-radius: 14px;
}

.wp-article-cover img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.wp-article-cover--writer {
    width: 200px;
    margin-inline: auto;
    border: 4px solid var(--gold);
    border-radius: 50%;
}

.wp-article-cover--writer img {
    aspect-ratio: 1;
}

.wp-article-lead {
    margin: 0 0 22px;
    padding-inline-start: 16px;
    border-inline-start: 4px solid var(--gold);
    color: var(--navy-deep);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.9;
}

.wp-article-body {
    font-size: 1.05rem;
    line-height: 2.1;
    overflow-wrap: anywhere;
}

.wp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.wp-article-body h1,
.wp-article-body h2,
.wp-article-body h3 {
    color: var(--navy-deep);
    line-height: 1.6;
}

.wp-article-body a {
    color: var(--gold-dim);
}

.wp-article-body table {
    width: 100%;
    border-collapse: collapse;
}

.wp-article-body td,
.wp-article-body th {
    padding: 8px;
    border: 1px solid rgba(56, 77, 50, 0.15);
}

.wp-video {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

/* الفيديو المرفوع يملأ الإطار كاملاً مع الحفاظ على نسبته (بدون قص) — أفقي أو عمودي */
.wp-video video {
    display: block;
    object-fit: contain;
    background: #000;
}

/* الفيديو الرئيسي أعلى صفحة التفاصيل */
.wp-video--main {
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(14, 18, 12, 0.25);
}

/*
 * الفيديو المرفوع: الإطار يأخذ نسبة الفيديو نفسه (أفقي عريض / عمودي طويل)
 * بحد أقصى للارتفاع حتى لا يتجاوز الشاشة — بدل إطار 16:9 ثابت يصغّر الفيديو العمودي.
 */
.wp-video--file {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
}

.wp-video--file video {
    position: static;
    width: 100%;
    height: auto;
    max-height: min(78vh, 760px);
    object-fit: contain;
}

.wp-video-file {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #000;
}

.wp-block {
    margin-top: 34px;
}

.wp-block-title {
    position: relative;
    margin: 0 0 18px;
    padding-inline-start: 14px;
    color: var(--navy-deep);
    font-size: 1.3rem;
    font-weight: 800;
}

.wp-block-title::before {
    content: "";
    position: absolute;
    top: 15%;
    inset-inline-start: 0;
    width: 4px;
    height: 70%;
    border-radius: 4px;
    background: var(--gold);
}

.wp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.wp-gallery-item {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
}

.wp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.wp-gallery-item:hover img {
    transform: scale(1.06);
}

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

.wp-files a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--navy-deep);
    text-decoration: none;
}

.wp-files i {
    color: #c0392b;
    font-size: 1.3rem;
}

.wp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(56, 77, 50, 0.1);
}

.wp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--navy-deep);
    border-radius: 999px;
    background: var(--navy-deep);
    color: var(--gold-light);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.wp-btn:hover {
    background: var(--navy-mid);
}

.wp-btn--ghost {
    background: transparent;
    color: var(--navy-deep);
}

.wp-btn--ghost:hover,
.wp-btn--ghost.copied {
    background: var(--gold-pale);
}

.wp-related {
    max-width: 1200px;
    margin: 56px auto 0;
}

/* ── الترقيم ── */
.wp-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.wp-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(56, 77, 50, 0.2);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--navy-deep);
    font-weight: 700;
    text-decoration: none;
}

.wp-page-btn.active {
    border-color: var(--navy-deep);
    background: var(--navy-deep);
    color: var(--gold-light);
}

.wp-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── فارغ / بحث ── */
.wp-empty {
    padding: 80px 20px;
    color: #7a8373;
    text-align: center;
}

.wp-empty i {
    color: var(--gold-muted);
    font-size: 3rem;
    opacity: 0.6;
}

.wp-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 24px auto 0;
    padding: 6px 6px 6px 6px;
    padding-inline-start: 18px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.wp-search-form i {
    color: var(--gold);
}

.wp-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.wp-search-form input::placeholder {
    color: var(--white-70);
}

.wp-search-form .wp-btn {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy-deep);
}

.wp-search-summary {
    margin: 32px 0 0;
    color: var(--navy-deep);
    font-weight: 600;
}

@media (max-width: 768px) {
    /* الهيدر على الجوال ارتفاعه ~152px */
    .wp-hero {
        padding-top: 178px;
    }

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

    .wp-grid--writers {
        grid-template-columns: repeat(2, 1fr);
    }

    .wp-search-form .wp-btn {
        padding-inline: 14px;
    }
}

/* =====================================================
   سلايدر الصور والفيديوهات الإضافية (صفحة التفاصيل)
   ===================================================== */
.wp-slider {
    outline: none;
}

.wp-slider-stage {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: #0e120c;
}

.wp-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.wp-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.wp-slide img,
.wp-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wp-slide img {
    cursor: zoom-in;
}

.wp-slide video {
    width: 100%;
    height: 100%;
    background: #000;
}

.wp-slider-arrow,
.wp-slider-full {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: rgba(14, 18, 12, 0.55);
    color: var(--gold-light);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wp-slider-arrow:hover,
.wp-slider-full:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.wp-slider-arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 1rem;
    transform: translateY(-50%);
}

/* السابق في بداية الاتجاه (يمين في العربية)، التالي في نهايته */
.wp-slider-prev {
    inset-inline-start: 14px;
}

.wp-slider-next {
    inset-inline-end: 14px;
}

[dir="ltr"] .wp-slider-arrow i {
    transform: scaleX(-1);
}

.wp-slider-full {
    top: 12px;
    inset-inline-end: 12px;
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
}

.wp-slider-counter {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    left: 50%;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(14, 18, 12, 0.6);
    color: var(--white);
    font-size: 0.85rem;
    transform: translateX(-50%);
}

.wp-slider-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.wp-thumb {
    position: relative;
    overflow: hidden;
    flex: 0 0 96px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #0e120c;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.wp-thumb:hover {
    opacity: 0.9;
}

.wp-thumb.is-active {
    border-color: var(--gold);
    opacity: 1;
}

.wp-thumb img,
.wp-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.wp-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: var(--gold-light);
}

/* وضع ملء الشاشة */
.wp-slider:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: #0a0d09;
}

.wp-slider:fullscreen .wp-slider-stage {
    flex: 1;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
}

.wp-slider:fullscreen .wp-slide img {
    cursor: zoom-out;
}

.wp-slider:fullscreen .wp-slider-thumbs {
    justify-content: center;
}

@media (max-width: 768px) {
    .wp-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .wp-thumb {
        flex-basis: 76px;
        height: 54px;
    }
}

/* =====================================================
   أزرار المشاركة (صفحة التفاصيل)
   ===================================================== */
.wp-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.wp-share-label {
    color: #7a8373;
    font-size: 0.9rem;
    font-weight: 600;
}

.wp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(56, 77, 50, 0.2);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--navy-deep);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.wp-share-btn:hover {
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.wp-share-facebook:hover { background: #1877f2; }
.wp-share-x:hover { background: #000; }
.wp-share-whatsapp:hover { background: #25d366; }
.wp-share-telegram:hover { background: #229ed9; }
.wp-share-linkedin:hover { background: #0a66c2; }
.wp-share-email:hover,
.wp-share-native:hover { background: var(--navy-deep); }

.wp-share-btn[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .wp-share {
        width: 100%;
        margin-inline-start: 0;
    }
}

/* =====================================================
   صفحة تواصل معنا
   ===================================================== */
.wp-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;   /* الكاردان بنفس الارتفاع */
    margin-top: -24px;
}

/* قسم "تابعنا على" ينزل لأسفل كارد المعلومات عند تساوي الارتفاع */
.wp-contact-info {
    display: flex;
    flex-direction: column;
}

.wp-contact-info .wp-contact-social {
    margin-top: auto;
}

.wp-contact-info .wp-contact-list {
    margin-bottom: 26px;
}

.wp-contact-form-card,
.wp-contact-info,
.wp-contact-map {
    padding: clamp(20px, 3vw, 34px);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: 0 10px 34px rgba(56, 77, 50, 0.1);
}

.wp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.wp-field label {
    color: var(--navy-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.wp-req {
    color: #c0392b;
}

.wp-opt {
    color: #8a9284;
    font-size: 0.8rem;
    font-weight: 400;
}

.wp-field input,
.wp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(56, 77, 50, 0.22);
    border-radius: 10px;
    background: #fbfaf6;
    color: #2b3327;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.wp-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.8;
}

.wp-field input:focus,
.wp-field textarea:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px var(--gold-pale);
}

.wp-field.has-error input,
.wp-field.has-error textarea {
    border-color: #c0392b;
    background: #fdf5f4;
}

.wp-field-error {
    color: #c0392b;
    font-size: 0.82rem;
}

/* حقل مصيدة البوتات */
.wp-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wp-contact-submit {
    justify-content: center;
    width: 100%;
    padding-block: 13px;
    font-size: 1rem;
}

.wp-contact-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.wp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.wp-alert i {
    margin-top: 4px;
}

.wp-alert--success {
    border: 1px solid rgba(46, 125, 50, 0.3);
    background: #eef7ee;
    color: #2e7d32;
}

.wp-alert--error {
    border: 1px solid rgba(192, 57, 43, 0.3);
    background: #fdf1ef;
    color: #b03a2e;
}

/* معلومات التواصل */
.wp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wp-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wp-contact-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy-deep);
    color: var(--gold-light);
    font-size: 1.05rem;
}

.wp-contact-list div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wp-contact-list strong {
    color: var(--navy-deep);
    font-size: 0.95rem;
}

.wp-contact-list a,
.wp-contact-list span {
    color: #5b6456;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.wp-contact-list a:hover {
    color: var(--gold-dim);
}

[dir="rtl"] .wp-contact-list a[dir="ltr"] {
    text-align: right;
}

.wp-contact-social {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(56, 77, 50, 0.1);
}

.wp-contact-social strong {
    display: block;
    margin-bottom: 12px;
    color: var(--navy-deep);
}

.wp-contact-social .wp-share {
    margin-inline-start: 0;
}

/* الخريطة */
.wp-contact-map {
    margin-top: 28px;
}

.wp-contact-map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.wp-contact-map-head .wp-block-title {
    margin: 0;
}

.wp-map-frame {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 21 / 9;
    background: var(--bg-section2);
}

.wp-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

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

@media (max-width: 600px) {
    .wp-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wp-map-frame {
        aspect-ratio: 4 / 3;
    }
}

.footer-heading-link {
    color: inherit;
    text-decoration: none;
}

.footer-heading-link:hover {
    color: var(--gold);
}

/* reCAPTCHA في نموذج تواصل معنا */
.wp-recaptcha .g-recaptcha {
    max-width: 100%;
}

.wp-recaptcha-note {
    color: #8a9284;
    font-size: 0.78rem;
    line-height: 1.7;
}

.wp-recaptcha-note a {
    color: var(--gold-dim);
}

.wp-recaptcha.has-error .g-recaptcha {
    padding: 4px;
    border: 1px solid #c0392b;
    border-radius: 6px;
    width: fit-content;
}

@media (max-width: 360px) {
    .wp-recaptcha .g-recaptcha {
        transform: scale(0.9);
        transform-origin: right top;
    }
}

/* كاردات "حكم ومقالات" و"إضاءات المرجعية" كلها روابط */
a.idaat-card--link,
a.wisdom-card--link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.idaat-card--link:focus-visible,
a.wisdom-card--link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
