.cookie-policy {
    padding: .9375rem 1.375rem 1.875rem;
    background: #4a4a4a;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0px;
    /*-webkit-animation: d .5s forwards;
    -webkit-animation-delay: 2s;
    animation: d .5s forwards;
    -webkit-animation-delay: 5s;
    animation-delay: 5s;*/
    z-index: 1000;
}

.cookie-policy p {
    color: #FFF;
}

.cookie-policy__wrapper {
    margin-right: 0.9375rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

button.cta__primary {
    width: 95px;
    display: block;
}

.cookie-policy__link {
    color: #ffc108;
}

.cookie-policy__link:hover {
    color: #28a745;
}

@media (min-width: 768px) {
    .cookie-policy {
        padding: 1.25rem 1.375rem;
    }
    .cookie-policy__wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
        flex-direction: row-reverse;
        width: 83.3333333333%;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: start;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .cookie-policy__wrapper {
        width: 66.6666666667%;
    }
}

/* ============================================
   HIDE SPECIFIC UI ELEMENTS (DO NOT DELETE)
   ============================================ */

/* Header Navigation - Hide Our Services and Industrial Solutions menus */
.site-nav-primary > ul > li.has-submenu:nth-of-type(2),
.site-nav-primary > ul > li.has-submenu:nth-of-type(3) {
    display: none !important;
    visibility: hidden !important;
}

/* Header Secondary Nav - Hide Media Center, E-Service, Login, العربية, KSA Vision Logo */
.site-nav-secondary > ul > li.has-submenu:first-of-type,
.site-nav-secondary > ul > li.has-submenu:nth-of-type(2),
.site-nav-secondary > ul > li.has-submenu:nth-of-type(3),
.site-nav-secondary > ul > li > a.btnLanguage,
.site-nav-secondary > ul > li.ksa-vision-logo {
    display: none !important;
    visibility: hidden !important;
}

/* Homepage - Hide News section */
.latest-news-sec {
    display: none !important;
    visibility: hidden !important;
}

/* Homepage - Hide Track Vehicle and Find a Price boxes */
.mlc-serv-sec .mlc-serv-boxes .row > .col-12.col-md-6:first-of-type,
.mlc-serv-sec .mlc-serv-boxes .row > .col-12.col-md-6:nth-of-type(2) {
    display: none !important;
    visibility: hidden !important;
}

/* Footer - Hide specific links */
.site-footer .sf-nav-col:first-child ul li:first-child a[href*="about.php"],
.site-footer .sf-nav-col:first-child ul li:nth-child(2) a[href*="jobs"],
.site-footer .sf-nav-col:nth-child(2) ul li:first-child a[href*="amg.almajdouie.com"],
.site-footer .sf-nav-col:nth-child(2) ul li:nth-child(2) a[href*="news.php"],
.site-footer .sf-nav-col:nth-child(3) ul li:first-child a.btnLanguage,
.site-footer .sf-nav-col:nth-child(3) ul li:nth-child(2) a[href*="terms.php"],
.site-footer .sf-nav-col:nth-child(3) ul li:nth-child(3) a[href*="privacy_policies.php"] {
    display: none !important;
    visibility: hidden !important;
}

/* Alternative approach for footer - hide parent li elements */
.site-footer .sf-nav-col:first-child ul li:first-child,
.site-footer .sf-nav-col:first-child ul li:nth-child(2),
.site-footer .sf-nav-col:nth-child(2) ul li:first-child,
.site-footer .sf-nav-col:nth-child(2) ul li:nth-child(2),
.site-footer .sf-nav-col:nth-child(3) ul li:first-child,
.site-footer .sf-nav-col:nth-child(3) ul li:nth-child(2),
.site-footer .sf-nav-col:nth-child(3) ul li:nth-child(3) {
    display: none !important;
    visibility: hidden !important;
}

/* Make Contact Us link bold and visually prominent in footer */
.site-footer .sf-nav-col:first-child ul li:nth-child(3) a[href*="contact-us.php"] {
    display: block !important;
    visibility: visible !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.25rem !important;
    transition: all 0.3s ease !important;
}

.site-footer .sf-nav-col:first-child ul li:nth-child(3) {
    display: block !important;
    visibility: visible !important;
}

.site-footer .sf-nav-col:first-child ul li:nth-child(3) a[href*="contact-us.php"]:hover {
    color: #e0e0e0 !important;
    transform: translateX(2px);
}

[dir="rtl"] .site-footer .sf-nav-col:first-child ul li:nth-child(3) a[href*="contact-us.php"]:hover {
    transform: translateX(-2px);
}

/* Responsive adjustments for Contact Us in footer */
@media screen and (max-width: 767px) {
    .site-footer .sf-nav-col:first-child ul li:nth-child(3) a[href*="contact-us.php"] {
        font-size: 1.05em !important;
        padding: 0.4rem 0 !important;
    }
}

/* ============================================
   ONE-PAGE SCROLLING NAVIGATION
   ============================================ */

/* Smooth scrolling for entire page */
/* Note: JavaScript handles actual scroll timing for better control (400ms vs default slower scroll) */
html {
    scroll-behavior: auto; /* Disable CSS smooth scroll - JavaScript handles it with faster timing */
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Ensure smooth behavior is disabled for programmatic scrolls - JS controls speed */
body {
    scroll-behavior: auto;
}

/* Fix header overlap on non-home pages (e.g., contact-us.php) */
/* Ensure body has proper top padding for fixed header to prevent content overlap */
body:not(.home-page) {
    /* Mobile/Tablet: Account for header height */
    padding-top: calc(5rem + 1px) !important; /* ~81px for mobile header */
}

@media (min-width: 992px) {
    body:not(.home-page) {
        /* Desktop: Account for full header height 
           Header primary: ~120px (padding + logo)
           Header secondary: ~83px (navigation height)
           Total: ~203px - add extra buffer for safety */
        padding-top: calc(12rem + 20px) !important; /* ~212px - ensures content doesn't overlap header */
    }
}

/* Home page: No padding - banner should start immediately after fixed header */
body.home-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove any default margins/padding from html and body on home page */
html body.home-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional safety: Ensure body padding applies to all pages (even without home-page class) */
body:not(.home-page) {
    /* Base padding for all pages - override SCSS if needed */
    padding-top: calc(5rem + 1px) !important;
}

@media (min-width: 992px) {
    body:not(.home-page) {
        padding-top: calc(12rem + 20px) !important;
    }
}

/* Ensure breadcrumb-wrap doesn't have conflicting margins - body padding handles spacing */
.breadcrumb-wrap {
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* Ensure site-content-area has proper spacing and doesn't overlap header */
.site-content-area {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
    z-index: 1;
}

@media (min-width: 992px) {
    .site-content-area {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Additional fix: Ensure contact-us page content doesn't overlap header */
/* Target specific elements that might be overlapping */
.breadcrumb-wrap,
.site-content-area {
    clear: both;
}

/* Ensure Google Maps section on contact-us page doesn't overlap */
.google-map {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* One-page navigation styling */
.onepage-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.onepage-nav li {
    margin: 0;
}

.onepage-nav a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.onepage-nav a:hover,
.onepage-nav a.active {
    color: #337ab7;
}

.onepage-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #337ab7;
}

/* Section styling for one-page layout */
.onepage-section {
    min-height: 100vh;
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

/* Reduce min-height and bottom padding for CTA section on large screens - it has only 2 links */
/* Fix excessive top margin/spacing below header */
@media (min-width: 992px) {
    .cta-section.onepage-section {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        margin-top: 0;
    }
}

@media (min-width: 1200px) {
    .cta-section.onepage-section {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
        margin-top: 0;
    }
}

/* Mobile/Tablet: Reduce top padding for CTA section */
@media (max-width: 991px) {
    .cta-section.onepage-section {
        padding-top: 1.5rem;
        margin-top: 0;
    }
}

.onepage-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.onepage-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Responsive adjustments for one-page nav */
@media (max-width: 991px) {
    .onepage-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .onepage-nav li {
        width: 100%;
    }
    
    .onepage-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .onepage-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .onepage-section h2 {
        font-size: 2rem;
    }
    
    .onepage-section h3 {
        font-size: 1.5rem;
    }
}

/* SEO-friendly structure */
.onepage-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.onepage-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.onepage-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Ensure proper spacing and readability */
.onepage-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================
   ANIMATED COUNTERS / FIGURES SECTION
   ============================================ */

.about-figures {
    margin-top: 4rem;
    padding: 3rem 0;
}

.about-figures .row {
    display: flex;
    flex-wrap: wrap;
}

.about-figures .row > [class*="col-"] {
    display: flex;
}

.figure-item {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.figure-item:hover {
    transform: translateY(-5px);
}

.figure-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    background-color: transparent;
    /* Prevent layout shift by reserving space */
    min-width: 80px;
    min-height: 80px;
}

.figure-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    /* Prevent layout shift during image load */
    aspect-ratio: 1 / 1;
}

/* Support for FontAwesome icons (fallback) */
.figure-icon i {
    font-size: 3rem;
    color: #337ab7;
    line-height: 1;
}

.figure-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.figure-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: auto;
    flex-shrink: 0;
}

/* Responsive adjustments for figures */
@media (max-width: 991px) {
    .about-figures {
        margin-top: 3rem;
        padding: 2rem 0;
    }
    
    .figure-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .figure-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 0.75rem;
        min-width: 70px;
        min-height: 70px;
    }
    
    .figure-icon i {
        font-size: 2.5rem;
    }
    
    .figure-number {
        font-size: 2rem;
        min-height: 2.5rem;
    }
    
    .figure-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .about-figures {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .figure-item {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .figure-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
        min-width: 60px;
        min-height: 60px;
    }
    
    .figure-icon i {
        font-size: 2rem;
    }
    
    .figure-number {
        font-size: 1.75rem;
        min-height: 2rem;
    }
    
    .figure-label {
        font-size: 0.85rem;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .figure-item {
    text-align: center;
}

/* Accessibility: Ensure counters are readable without animation */
.figure-number:before {
    content: attr(data-target);
    position: absolute;
    left: -9999px;
}

.figure-number[data-animated="true"]:before {
    display: none;
}

/* ============================================
   GLOBAL PRESENCE SECTION
   ============================================ */

.global-presence-content {
    margin-top: 2rem;
}

.global-presence-text {
    padding: 0 0 2rem 0;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.global-presence-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.global-presence-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
}

.global-presence-image {
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.global-presence-image.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* RTL Support for Arabic */
[dir="rtl"] .global-presence-text {
    text-align: right;
}

.global-presence-image {
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1rem;
}

.global-presence-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.global-presence-image img:hover {
    transform: scale(1.01);
}

/* Responsive adjustments for Global Presence */
@media (max-width: 991px) {
    .global-presence-content {
        margin-top: 1.5rem;
    }
    
    .global-presence-text {
        padding: 0 0 1.5rem 0;
    }
}

@media (max-width: 767px) {
    .global-presence-content {
        margin-top: 1rem;
    }
    
    .global-presence-text {
        padding: 0 0 1.25rem 0;
    }
    
    .global-presence-text p {
        font-size: 1rem;
    }
    
    .global-presence-image {
        margin-top: 0.5rem;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-intro {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.services-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* RTL Support for Arabic */
[dir="rtl"] .services-intro {
    text-align: right;
}

.services-list {
    margin-top: 2rem;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start; /* Align items to start to prevent stretching */
}

/* Service Card Styles */
.service-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: fit-content;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card.active {
    box-shadow: 0 6px 20px rgba(33, 53, 107, 0.15);
    border-color: #21356B;
}

/* Service Card Header (Clickable) */
.service-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 1rem;
    position: relative;
}

.service-card-header:hover {
    background-color: #f8f9fa;
}

.service-card-header:focus {
    outline: 2px solid #21356B;
    outline-offset: -2px;
}

.service-card-header[aria-expanded="true"] {
    background-color: #f8f9fa;
}

.service-card-header[aria-expanded="true"] .service-card-arrow {
    transform: rotate(180deg);
}

/* Service Card Icon */
.service-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 8px;
    color: #21356B;
    font-size: 1.5rem;
}

/* Keep icon background consistent - no color change on active */
.service-card.active .service-card-icon {
    background: #f0f4f8;
    color: #21356B;
}

/* Service Card Title Wrapper */
.service-card-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card-title-wrapper h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #21356B;
    font-weight: 600;
}

/* Service Card Subheading (SEO-friendly) */
.service-card-subheading {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.service-card-header:hover .service-card-subheading {
    color: #21356B;
}

/* Legacy CTA style (kept for backward compatibility) */
.service-card-cta {
    font-size: 0.9rem;
    color: #21356B;
    font-weight: 500;
    transition: color 0.2s ease;
}

.service-card-header:hover .service-card-cta {
    color: #1a2a55;
}

/* Service Card Arrow */
.service-card-arrow {
    flex-shrink: 0;
    color: #21356B;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

[dir="rtl"] .service-card-header {
    text-align: right;
}

[dir="rtl"] .service-card-arrow {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .service-card-highlights li {
    flex-direction: row-reverse;
}

/* Service Card Content (Collapsible) */
.service-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease 0.1s,
                margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    margin: 0;
    opacity: 0;
    will-change: max-height, padding, opacity;
    flex-shrink: 0;
}

.service-card-content[aria-hidden="false"] {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease,
                margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-description {
    margin-bottom: 1.5rem;
}

.service-card-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Service Card Details Structure */
.service-card-details {
    margin-bottom: 1.5rem;
}

.service-detail-item {
    margin-bottom: 1.5rem;
}

.service-detail-item:last-child {
    margin-bottom: 0;
}

.service-detail-item h4 {
    font-size: 1.1rem;
    color: #21356B;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-detail-item h4 i {
    font-size: 1rem;
    color: #21356B;
}

.service-detail-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.service-detail-item p:last-child {
    margin-bottom: 0;
}

.service-detail-item p strong {
    color: #21356B;
    font-weight: 600;
}

/* Service Equipment List */
.service-equipment-list,
.service-features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-equipment-list li,
.service-features-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.service-equipment-list li:before,
.service-features-list li:before {
    content: "●";
    position: absolute;
    left: 0.5rem;
    color: #21356B;
    font-size: 1.2rem;
}

[dir="rtl"] .service-equipment-list li,
[dir="rtl"] .service-features-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .service-equipment-list li:before,
[dir="rtl"] .service-features-list li:before {
    left: auto;
    right: 0.5rem;
}

/* Service Card Highlights */
.service-card-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-card-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.service-card-highlights li i {
    color: #21356B;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Service Card Footer */
.service-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.service-card-contact-btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    background-color: #21356B;
    border-color: #21356B;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-card-contact-btn:hover {
    background-color: #1a2a55;
    border-color: #1a2a55;
}

/* Legacy service-category styles (kept for backward compatibility if needed) */
.service-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #337ab7;
    transition: box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.service-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #337ab7;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.service-icon {
    font-size: 2rem;
    color: #337ab7;
    flex-shrink: 0;
}

.service-header h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #333;
    font-weight: 600;
}

.service-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-cta {
    display: inline-block;
    font-size: 0.95rem;
    color: #21356B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    margin-top: 0.25rem;
}

.service-cta:hover,
.service-cta:focus {
    color: #1a2a55;
    text-decoration: none;
    transform: translateX(3px);
    outline: none;
}

.service-cta:focus-visible {
    outline: 2px solid #21356B;
    outline-offset: 2px;
    border-radius: 2px;
}

[dir="rtl"] .service-cta:hover,
[dir="rtl"] .service-cta:focus {
    transform: translateX(-3px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-cta {
        transition: none;
    }
}

.service-content {
    margin-left: 0;
    padding-left: 0;
}

.service-content > p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.sub-service {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e0e0e0;
}

.sub-service:last-child {
    margin-bottom: 0;
}

.sub-service h4 {
    font-size: 1.25rem;
    color: #337ab7;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-service h4 i {
    font-size: 1rem;
}

.sub-service p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.equipment-list,
.service-features {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.equipment-list li,
.service-features li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.equipment-list li:before,
.service-features li:before {
    content: "●";
    position: absolute;
    left: 0.5rem;
    color: #337ab7;
    font-size: 1.2rem;
}

.service-content strong {
    color: #333;
    font-weight: 600;
}

/* Responsive adjustments for Services Grid */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .service-card-header {
        padding: 1.25rem;
    }
    
    .service-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .service-card-title-wrapper h3 {
        font-size: 1.15rem;
    }
    
    .service-card-content[aria-hidden="false"] {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

/* Desktop: Keep 2 columns (changed from 3) */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-intro {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .services-intro p {
        font-size: 1rem;
    }
    
    .service-card-header {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .service-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .service-card-title-wrapper h3 {
        font-size: 1.1rem;
    }
    
    .service-card-cta {
        font-size: 0.85rem;
    }
    
    .service-card-subheading {
        font-size: 0.8rem;
    }
    
    .service-card-content[aria-hidden="false"] {
        padding: 0 1rem 1rem 1rem;
    }
    
    .service-card-description p {
        font-size: 0.95rem;
    }
    
    .service-card-highlights li {
        font-size: 0.9rem;
    }
    
    .service-card-contact-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
}

/* Legacy responsive styles (kept for backward compatibility) */
@media (max-width: 991px) {
    .service-category {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-header {
        flex-wrap: wrap;
    }
    
    .service-number {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .service-icon {
        font-size: 1.75rem;
    }
    
    .service-header h3 {
        font-size: 1.5rem;
    }
    
    .service-cta {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .service-category {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .service-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .service-icon {
        font-size: 1.5rem;
    }
    
    .service-header h3 {
        font-size: 1.35rem;
    }
    
    .service-cta {
        font-size: 0.85rem;
    }
    
    .sub-service {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .sub-service h4 {
        font-size: 1.1rem;
    }
    
    .equipment-list li,
    .service-features li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
}

/* RTL Support for Service Cards */
[dir="rtl"] .service-card-header {
    text-align: right;
}

[dir="rtl"] .service-card-arrow {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .service-card-highlights li {
    flex-direction: row-reverse;
}

/* RTL Support for Arabic */
[dir="rtl"] .service-category {
    border-left: none;
    border-right: 4px solid #337ab7;
}

[dir="rtl"] .sub-service {
    padding-left: 0;
    padding-right: 1.5rem;
    border-left: none;
    border-right: 2px solid #e0e0e0;
}

[dir="rtl"] .equipment-list li,
[dir="rtl"] .service-features li {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .equipment-list li:before,
[dir="rtl"] .service-features li:before {
    left: auto;
    right: 0.5rem;
}

@media (max-width: 767px) {
    [dir="rtl"] .sub-service {
        padding-right: 1rem;
    }
    
    [dir="rtl"] .equipment-list li,
    [dir="rtl"] .service-features li {
        padding-right: 1.5rem;
    }
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose-cards {
    margin-top: 2rem;
}

.why-choose-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.why-choose-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.why-choose-icon {
    font-size: 3rem;
    color: #337ab7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.why-choose-card h3 {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.why-choose-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.sustainability-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.sustainability-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.sustainability-list li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: #337ab7;
    font-size: 1rem;
}

/* Responsive adjustments for Why Choose Us */
@media (max-width: 991px) {
    .why-choose-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .why-choose-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .why-choose-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .why-choose-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .why-choose-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .why-choose-card h3 {
        font-size: 1.1rem;
    }
    
    .why-choose-card p {
        font-size: 0.95rem;
    }
}

/* RTL Support for Why Choose Us */
[dir="rtl"] .sustainability-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .sustainability-list li:before {
    left: auto;
    right: 0;
}

/* ============================================
   SAFETY SECTION
   ============================================ */

.safety-content {
    margin-top: 2rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.safety-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.safety-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
}

/* RTL Support for Safety */
[dir="rtl"] .safety-content {
    text-align: right;
}

/* ============================================
   SAFETY CERTIFICATIONS
   ============================================ */

.safety-certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    margin-top: 3.5rem;
    padding: 3rem 0;
    width: 100%;
    overflow: visible;
    z-index: 1;
    position: relative;
}

/* Default: Laptop screens and larger show 3 in one row */
@media (min-width: 992px) {
    .safety-certifications {
        flex-wrap: nowrap; /* Force single row on laptop+ screens */
    }
}

/* Certification Card Container */
.certification-card {
    flex: 0 0 auto;
    flex-basis: calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
    min-width: 320px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    z-index: 1;
    visibility: visible;
    padding: 1rem;
}

.certification-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Card Inner Container with Styling */
.certification-card-inner {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    overflow: visible;
}

/* Enhanced hover shadow on card */
.certification-card:hover .certification-card-inner {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Certification Logo Image - Increased default size for readability */
.certification-logo {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 280px;
    min-height: 350px;
    max-height: 450px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    position: relative;
    z-index: 10;
    visibility: visible;
    opacity: 1;
    cursor: pointer;
}

/* Zoom-on-hover effect - Image scales significantly */
.certification-card:hover .certification-logo {
    transform: scale(1.2);
    z-index: 100;
}

/* Stagger animation delays */
.certification-card:nth-child(1) {
    transition-delay: 0.1s;
}

.certification-card:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

.certification-card:nth-child(2) {
    transition-delay: 0.2s;
}

.certification-card:nth-child(2).animate-in {
    transition-delay: 0.2s;
}

.certification-card:nth-child(3) {
    transition-delay: 0.3s;
}

.certification-card:nth-child(3).animate-in {
    transition-delay: 0.3s;
}

/* Responsive styling for certifications */
@media (min-width: 1400px) {
    .safety-certifications {
        flex-wrap: nowrap; /* Ensure single row on large screens */
        gap: 3.5rem;
        margin-top: 4rem;
        padding: 4rem 0;
    }
    
    .certification-card {
        flex-basis: calc(33.333% - 2.5rem);
        max-width: calc(33.333% - 2.5rem);
        min-width: 380px;
        min-height: 520px;
    }
    
    .certification-card-inner {
        min-height: 520px;
        padding: 3rem;
    }
    
    .certification-logo {
        min-width: 320px;
        min-height: 400px;
        max-height: 500px;
    }
    
    .certification-card:hover .certification-logo {
        transform: scale(1.25);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .safety-certifications {
        flex-wrap: nowrap; /* Ensure single row on large desktop */
        gap: 3rem;
        margin-top: 3.5rem;
        padding: 3rem 0;
    }
    
    .certification-card {
        flex-basis: calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
        min-width: 320px;
        min-height: 450px;
    }
    
    .certification-card-inner {
        min-height: 450px;
        padding: 2.5rem;
    }
    
    .certification-logo {
        min-width: 280px;
        min-height: 350px;
        max-height: 450px;
    }
    
    .certification-card:hover .certification-logo {
        transform: scale(1.2);
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    /* Laptop screens - show 3 columns in one row */
    .safety-certifications {
        flex-wrap: nowrap; /* Force single row on laptop screens */
        gap: 2.5rem;
        margin-top: 3rem;
        padding: 2.5rem 0;
    }
    
    .certification-card {
        flex-basis: calc(33.333% - 1.75rem);
        max-width: calc(33.333% - 1.75rem);
        min-width: 280px;
        min-height: 400px;
        padding: 1rem;
    }
    
    .certification-card-inner {
        min-height: 400px;
        padding: 2rem;
    }
    
    .certification-logo {
        min-width: 240px;
        min-height: 300px;
        max-height: 380px;
    }
    
    .certification-card:hover .certification-logo {
        transform: scale(1.2);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablets - show 2 columns with third centered below */
    .safety-certifications {
        flex-wrap: wrap;
        gap: 2rem;
        margin-top: 2.5rem;
        padding: 2rem 0;
    }
    
    .certification-card {
        flex-basis: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        min-width: 280px;
        min-height: 380px;
        padding: 0.75rem;
    }
    
    .certification-card:nth-child(3) {
        flex-basis: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        margin: 0 auto;
    }
    
    .certification-card-inner {
        min-height: 380px;
        padding: 2rem;
    }
    
    .certification-logo {
        min-width: 220px;
        min-height: 280px;
        max-height: 340px;
    }
    
    .certification-card:hover .certification-logo {
        transform: scale(1.18);
    }
}

@media (max-width: 767px) {
    .safety-certifications {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .certification-card {
        flex-basis: 100%;
        max-width: 100%;
        min-width: 100%;
        min-height: 360px;
        padding: 0.5rem;
    }
    
    .certification-card-inner {
        min-height: 360px;
        padding: 2rem;
    }
    
    .certification-logo {
        min-width: 200px;
        min-height: 250px;
        max-height: 320px;
        width: 100%;
    }
    
    .certification-card:hover .certification-logo {
        transform: scale(1.15);
    }
}

@media (max-width: 480px) {
    .safety-certifications {
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 1rem 0;
    }
    
    .certification-card {
        min-height: 320px;
        padding: 0.25rem;
    }
    
    .certification-card-inner {
        min-height: 320px;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .certification-logo {
        min-width: 180px;
        min-height: 220px;
        max-height: 280px;
    }
    
    .certification-card:hover .certification-logo {
        transform: scale(1.12);
    }
}

/* Focus states for accessibility */
.certification-card:focus-within .certification-card-inner {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
}

.certification-card:focus-within .certification-logo {
    transform: scale(1.2);
}

/* Prevent layout shift during animation */
.certification-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Ensure container allows overflow for zoom effect */
.onepage-section {
    overflow: visible;
}

#safety {
    overflow: visible;
    z-index: 1;
    position: relative;
}

#safety .container-fluid {
    overflow: visible;
}

/* ============================================
   GEOGRAPHICAL REACH SECTION
   ============================================ */

.geographical-reach-content {
    margin-top: 2rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.geographical-reach-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.geographical-reach-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

/* RTL Support for Geographical Reach */
[dir="rtl"] .geographical-reach-content {
    text-align: right;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.cta-links {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduce heading bottom margin for CTA section on large screens */
@media (min-width: 992px) {
    .cta-section h2 {
        margin-bottom: 1rem !important;
    }
    
    .cta-links {
        margin-top: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .cta-section h2 {
        margin-bottom: 0.75rem !important;
    }
    
    .cta-links {
        margin-top: 0.5rem;
    }
}

.cta-links.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-link-item {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta-link-item:last-child {
    margin-bottom: 0;
}

/* Reduce spacing between CTA items on large screens */
@media (min-width: 992px) {
    .cta-link-item {
        margin-bottom: 1rem;
    }
}

.cta-link-item .btn {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 250px;
}

.cta-link-item .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(51, 122, 183, 0.3);
}

.cta-link-item .btn i {
    margin-right: 0.5rem;
}

/* Responsive adjustments for CTA */
@media (max-width: 991px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-link-item {
        margin-bottom: 1.25rem;
    }
    
    .cta-link-item .btn {
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-link-item {
        margin-bottom: 1rem;
    }
    
    .cta-link-item .btn {
        min-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* RTL Support for CTA */
[dir="rtl"] .cta-link-item .btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ============================================
   BRAND COLOR OVERRIDES - #21356B
   ============================================ */

/* Header Background Color */

.site-header-primary:after {
    background-color: #21356B !important;
}

/* Footer Background Color */
.site-footer {
    background-color: #21356B !important;
}

.site-footer-top,
.site-footer-bottom {
    background-color: #21356B !important;
}

/* Heading Colors */
h1, h2, h3, h4, h5, h6,
.onepage-section h2,
.onepage-section h3,
.onepage-section h4,
.service-header h3,
.sub-service h4,
.why-choose-card h3,
.cta-section h2,
.safety-content h2,
.geographical-reach-content h2 {
    color: #21356B !important;
}

/* Icon Colors - All icons should be #21356B */
.figure-icon,
.figure-icon i,
.service-icon,
.service-icon i,
.why-choose-icon,
.why-choose-icon i,
.sub-service h4 i,
.service-header .service-icon i,
.service-category .fa,
.service-category i,
.onepage-section .fa,
.onepage-section i[class*="fa-"],
.figure-item .fa,
.why-choose-card .fa,
.sustainability-list li:before {
    color: #21356B !important;
}

.service-number {
    background-color: #21356B !important;
    color: #fff !important;
}

/* Service Category Icons */
.service-category .fa,
.service-category i,
.mlc-serv-box-icon,
.mlc-serv-box-icon i {
    color: #21356B !important;
}

/* All FontAwesome Icons in Services and Sections */
.onepage-section .fa,
.onepage-section i[class*="fa-"],
.figure-item .fa,
.service-category .fa,
.why-choose-card .fa {
    color: #21356B !important;
}

/* Primary Button Background */
.btn-primary {
    background-color: #21356B !important;
    border-color: #21356B !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a2a55 !important;
    border-color: #1a2a55 !important;
}

/* CTA Section Buttons */
.cta-link-item .btn-primary {
    background-color: #21356B !important;
    border-color: #21356B !important;
}

.cta-link-item .btn-primary:hover {
    background-color: #1a2a55 !important;
    border-color: #1a2a55 !important;
}

/* Service Category Border */
.service-category {
    border-left-color: #21356B !important;
}

[dir="rtl"] .service-category {
    border-right-color: #21356B !important;
    border-left-color: transparent !important;
}

/* Active Navigation Links */
.onepage-nav a.active,
.onepage-nav a:hover {
    color: #21356B !important;
}

.onepage-nav a.active::after {
    background-color: #21356B !important;
}

/* Footer Text Colors - Ensure readability on dark background */
.site-footer {
    color: #fff !important;
}

.site-footer a {
    color: #fff !important;
}

.site-footer a:hover {
    color: #e0e0e0 !important;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #fff !important;
}

/* ============================================
   FOOTER LOGOS STYLING
   ============================================ */

.footer-logo-left,
.footer-logo-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 1rem 0;
}

.footer-logo-svg,
.footer-logo-png {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

/* Increase footer SVG logo size for better visibility */
.footer-logo-svg {
    max-width: 350px;
    max-height: 100px;
}

/* Responsive footer logo sizing */
@media (min-width: 1400px) {
    .footer-logo-svg {
        max-width: 400px;
        max-height: 120px;
    }
    
    .footer-logo-png {
        max-width: 350px;
        max-height: 90px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .footer-logo-svg {
        max-width: 350px;
        max-height: 100px;
    }
    
    .footer-logo-png {
        max-width: 300px;
        max-height: 80px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .footer-logo-svg {
        max-width: 300px;
        max-height: 90px;
    }
    
    .footer-logo-png {
        max-width: 250px;
        max-height: 70px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-logo-left,
    .footer-logo-right {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }
    
    .footer-logo-svg {
        max-width: 250px;
        max-height: 75px;
    }
    
    .footer-logo-png {
        max-width: 200px;
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    .footer-logo-left,
    .footer-logo-right {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .footer-logo-svg {
        max-width: 220px;
        max-height: 70px;
    }
    
    .footer-logo-png {
        max-width: 180px;
        max-height: 55px;
    }
}

@media (max-width: 480px) {
    .footer-logo-left,
    .footer-logo-right {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo-svg {
        max-width: 180px;
        max-height: 60px;
    }
    
    .footer-logo-png {
        max-width: 150px;
        max-height: 45px;
    }
}

/* RTL Support for footer logos */
[dir="rtl"] .footer-logo-left {
    text-align: right;
}

[dir="rtl"] .footer-logo-right {
    text-align: left;
}

/* ============================================
   DROPDOWN MENU FIXES
   ============================================ */

/* Ensure dropdowns are properly visible on mobile when opened */
@media (max-width: 991px) {
    .site-nav-primary > ul > li.has-submenu ul,
    .site-nav-secondary > ul > li.has-submenu ul {
        display: none !important;
        padding-left: 1rem !important;
    }
    
    .site-nav-primary > ul > li.has-submenu.opened ul,
    .site-nav-secondary > ul > li.has-submenu.opened ul {
        display: block !important;
    }
    
    /* Ensure dropdown items are visible */
    .site-nav-primary > ul > li.has-submenu ul li,
    .site-nav-secondary > ul > li.has-submenu ul li {
        display: block !important;
        visibility: visible !important;
    }
}

/* Desktop: Ensure hover dropdowns work */
@media (min-width: 992px) {
    .site-nav-primary > ul > li.has-submenu:hover > ul,
    .site-nav-secondary > ul > li.has-submenu:hover > ul {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ============================================
   VIDEO BANNER STYLING
   ============================================ */

/* Video banner styling - responsive for all screen sizes */
.site-banner-video {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none; /* Hidden by default, shown after lazy load */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Ensure video fills banner completely on all screen sizes */
.site-banner-video.loaded,
.site-banner-video.playing {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* XXXL Screens - Ultra-wide displays */
@media (min-width: 2560px) {
    .site-banner-video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
}

/* XXL Screens - Large desktops */
@media (min-width: 1920px) and (max-width: 2559px) {
    .site-banner-video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
}

/* XL Screens - Standard large desktops */
@media (min-width: 1440px) and (max-width: 1919px) {
    .site-banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Large Screens - Laptops */
@media (min-width: 1080px) and (max-width: 1439px) {
    .site-banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Medium Screens - Tablets */
@media (min-width: 768px) and (max-width: 1079px) {
    .site-banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Small Screens - Mobile */
@media (max-width: 767px) {
    .site-banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.site-banner-video.loaded {
    display: block;
    opacity: 1;
}

.site-banner-video.playing {
    display: block;
    opacity: 1;
}

/* Poster image - shown initially and on mobile if video doesn't play */
.site-banner-poster {
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.site-banner-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure video doesn't interfere with content */
.site-banner-video::-webkit-media-controls {
    display: none !important;
}

.site-banner-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Mobile optimization - prefer poster on very small screens or slow connections */
@media (max-width: 767px) {
    .site-banner-video {
        /* On mobile, keep poster visible longer - handled by JavaScript */
        max-width: 100%;
    }
}

/* Portrait/vertical displays (tall screens like 1080x1920) */
@media (min-width: 1080px) and (max-height: 1920px) and (orientation: portrait) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .site-banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Ensure proper aspect ratio and responsive behavior - Full screen banner */
.site-banner {
    position: relative;
    overflow: hidden;
    height: 100vh !important; /* Full viewport height */
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin-top: 0 !important; /* Remove any top margin to eliminate whitespace after header */
    padding-top: 0 !important; /* Remove any top padding - override SCSS .py-4 */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; /* Remove any bottom padding - override SCSS .py-4 */
    top: 0 !important; /* Start at the very top */
}

.site-banner video,
.site-banner img {
    pointer-events: none;
    user-select: none;
}

/* ============================================
   RESPONSIVE BANNER HEIGHT - XXXL to Small
   ============================================ */

/* Full screen banner on all screen sizes */
@media (min-width: 2560px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

@media (min-width: 1080px) and (max-width: 1439px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

@media (min-width: 768px) and (max-width: 1079px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

@media (max-width: 767px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

@media (max-width: 479px) {
    .site-banner {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        max-height: 65vh;
    }
}

/* ============================================
   GEOGRAPHICAL REACH SVG IMAGE STYLING
   ============================================ */

.geographical-reach-image {
    width: 100%;
    height: auto;
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.geographical-reach-image.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.geographical-reach-svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Hover effect for interactivity */
.geographical-reach-image:hover .geographical-reach-svg {
    transform: scale(1.02);
}

/* Fade-in and slide-up animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for subtle attention */
@keyframes subtlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.geographical-reach-svg {
    animation: subtlePulse 4s ease-in-out infinite;
}

/* Responsive styling for geographical reach image */
@media (min-width: 1200px) {
    .geographical-reach-image {
        margin-top: 3rem;
    }
    
    .geographical-reach-svg {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .geographical-reach-image {
        margin-top: 2.5rem;
    }
    
    .geographical-reach-svg {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .geographical-reach-image {
        margin-top: 2rem;
    }
    
    .geographical-reach-svg {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .geographical-reach-image {
        margin-top: 1.5rem;
    }
    
    .geographical-reach-svg {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .geographical-reach-image {
        margin-top: 1rem;
    }
}

/* Banner content styling for updated heading structure */
.site-banner-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size that scales with viewport */
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #ffffff !important;
    white-space: nowrap; /* Keep heading on one line */
    word-spacing: normal;
    letter-spacing: -0.02em; /* Slightly tighter letter spacing to fit better */
}

.site-banner-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: #dc3545 !important; /* Red color for "Global Reach Local Expertise" heading */
}

/* Large screens - ensure full text fits */
@media (min-width: 1440px) {
    .site-banner-content h1 {
        font-size: 2.8rem;
        white-space: nowrap;
    }
}

/* Medium-large screens */
@media (min-width: 992px) and (max-width: 1439px) {
    .site-banner-content h1 {
        font-size: 2.4rem;
        white-space: nowrap;
    }
}

@media (max-width: 991px) {
    .site-banner-content h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        white-space: nowrap; /* Keep on one line on tablets */
    }
    
    .site-banner-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .site-banner-content h1 {
        font-size: clamp(1.4rem, 3vw, 1.9rem); /* Responsive sizing for mobile */
        white-space: nowrap; /* Keep on one line on mobile */
    }
    
    .site-banner-content h2 {
        font-size: 1.1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .site-banner-content h1 {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        white-space: nowrap; /* Still try to keep on one line */
    }
}

/* ============================================
   HEADER FULL-WIDTH LAYOUT
   ============================================ */

/* Make header full-width like footer - only background spans full width */
.site-header {
    width: 100%;
    left: 0;
    right: 0;
}

/* Make header background full-width (edge-to-edge) */
.site-header-primary:after {
    max-width: 100% !important;
    width: 100%;
    left: 0 !important;
    transform: none !important;
}

/* Keep container content with original max-width and margins (logo and text maintain original spacing) */
.site-header-primary .container-fluid.mw-1170 {
    max-width: 1170px !important;
    margin-left: auto;
    margin-right: auto;
    /* Keep original Bootstrap container-fluid padding */
    padding-left: 15px;
    padding-right: 15px;
}

.site-header-secondary .container-fluid.mw-1170 {
    max-width: 1170px !important;
    margin-left: auto;
    margin-right: auto;
    /* Keep original Bootstrap container-fluid padding */
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure responsive padding matches Bootstrap defaults for proper content alignment */
@media (min-width: 576px) {
    .site-header-primary .container-fluid.mw-1170,
    .site-header-secondary .container-fluid.mw-1170 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 768px) {
    .site-header-primary .container-fluid.mw-1170,
    .site-header-secondary .container-fluid.mw-1170 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 992px) {
    .site-header-primary .container-fluid.mw-1170,
    .site-header-secondary .container-fluid.mw-1170 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1200px) {
    .site-header-primary .container-fluid.mw-1170,
    .site-header-secondary .container-fluid.mw-1170 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   HEADER LOGO SIZE FIX
   ============================================ */

/* Match header logo size to footer logo */
.site-header-primary .site-logo {
    max-width: 300px !important;
    width: auto;
    height: auto;
}

.site-header-primary .site-logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 991px) {
    .site-header-primary .site-logo {
        max-width: 200px !important;
    }
    
    .site-header-primary .site-logo img {
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    .site-header-primary .site-logo {
        max-width: 150px !important;
    }
    
    .site-header-primary .site-logo img {
        max-height: 50px;
    }
}