﻿@font-face {
    font-family: 'Almarai';
    src: url('/fonts/almarai/Almarai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Almarai';
    src: url('/fonts/almarai/Almarai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.fa, .fas {
    font-size: 29px !important;
    margin-left: 6px;
}

.paragraph-unified {
    text-align: justify;
    line-height: 1.6;
}
/********** Background styling **********/

/* Page background gradient #07192b   #083a57 */
/* Customize these variables to change the gradient colors and direction */
:root {
    --page-bg-start: #010306; /*  Page background start #Flixable */
    --page-bg-end: #0F1A27; /* Page background end #Flixable */
    --page-bg-angle: 152deg; /* gradient angle */
    --page-fade-color: rgba(9,30,62,0.65); /* optional overlay tint */
    --page-text-contrast: #ffffff; /* default page text color for contrast */
}

/* Body gradient background and safe defaults */
html, body {
    height: 100%;
}

body {
    /*background: linear-gradient(var(--page-bg-angle), var(--page-bg-start), var(--page-bg-end));*/
    background: linear-gradient(140deg, rgb(175 175 175 / 78%) 0%, rgb(231 229 229 / 58%) 38%, rgb(12 12 12 / 28%) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-attachment: fixed; /* subtle parallax; remove if not desired */
}

    /* Optional soft fade overlay on top of gradient to deepen edges */
    body::after {
        content: "";
        pointer-events: none;
        position: fixed;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.10), transparent 20%, transparent 80%, rgba(0,0,0,0.10));
        z-index: 0;
    }

/* Make sure main page containers are transparent so gradient shows through.
   Avoid changing elements you rely on being white (cards, modals, etc.).
   If you want some sections to remain white, remove them from the selector. */
.container, .container-fluid, main, header, footer {
    background-color: transparent !important;
}

/* Keep high-contrast text for components where necessary 
.navbar, .navbar .nav-link, .navbar-brand, .footer, .section-title, h1, h2, h3, h4, h5, h6 {
    color: var(--page-text-contrast) !important;
}*/

/* Small responsive adjustments */
@media (max-width: 767.98px) {
    body::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent 12%, transparent 88%, rgba(0,0,0,0.12));
    }
}

html,
body,
button,
input,
textarea,
select,
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'Almarai', sans-serif !important;
}

/********** Template CSS **********/
:root {
    --primary: #2a2a43; /* For Active Navigationbar button + short lines + diamond shapes + mid color on btn hover #Flixable */
    --secondary: #072978; /* Active Navigation link #Flixable  */
    --iconsBackground: #94989c1a;
    --light: #efefef;
    --dark: #142942; /* For active Navi btns after scroll #Flixable */
    --bs-primary-rgb: rgb(71, 217, 161);
    --bs-body-font-family: 'Almarai', sans-serif !important;
    --bs-font-sans-serif: 'Almarai', sans-serif !important;
    /* New variables mapped to existing fixed colors (do not change values) */
    --color-page-bg-start: #010306;
    --color-page-bg-end: #0F1A27;
    --color-body-alt-start: #959595;
    --color-body-alt-end: #c8dae5;
    --color-spinner-bg-image: url('/landingpage/logo/Asset 5.svg'); /* used by spinner */

    --color-btn-primary-bg: #263449;
    --color-btn-border: #ffffff;
    --color-bg-primary: #263449;
    --color-bg-dark: #0F1A27;
    --color-bg-light: rgb(255 255 255);
    --color-white: #ffffff;
    --color-dark-text: #0b1620; /* used for button hover text contrast (derived) */

    --color-muted-border: rgba(255,255,255,0.06);
    --color-card-shadow-rgba: rgba(2,6,12,0.35);
}

.btn-primary {
    color: #FFFFFF;
    background-color: var(--color-btn-primary-bg);
    border-color: var(--color-btn-border);
}

.btn-primary {
    --bs-btn-hover-bg: var(--color-btn-primary-bg) !important; /* for buttons on hover */
    --bs-btn-hover-border-color: var(--color-btn-border) !important; /* for buttons on hover */
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: var(--color-bg-primary) !important; /* was #94989c1a */
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: var(--color-bg-dark) !important; /* was #0F1A27 */
}

.footer-color {
    /*background-color: #262b21;*/ /* Footer background */
}

.spinner {
    width: 60px;
    height: 60px;
    background: var(--color-spinner-bg-image) center no-repeat;
    background-size: contain;
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: flip-logo 1.2s linear infinite;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: var(--color-bg-light) !important; /* was rgb(255 255 255) */
}

