/* أميدرا v2 — هوية الشركة فوق قوالب أقسامنا (أكاديميات/دروس/مدارس/صيدليات/عيادات…) في وضع التجربة.
   الأقسام نفسها (الكلام والروابط) جاية من الصفحة الحالية بالحرف؛ includes/v2.php بيديها class="v2-legacy".
   ستايلها القديم (audience/system-page-styles وستايل كل صفحة) بيفضل للترتيب، والملف ده بيغيّر الشكل بس. */

.v2-legacy{font-family:var(--font);color:var(--ink);position:relative}
.v2-legacy .container{width:100%;max-width:calc(var(--wrap) + var(--gut) * 2);margin:0 auto;padding:0 var(--gut)}
.v2-legacy.section{padding:104px 0}
.v2-legacy.section-alt{background:var(--paper)}
.v2-legacy.v2-herofig{padding:0 0 40px}
.v2-legacy.v2-herofig figure{max-width:980px;margin:0 auto}
.v2-legacy h2,.v2-legacy h3,.v2-legacy h4{font-family:var(--font);letter-spacing:0}
.v2-legacy strong,.v2-legacy b{font-weight:600}

/* عناوين الأقسام */
.v2-legacy .sec-title,.v2-legacy .section-heading h2{font-size:44px;line-height:1.2;font-weight:300;color:var(--ink);text-align:center;margin:0 0 16px}
.v2-legacy .sec-lead,.v2-legacy .section-heading p{font-size:18px;line-height:1.75;color:var(--body);text-align:center;max-width:680px;margin:0 auto 48px}
.v2-legacy .eyebrow,.v2-legacy .sc-kicker,.v2-legacy .cl-kicker,.v2-legacy .ph-kicker{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;background:var(--paper);border:1px solid var(--line);font-size:13px;font-weight:500;color:var(--navy)}

/* الكروت */
.v2-legacy .pl-card,.v2-legacy .pl-step,.v2-legacy .ph-duo-card,.v2-legacy .sys-card,.v2-legacy .sc-tile{background:var(--paper)!important;border:1px solid var(--line)!important;border-radius:var(--r-lg)!important;box-shadow:var(--shadow-sm)!important;padding:26px 24px}
.v2-legacy .pl-card h3,.v2-legacy .pl-step h3,.v2-legacy .ph-duo-card h3,.v2-legacy .sys-card h3,.v2-legacy .sc-tile h3,.v2-legacy .sc-tile h4{font-size:17px;font-weight:500!important;color:var(--ink)!important;line-height:1.5}
.v2-legacy .pl-card p,.v2-legacy .pl-step p,.v2-legacy .ph-duo-card p,.v2-legacy .sys-card p,.v2-legacy .sc-tile p,.v2-legacy .sc-tile li{color:var(--body)!important;font-size:15px;line-height:1.8}
.v2-legacy .pl-ico,.v2-legacy .sys-ico{width:44px;height:44px;border-radius:12px;background:var(--navy-soft)!important;color:var(--navy);display:grid!important;place-items:center;font-size:20px;margin-bottom:14px}
.v2-legacy .pl-ico .v2i,.v2-legacy .sys-ico .v2i{width:20px;height:20px}
.v2-legacy .pl-grid,.v2-legacy .pl-steps,.v2-legacy .ph-duo{gap:16px}
.v2-legacy .pl-num{width:36px;height:36px;border-radius:50%;background:var(--navy)!important;font-family:var(--mono);font-weight:400}
.v2-legacy .sys-card{color:var(--ink)}
.v2-legacy .sys-card:hover{border-color:var(--line-2)!important;box-shadow:var(--shadow)!important}
.v2-legacy .sys-card li::before{color:var(--ok)!important}
.v2-legacy .sys-foot span{color:var(--muted)!important;font-weight:400!important}
.v2-legacy .sys-foot b{color:var(--navy)!important;font-weight:500!important}

