/* ===================================
   General Styles
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #043F5F;
    font-size: 18px;
    line-height: 28px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Make document direction follow html[dir] / JS lang classes */
html[dir="rtl"] body,
body.dir-rtl {
    direction: rtl;
}

html[dir="ltr"] body,
body.dir-ltr {
    direction: ltr;
}

/* ===================================
   Preloader (cinematic split)
=================================== */
body.preloader-active {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.site-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* panels provide the navy background */
    display: grid;
    place-items: center;
    z-index: 5000;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.site-preloader__inner {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 24px;
    transform: translateZ(0);
}

.site-preloader__logo {
    width: min(240px, 62vw);
    height: auto;
    opacity: 0;
    transform: scale(0.985);
    filter: none;
    will-change: transform, opacity;
    animation: preloaderLogoIn 780ms cubic-bezier(0.22, 1, 0.36, 1) 140ms forwards;
}

.site-preloader__line {
    width: min(160px, 46vw);
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    position: relative;
}

.site-preloader__line::before {
    content: '';
    position: absolute;
    inset: 0;
    inset-inline-end: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.7) 100%);
    transform: none;
    will-change: width;
    animation: preloaderLine 1200ms cubic-bezier(0.22, 1, 0.36, 1) 220ms infinite;
}

/* Panels & streak */
.site-preloader__panels {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.site-preloader__panel {
    position: absolute;
    inset-inline-end: 0;
    width: 100%;
    height: 50%;
    background: #064873;
    will-change: transform;
    transform: translateZ(0);
}

.site-preloader__panel--top {
    top: 0;
    transform-origin: center bottom;
}

.site-preloader__panel--bottom {
    bottom: 0;
    transform-origin: center top;
}

.site-preloader__streak {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 2px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.85) 55%, transparent 100%);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.8);
    opacity: 0;
    will-change: width, opacity, transform;
}

/* Simple (non-home) preloader variant: solid navy + fade */
.site-preloader--simple {
    background: #064873;
    opacity: 1;
    visibility: visible;
    transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 520ms;
}

.site-preloader--simple .site-preloader__panels,
.site-preloader--simple .site-preloader__streak {
    display: none;
}

/* Split state: triggered by JS */
.site-preloader--split .site-preloader__panel--top,
.site-preloader--split .site-preloader__panel--bottom {
    transition: transform 960ms cubic-bezier(0.19, 1, 0.22, 1);
}

.site-preloader--split .site-preloader__panel--top {
    transform: translateY(-100%);
}

.site-preloader--split .site-preloader__panel--bottom {
    transform: translateY(100%);
}