@keyframes flip-logo {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }

    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }

    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }

    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }

    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

    #spinner.show {
        transition: opacity .5s ease-out, visibility 0s linear 0s;
        visibility: visible;
        opacity: 1;
    }


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Almarai', sans-serif !important;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

    .btn-primary:hover {
        box-shadow: inset 0 0 0 0 var(--primary);
    }

    .btn-secondary:hover {
        box-shadow: inset 0 0 0 0 var(--secondary);
    }

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Almarai', sans-serif !important;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.navbar {
    align-items: center;
    background-color: #9b9c986b;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: var(--color-white);
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.nav-link.active {
    /*color: #000000 !important;*/
    font-size: 23px !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

        .navbar-dark .navbar-nav .nav-link,
        .navbar-dark .navbar-nav .nav-link.show,
        .sticky-top.navbar-dark .navbar-nav .nav-link {
            padding: 10px 0;
            color: var(--dark);
        }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

/* Keep nav links centered and avoid ms/me surprises in RTL */
.navbar-nav.mx-auto {
    display: flex;
    gap: 0.75rem; /* spacing between links */
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

/* Small tweak for language chips so they visually match other nav-buttons */
.navbar .nav-link.lang {
    padding: .35rem .6rem;
    border-radius: .25rem;
}

/* Ensure the right-side controls don't wrap under medium screens */
@media (min-width: 992px) {
    .navbar .collapse .d-flex.ms-auto {
        flex: 0 0 auto;
    }
}

/* On small screens keep center nav full-width stacked under the toggler */
@media (max-width: 991.98px) {
    .navbar-nav.mx-auto {
        width: 100%;
        justify-content: center;
    }

    .navbar .d-flex.ms-auto {
        margin-top: .5rem;
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


.side-icon-size {
    width: 100px;
    height: 68px;
}
/*** Section Title ***/
.section-title.section-title-withoutLine::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.section-title-withoutLine.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-withoutLine.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    width: 29px;
    height: 42px;
    bottom: 0px;
    background-image: url('/landingpage/img/car-icon.png');
    background-repeat: round;
    /*background: #64656e;*/
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 45px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}

/* RTL fixes for section-title underline alignment and animations */
[dir="rtl"] .section-title::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .section-title.section-title-sm::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .section-title.text-center::before {
    right: 50%;
    left: auto;
    margin-right: -75px;
}

/* ::after small animated marker - mirror for RTL */
[dir="rtl"] .section-title::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .section-title.text-center::after {
    right: 50%;
    left: auto;
}

/* Mirrored keyframes for RTL so the animated marker moves correctly */
@keyframes section-title-run-rtl {
    0% {
        right: 0;
    }

    50% {
        right: 145px;
    }

    100% {
        right: 0;
    }
}

@keyframes section-title-run-center-rtl {
    0% {
        right: 50%;
        margin-right: -75px;
    }

    50% {
        right: 50%;
        margin-right: 45px;
    }

    100% {
        right: 50%;
        margin-right: -75px;
    }
}

@keyframes section-title-run-sm-rtl {
    0% {
        right: 0;
    }

    50% {
        right: 85px;
    }

    100% {
        right: 0;
    }
}

/* Apply mirrored animations in RTL */
[dir="rtl"] .section-title::after {
    animation-name: section-title-run-rtl;
}

[dir="rtl"] .section-title.text-center::after {
    animation-name: section-title-run-center-rtl;
}

[dir="rtl"] .section-title.section-title-sm::after {
    animation-name: section-title-run-sm-rtl;
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

    .service-item .service-icon {
        margin-bottom: 30px;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--iconsBackground);
        border-radius: 2px;
        transform: rotate(-45deg);
    }

        .service-item .service-icon i {
            transform: rotate(45deg);
        }

    .service-item a.btn {
        position: absolute;
        width: 60px;
        bottom: -48px;
        left: 50%;
        margin-left: -30px;
        opacity: 0;
    }

    .service-item:hover a.btn {
        bottom: -5px;
        opacity: 1;
    }

    /* Add these rules (append near service styles). They make the card use the background image,
   add a dark overlay for readability and keep icon/text visible. */

    .service-item.bg-image {
        position: relative;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 300px; /* adjust to desired card height */
        color: #fff; /* text on image */
        overflow: visible;
        transition: transform .35s ease, box-shadow .35s ease;
    }

        /* dark overlay to improve contrast */
        .service-item.bg-image::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(rgb(255 255 255 / 20%), rgb(0 33 84 / 20%));
            z-index: 0;
        }

        /* ensure inner content sits above overlay */
        .service-item.bg-image > * {
            position: relative;
            z-index: 1;
        }

    /* icon background appearance */
    .service-item .service-icon {
        width: 72px;
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: var(--iconsBackground);
        margin-bottom: 16px;
        transition: background .25s ease, transform .25s ease;
    }

    /* small lift on hover */
    .service-item.bg-image:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }

    /* make the arrow button more visible on image */
    .service-item .btn.btn-lg {
        background-color: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.15);
        color: #fff;
    }


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .service-item.bg-image {
        min-height: 260px;
    }
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

    .testimonial-carousel .owl-dot.active {
        width: 30px;
        background: var(--primary);
    }

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

    .team-social a.btn {
        position: relative;
        margin: 0 3px;
        margin-top: 100px;
        opacity: 0;
    }

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

    .team-item:hover .team-social {
        background: rgba(9, 30, 62, .7);
    }

        .team-item:hover .team-social a.btn:first-child {
            opacity: 1;
            margin-top: 0;
            transition: .3s 0s;
        }

        .team-item:hover .team-social a.btn:nth-child(2) {
            opacity: 1;
            margin-top: 0;
            transition: .3s .05s;
        }

        .team-item:hover .team-social a.btn:nth-child(3) {
            opacity: 1;
            margin-top: 0;
            transition: .3s .1s;
        }

        .team-item:hover .team-social a.btn:nth-child(4) {
            opacity: 1;
            margin-top: 0;
            transition: .3s .15s;
        }