/* الجداول */
.v2-legacy .pl-table{border-radius:var(--r-xl);box-shadow:none;border:1px solid var(--line);border-collapse:separate;border-spacing:0;overflow:hidden}
.v2-legacy .pl-table thead th{background:var(--navy-3);font-weight:500;font-size:14.5px}
.v2-legacy .pl-table td{color:var(--ink);font-size:14.5px;border-bottom:1px solid var(--line)}
.v2-legacy .pl-table tbody td:last-child{color:var(--navy);font-weight:500}

/* الأسئلة (details) بشكل أسئلة الشركة */
.v2-legacy .pl-faq{max-width:860px}
.v2-legacy .pl-faq details{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 4px;margin:0}
.v2-legacy .pl-faq summary{font-weight:500;color:var(--ink);font-size:17px;list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center}
.v2-legacy .pl-faq summary::-webkit-details-marker{display:none}
.v2-legacy .pl-faq summary::after{content:"+";flex:none;width:28px;height:28px;border-radius:50%;border:1px solid var(--line-2);display:grid;place-items:center;font-size:16px;color:var(--navy);transition:transform .3s var(--ease)}
.v2-legacy .pl-faq details[open] summary::after{content:"−"}
.v2-legacy .pl-faq p{color:var(--body);font-size:15.5px}
.v2-legacy .pl-faq a,.v2-legacy .pl-more a,.v2-legacy .sec-lead a,.v2-legacy .pl-card a:not(.btn),.v2-legacy .ph-copy a:not(.btn){color:var(--navy);text-decoration:underline;text-underline-offset:3px;font-weight:500}
.v2-legacy .pl-more{color:var(--body);font-size:15px;line-height:2}

/* الأزرار */
.v2-legacy .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;font-size:15px;font-weight:500;border:1px solid transparent;text-decoration:none;transition:background .3s var(--ease),border-color .3s;white-space:nowrap}
.v2-legacy .btn-primary{background:var(--navy);color:#fff!important;box-shadow:0 6px 18px rgba(13,45,115,.22)}
.v2-legacy .btn-primary:hover{background:var(--navy-bright)}
.v2-legacy .btn-outline{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line-2)!important}
.v2-legacy .btn-outline:hover{border-color:var(--navy)!important}
.v2-legacy .btn-outline-light{background:rgba(255,255,255,.08);color:#fff!important;border-color:rgba(255,255,255,.22)}

/* صفوف صورة + نص (الصيدليات) */
.v2-legacy .ph-shot,.v2-legacy .ph-hero-shot{border-radius:var(--r-lg)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-lg)!important}
.v2-legacy .ph-browser{background:var(--bg);border-bottom:1px solid var(--line)}
.v2-legacy .ph-copy h3{font-size:28px;font-weight:300!important;color:var(--ink)!important;line-height:1.3}
.v2-legacy .ph-copy p{color:var(--body)}
.v2-legacy .ph-copy li,.v2-legacy .ph-plan li{color:var(--body)}
.v2-legacy .ph-copy li::before,.v2-legacy .ph-plan li::before{background:var(--ok-bg)!important;color:var(--ok)!important}

/* الشريط الغامق (المتجر/الأتوبيس) */
.v2-legacy .ph-store,.v2-legacy.ph-store{background:linear-gradient(135deg,var(--navy-3),var(--navy) 70%,var(--navy-bright))!important}
.v2-legacy .ph-store h2,.v2-legacy.ph-store h2{font-weight:300!important;font-size:40px}
.v2-legacy .ph-badge{background:rgba(16,196,225,.16);color:var(--cyan);border-color:rgba(16,196,225,.3)}

/* باقات الصيدليات */
.v2-legacy .ph-plan{border-radius:var(--r-xl)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-sm)!important}
.v2-legacy .ph-plan-hot{border:2px solid var(--navy)!important;box-shadow:var(--shadow-lg)!important}
.v2-legacy .ph-plan-tag{background:var(--navy)!important;font-weight:500}
.v2-legacy .ph-plan h3{font-weight:500!important;color:var(--ink)!important}
.v2-legacy .ph-plan-price strong{font-weight:400;color:var(--ink);font-family:var(--mono)}

/* فيديوهات */
.v2-legacy .av-card{border-radius:var(--r-lg)!important}

