/* ===============================================================
   pro.css — مكونات مشتركة للشاشات الداخلية (نمط الهوية)
   =============================================================== */

:root {
    --pr-teal-900: #0E3530;
    --pr-teal-700: #0B4A3E;
    --pr-gold: #C9A24B;
    --pr-gold-soft: rgba(201, 162, 75, 0.14);
    --pr-line: rgba(14, 53, 48, 0.10);
    --pr-ink: #33322D;
}

.pr-section { padding: 3.2rem 0 4rem; }
.pr-section.tight { padding-bottom: 2.4rem; }
.pr-band {
    background: #fff;
    border-block: 1px solid var(--pr-line);
    padding: 3.2rem 0;
}

.pr-head { text-align: center; margin-bottom: 2.4rem; }
.pr-head h1, .pr-head h2 {
    font-family: var(--font-family-extrabold);
    color: var(--pr-teal-900);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: .8rem;
}
.pr-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.pr-divider {
    display: flex; justify-content: center; align-items: center; gap: .7rem;
    margin-bottom: 1rem;
}
.pr-divider::before, .pr-divider::after {
    content: ""; height: 1px; width: 64px;
    background: linear-gradient(90deg, transparent, var(--pr-gold));
}
.pr-divider::after { background: linear-gradient(90deg, var(--pr-gold), transparent); }
.pr-head p { color: #6d6c64; max-width: 680px; margin-inline: auto; line-height: 2; }

.pr-lead {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
    font-size: 1.12rem;
    color: var(--pr-teal-700);
    line-height: 2.1;
}

/* ---------- بطاقات الركائز / المزايا ---------- */
.pr-pillar {
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 18px;
    padding: 1.7rem 1.4rem;
    height: 100%;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pr-pillar:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 75, 0.55);
    box-shadow: 0 18px 36px rgba(14, 53, 48, 0.10);
}
.pr-pillar .icon {
    width: 62px; height: 62px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--pr-teal-900), var(--pr-teal-700));
    box-shadow: 0 10px 22px rgba(14, 53, 48, 0.18);
}
.pr-pillar h3 {
    font-family: var(--font-family-bold);
    color: var(--pr-teal-900);
    font-size: 1.12rem;
    margin-bottom: .5rem;
}
.pr-pillar p { color: var(--pr-ink); font-size: .93rem; line-height: 1.9; margin: 0; }

/* ---------- قائمة تحقق ذهبية ---------- */
.pr-check {
    display: flex;
    gap: .9rem;
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pr-check:hover { border-color: rgba(201,162,75,.5); box-shadow: 0 10px 22px rgba(14,53,48,.07); }
.pr-check .tick {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--pr-gold-soft);
    border: 1px solid rgba(201, 162, 75, 0.45);
}
.pr-check p { margin: 0; color: var(--pr-ink); line-height: 1.9; font-size: .97rem; }

/* ---------- بطاقة صورة (مجالات الدعم) ---------- */
.pr-media-card {
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: transform .28s ease, box-shadow .28s ease;
}
.pr-media-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(14,53,48,.14); }
.pr-media-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.pr-media-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.pr-media-card:hover .thumb img { transform: scale(1.06); }
.pr-media-card .thumb::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 53, 48, 0.55));
}
.pr-media-card .thumb h3 {
    position: absolute;
    bottom: .9rem; right: 1.1rem; left: 1.1rem;
    z-index: 1;
    color: #fff;
    font-family: var(--font-family-extrabold);
    font-size: 1.25rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.pr-media-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.pr-media-card .body p { margin: 0; color: var(--pr-ink); font-size: .95rem; line-height: 1.95; }
.pr-media-card .bar { height: 3px; background: linear-gradient(90deg, var(--pr-gold), rgba(201,162,75,.25)); }

/* ---------- كلمة الرئيس ---------- */
.pr-letter { max-width: 1050px; margin-inline: auto; }
.pr-letter-grid { display: grid; grid-template-columns: 340px 1fr; gap: 2.4rem; align-items: start; }
.pr-letter .portrait { position: relative; }
.pr-letter .portrait::before {
    content: "";
    position: absolute;
    inset: 1rem -1rem -1rem 1rem;
    border: 1.5px solid var(--pr-gold);
    border-radius: 20px;
    opacity: .8;
}
.pr-letter .portrait .inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(14, 53, 48, 0.16);
    background: #fff;
    height: 340px;
}
.pr-letter .portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 15%; }
.pr-letter .portrait figcaption {
    background: linear-gradient(120deg, var(--pr-teal-900), var(--pr-teal-700));
    color: #fff;
    text-align: center;
    padding: .9rem;
}
.pr-letter .portrait figcaption strong { color: var(--pr-gold); display: block; font-family: var(--font-family-bold); }
.pr-letter .opening {
    background: var(--pr-gold-soft);
    border: 1px solid rgba(201, 162, 75, 0.4);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    color: var(--pr-teal-700);
    line-height: 2.05;
    margin-bottom: 1.3rem;
}
.pr-letter p { line-height: 2.05; color: var(--pr-ink); }
.pr-signature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(201, 162, 75, 0.55);
    flex-wrap: wrap;
}
.pr-signature .who strong {
    display: block;
    font-family: var(--font-family-extrabold);
    color: var(--pr-teal-900);
    font-size: 1.15rem;
}
.pr-signature .who span { color: var(--pr-gold); font-family: var(--font-family-bold); font-size: .95rem; }
.pr-signature .du3a { color: var(--pr-teal-700); font-family: var(--font-family-bold); }