.team-item .team-img img,
.blog-item .blog-img img {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.about-header {
    /*background-image: linear-gradient(rgb(255 255 255 / 42%), rgb(0 0 0 / 52%)), url(../img/about-header.jpg);*/
    background-image: url(../img/about-header.jpg);
}


.projects-header {
    /*background-image: linear-gradient(rgb(255 255 255 / 42%), rgb(0 0 0 / 52%)), url(../img/Projects-header.jpg);*/
    background-image: url(../img/Projects-header.jpg);
    background-position: center 19% !important;
}

.contact-header {
    /*background-image: linear-gradient(rgb(255 255 255 / 27%), rgb(0 0 0 / 0%)), url(../img/vehicles-cover.jpg);*/
    background-image: url(../img/vehicles-cover.jpg);
}

.careers-header {
    /*background-image: linear-gradient(rgb(255 255 255 / 42%), rgb(0 0 0 / 52%)), url(../img/jobs-header.jpg);*/
    background-image: url(../img/jobs-header.jpg);
}

.bg-header {
    min-height: 368px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 63%;
}

@media (max-width: 768px) {
    .bg-header {
        min-height: 280px;
        background-position: 60% center;
    }
}

.bg-header .navbar {
    background: rgba(9, 30, 62, 0.85);
}


.link-animated a {
    transition: .5s;
}

    .link-animated a:hover {
        padding-left: 10px;
    }

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Footer-slim styling (append near footer rules) */
.footer-line {
    color: var(--dark);
}

.footer-slim {
    background-color: #0b1720; /* fallback dark */
    color: #ffffff;
    z-index: 10;
}

    .footer-slim .footer-logo {
        height: 44px;
        width: auto;
        display: block;
    }

    /* Footer links */
    .footer-slim .footer-links a {
        color: var(--dark);
        text-decoration: none;
        font-weight: 600;
        padding: 6px 8px;
        transition: color .15s ease, transform .15s ease;
    }

        .footer-slim .footer-links a:hover {
            color: var(--bs-primary);
            transform: translateY(-2px);
        }

    /* Email link */
    .footer-slim .email-link {
        color: var(--dark);
        text-decoration: none;
        font-weight: 600;
    }

        .footer-slim .email-link i {
            font-size: 1.05rem;
        }

    /* Social buttons (small squares) */
    .footer-slim .btn-square {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    /* Divider color lighter */
    .footer-slim hr {
        border-color: rgba(255,255,255,0.06);
    }

/* Responsive: stack elements on small screens */
@media (max-width: 767.98px) {
    .footer-slim .footer-links {
        gap: .5rem;
    }

    .footer-slim .email-link span {
        display: none;
    }
}

.footer-line {
    padding: 20px 0;
}

@media (max-width: 575.98px) {
    .footer-line > div {
        flex-direction: column;
        gap: 15px;
    }

    .footer-line .text-end {
        text-align: center !important;
    }
}

/* Force nav link color when navbar becomes sticky (higher specificity + fallback) */
.navbar.sticky-top,
.navbar.sticky-top.shadow-sm {
    background: #dbdbdbf2; /*Sticky Navigation bar #Flixable */
    transition: background .25s ease, box-shadow .25s ease;
}

    /* Ensure links turn dark on sticky state */
    .navbar.sticky-top .nav-link,
    .navbar.sticky-top .nav-link:focus,
    .navbar.sticky-top .nav-link:hover {
        color: var(--dark) !important; /* use your project dark variable */
    }

.nav-link {
    color: #ededed !important;
}

/* Ensure brand/title color when sticky (keeps already existing behavior) */
.navbar.sticky-top .navbar-brand h1,
.navbar.sticky-top .navbar-brand {
    color: var(--primary) !important;
}

/* If language buttons use .lang, ensure they also switch */
.navbar.sticky-top .nav-link.lang {
    color: var(--dark) !important;
}

/* Small tweak: icon color inside nav (if any) */
.navbar.sticky-top .fa,
.navbar.sticky-top .bi {
    color: var(--dark) !important;
}

/* ==========================================================
   Home Hero
   ========================================================== */

.bg-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(36rem, 100svh, 52rem);
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center 26%;
    background-size: cover;
}

.hero-video {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
@media (max-width: 575.98px) {
    .hero-video {
        object-position: 70% center;
    }
}

    .bg-hero::before {
        position: absolute;
        z-index: -1;
        inset: 0;
        content: "";
       /* background: linear-gradient(17deg, rgb(189 189 189 / 78%) 0%, rgb(255 255 255 / 8%) 38%, rgb(115 116 116 / 12%) 100%);*/
    }

/* Left-side text placement */
.hero-content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    padding-top: clamp(9rem, 19vh, 13rem);
    padding-right: 50%;
    padding-bottom: 4rem;
    padding-left: clamp(2rem, 1vw, 8rem);
}

/* No centered card; text sits over the logo area */
.hero-copy {
    max-width: 620px;
    padding: 1.5rem 1.75rem;
    text-align: left;
    background-color: #0000003d;
}

/* Heading */
.hero-title {
    margin: 0 0 14rem;
    text-align: center;
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: -20px 14px 11px rgb(78 78 78 / 70%);
}

/* Description */
.hero-sub {
    max-width: 590px;
    text-align: justify;
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    line-height: 1.9;
}

@media (max-width: 991.98px) {
    .bg-hero {
        min-height: clamp(34rem, 82svh, 46rem);
        background-position: 58% center;
    }

    .hero-content {
        padding-top: clamp(8rem, 16vh, 10rem);
        padding-right: 45%;
        padding-left: 3rem;
    }

    .hero-copy {
        max-width: 560px;
        padding: 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .hero-sub {
        font-size: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .bg-hero {
        min-height: 39rem;
        /* Moves the actual image slightly LEFT */
        background-position: 70% center;
    }

    .hero-content {
        display: block;
        width: 100%;
        min-height: 39rem;
        padding: 7rem 1rem 2rem;
        box-sizing: border-box;
    }

    .hero-copy {
        width: 100%;
        max-width: none;
        padding: 1rem 0.75rem;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-title,
    .hero-sub {
        width: 100%;
        max-width: none;
    }

    .hero-title {
        margin-bottom: 1rem;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.3;
    }

    .hero-sub {
        margin: 0;
        font-size: 1rem;
        line-height: 1.8;
    }
}

html[dir="rtl"] .hero-content {
    padding-right: clamp(2rem, 7vw, 8rem);
    padding-right: 59%;
}

html[dir="rtl"] .hero-copy {
    text-align: right;
}

/* Force Hero text area to use the full Hero width */
.bg-hero,
.hero-content,
.hero-copy {
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: none;
}

/* Phone layout */
@media (max-width: 575.98px) {
    .hero-content {
        display: block;
        width: 100%;
        max-width: none;
        min-height: 39rem;
        /* Override any desktop left/right 50% padding */
        padding: 7rem 1rem 2rem !important;
    }

    .hero-copy {
        display: block;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 1rem 0.75rem;
        box-sizing: border-box;
    }

    .hero-title,
    .hero-sub {
        width: 100%;
        max-width: none;
    }
}

/* ------- --------------- -------- */
/* ------- AboutPage ------------- */
/* ------- -------------- -------- */

.aboutImg {
    background: linear-gradient(rgb(229 229 229 / 37%) 0%, rgb(50 50 50 / 41%) 55%), url(/landingpage/img/SCAI_Building.jpg);
    background-position: 73% 49%;
}

.letter-spacing {
    letter-spacing: 1px;
}

.title-divider {
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.about-content-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: #ffffffc7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(9, 30, 62, 0.08);
    transition: all 0.3s ease;
}

    .about-content-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(9, 30, 62, 0.14);
    }

    .about-content-card h4 {
        color: var(--dark);
        font-weight: 700;
    }

    .about-content-card p {
        color: #35383e;
        line-height: 1.9;
        font-size: 1rem;
    }

.about-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: var(--iconsBackground);
    border-radius: 12px;
    font-size: 22px;
}

html[dir="rtl"] .about-content-card {
    text-align: right;
}

@media (max-width: 576px) {
    .about-content-card {
        gap: 18px;
        padding: 22px;
    }

    .about-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* ------- --------------- -------- */
/* ------- VisionPage -------- */
/* ------- -------------- -------- */

.vision-card {
    position: relative;
    overflow: hidden;
    padding-top: 45px;
}

.vision-card-number {
    position: absolute;
    top: 12px;
    right: 20px;
    color: rgba(6, 163, 218, 0.15);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

html[dir="rtl"] .vision-card-number {
    right: auto;
    left: 20px;
}

.vision-card .about-icon {
    background: linear-gradient(135deg, var(--primary), #0b7fb5);
}

.vision-card:hover .about-icon {
    background: var(--secondary);
}

/* ------------------------------------------------------ */
/* ----------------BusinessPage-------------------------- */
/* ------------------------------------------------------ */

.business-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-position: center 63%;
    background-size: cover;
    background-repeat: no-repeat;
}

html[dir="rtl"] .business-passenger-cars {
    background-image: url('/landingpage/img/car-1-left.jpg');
}
html[dir="ltr"] .business-passenger-cars {
    background-image: url('/landingpage/img/car-1.jpg');
}

html[dir="rtl"] .business-commercial-vehicles {
    background-image: url('/landingpage/img/commercial-1-left.jpg');
}
html[dir="ltr"] .business-commercial-vehicles {
    background-image: url('/landingpage/img/commercial-1.jpg');
}

html[dir="rtl"] .business-buses-trucks {
    background-image: url('/landingpage/img/Bus-Truck-4-left.jpg');
}
html[dir="ltr"] .business-buses-trucks {
    background-image: url('/landingpage/img/Bus-Truck-4.jpg');
}

.business-infrastructure {
    background-image: url('/landingpage/img/Infra-2.jpg');
    background-position: center 1% !important;
}

.business-research-development {
    background-image: url('/landingpage/img/Research-Development-2.jpg');
}

.business-dealerships {
    background-image: url('/landingpage/img/Dealership.jpg');
}

.business-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(356deg, rgb(179 179 179 / 32%) 0%, rgb(44 44 44 / 38%) 55%, rgb(0 0 0 / 82%) 100%);*/
}

.business-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    color: #ffffff;
    background: var(--iconsBackground);
    border-radius: 14px;
    font-size: 30px;
}

.business-label {
    letter-spacing: 1.5px;
}

.business-hero-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.business-description-card {
    align-items: center;
}

.business-description {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 2;
}

.business-feature-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(9, 30, 62, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(9, 30, 62, 0.06);
    transition: 0.3s ease;
}

    .business-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(9, 30, 62, 0.12);
    }

    .business-feature-card i {
        font-size: 30px;
    }

    .business-feature-card h5 {
        color: var(--dark);
        font-weight: 700;
    }

    .business-feature-card p {
        color: #6b7280;
        line-height: 1.8;
    }

.business-selector-card {
    position: sticky;
    top: 110px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(9, 30, 62, 0.10);
}

.business-selector-link {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px 16px;
    color: var(--dark);
    background: var(--light);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

    .business-selector-link i {
        width: 20px;
        color: var(--primary);
        text-align: center;
    }

    .business-selector-link:hover,
    .business-selector-link.active {
        color: #ffffff;
        background: var(--primary);
    }

        .business-selector-link:hover i,
        .business-selector-link.active i {
            color: #ffffff;
        }

html[dir="rtl"] .business-hero,
html[dir="rtl"] .business-description-card,
html[dir="rtl"] .business-feature-card,
html[dir="rtl"] .business-selector-card {
    text-align: right;
}

@media (max-width: 991.98px) {
    .business-hero {
        min-height: 420px;
    }

    .business-selector-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .business-hero {
        min-height: 360px;
    }

        .business-hero h1 {
            font-size: 2.2rem;
        }
}

/* ------------------------------------------------------ */
/* ----------------ProjectsPage-------------------------- */
/* ------------------------------------------------------ */
.projects-intro {
    max-width: 720px;
    color: #6b7280;
    line-height: 1.9;
}

.project-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(9, 30, 62, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(9, 30, 62, 0.07);
    transition: all 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 38px rgba(9, 30, 62, 0.14);
    }

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-category {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 14px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
}

html[dir="rtl"] .project-category {
    right: 18px;
    left: auto;
}

.project-content {
    padding: 28px;
}

    .project-content h4 {
        margin-bottom: 14px;
        color: var(--dark);
        font-weight: 700;
    }

    .project-content p {
        min-height: 78px;
        margin-bottom: 22px;
        color: #6b7280;
        line-height: 1.8;
    }

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .project-link:hover {
        color: var(--dark);
        gap: 5px;
    }

html[dir="rtl"] .project-link i {
    transform: rotate(180deg);
    margin-right: 0.5rem;
    margin-left: 0 !important;
}

@media (max-width: 576px) {
    .project-image-wrapper {
        height: 210px;
    }

    .project-content {
        padding: 22px;
    }
}

/* ------------------------------------------------------ */
/* -------------------CareerPAge------------------------ */
/* ---------------------------------------------------- */

.career-intro {
    max-width: 760px;
    color: #6b7280;
    line-height: 1.9;
}

.career-text {
    color: #6b7280;
    line-height: 1.9;
}

.career-image-wrapper {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(9, 30, 62, 0.14);
}

.career-image {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.career-image-wrapper:hover .career-image {
    transform: scale(1.05);
}

.career-content-card {
    padding: 35px;
    background: #f7fafc;
    border: 1px solid rgba(9, 30, 62, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(9, 30, 62, 0.07);
    transition: all 0.3s ease;
}

    .career-content-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(9, 30, 62, 0.13);
    }

    .career-content-card h3 {
        margin: 20px 0 14px;
        color: var(--dark);
        font-weight: 700;
    }

    .career-content-card p {
        color: #6b7280;
        line-height: 1.85;
    }

.career-provide-card {
    background: #f7fafc;
}

.career-card-icon,
.career-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    color: #ffffff;
    background: var(--iconsBackground);
    border-radius: 14px;
    font-size: 25px;
}

.career-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

    .career-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
        color: #5f6b7a;
        line-height: 1.6;
    }

        .career-list li i {
            flex-shrink: 0;
            margin-top: 4px;
            color: var(--secondary);
        }

.career-cta {
    padding: 55px 30px;
    color: #ffffff;
    background: linear-gradient( rgba(9, 30, 62, 0.90), rgba(9, 30, 62, 0.90) ), url('/landingpage/img/imag6.jpg') no-repeat;
    background-size: cover;
}

.career-cta-icon {
    margin: 0 auto 22px;
    background: var(--iconsBackground);
}

.career-cta h2 {
    color: #ffffff;
    font-weight: 700;
}

.career-cta p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.career-email {
    color: rgba(255, 255, 255, 0.75);
    direction: ltr;
    unicode-bidi: plaintext;
}

html[dir="rtl"] .career-content-card,
html[dir="rtl"] .career-cta {
    text-align: right;
}

/*html[dir="rtl"] .career-list li {
    flex-direction: row-reverse;
    justify-content: flex-end;
}*/

html[dir="rtl"] .career-list li i {
    margin-right: 0;
    margin-left: 10px;
}

.only-ltr {
    display: none;
}

html[dir="ltr"] .only-ltr {
    display: block;
}

.only-rtl {
    display: none;
}

html[dir="rtl"] .only-rtl {
    display: block;
}

@media (max-width: 767.98px) {
    .career-image {
        height: 280px;
    }

    .career-content-card {
        padding: 26px;
    }

    .career-cta {
        padding: 40px 22px;
    }
}


/* ================================ Careers removable styling block ============================*/

.career-vacancies-section {
    padding: 96px 0;
    background: #f7fafc;
}

.career-vacancies-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.career-vacancies-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1597c3;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.career-vacancies-heading h2 {
    margin-bottom: 12px;
    color: #0a1e3b;
}

.career-vacancies-heading p {
    margin: 0;
    color: #5a687b;
}

.career-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.career-category-button {
    border: 1px solid #d9e1ea;
    border-radius: 999px;
    padding: 10px 18px;
    background: #fff;
    color: #0a1e3b;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

    .career-category-button:hover,
    .career-category-button.is-active {
        border-color: #0a1e3b;
        background: #0a1e3b;
        color: #fff;
    }

.career-jobs-list {
    display: grid;
    gap: 16px;
}

.career-job-card {
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    background: #fff;
    transition: opacity .2s ease;
}

.career-job-summary {
    padding: 24px;
}

.career-job-title {
    margin: 0 0 12px;
    color: #0a1e3b;
    font-size: 1.2rem;
}

.career-job-meta,
.career-job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: .9rem;
}

    .career-job-meta span:not(:last-child)::after {
        margin-inline-start: 16px;
        color: #c0c9d5;
        content: "|";
    }

.career-job-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b5f90;
    font-weight: 700;
    cursor: pointer;
}

