/* فريق الأمل العُماني — معاينة الواجهة الجديدة (v4). تُحمَّل بعد main.css وv3.css.
   الترتيب مستلهم من صفحة الجزيرة على الجوال (قرار المدير 15 نوفمبر)، والهوية هويتنا: العنّابي #AF252E (لون كلمة «الأمل» في الشعار) والأخضر #385611 (اعتماد 12 نوفمبر).
   تعديلات المدير (15 نوفمبر، الجولة الثانية): شعار أكبر ورأس أعلى قليلاً • الأزرار الثلاثة بخلفية عنّابية وخط أبيض • اسم المشروع على خلفية ضبابية فوق الصورة • لمسات نهائية.
   بلا خطوط أو أصول خارجية ولا style مضمّن (CSP). */

body.v4 {
  --red: #AF252E; --red-800: #7F1A21; --red-700: #8C1D25; --red-050: #FBEDEE;
  --green: #385611; --green-700: #2A410D; --green-050: #EEF3E7;
  --card-r: 20px;
  --lift: 0 14px 30px -18px rgba(37, 20, 22, .55), 0 2px 6px -3px rgba(37, 20, 22, .18);
  background: #fff;
}

/* ----- الرأس: أعلى قليلاً والشعار أوضح ----- */
.v4-header { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 18px -16px rgba(0, 0, 0, .5); border-bottom: 0; }
.v4-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; min-height: 84px; position: relative; }
.v4-header .menu-btn { justify-self: start; border: 0; background: transparent; width: 48px; height: 48px; }
.v4-header .bars, .v4-header .bars::before, .v4-header .bars::after { width: 25px; height: 2.5px; }
.v4-brand { justify-self: center; display: block; line-height: 0; padding-block: .25rem; }
.v4-brand img { width: 84px; height: 75px; object-fit: contain; }
.v4-donate { justify-self: end; white-space: nowrap; gap: .35rem; padding-inline: .95rem; min-height: 44px; background: var(--red); box-shadow: 0 8px 18px -10px rgba(175, 37, 46, .9); }
.v4-donate:hover { background: var(--red-800); }
.v4-donate .ico { width: 1.15em; height: 1.15em; }
@media (max-width: 359px) { .v4-donate .ico { display: none; } .v4-donate { padding-inline: .7rem; font-size: .88rem; } .v4-brand img { width: 72px; height: 64px; } }
@media (min-width: 960px) {
  .v4-bar { padding-block: .35rem; }
  .v4-header .menu-btn { display: grid; visibility: hidden; }
  .v4-header .site-nav { grid-column: 1 / -1; grid-row: 2; order: 0; display: block; position: static; padding: 0 0 .55rem; }
  .v4-header .site-nav ul { justify-content: center; }
  .v4-brand img { width: 96px; height: 86px; }
}

