/* ============================================================
   صفحة «من نحن» — مطابقة لتصميم فيغما (إطار 1280، node 183:2867)
   الهيرو 664 | الإحصاءات 172 (تتداخل 17px) | القصة 559x514 | القيم 3 أعمدة
   ============================================================ */
.about-v2 {
    --about-navy: #0f2b4b;
    --about-teal: #038e94;
    --about-teal-title: #048e94;
    --about-teal-bar: #028e94;
    --about-text: #434655;
    --about-frame: 1280px;
    background: #fff;
    color: var(--about-text);
    font-family: 'Tajawal', sans-serif;
    overflow: hidden;
}

/* ---------- Hero ---------- */
.about-v2__hero {
    position: relative;
    height: 664px;
    background: #fff;
    overflow: hidden;
}
/* الصورة تُنسب إلى القسم كامل العرض فتلتصق بحافة الشاشة اليسرى،
   والنص يبقى داخل صندوق 1280 متمركز */
.about-v2__hero-inner {
    position: static;
    max-width: var(--about-frame);
    height: 100%;
    margin: 0 auto;
}
/* Ellipse 1: 856x894 عند left:-215 top:-140 */
.about-v2__hero-media {
    position: absolute;
    left: -215px;
    top: -140px;
    width: 856px;
    height: 894px;
}
.about-v2__hero-media img {
    display: block;
    width: 856px;
    height: 894px;
}
/* النص: يمين 24 | عرض 592 | أعلى 118 (16 + 102) */
.about-v2__hero-copy {
    position: absolute;
    top: 118px;
    right: max(24px, calc((100% - var(--about-frame)) / 2 + 24px));
    width: 592px;
    direction: rtl;
    text-align: right;
}
.about-v2__hero-copy h1 {
    margin: 0 0 32px;
    color: var(--about-teal-title);
    font-size: 40px;
    line-height: 61px;
    font-weight: 700;
}
/* الوصف 32/43 + سطر فارغ 43 + فجوة 32 + حشوة الأزرار 24 = 99 */
.about-v2__hero-copy p {
    max-width: 604px;
    margin: 0 0 99px;
    color: var(--about-text);
    font-size: 32px;
    line-height: 43px;
    font-weight: 500;
}
/* «تواصل معنا» يميناً و«استكشف خدماتنا» يساره كما في التصميم */
.about-v2__buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
}
.about-v2__button {
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease;
}
.about-v2__button:hover { transform: translateY(-2px); }
.about-v2__button--primary {
    order: 2;
    padding: 0 48px;
    background: var(--about-teal);
    color: #fff;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .25), 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.about-v2__button--outline {
    order: 1;
    width: 230px;
    border: 1px solid var(--about-navy);
    color: var(--about-navy);
    background: #fff;
    box-shadow: 0 5px 4px rgba(0, 0, 0, .25);
}

/* ---------- Statistics ---------- */
.about-v2__stats {
    position: relative;
    z-index: 2;
    margin-top: -17px;
    padding: 40px 0;
    background: var(--about-teal-bar);
    color: #fff;
    box-shadow: 0 10px 2px rgba(0, 0, 0, .25);
}
.about-v2__stats-inner {
    max-width: var(--about-frame);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    text-align: center;
}
.about-v2__stats-inner div { display: flex; flex-direction: column; gap: 4px; }
.about-v2__stats-inner strong {
    font-size: 48px;
    line-height: 60px;
    font-weight: 700;
    direction: ltr;
    unicode-bidi: isolate;
}
.about-v2__stats-inner span { font-size: 20px; line-height: 28px; font-weight: 500; opacity: .9; }