.career-job-expand-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #e5f4fa;
    font-size: 1.1rem;
    line-height: 1;
}

.career-job-details {
    padding: 0 24px 28px;
    border-top: 1px solid #e8edf3;
}

.career-job-details-meta {
    margin: 22px 0;
}

.career-job-detail-block {
    margin-top: 22px;
}

    .career-job-detail-block h4 {
        margin: 0 0 8px;
        color: #0a1e3b;
        font-size: 1rem;
    }

    .career-job-detail-block p {
        margin: 0;
        color: #4b5a6c;
        line-height: 1.8;
    }

.career-job-multiline {
    white-space: pre-line;
}

.career-job-closing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e8edf3;
}

    .career-job-closing p {
        max-width: 680px;
        margin: 0;
        color: #4b5a6c;
    }

.career-job-apply-button {
    display: inline-block;
    border-radius: 6px;
    padding: 11px 18px;
    background: #0a1e3b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

    .career-job-apply-button:hover {
        background: #0b5f90;
        color: #fff;
    }

.career-no-jobs {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

@media (max-width: 576px) {
    .career-vacancies-section {
        padding: 64px 0;
    }

    .career-job-summary,
    .career-job-details {
        padding-inline: 18px;
    }
}

/* Reusable: fades an image softly on every edge */
.image-soft-fade {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-mask-image: radial-gradient( ellipse 80% 80% at center, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0.92) 60%, rgba(0, 0, 0, 0.58) 78%, rgba(0, 0, 0, 0) 100% );
    mask-image: radial-gradient( ellipse 80% 80% at center, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0.92) 60%, rgba(0, 0, 0, 0.58) 78%, rgba(0, 0, 0, 0) 100% );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* ========================================================= */
/* =================== Cards animation ===================== */
/* ========================================================= */

/* Initial animation state */
.business-content,
.business-image {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text fades in upward from below */
.business-content {
    transform: translateY(70px);
}

/* Image enters from the nearest outer edge */
.business-image-right {
    transform: translateX(200px);
}

.business-image-left {
    transform: translateX(-200px);
}

/* Activated when the section enters the viewport */
.business-section.is-visible .business-content,
.business-section.is-visible .business-image {
    opacity: 1;
    transform: translate(0, 0);
}

/* Small delay for a more elegant sequence */
.business-section.is-visible .business-content {
    transition-delay: 0.18s;
}

/* Mobile: images come from above, text from below */
@media (max-width: 991.98px) {
    .business-image-right,
    .business-image-left {
        transform: translateY(60px);
    }

    .business-section.is-visible .business-image-right,
    .business-section.is-visible .business-image-left {
        transform: translateY(0);
    }

    .business-content {
        margin-top: 1.5rem;
    }
}

/* Accessibility: disable movement for users who request reduced motion */
@media (prefers-reduced-motion: reduce) {
    .business-content,
    .business-image {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* ==========================================================
   About – Our Direction
   ========================================================== */

.direction-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    border: 1px solid rgba(9, 30, 62, 0.09);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(9, 30, 62, 0.08);
}

    .direction-card::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 6px;
        content: "";
        background: var(--primary);
    }

.direction-icon {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(9, 30, 62, 0.18);
    font-size: 30px;
}

.direction-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.direction-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.direction-title {
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 700;
}

.direction-text {
    color: #5f6b7a;
    font-size: 1.05rem;
    line-height: 1.95;
}

/* Arabic / RTL */
html[dir="rtl"] .direction-card {
    flex-direction: row-reverse;
}

    html[dir="rtl"] .direction-card::before {
        right: 0;
        left: auto;
    }

html[dir="rtl"] .direction-content {
    text-align: right;
}

html[dir="rtl"] .direction-label {
    letter-spacing: 0;
}

/* Mobile */
@media (max-width: 575.98px) {
    .direction-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }

    .direction-icon {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
        font-size: 25px;
    }

    .direction-content,
    html[dir="rtl"] .direction-content {
        text-align: center;
    }

    .direction-title {
        margin-bottom: 14px;
        font-size: 1.7rem;
    }

    .direction-text {
        font-size: 1rem;
        line-height: 1.85;
    }
}

/* ==========================================================
   Projects – Details Modal
   ========================================================== */

.project-details-trigger {
    padding: 0;
    border: 0;
    background: transparent;
}

.project-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(9, 30, 62, 0.25);
}

