/* ==========================================================================
   Mukoun About Page | Namespaced | Production Ready
   ========================================================================== */

.about-page,
.about-page * {
    box-sizing: border-box;
}

.about-page {
    --about-red: #d62927;
    --about-gray: #686969;
    --about-ink: #1f2933;
    --about-text: #4f5d6b;
    --about-line: rgba(31, 41, 51, 0.08);
    --about-bg: #ffffff;
    --about-bg-soft: #f8f9fb;
    --about-radius-xl: 24px;
    --about-radius-lg: 18px;
    --about-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
    --about-container: 1240px;
    --about-space: clamp(90px, 8vw, 138px);

    width: 100%;
    overflow-x: clip;
    background: var(--about-bg);
    color: var(--about-ink);
}

.about-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-container {
    width: min(calc(100% - 40px), var(--about-container));
    margin-inline: auto;
}

.about-anchor {
    scroll-margin-top: 145px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.about-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(660px, 86vh, 1020px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #1a1d23;
    background-image: url("../images/about-page/about-hero.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(10, 14, 20, 0.76) 0%,
            rgba(10, 14, 20, 0.48) 42%,
            rgba(10, 14, 20, 0.16) 100%
        ),
        linear-gradient(
            180deg,
            rgba(10, 14, 20, 0.14) 0%,
            rgba(10, 14, 20, 0.10) 35%,
            rgba(10, 14, 20, 0.30) 100%
        );
}

.about-hero__content {
    width: min(100%, 1080px);
    padding: clamp(116px, 11vw, 176px) 0 clamp(72px, 8vw, 118px);
    color: #ffffff;
}

.about-hero__eyebrow,
.about-section__eyebrow,
.about-highlight__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--about-red);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-hero__eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.about-hero__title {
    margin: 0 0 30px;
    color: #ffffff;
    font-size: clamp(4.9rem, 3rem + 4.7vw, 8rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.06em;
    max-width: 8ch;
}

.about-hero__description {
    margin: 0;
    max-width: 1020px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.72rem, 1.24rem + 1vw, 2.28rem);
    line-height: 2;
    font-weight: 400;
}

.about-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.about-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.about-section {
    position: relative;
    padding: var(--about-space) 0;
    background: var(--about-bg);
}

.about-section:nth-of-type(even):not(.about-hero) {
    background: var(--about-bg-soft);
}

.about-section__header {
    max-width: 1060px;
    margin-bottom: 56px;
}

.about-section__title {
    margin: 0 0 22px;
    color: var(--about-ink);
    font-size: clamp(4rem, 2.55rem + 2.4vw, 6.2rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.about-section__lead {
    margin: 0;
    color: var(--about-text);
    font-size: clamp(1.58rem, 1.18rem + 0.66vw, 1.96rem);
    line-height: 2.04;
}

.about-grid {
    display: grid;
    gap: clamp(44px, 5vw, 92px);
    align-items: center;
}

.about-grid--intro {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    margin-bottom: 58px;
}

.about-text {
    max-width: 900px;
}

.about-text .about-section__lead {
    max-width: 880px;
}

.about-media {
    overflow: hidden;
    border-radius: var(--about-radius-xl);
    background: #ebeff3;
    box-shadow: var(--about-shadow);
    min-height: 420px;
}

.about-media--intro {
    aspect-ratio: 1.05 / 1;
}

.about-card-grid {
    display: grid;
    gap: 24px;
}

.about-card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--about-line);
    border-radius: var(--about-radius-lg);
    padding: 36px 32px 34px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 78px;
    height: 4px;
    border-radius: 999px;
    background: var(--about-red);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 41, 39, 0.16);
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.08);
}

