/* ==========================================================================
   Project Overview Page | Laravel 12 | Namespaced CSS
   ========================================================================== */

   .pov-page,
   .pov-page * {
       box-sizing: border-box;
   }
   
   .pov-page {
       --pov-color-text: #1b2430;
       --pov-color-heading: #1b2430;
       --pov-color-body: #4a5765;
       --pov-color-surface: #ffffff;
       --pov-color-surface-soft: #fcfcfd;
       --pov-shadow-soft: 0 20px 50px rgba(12, 18, 28, 0.10);
       --pov-radius-xl: 20px;
       --pov-container-width: 1240px;
       --pov-section-space: clamp(64px, 9vw, 120px);
   
       width: 100%;
       overflow-x: clip;
       background: #ffffff;
       color: var(--pov-color-text);
   }
   
   .pov-page img {
       max-width: 100%;
       height: auto;
   }
   
   .pov-container {
       width: min(calc(100% - 40px), var(--pov-container-width));
       margin-inline: auto;
   }
   
   /* ==========================================================================
      Hero
      ========================================================================== */
   
   .pov-hero {
       position: relative;
       isolation: isolate;
       min-height: clamp(560px, 86vh, 980px);
       display: flex;
       align-items: flex-end;
       overflow: hidden;
       background-color: #111722;
       background-image: var(--pov-hero-image);
       background-position: center 35%;
       background-repeat: no-repeat;
       background-size: cover;
   }
   
   .pov-hero__overlay {
       position: absolute;
       inset: 0;
       z-index: 0;
       background:
           linear-gradient(90deg, rgba(8, 11, 16, 0.18) 0%, rgba(8, 11, 16, 0.08) 42%, rgba(8, 11, 16, 0.04) 100%),
           linear-gradient(180deg, rgba(8, 11, 16, 0.04) 0%, rgba(8, 11, 16, 0.02) 34%, rgba(8, 11, 16, 0.10) 100%);
   }
   
   .pov-hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    padding: clamp(92px, 11vw, 150px) 0 clamp(72px, 8vw, 110px);
    color: #ffffff;
    }
   
    .pov-eyebrow {
        display: inline-flex;
        align-items: center;
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        /*color: #d62927;*/
        color: rgba(255, 255, 255, 0.92);
    }
   
   .pov-hero__title {
    margin: 0 0 26px;
    color: #ffffff;
    font-size: clamp(3.1rem, 4.4vw, 6rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.05em;
    max-width: none;
    white-space: nowrap;
   }

   @media (max-width: 1199.98px) {
    .pov-hero__title {
        font-size: clamp(2.8rem, 4.6vw, 4.8rem);
        white-space: normal;
        max-width: 10ch;
    }
}
   
   .pov-hero__description {
       margin: 0;
       max-width: 940px;
       color: rgba(255, 255, 255, 0.96);
       font-size: clamp(1.45rem, 1.12rem + 0.95vw, 2.12rem);
       line-height: 1.9;
       font-weight: 400;
   }
   
   /* ==========================================================================
      Sections
      ========================================================================== */
   
   .pov-section {
       position: relative;
       padding: var(--pov-section-space) 0;
       background: var(--pov-color-surface);
   }
   
   .pov-section--inside,
   .pov-section--role {
       background-color: var(--pov-color-surface-soft);
   }
   
   .pov-section--inside::before,
   .pov-section--role::before {
       content: "";
       position: absolute;
       inset: 0;
       background-image: radial-gradient(circle at 1px 1px, rgba(20, 27, 39, 0.07) 1px, transparent 0);
       background-size: 18px 18px;
       opacity: 0.55;
       pointer-events: none;
   }
   
   .pov-section .pov-container {
       position: relative;
       z-index: 1;
   }
   
   .pov-grid {
       display: grid;
       gap: clamp(34px, 6vw, 86px);
       align-items: center;
   }
   
   .pov-grid--inside {
       grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
   }
   
   .pov-grid--role {
       grid-template-columns: minmax(320px, 1fr) minmax(0, 0.95fr);
   }
   
   .pov-text {
       width: 100%;
       max-width: 660px;
   }
   
   .pov-text--role {
       max-width: 650px;
   }
   
   .pov-heading {
       margin: 0 0 30px;
       color: var(--pov-color-heading);
       font-size: clamp(3.35rem, 2.2rem + 1.9vw, 5.25rem);
       line-height: 1.01;
       font-weight: 800;
       letter-spacing: -0.045em;
   }
   
   .pov-paragraph {
       margin: 0;
       color: var(--pov-color-body);
       font-size: clamp(1.42rem, 1.12rem + 0.68vw, 1.88rem);
       line-height: 2.02;
       font-weight: 400;
   }
   
   .pov-paragraph--role {
       max-width: 700px;
       font-size: clamp(1.44rem, 1.12rem + 0.68vw, 1.92rem);
       line-height: 2.04;
   }
   
   .pov-media {
       position: relative;
       overflow: hidden;
       border-radius: var(--pov-radius-xl);
       box-shadow: var(--pov-shadow-soft);
       background: #e9edf2;
       margin: 0;
   }
   
   .pov-media img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       display: block;
   }
   
   .pov-media--portrait {
       aspect-ratio: 0.98 / 1;
   }
   
   .pov-media--landscape {
       aspect-ratio: 1.22 / 1;
   }
   
   /* ==========================================================================
      Large Desktop refinement
      ========================================================================== */
   
   @media (min-width: 1440px) {
       .pov-grid--inside {
           grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
       }
   
       .pov-grid--role {
           grid-template-columns: minmax(420px, 1fr) minmax(0, 0.92fr);
       }
   }
   
   /* ==========================================================================
      Tablet
      ========================================================================== */
   
   @media (max-width: 1199.98px) {
       .pov-container {
           width: min(calc(100% - 36px), 1100px);
       }
   
       .pov-hero {
           min-height: clamp(500px, 72vh, 760px);
           background-position: center 40%;
       }
   
       .pov-hero__content {
           width: min(100%, 760px);
           padding-top: 104px;
           padding-bottom: 74px;
       }
   
       .pov-grid--inside {
           grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
       }
   
       .pov-grid--role {
           grid-template-columns: minmax(300px, 1fr) minmax(0, 0.92fr);
       }
   
       .pov-text {
           max-width: 100%;
       }
   }
   
   /* ==========================================================================
      Mobile / Tablet stacked
      ========================================================================== */
   
   @media (max-width: 991.98px) {
       .pov-page {
           --pov-section-space: clamp(56px, 10vw, 84px);
       }
   
       .pov-container {
           width: min(calc(100% - 32px), 900px);
       }
   
       .pov-hero {
           min-height: clamp(460px, 72vh, 680px);
           background-position: center center;
       }
   
       .pov-hero__overlay {
           background:
               linear-gradient(180deg, rgba(8, 11, 16, 0.04) 0%, rgba(8, 11, 16, 0.08) 22%, rgba(8, 11, 16, 0.16) 100%);
       }
   
       .pov-hero__content {
           width: 100%;
           max-width: 720px;
           padding-top: 92px;
           padding-bottom: 52px;
       }
   
       .pov-hero__title {
        max-width: 10ch;
        white-space: normal;
       }
   
       .pov-grid--inside,
       .pov-grid--role {
           grid-template-columns: 1fr;
           gap: 28px;
       }
   
       .pov-grid--inside .pov-text {
           order: 1;
       }
   
       .pov-grid--inside .pov-media {
           order: 2;
       }
   
       .pov-grid--role .pov-media {
           order: 1;
       }
   
       .pov-grid--role .pov-text {
           order: 2;
       }
   
       .pov-media--portrait,
       .pov-media--landscape {
           aspect-ratio: 1.18 / 1;
       }
   
       .pov-text,
       .pov-text--role {
           max-width: none;
       }
   }
   
   /* ==========================================================================
      Mobile
      ========================================================================== */
   
   @media (max-width: 767.98px) {
       .pov-container {
           width: min(calc(100% - 28px), 720px);
       }
   
       .pov-hero {
           min-height: clamp(420px, 74vh, 560px);
           background-position: 60% center;
       }
   
       .pov-hero__content {
           padding-top: 80px;
           padding-bottom: 40px;
       }
   
       .pov-eyebrow {
           margin-bottom: 12px;
           font-size: 12px;
       }
   
       .pov-hero__title {
           margin-bottom: 16px;
           font-size: clamp(2.9rem, 8.8vw, 4.3rem);
           line-height: 1;
       }
   
       .pov-hero__description {
           font-size: 1.24rem;
           line-height: 1.92;
           max-width: none;
       }
   
       .pov-section--inside::before,
       .pov-section--role::before {
           background-size: 16px 16px;
           opacity: 0.42;
       }
       
       /* =========================================================
   Mobile: Show Our Role text above role image
   ========================================================= */
        
        @media (max-width: 991.98px) {
        
            .pov-section--role .pov-grid--role {
                display: grid !important;
                grid-template-columns: 1fr !important;
            }
        
            .pov-section--role .pov-text--role {
                order: 1 !important;
            }
        
            .pov-section--role .pov-media--landscape {
                order: 2 !important;
            }
        }
   
       .pov-heading {
           margin-bottom: 20px;
           font-size: clamp(2.45rem, 7.8vw, 3.35rem);
           line-height: 1.05;
       }
   
       .pov-paragraph {
           font-size: 1.24rem;
           line-height: 1.96;
       }
   
       .pov-media {
           border-radius: 16px;
       }
   
       .pov-media--portrait,
       .pov-media--landscape {
           aspect-ratio: 1.08 / 1;
       }
   }
   
   /* ==========================================================================
      Small Mobile
      ========================================================================== */
   
   @media (max-width: 575.98px) {
       .pov-container {
           width: calc(100% - 24px);
       }
   
       .pov-page {
           --pov-section-space: 52px;
       }
   
       .pov-hero {
           min-height: 390px;
           background-position: 62% center;
       }
   
       .pov-hero__content {
           padding-top: 70px;
           padding-bottom: 30px;
       }
   
       .pov-eyebrow {
           font-size: 11px;
           letter-spacing: 0.07em;
       }
   
       .pov-hero__title {
           font-size: 2.7rem;
           max-width: 100%;
       }
   
       .pov-hero__description {
           font-size: 1.16rem;
           line-height: 1.9;
       }
   
       .pov-heading {
           font-size: 2.25rem;
           margin-bottom: 18px;
       }
   
       .pov-paragraph {
           font-size: 1.16rem;
           line-height: 1.92;
       }
   
       .pov-grid {
           gap: 22px;
       }
   
       .pov-media--portrait,
       .pov-media--landscape {
           aspect-ratio: 1 / 1;
       }
   }
   
   /* ==========================================================================
      RTL Support
      ========================================================================== */
   
   html[dir="rtl"] .pov-hero__content,
   html[dir="rtl"] .pov-text {
       text-align: right;
   }
   
   
   /*code in what-we-do.blade.php*/
   /* ==========================================================================
   Anchor offset for sticky header
   ========================================================================== */
    
    .pov-anchor {
        scroll-margin-top: 140px;
    }
    
    @media (max-width: 991.98px) {
        .pov-anchor {
            scroll-margin-top: 110px;
        }
    }
    /*end code in what-we-do.blade.php*/
        /*code class="pov-hero--fullscreen" in all project pages*/
    /* ==========================================================================
   Hero Full Screen Mode - No Zoom, Full Width/Height
   ========================================================================== */