.project-modal-image-wrapper {
    position: relative;
    height: clamp(220px, 35vw, 360px);
    overflow: hidden;
    background: var(--dark);
}

    .project-modal-image-wrapper::after {
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient( to bottom, rgba(9, 30, 62, 0.02) 35%, rgba(9, 30, 62, 0.36) 100% );
    }

.project-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 10px;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
}

.project-modal-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.project-modal-category {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.project-modal-title {
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 700;
}

.project-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(9, 30, 62, 0.09);
    border-bottom: 1px solid rgba(9, 30, 62, 0.09);
}

.project-meta-item {
    display: flex;
    flex: 1 1 220px;
    align-items: center;
    gap: 13px;
}

    .project-meta-item i {
        display: flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: var(--primary);
        background: rgba(9, 30, 62, 0.07);
        border-radius: 12px;
        font-size: 18px;
    }

    .project-meta-item span {
        display: block;
        margin-bottom: 3px;
        color: #7a8490;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .project-meta-item strong {
        display: block;
        color: var(--dark);
        font-size: 0.96rem;
    }

.project-modal-description {
    padding: 22px;
    color: #5f6b7a;
    background: var(--light);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.9;
}

html[dir="rtl"] .project-modal-close {
    right: auto;
    left: 18px;
}