@media (max-width:809.98px){
  .v2-legacy.section{padding:72px 0}
  .v2-legacy .sec-title,.v2-legacy .section-heading h2{font-size:32px}
  .v2-legacy .sec-lead{font-size:16.5px;margin-bottom:32px}
  .v2-legacy .ph-copy h3{font-size:22px}
  .v2-legacy .ph-store h2,.v2-legacy.ph-store h2{font-size:28px}
}

/* سطر فرعي في عنوان الهيرو (صفحات الأنظمة: «كاشير ومخزون وصلاحيات — ومتجر أونلاين لعملائك») */
.h1 .h1-sub{display:block;font-size:.46em;line-height:1.45;color:var(--navy);font-weight:400;margin-top:14px}
.h1 .h1-sub+br,.h1 br:has(+.h1-sub){display:none}

/* بلوك الدعوة القديم (cta-section) */
.v2-legacy.cta-section{background:linear-gradient(135deg,var(--navy-3),var(--navy) 70%,var(--navy-bright));color:#fff;text-align:center;padding:88px 0}
.v2-legacy.cta-section h2{color:#fff!important;font-weight:300!important;font-size:40px}
.v2-legacy.cta-section p{color:var(--on-navy)!important;font-size:17px}
.v2-legacy.cta-section .btn-primary{background:var(--cyan);color:var(--navy-3)!important}
.v2-legacy.cta-section .btn-outline,.v2-legacy.cta-section .btn-outline-light{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.22)!important}
.v2-legacy.muted-section{background:var(--paper)}
@media (max-width:809.98px){.v2-legacy.cta-section h2{font-size:28px}}

/* ===== المقالات (blog/post.php) في إطار v2 ===== */
.v2-legacy.v2-post{padding:118px 0 72px}
.v2-post-wrap{width:100%;max-width:calc(var(--wrap) + var(--gut) * 2);margin:0 auto;padding:0 var(--gut)}
.v2-post-wrap .container{padding:0;max-width:none}
.v2-post h1{font-size:46px!important;line-height:1.25!important;font-weight:300!important;color:var(--ink)!important}
.v2-post h2{font-size:30px!important;line-height:1.35!important;font-weight:400!important;color:var(--ink)!important}
.v2-post h3{font-size:21px!important;font-weight:500!important;color:var(--ink)!important}
.v2-post p,.v2-post li{color:var(--body)}
.v2-post a:not(.btn):not([class*="cta"]){color:var(--navy)}
.v2-post img{border-radius:var(--r-lg)}
.v2-post table{border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.v2-post th{background:var(--navy-3)!important;color:#fff!important;font-weight:500}
.v2-post blockquote{border-inline-start:3px solid var(--cyan)!important;background:var(--paper)!important;border-radius:var(--r)}
.v2-post .article-sidebar>*,.v2-post aside[class*="cta"]{border-radius:var(--r-lg)!important;border-color:var(--line)!important}
.v2-post [class*="cta"] .btn,.v2-post .btn{border-radius:999px}
.v2-post details{border-color:var(--line)!important;border-radius:var(--r)!important}
/* صفحة المدونة (blog/index.php) */
.v2-legacy .post-card{border-radius:var(--r-lg)!important;border-color:var(--line)!important;box-shadow:var(--shadow-sm)!important}
.v2-legacy .post-card h2,.v2-legacy .post-card h3{font-weight:500!important;color:var(--ink)!important}
.v2-legacy .cat-side{border-radius:var(--r-lg)!important}
@media (max-width:809.98px){.v2-post h1{font-size:32px!important}.v2-post h2{font-size:24px!important}.v2-legacy.v2-post{padding-top:96px}}

/* المدونة: البحث وأرقام المقالات تحت عنوان الهيرو */
.v2-bh{width:100%;max-width:560px}
.v2-bh .bh-bottom{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:4px}
.v2-bh .blog-search-wrap{position:relative;width:100%}
.v2-bh #blog-search{width:100%;height:52px;border-radius:999px;border:1px solid var(--line-2);background:rgba(255,255,255,.92);padding:0 22px;font:inherit;font-size:15px;color:var(--ink);box-shadow:var(--shadow-sm)}
.v2-bh #blog-search:focus{outline:2px solid var(--cyan-soft);border-color:var(--navy)}
.v2-bh .search-clear{position:absolute;inset-inline-end:18px;top:50%;transform:translateY(-50%);cursor:pointer;color:var(--muted)}
.v2-bh .bh-stats{display:flex;align-items:center;gap:22px}
.v2-bh .bh-stat{display:flex;flex-direction:column;align-items:center;line-height:1.3}
.v2-bh .bh-stat strong{font-size:20px;font-weight:500;color:var(--navy)}
.v2-bh .bh-stat span{font-size:13px;color:var(--muted)}
.v2-bh .bh-divider{width:1px;height:28px;background:var(--line-2)}

.v2-bh #blog-search{padding-inline-start:46px}

/* المقال: زرار «عندك عيادة؟» كان كلامه غامق على كحلي، والمقالات ذات الصلة كانت صورها مالية العمود والعنوان كلمة في كل سطر (صورة المالك 2026-11-08) */
.v2-post .article-cta-inline{background:var(--cyan-soft)!important;border:1px solid var(--line)!important;border-inline-start:4px solid var(--cyan)!important;border-radius:var(--r-lg)!important}
.v2-post .article-cta-inline p{color:var(--ink)!important}
.v2-post .article-cta-inline a{background:var(--navy)!important;color:#fff!important;border-radius:999px!important;padding:11px 20px!important;font-weight:500!important;text-decoration:none!important}
.v2-post .article-cta-inline a:hover{background:var(--navy-bright)!important}
.v2-post .related-post{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important}
.v2-post .related-post img,.v2-post .related-post-thumb{width:84px!important;max-width:84px!important;height:auto!important;flex:none!important;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.v2-post .related-post-body{min-width:0;flex:1}
.v2-post .related-post-title{font-size:14px!important;font-weight:500!important;line-height:1.5!important;color:var(--ink)!important}
.v2-post .related-post-cat{color:var(--cyan-2)!important;font-size:11.5px!important}
.v2-post .sidebar-cta a,.v2-post .sidebar-card a.btn{color:#fff!important}

/* كارت «عندك عيادة؟…» في القايمة الجانبية: خلفيته كحلي — قاعدة .v2-post h3 كانت مسوّدة العنوان (صورة المالك 2026-11-08) */
.v2-post .sidebar-cta{background:linear-gradient(135deg,var(--navy-3),var(--navy) 60%,var(--navy-bright))!important;border-radius:var(--r-lg)!important}
.v2-post .sidebar-cta h3{color:#fff!important;font-size:18px!important;font-weight:500!important}
.v2-post .sidebar-cta p{color:var(--on-navy)!important}
.v2-post .sidebar-cta .sidebar-cta-art{width:140px!important;max-width:140px!important;border-radius:0;margin:0 auto 6px}
.v2-post .sidebar-cta .btn{background:var(--cyan)!important;color:var(--navy-3)!important;border-radius:999px!important;font-weight:500!important;padding:12px 18px!important}

/* صندوق «عندك عيادة؟» في آخر المقال + شارة التصنيف فوق العنوان: خلفيتهم كحلي، والقواعد العامة كانت مسوّدة الكلام (صورة المالك 2026-11-08) */
.v2-post .article-cta-text h3{color:#fff!important;font-size:22px!important;font-weight:400!important}
.v2-post .article-cta-text p{color:var(--on-navy)!important}
.v2-post .article-cta-actions .btn{background:var(--cyan)!important;color:var(--navy-3)!important;border-radius:999px!important;font-weight:500!important}
.v2-post .article-cta-actions a:not(.btn){color:#fff!important}
.v2-post a.article-cat,.v2-post .article-cat{background:var(--navy)!important;color:#fff!important;font-weight:500!important}

/* المدونة: التصنيف و«اقرأ المقال» كانوا سماوي فاتح على أبيض (تباين 2:1 — فحص التباين 2026-11-08) */
.v2-legacy .pc-cat{color:var(--navy)!important;background:var(--navy-soft)!important}
.v2-legacy .pc-link{color:var(--navy)!important;font-weight:500!important}