/* ---------- رؤية / رسالة ---------- */
.pr-vm {
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 20px;
    padding: 1.8rem 1.6rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.pr-vm::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pr-gold), rgba(201, 162, 75, .2));
}
.pr-vm .icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--pr-teal-900), var(--pr-teal-700));
    margin-bottom: 1rem;
}
.pr-vm h3 { font-family: var(--font-family-extrabold); color: var(--pr-teal-900); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.pr-vm p { margin: 0; line-height: 2.05; color: var(--pr-ink); }

/* ---------- القيم ---------- */
.pr-values { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.pr-value {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border: 1.5px solid rgba(201, 162, 75, 0.5);
    color: var(--pr-teal-900);
    font-family: var(--font-family-bold);
    border-radius: 100px;
    padding: .6rem 1.4rem;
    font-size: 1.02rem;
    box-shadow: 0 8px 18px rgba(14, 53, 48, 0.05);
}
.pr-value svg { flex: 0 0 auto; }

/* ---------- الأهداف المرقمة ---------- */
.pr-goal {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pr-goal:hover { border-color: rgba(201,162,75,.5); box-shadow: 0 12px 26px rgba(14,53,48,.08); }
.pr-goal .num {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--pr-teal-900), var(--pr-teal-700));
    color: var(--pr-gold);
    font-family: var(--font-family-extrabold);
    font-size: 1.1rem;
}
.pr-goal p { margin: 0; font-family: var(--font-family-bold); color: var(--pr-teal-900); line-height: 1.8; }

/* ---------- فريق العمل ---------- */
.pr-person {
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 18px;
    padding: 1.6rem 1.2rem;
    text-align: center;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pr-person:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 75, 0.55);
    box-shadow: 0 18px 36px rgba(14, 53, 48, 0.10);
}
.pr-person .avatar {
    width: 88px; height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(140deg, var(--pr-gold), rgba(201, 162, 75, 0.35));
}
.pr-person .avatar .in {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #F2ECDF;
    border: 3px solid #fff;
    display: grid; place-items: center;
}
.pr-person h3 { font-family: var(--font-family-bold); color: var(--pr-teal-900); font-size: 1.08rem; margin-bottom: .3rem; }
.pr-person span { color: var(--pr-gold); font-family: var(--font-family-bold); font-size: .92rem; }

/* ---------- خاتمة ---------- */
.pr-closing {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(201, 162, 75, 0.4);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    box-shadow: 0 18px 40px rgba(14, 53, 48, 0.07);
}
.pr-closing p { font-size: 1.1rem; line-height: 2.1; color: var(--pr-teal-700); margin: 0; }

/* ---------- تجاوب ---------- */
@media (max-width: 991px) {
    .pr-letter-grid { grid-template-columns: 1fr; }
    .pr-letter .portrait { max-width: 380px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .pr-pillar, .pr-media-card, .pr-media-card .thumb img, .pr-person, .pr-check, .pr-goal { transition: none; }
}

/* ---------- بطاقات مجالات الدعم (نمط التصميم المعتمد) ---------- */
.area-card {
    background: linear-gradient(160deg, #11453C, #0E3530);
    border: 1px solid rgba(201, 162, 75, 0.30);
    border-radius: 22px;
    padding: 1rem 1rem 1.5rem;
    height: 100%;
    color: #fff;
    box-shadow: 0 16px 34px rgba(14, 53, 48, 0.18);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.area-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 162, 75, 0.65);
    box-shadow: 0 26px 50px rgba(14, 53, 48, 0.28);
}
.area-card .thumb {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10.5;
    margin-bottom: 1.1rem;
}
.area-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.area-card:hover .thumb img { transform: scale(1.06); }
.area-card h3 {
    font-family: var(--font-family-extrabold);
    color: #fff;
    font-size: 1.35rem;
    margin: 0 .35rem .5rem;
}
.area-card p {
    margin: 0 .35rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: .95rem;
    line-height: 1.95;
}
@media (prefers-reduced-motion: reduce) { .area-card, .area-card .thumb img { transition: none; } }

/* ── معلومات السجل التجاري والرخصة والرقم الضريبي ── */
.wakf-reg-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.wakf-reg-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid rgba(201,162,75,.25);
    border-right: 3px solid #C9A24B;
    border-radius: 10px;
    padding: .65rem 1.1rem;
    box-shadow: 0 4px 12px rgba(14,53,48,.06);
}
.wakf-reg-label {
    font-family: var(--font-family-bold);
    color: #6d6c64;
    font-size: .88rem;
}
.wakf-reg-label::after {
    content: ':';
    margin-left: .2rem;
}
.wakf-reg-value {
    font-family: var(--font-family-extrabold);
    color: #0E3530;
    font-size: .95rem;
    direction: ltr;
}