html[dir="rtl"] .project-meta-item {
    flex-direction: row-reverse;
    text-align: right;
}

@media (max-width: 575.98px) {
    .project-modal-image-wrapper {
        height: 220px;
    }

    .project-modal-body {
        padding: 24px 20px;
    }

    .project-modal-meta {
        gap: 14px;
    }

    .project-modal-description {
        padding: 18px;
    }
}

/* Vision icons – responsive consistent sizing and alignment
   Append this near the end of the file (after existing vision / icon rules).
   Does not change markup; uses more specific selectors to override prior rules.
*/

/* Variable for icon sizing (easy to tweak) */
:root {
    --vision-icon-size-min: 20px;
    --vision-icon-size-preferred: 2.4vw;
    --vision-icon-size-max: 28px;
}

/* Square icon container used in markup (.side-icon-size) */
.side-icon-size {
    width: clamp(48px, 6.5vw, 72px);
    height: clamp(48px, 6.5vw, 72px);
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex: 0 0 auto;
    box-shadow: none;
    /* keep existing bg-primary color applied by markup */
}

    /* Force icons inside these boxes to a stable size and remove left margin */
    .side-icon-size .fa,
    .side-icon-size .fas,
    .side-icon-size .bi {
        font-size: clamp(var(--vision-icon-size-min), var(--vision-icon-size-preferred), var(--vision-icon-size-max)) !important;
        line-height: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: inline-block;
    }

    /* Ensure the icon color is white for contrast */
    .side-icon-size .fa,
    .side-icon-size .fas,
    .side-icon-size .bi {
        color: #ffffff !important;
    }