/* ----- العنوان والأزرار الثلاثة: خلفية عنّابية وخط أبيض ----- */
.v4-top { padding: 1rem 0 .4rem; background: linear-gradient(180deg, #FBF7F5 0%, #fff 100%); }
.v4-h1 { font-size: 1.05rem; text-align: center; color: var(--red-800); margin: 0 0 .85rem; font-weight: 800; line-height: 1.6; letter-spacing: -.005em; text-wrap: balance; }
.v4-tabs { display: flex; gap: .25rem; max-width: 470px; margin: 0 auto; padding: .3rem; background: var(--red); border-radius: 999px; box-shadow: 0 12px 26px -16px rgba(127, 26, 33, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
.v4-tab { position: relative; flex: 1 1 0; text-align: center; padding: .62rem .4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none; white-space: nowrap; opacity: .9; transition: background-color .2s, opacity .2s, box-shadow .2s; }
.v4-tab:hover { color: #fff; opacity: 1; background: rgba(255, 255, 255, .1); }
.v4-tab[aria-selected="true"] { opacity: 1; font-weight: 800; background: var(--red-800); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 6px 14px -8px rgba(0, 0, 0, .6); }
.v4-tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 38%; bottom: .28rem; height: 2.5px; border-radius: 2px; background: #fff; }
.v4-tab:focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (max-width: 359px) { .v4-tab { font-size: .9rem; padding-inline: .2rem; } }

/* ----- شريط «جديد» (سطر واحد) ----- */
.v4-strip { display: flex; align-items: center; gap: .65rem; max-width: 640px; margin: .95rem auto 0; padding: .6rem .8rem; background: #fff; border: 1px solid #EFE6E3; border-radius: 18px; box-shadow: 0 10px 24px -18px rgba(37, 20, 22, .55); color: var(--ink); text-decoration: none; }
.v4-strip:hover { border-color: rgba(175, 37, 46, .45); color: var(--ink); }
.v4-live { flex: none; display: inline-flex; align-items: center; gap: .35rem; background: var(--red); color: #fff; border-radius: 999px; padding: .12rem .72rem; font-weight: 800; font-size: .84rem; }
.v4-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .v4-dot { animation: v4-pulse 1.8s ease-in-out infinite; } }
@keyframes v4-pulse { 50% { opacity: .35; } }
.v4-strip-t { flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.55; }
.v4-strip-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.v4-strip-t small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.v4-strip-ico { flex: none; color: var(--muted); }

/* ----- اللوحات ----- */
.v4-panel { padding: 1.15rem 0 .5rem; }
.js .v4-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v4-panel-h { font-size: 1.3rem; color: var(--red-800); }
.v4-lead { margin: 0 0 .75rem; font-weight: 800; color: var(--ink); font-size: 1.02rem; }
@media (prefers-reduced-motion: no-preference) { .js .v4-panel:not([hidden]) .v4-rail { animation: v4-in .35s ease-out both; } }
@keyframes v4-in { from { opacity: 0; transform: translateY(8px); } }

/* بطاقات تُسحب بالإصبع */
.v4-rail { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 -1.25rem; padding: .2rem 1.25rem 1rem; scroll-padding-inline: 1.25rem; scrollbar-width: none; }
.v4-rail::-webkit-scrollbar { display: none; }
.v4-card { flex: 0 0 80%; max-width: 330px; scroll-snap-align: start; }
.v4-card-link { display: block; height: 100%; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.v4-card-link:hover { color: var(--ink); }

/* الصورة واسم المشروع على شريط ضبابي فوقها */
.v4-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--card-r); overflow: hidden; background: var(--green-050); box-shadow: var(--lift); isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.v4-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.v4-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(18, 10, 11, .55), rgba(18, 10, 11, 0)); pointer-events: none; z-index: 0; }
.v4-card-link:hover .v4-photo { transform: translateY(-2px); }
.v4-card-link:hover .v4-photo > img { transform: scale(1.035); }
.v4-card-link:active .v4-photo { transform: scale(.985); }
.v4-glass { position: absolute; inset-inline: .65rem; bottom: .65rem; z-index: 1; padding: .6rem .85rem .65rem; border-radius: 15px; color: #fff;
  background: rgba(30, 18, 20, .34); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .v4-glass { background: rgba(30, 18, 20, .72); } }
.v4-glass h3 { margin: 0; font-size: 1.12rem; line-height: 1.45; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.v4-glass p { margin: .15rem 0 0; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.v4-card-news .v4-glass h3 { font-size: 1.02rem; }
.v4-chip { position: absolute; top: .65rem; inset-inline-start: .65rem; z-index: 1; padding: .1rem .7rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: .78rem; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
.v4-card-done .v4-chip { background: var(--ink); }
.v4-play { position: absolute; top: .65rem; inset-inline-end: .65rem; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: .8rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.v4-play .ico { width: .95em; height: .95em; fill: currentColor; }
.v4-card-video .v4-photo > img { object-position: 50% 35%; }
.v4-photo > img.pos-bakery { object-position: 52% 60%; }          /* جدارية المخبز في الوسط والأرض تحت الشريط الضبابي */
.v4-photo > img.v4-design { object-position: 50% 40%; }
/* تصميم المدير الجاهز (مربع، فيه الشعار والعنوان والرقم): يُعرض كاملاً بلا قصّ في أعلى البطاقة، والشريط السفلي بلون شريط التصميم نفسه
   يحمل اسم المشروع (فلا يغطي الشريطُ الضبابي شيئاً من التصميم) — والبطاقات تبقى بارتفاع واحد في الشريط المتحرك */
.v4-photo:has(> img.v4-poster) { background: #920D1A; }
.v4-photo:has(> img.v4-poster)::after { display: none; }
.v4-photo > img.v4-poster { inset: 0 0 auto 0; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.v4-photo:has(> img.v4-poster) .v4-glass { inset-inline-end: auto; max-width: calc(100% - 1.3rem); bottom: .7rem; padding: .3rem .7rem; background: rgba(255, 255, 255, .12); }
.v4-photo:has(> img.v4-poster) .v4-glass h3 { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* سطر واحد داخل الشريط فلا يعلو على التصميم */
/* بطاقة ملصق عليها شارة (حملة مفتوحة): الاسم مطبوع كبيراً في التصميم نفسه، فيبقى العنوان لقارئ الشاشة فقط والشارة وحدها في الشريط
   (الاسم والشارة معاً لا يتسعان في سطر واحد على الجوال فيُقتطع الاسم) */
.v4-photo:has(> img.v4-poster):has(> .v4-chip) .v4-glass { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.v4-photo:has(> img.v4-poster) .v4-glass p { display: none; }
.v4-photo:has(> img.v4-poster) .v4-chip { top: auto; bottom: .95rem; font-size: .8rem; padding: .2rem .8rem; background: #fff; color: var(--red-800); }
.card-media:has(> img.v4-poster) { aspect-ratio: 1 / 1; background: #fff; }
.card-media > img.v4-poster { object-fit: contain; }

/* بطاقة بلا صورة (الأيتام حفاظاً على خصوصيتهم، النداء، الحملة بلا صور معتمدة) */
.v4-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .88); }
.v4-art::before { content: ""; position: absolute; inset: 0; opacity: .14; background-size: 64px 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='M32 6l7 18 18 7-18 7-7 18-7-18-18-7 18-7z'/%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.v4-art .ico-xl { position: relative; width: 4.2rem; height: 4.2rem; margin-bottom: 3.5rem; }
.v4-art-red { background: radial-gradient(120% 90% at 30% 10%, #C53A43 0%, var(--red) 45%, var(--red-800) 100%); }
.v4-art-green { background: radial-gradient(120% 90% at 30% 10%, #4E7420 0%, var(--green) 50%, var(--green-700) 100%); }
.v4-art-ink { background: radial-gradient(120% 90% at 30% 10%, #47524C 0%, #2E3833 60%, #1E2622 100%); }

/* تحت الصورة: التكلفة أو التاريخ */
.v4-below { padding: .55rem .2rem 0; }
.v4-facts { margin: 0; }
.v4-facts .fact-row { font-size: .85rem; line-height: 1.55; }
.v4-facts .fact-label { color: var(--muted); }
.v4-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0; font-size: .85rem; color: var(--muted); }
.v4-read { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; color: var(--red-700); }
.v4-read .ico { width: 1em; height: 1em; }

@media (min-width: 960px) {
  .v4-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow: visible; margin: 0; padding: .2rem 0 1rem; }
  .v4-card { max-width: none; }
}
.v4-more { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.v4-more-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; color: var(--red-700); text-decoration: none; }
.v4-more-link:hover { text-decoration: underline; }

/* ----- صفحة «مشاريعنا»: نفس بطاقة «اختر عطاءك» + وصف وتكلفة (ر.ع) وزرّان ----- */
.v4-proj-grid { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: 1fr; margin-top: 1.2rem; }
@media (min-width: 700px) { .v4-proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .v4-proj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v4-proj { display: flex; flex-direction: column; min-width: 0; }
.v4-proj .v4-photo { aspect-ratio: 4 / 5; }
.v4-proj-body { display: flex; flex-direction: column; flex: 1; padding-top: .75rem; }
.v4-proj-desc { margin: 0 0 .5rem; color: var(--ink); font-size: .95rem; line-height: 1.75; }
.v4-proj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.v4-proj-actions .btn { min-height: 44px; padding-inline: .6rem; font-size: .93rem; }
.v4-others-h { font-size: 1.15rem; color: var(--red-800); margin: 2.2rem 0 .7rem; }
.v4 .fx-note { border-inline-start-color: var(--red); }

/* ----- «مشاريعنا المستمرة وطرق المساهمة» ----- */
.v4-lang { margin: .8rem 0 0; text-align: end; }
.v4-lang a, .v4-lang-pill { font-weight: 800; color: var(--red-700); text-decoration: none; border: 1.5px solid #EAD6D7; border-radius: 999px; padding: .25rem .85rem; background: #fff; }
.v4-lang-pill { justify-self: start; }
.v4-giving { padding-top: 1.6rem; }
.v4-notes { background: #FBF7F5; border: 1px solid #EFE6E3; border-radius: 18px; padding: .9rem 1.1rem; margin-bottom: 1.4rem; }
.v4-notes h3 { font-size: 1rem; margin: 0 0 .45rem; color: var(--red-800); }
.v4-notes ul { display: grid; gap: .35rem; }
.v4-notes li { display: flex; gap: .45rem; align-items: flex-start; font-size: .93rem; line-height: 1.7; }
.v4-notes .ico { color: var(--green); margin-top: .3rem; }
.v4-kv { margin: 0 0 .65rem; }
.v4-kv h4 { margin: 0; font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .01em; }
.v4-kv p { margin: .1rem 0 0; font-size: .95rem; line-height: 1.7; }
.v4-cost { display: grid; gap: .1rem; margin: .1rem 0 .8rem; padding: .7rem .85rem; border-radius: 14px; background: var(--red-050); border: 1px solid #F1D5D8; }
.v4-cost-label { font-size: .85rem; font-weight: 700; color: var(--red-800); }
.v4-cost-val { font-size: 1.55rem; line-height: 1.3; color: var(--ink); font-weight: 900; }
.v4-cost-per { font-size: .95rem; font-weight: 700; color: var(--muted); }
.v4-cost-pending { font-size: 1rem; font-weight: 800; color: var(--muted); }
.v4-cost-date { color: var(--muted); font-size: .8rem; }
.v4-done { display: grid; gap: .2rem; margin-top: .15rem; }
.v4-done li { font-size: .92rem; line-height: 1.6; }
.v4-done span { color: var(--muted); }
.v4-well { font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; }
/* «اقرأ عن هذا المشروع» في صفحات المشاريع */
.v4-related h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.v4-related-list { display: grid; gap: .45rem; }
.v4-related-list a { display: block; padding: .7rem .9rem; border-radius: 12px; background: var(--red-050); border: 1px solid #F1D5D8; color: var(--red-800); font-weight: 700; text-decoration: none; }
/* قسم «مقالات» (المدير 16 نوفمبر) */
.v4-article-list { display: grid; gap: .8rem; }
@media (min-width: 900px) { .v4-article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v4-article-card a { display: block; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid #EDE4E5; text-decoration: none; color: inherit; box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .35); }
.v4-article-card h2 { font-size: 1.08rem; margin: 0 0 .35rem; color: var(--red-800); line-height: 1.55; }
.v4-article-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.v4-article-draft, .v4-article-note { display: inline-block; margin-top: .5rem; font-size: .78rem; font-weight: 800; color: #8A5A00; background: #FFF4D6; border: 1px solid #F2DDA4; border-radius: 999px; padding: .1rem .65rem; }
.v4-article-note { display: block; border-radius: 12px; padding: .55rem .8rem; margin: 1rem 0 0; }
.v4-article { max-width: 760px; }
.v4-article .prose h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; color: var(--red-800); }
.v4-article .prose p { font-size: 1.02rem; line-height: 1.95; margin: 0 0 .9rem; }
.v4-article-intro { font-size: 1.08rem !important; font-weight: 600; }
.v4-article-meta { color: var(--muted); font-size: .85rem; margin: .8rem 0; }
.v4-article-cta { margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--red-050); border: 1px solid #F1D5D8; }
.v4-article-cta h2 { font-size: 1rem; margin: 0 0 .5rem; }
.v4-article-cta ul { display: grid; gap: .3rem; margin: 0 0 .8rem; }
/* زرّا واتساب وشارك العائمان (المدير 16 نوفمبر): أسفل الشاشة في جهة البداية، فوق المحتوى، بمساحة سفلية حتى لا يغطيا آخر سطر */
.v4-fab { position: fixed; z-index: 60; inset-inline-end: max(.9rem, env(safe-area-inset-left)); bottom: max(.9rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .55rem; align-items: center; }
.v4-fab-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45); transition: transform .15s ease; }
.v4-fab-btn:active { transform: scale(.94); }
.v4-fab-btn .ico { width: 26px; height: 26px; }
.v4-fab-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v4-fab-wa { background: #1F8A4C; color: #fff; }
.v4-fab-share { width: 44px; height: 44px; background: #fff; color: var(--red-800); border: 1.5px solid #EAD6D7; }
.v4-fab-share .ico { width: 21px; height: 21px; }
.v4-fab-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.v4 .site-footer { padding-bottom: 7.5rem; }
@media print { .v4-fab { display: none; } }
/* زر اللغة أعلى كل صفحة (عربي/إنجليزي) — بجانب زر القائمة */
.v4-start { justify-self: start; display: flex; align-items: center; gap: .3rem; }
.v4-lang-switch { font-size: .82rem; padding: .2rem .7rem; line-height: 1.6; white-space: nowrap; }
/* «يعمل الآن»: نقطة خضراء نابضة بجانب اسم المشروع (حالة تشغيلية أكّدها المدير) */
.v4-run { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; padding: .12rem .6rem .12rem .55rem; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #166534; font-size: .76rem; font-weight: 800; line-height: 1.5; }
.v4-run-dot { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: #22C55E; flex: none; }
.v4-run-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: v4-pulse 1.6s ease-out infinite; }
@keyframes v4-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .v4-run-dot::after { animation: none; } }
.v4-photo:has(> img.v4-poster) .v4-glass:has(.v4-run) { display: flex; align-items: center; gap: .45rem; }   /* شريط الملصق سطر واحد: الاسم والإشارة متجاوران */
.v4-photo:has(> img.v4-poster) .v4-glass .v4-run { margin-top: 0; flex: none; }
.v4-cost-inc { color: var(--muted); font-size: .8rem; }
.v4-ref-note { font-size: .88rem; color: #166534; font-weight: 700; margin: -.3rem 0 .6rem; }
.v4-sponsor-note { font-size: .88rem; color: var(--red-800); font-weight: 700; margin: 0 0 .5rem; }
.btn-wa-primary { background: #1F8A4C; border-color: #1F8A4C; gap: .35rem; }
.btn-wa-primary:hover { background: #17703D; border-color: #17703D; }
/* خيارات المساهمة المعتمدة (أسهم/وحدة كاملة/كفالات): شبكة من «أقراص» واضحة على الجوال */
.v4-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .3rem; }
.v4-opt { display: flex; flex-direction: column; gap: .05rem; padding: .5rem .65rem; border-radius: 12px; background: #fff; border: 1px solid #E8E1E2; }
.v4-opt span { font-size: .82rem; color: var(--muted); font-weight: 700; }
.v4-opt strong { font-size: 1.05rem; font-weight: 900; color: var(--ink); }
.v4-opt small { font-size: .75rem; color: var(--muted); }
.v4-opt-open { justify-content: center; background: var(--red-050); border-color: #F1D5D8; }
.v4-opt-open span { color: var(--red-800); }
.v4-circles p { font-size: .88rem; color: var(--muted); }
.v4-give-card .v4-proj-actions .btn { gap: .35rem; }
/* على الحاسوب: بطاقتان في الصف، والصورة بجانب التفاصيل (بطاقات القسم غنية بالنص فلا تُحشر أربعاً) */
@media (min-width: 900px) {
  .v4-giving .v4-proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.6rem; }
  .v4-giving .v4-give-card { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .v4-giving .v4-proj-body { padding-top: 0; }
  .v4-giving .v4-glass h3 { font-size: 1rem; }
}
@media (min-width: 1180px) { .v4-giving .v4-proj-actions { grid-template-columns: 1fr 1fr; } }
.v4-ways { margin-top: 2rem; padding: 1.2rem 1.1rem; border-radius: 20px; background: linear-gradient(135deg, var(--red-800), var(--red)); color: #fff; }
.v4-ways h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .8rem; }
.v4-ways-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .v4-ways-grid { grid-template-columns: 1fr 1fr; } }
.v4-way { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.v4-way h4 { margin: 0; font-size: 1rem; color: #fff; }
.v4-way p { margin: 0; color: rgba(255, 255, 255, .92); font-size: .93rem; line-height: 1.7; }
.v4-way .btn { align-self: flex-start; }
.v4-way .btn-primary { background: #fff; color: var(--red-800); }
.v4-way .btn-primary:hover { background: var(--red-050); color: var(--red-800); }
.v4-min { color: #fff !important; }
.v4-min small { color: rgba(255, 255, 255, .8); }
.v4-ways-none { margin: .9rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .85); }
html[dir="ltr"] .v4 .v4-glass h3, html[dir="ltr"] .v4 .v4-kv { text-align: left; }

/* ----- «اسأل عن أي مشروع» ----- */
.v4-ask-wrap { padding: 1rem 0 1.5rem; }
.v4-ask { display: flex; align-items: center; gap: .5rem; max-width: 640px; margin: 0 auto; padding: .35rem .4rem; background: #fff; border: 1.5px solid #EAE2DF; border-radius: 999px; box-shadow: 0 10px 24px -18px rgba(37, 20, 22, .55); }
.v4-ask:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(175, 37, 46, .12); }
.v4-ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: .45rem .2rem; }
.v4-ask input:focus { outline: none; }
.v4-ask-ico { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--red-050); color: var(--red); }
.v4-ask-btn { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; }
.v4-ask-btn:hover { background: var(--red-800); }
.v4-up { transform: rotate(-90deg); }
.v4-ask-note { margin: .45rem 0 0; text-align: center; color: var(--muted); font-size: .85rem; }

/* ----- من نحن + الثقة ----- */
.v4-about { padding: 1.9rem 0 2.1rem; background: #FBF7F5; border-top: 1px solid #EFE6E3; }
.v4-about-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .v4-about-grid { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.v4-about h2 { font-size: 1.2rem; color: var(--red-800); margin-bottom: .4rem; }
.v4-about p { max-width: 64ch; }
.v4-trust { display: grid; gap: .5rem; margin: 0 0 .7rem; }
.v4-trust li { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.v4-trust .ico { color: var(--green); }