/* ---------- Story ---------- */
.about-v2__story {
    position: relative;
    margin: 58px 0 0;
    min-height: 514px;
    direction: ltr;
}
/* Rectangle 63: ملاصقة لحافة الشاشة اليسرى وتبرز خارجها 26px */
.about-v2__story-media {
    position: absolute;
    left: -26px;
    top: 0;
    width: 559px;
    height: 514px;
    /* زوايا مستديرة من اليمين فقط (40) وظل 0 15px 4px */
    border-radius: 0 40px 40px 0;
    overflow: hidden;
    box-shadow: 0 15px 4px rgba(0, 0, 0, .25);
}
.about-v2__story-media img {
    display: block;
    width: 103.32%;
    height: 100%;
    margin-left: 0.05%;
    margin-top: -0.1%;
    object-fit: cover;
}
.about-v2__story-copy {
    max-width: var(--about-frame);
    margin: 0 auto;
    padding: 49px 16px 0 533px;
    direction: rtl;
    text-align: right;
}
.about-v2__story-copy h2,
.about-v2__values h2 {
    margin: 0;
    color: var(--about-navy);
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}
/* شريط أخضر 96x4 متمركز تحت العنوان */
.about-v2__underline {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.about-v2__underline::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 96px;
    height: 4px;
    border-radius: 9999px;
    background: var(--about-teal-bar);
    transform: translateX(-50%);
}
.about-v2__story-text {
    padding: 37px 16px 0 0;
    /* المحتوى القادم من لوحة الإدارة يُعرض بلا <p> فيرث هذه القيم */
    max-width: 715px;
    color: var(--about-text);
    font-size: 24px;
    line-height: 36px;
    font-weight: 500;
}
.about-v2__story-text p {
    margin: 0 0 26px;
    max-width: 715px;
    color: var(--about-text);
    font-size: 24px;
    line-height: 36px;
    font-weight: 500;
}
.about-v2__story-text p:last-child { margin-bottom: 0; }

/* ---------- Values ---------- */
.about-v2__values {
    max-width: var(--about-frame);
    margin: 64px auto 0;
    padding: 0 24px 86px;
    text-align: center;
}
.about-v2__values header { margin-bottom: 32px; }
.about-v2__values header .about-v2__underline { padding-bottom: 4px; }
.about-v2__values header .about-v2__underline::after { background: #006769; }
.about-v2__values header p {
    margin: 8px 0 0;
    color: var(--about-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}
.about-v2__values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.about-v2__values article {
    min-height: 270px;
    padding: 49px 49px 69px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #c3c6d7;
    border-radius: 12px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05));
}
/* دائرة الأيقونة 64 + هامش سفلي 24 */
.about-v2__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-v2__icon img { display: block; }
.about-v2__icon--blue   { background: rgba(0, 74, 198, .1); }
.about-v2__icon--amber  { background: rgba(254, 166, 25, .1); }
.about-v2__icon--orange { background: rgba(188, 72, 0, .1); }
.about-v2__values article h3 {
    margin: 0 0 12px;
    color: #191c1d;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}
.about-v2__values article p {
    margin: 0;
    color: var(--about-text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .about-v2__hero { height: auto; }
    .about-v2__hero-inner { height: auto; }
    .about-v2__hero-media {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        overflow: hidden;
    }
    .about-v2__hero-media img {
        width: 100%;
        height: auto;
    }
    .about-v2__hero-copy {
        position: static;
        width: auto;
        padding: 40px 24px 56px;
    }
    .about-v2__hero-copy h1 { font-size: 34px; line-height: 1.4; margin-bottom: 20px; }
    .about-v2__hero-copy p { font-size: 24px; line-height: 1.5; margin-bottom: 32px; max-width: none; }
    .about-v2__stats { margin-top: 0; }
    .about-v2__story {
        margin-top: 48px;
        padding: 0 24px;
        min-height: 0;
    }
    .about-v2__story-media { position: static; width: 100%; height: auto; aspect-ratio: 559 / 514; border-radius: 24px; margin-bottom: 32px; }
    .about-v2__story-copy { padding: 0; }
    .about-v2__story-text { padding: 24px 0 0; }
    .about-v2__story-text p { font-size: 20px; line-height: 1.6; }
    .about-v2__values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .about-v2__stats-inner { grid-template-columns: 1fr; gap: 24px; padding: 0 24px; }
    .about-v2__stats-inner strong { font-size: 36px; line-height: 1.3; }
    .about-v2__stats-inner span { font-size: 16px; }
    .about-v2__hero-copy h1 { font-size: 30px; }
    .about-v2__hero-copy p { font-size: 20px; }
    .about-v2__buttons { flex-wrap: wrap; }
    .about-v2__button { width: 100%; font-size: 17px; }
    .about-v2__story-text p { font-size: 18px; }
    .about-v2__values { padding-inline: 16px; padding-bottom: 56px; }
    .about-v2__values-grid { grid-template-columns: 1fr; }
    .about-v2__values article { padding: 40px 24px 48px; }
}