/* Space between icon box and text when layout is horizontal */
.d-flex.flex-column.flex-sm-row.align-items-center > .side-icon-size + .text-center,
.d-flex.flex-column.flex-sm-row.align-items-center > .side-icon-size + .text-sm-start {
    margin-left: 1rem;
}

/* Reduce that margin for medium screens */
@media (max-width: 991.98px) {
    .d-flex.flex-column.flex-sm-row.align-items-center > .side-icon-size + .text-center,
    .d-flex.flex-column.flex-sm-row.align-items-center > .side-icon-size + .text-sm-start {
        margin-left: 0;
    }
}

/* On small screens force textual blocks to center and stack nicely */
@media (max-width: 575.98px) {
    .d-flex.flex-column.flex-sm-row.align-items-center {
        flex-direction: column !important;
        gap: 0.5rem;
        text-align: center;
    }

    .side-icon-size {
        width: 56px;
        height: 56px;
    }

        .side-icon-size .fa,
        .side-icon-size .fas,
        .side-icon-size .bi {
            font-size: 20px !important;
        }

    .text-center.text-sm-start {
        text-align: center !important;
    }

    /* tighten the wrapper margin-bottom for mobile */
    .d-flex.flex-column.flex-sm-row.align-items-center[style] {
        margin-bottom: 1.5rem !important;
    }
}

/* Ensure headings and subtitles align vertically centered next to the icon */
.d-flex.flex-column.flex-sm-row.align-items-center .text-center > h3,
.d-flex.flex-column.flex-sm-row.align-items-center .text-center > h5,
.d-flex.flex-column.flex-sm-row.align-items-center .text-sm-start > h3,
.d-flex.flex-column.flex-sm-row.align-items-center .text-sm-start > h5 {
    margin: 0;
    padding: 0;
}

/* Slight visual polish: ensure icon box has consistent inner spacing */
.side-icon-size i {
    padding: 0;
}

/* If any previous rule still forces different icon sizes, override with specificity */
div.side-icon-size i.fa,
div.side-icon-size i.fas,
div.side-icon-size i.bi {
    font-size: clamp(var(--vision-icon-size-min), var(--vision-icon-size-preferred), var(--vision-icon-size-max)) !important;
}

/* ==========================================================
   Admin – RESX Editor
   ========================================================== */

.resx-editor-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(9, 30, 62, 0.1);
}

.resx-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 470px);
}

    .resx-search-form .form-control {
        min-width: 220px;
    }

.resx-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
}

.resx-editor-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid rgba(9, 30, 62, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(9, 30, 62, 0.06);
}

.resx-editor-table {
    min-width: 950px;
}

    .resx-editor-table thead th {
        padding: 18px;
        color: #ffffff;
        background: var(--dark);
        border: 0;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .resx-editor-table tbody td {
        padding: 16px;
        vertical-align: top;
        border-color: rgba(9, 30, 62, 0.08);
    }

.resx-key-column {
    width: 22%;
}

.resx-english-column,
.resx-arabic-column {
    width: 39%;
}

.resx-key-cell {
    color: var(--dark);
    font-size: 0.87rem;
    overflow-wrap: anywhere;
}

    .resx-key-cell code {
        color: var(--primary);
        font-size: 0.82rem;
    }

.resx-value-input {
    min-height: 105px;
    resize: vertical;
    color: var(--dark);
    border-color: rgba(9, 30, 62, 0.14);
    line-height: 1.7;
}

    .resx-value-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    }