.pov-hero.pov-hero--fullscreen {
    position: relative !important;
    min-height: calc(100vh - 68px) !important;
    height: calc(100vh - 68px) !important;
    aspect-ratio: auto !important;
    background-size: 100% 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;

    background-color: #0f1720 !important;
    background-image: var(--pov-hero-image) !important;
     background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* إلغاء أي صورة ثانية أو تأثير قديم */
.pov-hero.pov-hero--fullscreen::before {
    display: none !important;
    content: none !important;
}

.pov-hero.pov-hero--fullscreen .pov-hero__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.00) 100%
    );
}

.pov-hero.pov-hero--fullscreen .pov-hero__content {
    position: relative !important;
    z-index: 1 !important;
    width: min(100%, 1180px) !important;
    padding-top: 0 !important;
    padding-bottom: clamp(58px, 6vw, 92px) !important;
    color: #ffffff !important;
}

/* شاشات كبيرة 27 و 32 */
@media (min-width: 1600px) {
    .pov-hero.pov-hero--fullscreen {
        min-height: calc(100vh - 68px) !important;
        height: calc(100vh - 68px) !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* لابتوب / تابلت */
@media (max-width: 1199.98px) {
    .pov-hero.pov-hero--fullscreen {
        min-height: calc(100vh - 68px) !important;
        height: calc(100vh - 68px) !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .pov-hero.pov-hero--fullscreen .pov-hero__title {
        white-space: normal !important;
        max-width: 12ch !important;
    }
}

/* آيباد */
@media (max-width: 991.98px) {
    .pov-hero.pov-hero--fullscreen {
        min-height: calc(100vh - 68px) !important;
        height: calc(100vh - 68px) !important;
        background-position: center center !important;
    }
}

/* جوال */
@media (max-width: 767.98px) {
    .pov-hero.pov-hero--fullscreen {
        min-height: calc(100vh - 68px) !important;
        height: calc(100vh - 68px) !important;
        background-position: center center !important;
    }

    .pov-hero.pov-hero--fullscreen .pov-hero__content {
        padding-bottom: 38px !important;
    }
}

/* جوال صغير */
@media (max-width: 575.98px) {
    .pov-hero.pov-hero--fullscreen {
        min-height: calc(100vh - 68px) !important;
        height: calc(100vh - 68px) !important;
        background-position: center center !important;
    }

    .pov-hero.pov-hero--fullscreen .pov-hero__content {
        padding-bottom: 28px !important;
    }
}
    /*code class="pov-hero--fullscreen" in all project pages*/
    
/*code class="pov-hero--fullscreen" in all project pages*/
 
 
.project-full-image-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f1720;
}

/* Desktop + Laptop فقط */
@media (min-width: 768px) {
    .project-full-image-hero {
        height: calc(100svh - 68px);
        min-height: calc(100svh - 68px);
    }

    .project-full-image-hero__img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .project-full-image-hero__content {
        position: absolute !important;
        left: clamp(70px, 6vw, 180px) !important;
        right: auto !important;
        bottom: 0 !important;
        z-index: 2 !important;

        width: min(1200px, calc(100% - 140px)) !important;
        max-width: 1200px !important;
        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;

        text-align: left !important;
        padding-bottom: clamp(120px, 10vh, 180px) !important;
        color: #ffffff !important;
    }
}

/* Overlay */
.project-full-image-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.74) 0%,
        rgba(0, 0, 0, 0.40) 42%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

/* Title */
.project-full-image-hero__title {
    margin: 0 0 24px 0;
    color: #ffffff;
    font-size: clamp(3.8rem, 5vw, 6.8rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.055em;
    text-align: left;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.project-full-image-hero__title span {
    display: inline-flex;
    margin-left: 14px;
    color: #ffffff;
    font-size: clamp(1rem, 0.85vw, 1.25rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* eyebrow */
.project-full-image-hero__title span.project-hero-eyebrow-red {
    color: #d62927 !important;
}

/* Description */
.project-full-image-hero__description {
    margin: 0;
    max-width: 1150px;
    color: #ffffff;
    font-size: clamp(1.35rem, 1.15vw, 2rem);
    line-height: 1.8;
    font-weight: 400;
    text-align: left;
    align-self: flex-start;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

/* 27 inch / 32 inch / 4K */
@media (min-width: 1600px) {
    .project-full-image-hero__content {
        left: clamp(90px, 6vw, 220px) !important;
        width: min(1350px, calc(100% - 180px)) !important;
        max-width: 1350px !important;
        padding-bottom: clamp(150px, 11vh, 230px) !important;
    }

    .project-full-image-hero__title {
        font-size: clamp(5rem, 4.4vw, 7.8rem) !important;
    }

    .project-full-image-hero__description {
       font-size: clamp(2.6rem, 1.35vw, 3.4rem) !important;
        max-width: 1600px !important;
        line-height: 1.6 !important;
    }
}

/* 32 4K */
@media (min-width: 2200px) {
    .project-full-image-hero__content {
        left: clamp(120px, 7vw, 280px) !important;
        width: min(1500px, calc(100% - 240px)) !important;
        max-width: 1500px !important;
        padding-bottom: clamp(190px, 12vh, 280px) !important;
    }

    .project-full-image-hero__description {
        max-width: 1450px !important;
         font-size: clamp(1.7rem, 1.1vw, 2.35rem) !important;
    }
}

/* Laptop */
@media (max-width: 1199.98px) and (min-width: 768px) {
    .project-full-image-hero {
        height: calc(100svh - 76px);
        min-height: calc(100svh - 76px);
    }

    .project-full-image-hero__content {
        left: 40px !important;
        width: min(calc(100% - 72px), 1100px) !important;
        padding-bottom: 90px !important;
    }

    .project-full-image-hero__title {
        font-size: clamp(3.2rem, 5vw, 5rem);
        max-width: 13ch;
    }

    .project-full-image-hero__title span {
        display: block;
        margin-left: 0;
        margin-top: 12px;
    }

    .project-full-image-hero__description {
        max-width: 900px;
        font-size: 1.35rem;
        line-height: 1.75;
    }
}

 
 /* =========================================================
   Mobile Hero Full Screen - No Black Text Background
   ========================================================= */

@media (max-width: 767.98px) {

    .project-full-image-hero {
        position: relative !important;
        width: 100% !important;
        height: calc(100svh - 76px) !important;
        min-height: calc(100svh - 76px) !important;
        overflow: hidden !important;
        background: #0f1720 !important;
    }

    .project-full-image-hero__img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .project-full-image-hero__overlay {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.34) 45%,
            rgba(0, 0, 0, 0.04) 100%
        ) !important;
        pointer-events: none !important;
    }

    .project-full-image-hero__content {
        position: absolute !important;
        left: 18px !important;
        right: 18px !important;
        bottom: 34px !important;
        top: auto !important;
        z-index: 2 !important;

        width: auto !important;
        max-width: none !important;

        padding: 0 !important;
        margin: 0 !important;

        background: transparent !important; /* حذف الخلفية السوداء */
        color: #ffffff !important;
        text-align: left !important;
    }

    .project-full-image-hero__title {
        margin: 0 0 12px 0 !important;
        color: #ffffff !important;
        font-size: clamp(2.2rem, 8.5vw, 3.4rem) !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: -0.05em !important;
        max-width: 100% !important;
        text-align: left !important;
    }

    .project-full-image-hero__title span {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 8px !important;
        color: #ffffff !important;
        font-size: 0.85rem !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
    }

    .project-full-image-hero__description {
        margin: 0 !important;
        max-width: 100% !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        line-height: 1.65 !important;
        font-weight: 500 !important;
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .project-full-image-hero {
        height: calc(100svh - 72px) !important;
        min-height: calc(100svh - 72px) !important;
    }

    .project-full-image-hero__content {
        left: 16px !important;
        right: 16px !important;
        bottom: 28px !important;
    }

    .project-full-image-hero__title {
        font-size: 2.25rem !important;
    }

    .project-full-image-hero__description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}
/*end code class="pov-hero--fullscreen" in all project pages*/
    