.about-card__title {
    margin: 0 0 18px;
    color: var(--about-ink);
    font-size: clamp(1.9rem, 1.45rem + 0.35vw, 2.25rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.about-card__description {
    margin: 0;
    color: var(--about-text);
    font-size: 1.38rem;
    line-height: 2.02;
}

.about-values-group-title-wrap {
    margin: 0 0 24px;
}

.about-values-group-title {
    margin: 0;
    color: var(--about-ink);
    font-size: clamp(1.7rem, 1.3rem + 0.4vw, 2.1rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Highlight / Roadmap
   ========================================================================== */

.about-highlight {
    margin-top: 46px;
    padding: 34px 34px 32px;
    border-radius: var(--about-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    border: 1px solid rgba(214, 41, 39, 0.12);
    border-inline-start: 4px solid var(--about-red);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.04);
}

.about-highlight__text {
    margin: 0;
    color: var(--about-ink);
    font-size: 1.38rem;
    line-height: 2.04;
    font-weight: 500;
}

.about-roadmap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.about-roadmap__item {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(104, 105, 105, 0.08);
    color: var(--about-gray);
    border: 1px solid rgba(104, 105, 105, 0.12);
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

/* ==========================================================================
   Group Structure Image - FINAL FIX
   يعمل مع نفس كود about.blade.php:
   <figure class="about-structure-figure"><img ...></figure>
   ========================================================================== */

.about-structure-figure {
    position: relative !important;

    width: 100vw !important;
    max-width: 100vw !important;

    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    margin: clamp(28px, 4vw, 58px) 0 0 !important;
    padding: 0 !important;

    height: clamp(500px, 42vw, 780px) !important;
    min-height: clamp(500px, 42vw, 780px) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;
}

.about-structure-figure img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    display: block !important;

    width: 165vw !important;
    min-width: 165vw !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: translate(-50%, -50%) scale(1.18) !important;
    transform-origin: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.about-structure-figure1{
     max-width: 100% !important;


}
/* ==========================================================================
   System Integration Block
   ========================================================================== */

.about-integration-block {
    margin-top: 34px;
    padding: 32px 30px;
    border-radius: var(--about-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    border: 1px solid rgba(31, 41, 51, 0.08);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.04);
}

.about-integration-block__content {
    max-width: 1080px;
    margin-bottom: 24px;
}

.about-integration-block__title {
    margin: 0 0 14px;
    color: var(--about-ink);
    font-size: clamp(1.9rem, 1.45rem + 0.35vw, 2.25rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.about-integration-block__description {
    margin: 0;
    color: var(--about-ink);
    font-size: 1.22rem;
    line-height: 1.96;
    font-weight: 500;
}

.about-integration-block__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.about-integration-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 18px 16px;
    text-align: center;
    border-radius: 16px;
    background: #f3f6f9;
    border: 1px solid rgba(31, 41, 51, 0.08);
    color: var(--about-ink);
    font-size: 1.04rem;
    line-height: 1.45;
    font-weight: 700;
}

/* ==========================================================================
   Large Desktop
   ========================================================================== */

@media (min-width: 1600px) {
    .about-structure-figure {
        height: clamp(640px, 40vw, 920px) !important;
        min-height: clamp(640px, 40vw, 920px) !important;
    }

    .about-structure-figure img {
        width: 155vw !important;
        min-width: 155vw !important;
        transform: translate(-50%, -50%) scale(1.22) !important;
    }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1199.98px) {
    .about-container {
        width: min(calc(100% - 36px), 1100px);
    }

    .about-hero {
        min-height: clamp(580px, 76vh, 820px);
    }

    .about-grid--intro {
        grid-template-columns: 1fr;
    }

    .about-card-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-section__title {
        font-size: clamp(3.35rem, 2.3rem + 1.7vw, 4.95rem);
    }

    .about-card__description {
        font-size: 1.24rem;
    }

    .about-integration-block__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-structure-figure {
        height: clamp(430px, 48vw, 660px) !important;
        min-height: clamp(430px, 48vw, 660px) !important;
    }

    .about-structure-figure img {
        width: 175vw !important;
        min-width: 175vw !important;
        transform: translate(-50%, -50%) scale(1.08) !important;
    }
}

/* ==========================================================================
   Mobile / Tablet
   ========================================================================== */

@media (max-width: 991.98px) {
    .about-page {
        --about-space: clamp(70px, 10vw, 102px);
    }

    .about-container {
        width: min(calc(100% - 32px), 900px);
    }

    .about-hero {
        min-height: 530px;
        background-position: center center;
    }

    .about-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 14, 20, 0.20) 0%,
                rgba(10, 14, 20, 0.28) 26%,
                rgba(10, 14, 20, 0.60) 100%
            );
    }

    .about-hero__content {
        width: 100%;
        max-width: 840px;
        padding-top: 104px;
        padding-bottom: 58px;
    }

    .about-card-grid--three,
    .about-card-grid--two {
        grid-template-columns: 1fr;
    }

    .about-integration-block {
        padding: 26px 22px;
    }

    .about-integration-block__description {
        font-size: 1.08rem;
    }

    .about-integration-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-structure-figure {
        height: clamp(360px, 56vw, 560px) !important;
        min-height: clamp(360px, 56vw, 560px) !important;
    }

    .about-structure-figure img {
        width: 190vw !important;
        min-width: 190vw !important;
        transform: translate(-50%, -50%) scale(1.02) !important;
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 767.98px) {
    .about-container {
        width: min(calc(100% - 28px), 720px);
    }

    .about-hero {
        min-height: 460px;
        background-position: 58% center;
    }

    .about-hero__content {
        padding-top: 92px;
        padding-bottom: 42px;
    }

    .about-hero__title {
        font-size: clamp(3.35rem, 9.8vw, 4.95rem);
        line-height: 1;
    }

    .about-hero__description {
        font-size: 1.3rem;
        line-height: 1.96;
    }

    .about-section__title {
        font-size: clamp(3rem, 8.8vw, 4.1rem);
        line-height: 1.02;
    }

    .about-section__lead {
        font-size: 1.24rem;
        line-height: 1.96;
    }

    .about-card-grid--four {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 30px 24px 28px;
    }

    .about-card__title {
        font-size: 1.58rem;
    }

    .about-card__description,
    .about-highlight__text {
        font-size: 1.2rem;
    }

    .about-highlight {
        padding: 28px 22px;
    }

    .about-structure-figure {
        margin-top: 28px !important;
        height: clamp(260px, 72vw, 420px) !important;
        min-height: clamp(260px, 72vw, 420px) !important;
    }

    .about-structure-figure img {
        width: 220vw !important;
        min-width: 220vw !important;
        transform: translate(-50%, -50%) scale(0.98) !important;
    }
}

/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 575.98px) {
    .about-container {
        width: calc(100% - 24px);
    }

    .about-hero {
        min-height: 420px;
        background-position: 60% center;
    }

    .about-hero__eyebrow,
    .about-section__eyebrow,
    .about-highlight__eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .about-hero__title {
        font-size: 2.85rem;
    }

    .about-hero__description {
        font-size: 1.18rem;
        line-height: 1.92;
    }

    .about-section__title {
        font-size: 2.6rem;
    }

    .about-section__lead,
    .about-card__description,
    .about-highlight__text {
        font-size: 1.12rem;
    }

    .about-hero__meta {
        gap: 10px;
        margin-top: 20px;
    }

    .about-hero__meta span {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .about-roadmap {
        gap: 10px;
    }

    .about-roadmap__item {
        min-height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }

    .about-structure-figure {
        height: clamp(230px, 78vw, 360px) !important;
        min-height: clamp(230px, 78vw, 360px) !important;
    }

    .about-structure-figure img {
        width: 250vw !important;
        min-width: 250vw !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
    }

    .about-integration-block__title {
        font-size: 1.5rem;
    }

    .about-integration-block__description {
        font-size: 1rem;
        line-height: 1.9;
    }

    .about-integration-block__grid {
        grid-template-columns: 1fr;
    }

    .about-integration-pill {
        min-height: 72px;
        font-size: 0.98rem;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

html[dir="rtl"] .about-page {
    direction: rtl;
}

html[dir="rtl"] .about-hero__content,
html[dir="rtl"] .about-text,
html[dir="rtl"] .about-section__header,
html[dir="rtl"] .about-card,
html[dir="rtl"] .about-highlight {
    text-align: right;
}

html[dir="rtl"] .about-card::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

html[dir="rtl"] .about-highlight {
    border-inline-start: none;
    border-inline-end: 4px solid var(--about-red);
}

/****code class="about-structure-figure" ****/
 /* ==========================================================================
   About Structure Image - Bigger Slightly + Centered
   ========================================================================== */

.about-page .about-structure-figure {
    width: min(1500px, calc(100vw - 40px)) !important;
    max-width: none !important;

    margin: 36px auto 0 !important;
    padding: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.about-page .about-structure-figure img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center center !important;

    position: static !important;
    left: auto !important;
    top: auto !important;

    transform: scale(1.14) !important;
    transform-origin: center center !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* شاشات كبيرة */
@media (min-width: 1600px) {
    .about-page .about-structure-figure {
        width: min(1650px, calc(100vw - 60px)) !important;
    }

    .about-page .about-structure-figure img {
        transform: scale(1.16) !important;
    }
}

/* لابتوب */
@media (max-width: 1199.98px) {
    .about-page .about-structure-figure {
        width: calc(100vw - 36px) !important;
    }

    .about-page .about-structure-figure img {
        transform: scale(1.10) !important;
    }
}

/* جوال */
@media (max-width: 767.98px) {
    .about-page .about-structure-figure {
        width: calc(100vw - 20px) !important;
        margin-top: 28px !important;
    }

    .about-page .about-structure-figure img {
        transform: scale(1.04) !important;
    }
}
/****end code class="about-structure-figure" ****/
/****code class="image_about " ****/

/* ==========================================================================
   FIX - About Intro Image Responsive Mobile
   image: about-intro.webp
   ========================================================================== */

.about-page .about-media.about-media--intro {
    width: 100% !important;
    min-height: 420px !important;
    aspect-ratio: 1.05 / 1 !important;

    border-radius: 18px !important;
    overflow: hidden !important;
    background: #ebeff3 !important;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08) !important;
}

.about-page .about-media.about-media--intro img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: none !important;
    max-width: none !important;
}

/* Tablet */
@media (max-width: 991.98px) {
    .about-page .about-grid.about-grid--intro {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
    }

    .about-page .about-media.about-media--intro {
        min-height: 360px !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 18px !important;
    }

    .about-page .about-media.about-media--intro img {
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .about-page .about-media.about-media--intro {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;

        aspect-ratio: 4 / 3 !important;
        border-radius: 16px !important;

        margin: 0 !important;
    }

    .about-page .about-media.about-media--intro img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .about-page .about-media.about-media--intro {
        aspect-ratio: 1 / 1.05 !important;
        border-radius: 14px !important;
    }

    .about-page .about-media.about-media--intro img {
        object-fit: cover !important;
        object-position: center center !important;
    }
}
/****end code class="image_about " ****/