.resx-arabic-input {
    font-family: Arial, Tahoma, sans-serif;
    text-align: right;
}

html[dir="rtl"] .resx-editor-header,
html[dir="rtl"] .resx-editor-actions {
    flex-direction: row-reverse;
}

@media (max-width: 767.98px) {
    .resx-editor-header {
        align-items: stretch;
        flex-direction: column;
    }

    .resx-search-form {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

        .resx-search-form .form-control {
            flex: 1 1 100%;
            width: 100%;
            min-width: 0;
        }

    .resx-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .resx-editor-actions .btn {
            width: 100%;
        }
}
/* ==========================================================
   Admin – Job Editor
   ========================================================== */

.job-editor-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(9, 30, 62, 0.1);
}

.job-editor-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 500px);
}

    .job-editor-search-form .form-control {
        min-width: 240px;
    }

.job-editor-list-card,
.job-editor-form-card {
    height: 100%;
    padding: 25px;
    background: #ffffff;
    border: 1px solid rgba(9, 30, 62, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(9, 30, 62, 0.06);
}

.job-editor-list-header,
.job-editor-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(9, 30, 62, 0.09);
}

.job-editor-list {
    max-height: 950px;
    overflow-y: auto;
}

.job-editor-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 12px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 30, 62, 0.07);
    transition: all 0.2s ease;
}

    .job-editor-list-item:hover,
    .job-editor-list-item.active {
        color: inherit;
        background: rgba(13, 110, 253, 0.06);
        border-radius: 10px;
    }

.job-editor-list-priority {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.job-editor-list-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

    .job-editor-list-content strong {
        overflow: hidden;
        color: var(--dark);
        font-size: 0.92rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .job-editor-list-content span {
        margin-top: 3px;
        overflow: hidden;
        color: #6f7d8a;
        font-size: 0.83rem;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .job-editor-list-content small {
        margin-top: 7px;
        color: #8793a0;
        font-size: 0.75rem;
    }

.job-editor-list-code {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.job-editor-empty {
    padding: 55px 20px;
    color: #82909d;
    text-align: center;
}

    .job-editor-empty i {
        display: block;
        margin-bottom: 15px;
        color: var(--primary);
        font-size: 35px;
    }

.job-editor-form-header {
    align-items: flex-start;
}

.job-editor-divider {
    margin: 40px 0;
    border-color: rgba(9, 30, 62, 0.1);
    opacity: 1;
}

.job-editor-language-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    margin-bottom: 20px;
    color: var(--dark);
    background: rgba(13, 110, 253, 0.07);
    border-radius: 10px;
    font-weight: 700;
}

    .job-editor-language-heading i {
        color: var(--primary);
    }

.job-editor-language-arabic {
    direction: rtl;
    justify-content: flex-start;
    color: var(--dark);
}

.job-editor-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.75;
}

.job-editor-save-bottom {
    display: flex;
    justify-content: flex-end;
    padding-top: 30px;
}

@media (max-width: 1199.98px) {
    .job-editor-list {
        max-height: 450px;
    }
}

@media (max-width: 767.98px) {
    .job-editor-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .job-editor-search-form {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

        .job-editor-search-form .form-control {
            flex: 1 1 100%;
            min-width: 0;
        }

    .job-editor-list-card,
    .job-editor-form-card {
        padding: 20px 16px;
    }

    .job-editor-list-header,
    .job-editor-form-header {
        align-items: stretch;
        flex-direction: column;
    }

        .job-editor-list-header .btn,
        .job-editor-form-header .btn,
        .job-editor-save-bottom .btn {
            width: 100%;
        }

    .job-editor-save-bottom {
        display: block;
    }
}

/* ==========================================================
   Home – Full screen section spacing
   ========================================================== */

.home-section {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100svh;
    padding: 100px 0;
}

/* Vision section requires more vertical room */
.home-vision-section {
    min-height: 100svh;
    padding: 100px 0;
}

/* Prevent the following section title from appearing too early */
.home-business-section {
    min-height: 100svh;
    padding: 120px 0;
}

/* Tablet */
@media (max-width: 991.98px) {
    .home-section {
        min-height: auto;
        padding: 80px 0;
    }

    .home-vision-section,
    .home-business-section {
        min-height: auto;
        padding: 90px 0;
    }
}

/* Phone */
@media (max-width: 575.98px) {
    .home-section {
        min-height: auto;
        padding: 65px 0;
    }

    .home-vision-section,
    .home-business-section {
        padding: 75px 0;
    }
}

.text-highlight {
    background-color: #000000a1;
    width: 100%;
    padding: 16px;
}
/* ==========================================================
   Business – Sticker Card
   ========================================================== */
.service-card {
    position: relative;
    overflow: visible; /* prevents the title from being clipped */
    padding-top: 45px; /* keeps space inside the image for the shifted title */
}

.service-card-title {
    position: relative;
    z-index: 2;
    margin-top: 0;
    transform: translateY(-70px); /* moves title partly above the image */
}

p {
    white-space: pre-line !important;
}