.site-preloader--streak .site-preloader__streak {
    animation: preloaderStreak 480ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.site-preloader--split .site-preloader__inner {
    transition: opacity 480ms ease-out, transform 480ms ease-out;
    opacity: 0;
    transform: translateY(-8px);
}

/* Fully done state */
.site-preloader--done {
    opacity: 0;
    visibility: hidden;
}

@keyframes preloaderLogoIn {
    0% {
        opacity: 0;
        transform: scale(0.985);
    }

    55% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes preloaderLine {
    0% {
        width: 0;
    }

    60% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}

@keyframes preloaderStreak {
    0% {
        width: 0;
        opacity: 0;
    }

    25% {
        width: 40vw;
        opacity: 1;
    }

    65% {
        width: 70vw;
        opacity: 1;
    }

    100% {
        width: 90vw;
        opacity: 0;
        transform: translate(-50%, -50%) scaleY(1.5);
    }
}

@media (prefers-reduced-motion: reduce) {

    .site-preloader,
    .site-preloader__logo,
    .site-preloader__line::before,
    .site-preloader__streak,
    .site-preloader__panel {
        animation: none !important;
        transition: none !important;
    }

    .site-preloader__logo {
        opacity: 1;
        transform: none;
    }
}

a {
    color: #2A6EBB;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #064873;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #064873;
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 52px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    line-height: 40px;
}

h3 {
    font-size: 30px;
    line-height: 36px;
    color: #646363;
}

p {
    color: #043F5F;
    margin-bottom: 1rem;
    font-weight: 300;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Header Styles
=================================== */
.header {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-bar {
    background: #064873;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.topbar-text {
    color: #fff;
    display: inline-block;
    margin-bottom: 5px;
}

.header-language a,
.social-icons a {
    color: #fff;
    margin: 0 5px;
    font-size: 14px;
    display: inline-block;
}

.header-divider {
    color: #fff;
    margin: 0 10px;
    display: inline-block;
}

.social-icons a:hover {
    color: #2A6EBB;
}

.header-wrapper {
    background: transparent;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.header .logo-img {
    filter: none;
    background: transparent;
}

.footer-section .logo-img {
    filter: brightness(0) invert(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-tools ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.header-tools a {
    color: #fff;
    font-size: 20px;
}

.header-tools a:hover {
    color: #2A6EBB;
}

.close-icon {
    color: #fff;
    cursor: pointer;
}

.close-icon:hover {
    color: #2A6EBB;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 0 !important;
    position: relative;
}

.nav-link:hover {
    color: #2A6EBB !important;
}

.dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    color: #043F5F;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2A6EBB;
}

.search-top {
    display: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.search-top.active {
    display: block;
}

.search-top form {
    display: flex;
    gap: 10px;
}

.search-top input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.search-btn {
    background: #2A6EBB;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.navbar-toggler {
    border: none;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggler span {
    width: 25px;
    height: 3px;
    background: #fff;
    display: block;
}

/* ===================================
   Hero Banner Styles
=================================== */
.hero-banner-sec {
    position: relative;
    margin-top: 120px;
    height: 600px;
    overflow: hidden;
}

.herobanner-top {
    height: 100%;
}

.swiper-slide {
    position: relative;
}

.herobanner-img {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.herobanner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herobanner-img::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.herobanner-content {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
}

/* Services Slider (Hero) Animations */
.herobanner-top .swiper-slide {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.herobanner-content-inner {
    color: #fff;
    max-width: 600px;
}

.herobanner-top .swiper-slide .herobanner-content-inner {
    transition: transform 850ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateY(40px);
}

.herobanner-top .swiper-slide.swiper-slide-prev .herobanner-content-inner {
    transform: translateY(-40px);
}

.herobanner-top .swiper-slide.swiper-slide-active .herobanner-content-inner {
    transform: translateY(0);
}

.herobanner-top .swiper-slide.swiper-slide-next .herobanner-content-inner {
    transform: translateY(40px);
}

.herobanner-content-inner h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
}

.herobanner-content-inner h2 {
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.herobanner-cta {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #2A6EBB 0%, #064873 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 110, 187, 0.3);
}

.btn-outline-light {
    border: 2px solid #fff;
    padding: 10px 30px;
    border-radius: 5px;
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: #064873;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #2A6EBB;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.herobanner-thumb-container {
    background: #064873;
    padding: 20px 0;
}

.herobanner-thumb-content {
    text-align: center;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.herobanner-thumb-content:hover {
    background: rgba(255, 255, 255, 0.1);
}

.herobanner-thumb-icon {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.herobanner-thumb-text {
    font-size: 14px;
}

/* ===================================
   Section Styles
=================================== */
.section-title-area {
    margin-bottom: 30px;
}

.section-sub-title {
    color: #2A6EBB;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-heading-title {
    color: #064873;
    font-size: 36px;
    margin-bottom: 20px;
}

.section-primary-content {
    color: #043F5F;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.more-link {
    color: #2A6EBB;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #064873;
    gap: 12px;
}

.more-link.with-icon::after {
    content: '←';
    font-size: 18px;
}

/* ===================================
   About Us Section
=================================== */
.who-we-are-area {
    padding: 80px 0;
    background: #fff;
}

/* Make About Us typography balanced and aligned */
.who-we-are-area .section-heading-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.who-we-are-area .section-primary-content {
    font-size: 18px;
    line-height: 1.8;
    max-width: 640px;
    margin-top: 4px;
}

.latest-news-box-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.latest-news-box-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.latest-news-box-image:hover img {
    transform: scale(1.05);
}

/* ===================================
   Growth and Strength Section
=================================== */
.growthandstregth-sec {
    background: linear-gradient(135deg, #064873 0%, #2A6EBB 100%);
    color: #fff;
    padding: 80px 0;
}

.growthandstregth-sec .section-sub-title,
.growthandstregth-sec .section-heading-title {
    color: #fff;
}

.growthandstregth-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.growthandstregth-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.growthandstregth-icons img {
    width: 60px;
    height: 60px;
}

.counter-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin: 20px 0;
}

.counter-number span {
    font-size: 48px;
}

.growthandstregth-item p {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

/* ===================================
   Projects Portfolio Section
=================================== */
.project-portfolio-area {
    padding: 80px 0;
    background: #f8f9fa;
}

.project-portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-portfolio-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px 20px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-portfolio-item:hover .project-overlay {
    transform: translateY(0);
}

.project-location {
    font-size: 14px;
    color: #2A6EBB;
    margin-bottom: 10px;
}

.project-title {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

/* ===================================
   Core Values Section
=================================== */
.core-values-section {
    padding: 80px 0;
    background: #fff;
}

.static-title {
    font-size: 32px;
    color: #064873;
    margin-bottom: 30px;
}

.core-values-swiper {
    height: 400px;
}

.core-values-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
    text-align: center;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.core-values-item h3 {
    color: #064873;
    margin-bottom: 15px;
}

.core-values-item p {
    color: #043F5F;
    line-height: 1.6;
}

/* ===================================
   Vision 2030 Section
=================================== */
.saudi-vision-area {
    background: linear-gradient(135deg, #064873 0%, #2A6EBB 100%);
    color: #fff;
    padding: 80px 0;
}

.saudi-vision-area .section-sub-title,
.saudi-vision-area .section-heading-title,
.saudi-vision-area .section-primary-content {
    color: #fff;
}

.vision-logo {
    text-align: center;
}

.vision-logo img {
    max-width: 200px;
}

/* ===================================
   Latest News Section
=================================== */
.latest-news-section {
    padding: 80px 0;
    background: #fff;
}

.latest-news-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.latest-news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.latest-news-box-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.latest-news-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-news-box:hover .latest-news-box-image img {
    transform: scale(1.1);
}

.date-of-post {
    position: absolute;
    bottom: 15px;
    inset-inline-start: 15px;
    background: #2A6EBB;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.latest-news-content-area {
    padding: 25px;
}

.latest-news-title {
    color: #064873;
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.latest-news-content-area p {
    color: #646363;
    margin-bottom: 15px;
}

/* ===================================
   Footer Styles
=================================== */
.footer-area {
    background: #064873;
    color: #fff;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section .logo-img {
    filter: brightness(0) invert(1);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    margin-bottom: 10px;
    color: #fff;
}

.contact-details a {
    color: #fff;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #2A6EBB;
}

/* Prevent contact info from wrapping to multiple lines */
.contact-details li.phone {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    /* Allow flex items to shrink below their content size */
}

.contact-details li.phone a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

/* Ensure parent containers don't force wrapping */
.contact-details {
    min-width: 0;
    /* Allow flex items to shrink */
}

/* Responsive adjustments for very small screens */
@media (max-width: 576px) {
    .contact-details li.phone a {
        font-size: 0.9em;
        /* Slightly smaller font on mobile */
    }
}

.footsocial {
    display: flex;
    gap: 15px;
}

.footsocial a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footsocial a:hover {
    background: #2A6EBB;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #043F5F;
}

.copyright-text {
    color: #fff;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2A6EBB;
}

/* ===================================
   Scroll to Top Button
=================================== */
.scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    width: 50px;
    height: 50px;
    background: #2A6EBB;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scrollToTopBtn.active {
    opacity: 1;
    visibility: visible;
}

.scrollToTopBtn:hover {
    background: #064873;
    transform: translateY(-5px);
}

/* ===================================
   Responsive Styles
=================================== */
@media (max-width: 991.98px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .hero-banner-sec {
        height: 500px;
        margin-top: 100px;
    }

    .herobanner-content-inner h1 {
        font-size: 32px;
    }

    .herobanner-content-inner h2 {
        font-size: 18px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .top-bar .text-end {
        text-align: center !important;
    }
    
    .top-bar .col-md-6 {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    .header {
        position: sticky;
        top: 0;
    }

    .hero-banner-sec {
        margin-top: 0;
        height: 560px;
    }

    .herobanner-content-inner h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .herobanner-content-inner h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .herobanner-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .herobanner-cta .btn {
        width: 100%;
        text-align: center;
    }

    .section-heading-title {
        font-size: 24px;
    }

    .section-primary-content {
        font-size: 16px;
    }

    .counter-number {
        font-size: 36px;
    }
    
    .project-img {
        height: 200px;
    }
    
    .who-we-are-area {
        padding: 40px 0;
    }
    
    .growthandstregth-sec {
        padding: 40px 0;
    }
    
    .project-portfolio-area {
        padding: 40px 0;
    }
    
    .core-values-section {
        padding: 40px 0;
    }
    
    .saudi-vision-area {
        padding: 40px 0;
    }
    
    .latest-news-section {
        padding: 40px 0;
    }
}

/* ===================================
   Internal Pages (Projects/News/Jobs/Contact)
=================================== */
.page-main {
    padding-top: 120px;
    background: #fff;
    min-height: 70vh;
}

.page-hero {
    padding: 48px 0 22px;
    background: linear-gradient(135deg, rgba(6, 72, 115, 0.08) 0%, rgba(42, 110, 187, 0.06) 100%);
    border-bottom: 1px solid rgba(6, 72, 115, 0.08);
}

.page-title {
    font-size: clamp(28px, 3.2vw, 44px);
    margin-bottom: 10px;
    color: #064873;
}

.page-subtitle {
    margin: 0;
    color: #043F5F;
    font-weight: 300;
    max-width: 72ch;
}

/* Ensure hero titles & subtitles are consistently centered (services, etc.) */
.page-hero__inner {
    text-align: center;
}

.page-hero__inner .page-title,
.page-hero__inner .page-subtitle {
    margin-left: auto;
    margin-right: auto;
}

html[dir="rtl"] .page-hero__inner .page-title,
html[dir="rtl"] .page-hero__inner .page-subtitle,
html[dir="ltr"] .page-hero__inner .page-title,
html[dir="ltr"] .page-hero__inner .page-subtitle {
    text-align: center;
}

.page-section {
    padding: 48px 0 72px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card-grid--news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(6, 72, 115, 0.08);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

/* Projects page card entrance animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform, box-shadow;
}

.project-card.is-visible {
    animation: projectCardIn 720ms cubic-bezier(0.20, 0.9, 0.22, 1) forwards;
}

@keyframes projectCardIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        box-shadow: 0 0 0 rgba(42, 110, 187, 0);
    }

    45% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(42, 110, 187, 0.0), 0 0 32px rgba(42, 110, 187, 0.35);
    }

    70% {
        box-shadow: 0 0 0 rgba(42, 110, 187, 0.0), 0 0 18px rgba(42, 110, 187, 0.18);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.card-media {
    display: block;
    position: relative;
    overflow: hidden;
    background: rgba(6, 72, 115, 0.06);
}

.card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-item:hover .card-media img {
    transform: scale(1.05);
}

.card-body {
    padding: 18px 18px 20px;
}

.card-kicker {
    color: rgba(4, 63, 95, 0.78);
    font-size: 14px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #064873;
}

.card-text {
    margin: 0 0 14px;
    color: #043F5F;
    font-size: 16px;
    line-height: 1.8;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 6px;
    color: rgba(4, 63, 95, 0.92);
    font-size: 15px;
}

.meta-label {
    color: rgba(4, 63, 95, 0.7);
    margin-inline-end: 6px;
}

.card-cta {
    border-radius: 999px;
    padding-inline: 18px;
}

.form-layout {
    display: grid;
    justify-items: center;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 22px;
    align-items: stretch;
}

.form-card,
.info-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(6, 72, 115, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.form-title {
    margin: 0 0 14px;
    font-size: 22px;
    color: #064873;
}

.form-success {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #064873;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-size: 14px;
    color: rgba(4, 63, 95, 0.92);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(6, 72, 115, 0.18);
    border-radius: 10px;
    padding: 12px 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(42, 110, 187, 0.7);
    box-shadow: 0 0 0 4px rgba(42, 110, 187, 0.15);
}

.field-hint {
    margin: 8px 0 0;
    color: rgba(4, 63, 95, 0.72);
    font-size: 13px;
}

.field-error {
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
}

.form-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 10px;
    color: #043F5F;
}

.info-label {
    color: rgba(4, 63, 95, 0.72);
    margin-inline-end: 6px;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.map-placeholder__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-placeholder__inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder__inner i {
    font-size: 32px;
    margin-bottom: 10px;
}

.map-placeholder__inner p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 12px;
}

.map-placeholder__inner .btn-outline-light {
    border-width: 1px;
}

@media (max-width: 991.98px) {
    .page-main {
        padding-top: 140px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid--news {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .page-main {
        padding-top: 0;
    }

    .card-grid,
    .card-grid--news {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-media img {
        height: 200px;
    }
}


/* Project Card Highlight for Deep Linking */
.project-card.project-highlight {
    border: 2px solid #2A6EBB !important;
    background-color: #f7fbff !important;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(42, 110, 187, 0.15) !important;
    transition: all 0.5s ease-in-out;
    z-index: 10;
    position: relative;
}

.project-card {
    transition: all 0.3s ease-in-out;
}

/* Project Details List Alignment */
.project-details-panel p {
    margin-bottom: 0.75rem !important;
}

.project-details-list {
    padding-inline-start: 1.5rem !important;
    list-style-position: outside;
}

.project-details-list li {
    margin-bottom: 0.5rem;
}


/* Prevent expanded cards from stretching other row items */
.card-grid {
    align-items: start !important;
}

.card-grid .card-item {
    height: max-content;
}

/* =========================================
   LTR (English) Adjustments
========================================= */

html[dir="ltr"] {
    --bs-font-sans-serif: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-family: var(--bs-font-sans-serif);
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] .btn,
html[dir="ltr"] .nav-link {
    font-family: var(--bs-font-sans-serif);
}

html[dir="ltr"] .ms-auto {
    margin-right: auto !important;
    margin-left: initial !important;
}

html[dir="ltr"] .me-auto {
    margin-left: auto !important;
    margin-right: initial !important;
}

/* Adjust absolute positioning where needed based on direction */
html[dir="ltr"] .more-link.with-icon i {
    transform: rotate(180deg);
}

html[dir="ltr"] .header-divider {
    margin: 0 10px;
}

/* Meta list spacing fixes for LTR */
html[dir="ltr"] .meta-label {
    margin-inline-end: 6px;
    margin-inline-start: 0;
}

/* =========================================
   Global Nav / Text Alignment Fixes for LTR
========================================= */

html[dir="ltr"] .text-end {
    text-align: right !important;
    /* Bootstrap .text-end is right in LTR */
}

html[dir="ltr"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

html[dir="ltr"] .footer-area .text-end {
    text-align: right !important;
}

html[dir="ltr"] .card-title,
html[dir="ltr"] .card-text,
html[dir="ltr"] h3,
html[dir="ltr"] p,
html[dir="ltr"] .form-label,
html[dir="ltr"] ul,
html[dir="ltr"] li {
    text-align: left;
}

html[dir="ltr"] .dropdown-menu {
    text-align: left;
}

html[dir="ltr"] .dropdown-item {
    text-align: left;
}

/* Fix direction icons like back/forward or dropdown carets */
html[dir="ltr"] .dropdown-toggle::after {
    margin-left: .255em;
    margin-right: 0;
}

/* Override logical if bootstrap forced physical */
html[dir="ltr"] .pe-3 {
    padding-right: 1rem !important;
}

html[dir="ltr"] .ps-3 {
    padding-left: 1rem !important;
}

html[dir="ltr"] .me-2 {
    margin-right: 0.5rem !important;
}

html[dir="ltr"] .ms-2 {
    margin-left: 0.5rem !important;
}

/* =========================================
   Language Toggle Button Styling
========================================= */
.language-switcher {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-width: 45px;
    text-align: center;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.language-switcher:active {
    transform: translateY(0);
}

.language-switcher:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Language switcher in header tools */
.header-tools .language-icon a {
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.header-tools .language-icon a:hover {
    color: #2A6EBB;
}

/* RTL/LTR specific adjustments for language button */
html[dir="rtl"] .language-switcher {
    margin-left: 8px;
}

html[dir="ltr"] .language-switcher {
    margin-right: 8px;
}

/* Smooth direction transition */
html,
body {
    transition: direction 0.3s ease;
}

/* Ensure proper text direction for all elements */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Fix for Bootstrap grid in RTL */
[dir="rtl"] .row {
    direction: rtl;
}

[dir="ltr"] .row {
    direction: ltr;
}

/* Ensure proper alignment for form elements */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

[dir="ltr"] input,
[dir="ltr"] textarea,
[dir="ltr"] select {
    text-align: left;
}

/* Fix for more-link arrow direction */
[dir="rtl"] .more-link.with-icon::after {
    content: '←';
}

[dir="ltr"] .more-link.with-icon::after {
    content: '→';
}

/* ===================================
   Values Media Container Hover Video
=================================== */
.value-media-container {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.value-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* ===================================
   Why Choose Us Media Hover Video
=================================== */
.why-choose-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.why-choose-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* ===================================
   Features Media Hover Video
=================================== */
.features-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.features-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
 / *   P r o j e c t   S w i p e r   S t y l e s   * / 
 . p r o j e c t - s w i p e r   { 
         p o s i t i o n :   r e l a t i v e ; 
         w i d t h :   1 0 0 % ; 
         a s p e c t - r a t i o :   3   /   2 ; 
         o v e r f l o w :   h i d d e n ; 
         b a c k g r o u n d :   # f 0 f 0 f 0 ; 
         b o r d e r - r a d i u s :   1 0 p x   1 0 p x   0   0 ; 
 } 
 . p r o j e c t - s w i p e r   . s w i p e r - s l i d e   i m g   { 
         w i d t h :   1 0 0 % ; 
         h e i g h t :   1 0 0 % ; 
         o b j e c t - f i t :   c o v e r ; 
 } 
 . p r o j e c t - s w i p e r   . s w i p e r - b u t t o n - n e x t , 
 . p r o j e c t - s w i p e r   . s w i p e r - b u t t o n - p r e v   { 
         c o l o r :   # f f f ; 
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 3 ) ; 
         w i d t h :   3 2 p x ; 
         h e i g h t :   3 2 p x ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         t r a n s i t i o n :   b a c k g r o u n d   0 . 3 s ; 
 } 
 . p r o j e c t - s w i p e r   . s w i p e r - b u t t o n - n e x t : : a f t e r , 
 . p r o j e c t - s w i p e r   . s w i p e r - b u t t o n - p r e v : : a f t e r   { 
         f o n t - s i z e :   1 4 p x ; 
 } 
 . p r o j e c t - s w i p e r   . s w i p e r - b u t t o n - n e x t : h o v e r , 
 . p r o j e c t - s w i p e r   . s w i p e r - b u t t o n - p r e v : h o v e r   { 
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 7 ) ; 
 } 
 . p r o j e c t - s w i p e r   . s w i p e r - p a g i n a t i o n - b u l l e t   { 
         b a c k g r o u n d :   # f f f ; 
         o p a c i t y :   0 . 6 ; 
 } 
 . p r o j e c t - s w i p e r   . s w i p e r - p a g i n a t i o n - b u l l e t - a c t i v e   { 
         b a c k g r o u n d :   # 2 A 6 E B B ; 
         o p a c i t y :   1 ; 
 } 
 
 /* --- Floating Video Popup --- */
.video-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-popup-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.home-video-popup {
    position: fixed;
    bottom: -300px;
    right: 30px;
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    overflow: hidden;
}

.home-video-popup.show-popup {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

.home-video-popup.expanded {
    top: 50%;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%);
    width: 85vw;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.video-popup-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#homeVideoPlayer {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-popup-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0;
}

.home-video-popup:hover .video-popup-btn {
    opacity: 1;
}

.video-popup-btn:hover {
    background: #2A6EBB;
}

.btn-close-video {
    top: 10px;
    right: 10px;
}

.btn-expand-video {
    top: 10px;
    left: 10px;
}

.btn-mute-video {
    bottom: 10px;
    right: 10px;
}

/* Expanded state button adjustments */
.home-video-popup.expanded .btn-close-video,
.home-video-popup.expanded .btn-expand-video,
.home-video-popup.expanded .btn-mute-video {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

.home-video-popup.expanded .btn-close-video {
    top: 20px;
    right: 20px;
}

.home-video-popup.expanded .btn-expand-video {
    top: 20px;
    left: 20px;
}

.home-video-popup.expanded .btn-mute-video {
    bottom: 20px;
    right: 20px;
}

/* Handle RTL logic */
body.dir-rtl .home-video-popup:not(.expanded) {
    right: auto;
    left: 30px;
}

body.dir-rtl .btn-close-video {
    right: auto;
    left: 10px;
}

body.dir-rtl .btn-expand-video {
    left: auto;
    right: 10px;
}

body.dir-rtl .btn-mute-video {
    right: auto;
    left: 10px;
}

/* Expanded state RTL adjustments */
body.dir-rtl .home-video-popup.expanded .btn-close-video {
    right: auto;
    left: 20px;
}

body.dir-rtl .home-video-popup.expanded .btn-expand-video {
    left: auto;
    right: 20px;
}

body.dir-rtl .home-video-popup.expanded .btn-mute-video {
    right: auto;
    left: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .home-video-popup {
        width: 220px;
        right: 20px;
        bottom: -220px;
    }

    body.dir-rtl .home-video-popup:not(.expanded) {
        left: 20px;
    }

    .home-video-popup.show-popup {
        bottom: 20px;
    }

    .home-video-popup.expanded {
        width: 95vw;
        border-radius: 12px;
    }

    .video-popup-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .home-video-popup.expanded .btn-close-video,
    .home-video-popup.expanded .btn-expand-video,
    .home-video-popup.expanded .btn-mute-video {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn-close-video {
        top: 8px;
        right: 8px;
    }

    .btn-expand-video {
        top: 8px;
        left: 8px;
    }

    .btn-mute-video {
        bottom: 8px;
        right: 8px;
    }
}