/* ── كلمة رئيس مجلس النظارة: نص عادي ── */
.pr-letter-plain {
    max-width: 820px;
    margin-inline: auto;
}
.pr-letter-plain p {
    color: #33322D;
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 1.2rem;
    text-align: justify;
}
.pr-letter-plain strong {
    font-family: var(--font-family-bold);
    color: #0E3530;
}
.pr-plain-list {
    padding-right: 1.5rem;
    margin-bottom: 1.2rem;
}
.pr-plain-list li {
    color: #33322D;
    font-size: 1rem;
    line-height: 2;
    margin-bottom: .4rem;
}
.pr-plain-list li::marker {
    color: #C9A24B;
}

/* ── توقيع كلمة رئيس مجلس النظارة ── */
.pr-tawfiq {
    font-family: var(--font-family-bold);
    color: #0E3530;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.pr-signature-plain {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(14,53,48,.12);
}
.pr-sig-name-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
}
.pr-sig-name-box strong {
    color: #0E3530;
    font-family: var(--font-family-extrabold);
    font-size: 1.1rem;
}
.pr-sig-name-box span {
    color: #C9A24B;
    font-size: .88rem;
    font-family: var(--font-family-semibold);
}

/* ══ البيانات التسجيلية ══ */
.wakf-identity-section {
    padding: 3rem 0 4rem;
    background: #fff;
    margin-top: 2rem;
}
.wakf-identity-section .pr-head h2 { color: #0E3530; }
.wakf-identity-section .pr-divider::before {
    background: linear-gradient(90deg, transparent, #C9A24B);
}
.wakf-identity-section .pr-divider::after {
    background: linear-gradient(90deg, #C9A24B, transparent);
}

.wakf-id-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.wakf-id-card {
    background: #fff;
    border: 1px solid rgba(14,53,48,.1);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 6px 24px rgba(14,53,48,.07);
    transition: box-shadow .25s, transform .25s;
}
.wakf-id-card:hover {
    box-shadow: 0 12px 32px rgba(14,53,48,.12);
    transform: translateY(-3px);
}

.wakf-id-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid rgba(201,162,75,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wakf-id-content {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.wakf-id-label {
    color: #6d6c64;
    font-family: var(--font-family-semibold);
    font-size: .88rem;
}
.wakf-id-value {
    color: #0E3530;
    font-family: var(--font-family-extrabold);
    font-size: 1.2rem;
    direction: ltr;
    display: inline-block;
    letter-spacing: .5px;
}

@media (max-width: 768px) {
    .wakf-id-cards { grid-template-columns: 1fr; }
}

/* ── شعارات الجهات في البيانات التسجيلية ── */
.wakf-id-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* ══ سياسة المنح ══ */
.grants-policy-section { padding: 3rem 0 4rem; }

.grants-block {
    background: #fff;
    border: 1px solid rgba(14,53,48,.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(14,53,48,.05);
}
.grants-block-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-family-extrabold);
    color: #0E3530;
    font-size: 1.05rem;
    margin-bottom: .8rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(201,162,75,.2);
}
.grants-block-sub {
    color: #6d6c64;
    font-size: .92rem;
    margin-bottom: .8rem;
    line-height: 1.7;
}
.grants-list {
    padding-right: 1.2rem;
    margin: 0;
}
.grants-list li {
    color: #33322D;
    font-size: .93rem;
    line-height: 1.9;
    margin-bottom: .3rem;
}
.grants-list li::marker { color: #C9A24B; }
.grants-note {
    margin-top: 1rem;
    color: #6d6c64;
    font-size: .88rem;
    font-style: italic;
    line-height: 1.7;
    border-top: 1px dashed rgba(14,53,48,.1);
    padding-top: .8rem;
}
.grants-criteria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
    margin-top: .5rem;
}
.grants-criterion {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(14,53,48,.04);
    border-radius: 10px;
    padding: .7rem 1rem;
    font-family: var(--font-family-bold);
    color: #0E3530;
    font-size: .93rem;
}
@media (max-width: 600px) {
    .grants-criteria { grid-template-columns: 1fr; }
}