/* ===================================
   ConstructaLex - Premium Styles
   Light Theme with Pro Animations
   =================================== */

/* IMMEDIATE RTL/FONT STYLING - Applied before page renders */
[dir="rtl"] body {
    font-family: "Tajawal", sans-serif !important;
}

/* ===== RTL FIXES FOR ARABIC LAYOUT ===== */

/* Mission checklist container - base styling */
.mission-checklist-container {
    display: flex;
    flex-direction: column;
}

/* Mission checklist items - base styling */
.mission-checklist-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-direction: row !important;
}

/* FORCE RTL ALIGNMENT FOR MISSION LIST */
/* In RTL, flex-direction: row naturally places the first item (Icon) on the Right */
html[dir="rtl"] .mission-checklist-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: right !important;
    align-items: center !important;
}

/* Force Text to align right in mission checklist */
html[dir="rtl"] .mission-checklist-item span,
html[dir="rtl"] .mission-checklist-item p {
    text-align: right !important;
}

/* RTL alignment for Mission Section container and paragraph */
html[dir="rtl"] .mission-checklist-container {
    text-align: right !important;
    align-items: flex-start !important;
}

html[dir="rtl"] #mission-layout-container p {
    text-align: right !important;
}

/* ===== FOOTER RTL FIXES ===== */

/* Footer grid - reverse column order in RTL */
html[dir="rtl"] footer .grid {
    direction: rtl;
}

/* Footer links with icons - reverse flex direction in RTL */
html[dir="rtl"] footer a.flex {
    flex-direction: row-reverse !important;
}

/* Footer contact items - reverse flex direction in RTL */
html[dir="rtl"] footer .flex.items-start {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

/* Footer social icons - keep left-to-right but align to start */
html[dir="rtl"] footer .flex.gap-3 {
    justify-content: flex-start !important;
}

/* Footer newsletter form - proper RTL */
html[dir="rtl"] footer form.flex {
    flex-direction: row-reverse !important;
}

/* Footer copyright bar RTL */
html[dir="rtl"] footer .border-t .flex {
    flex-direction: row-reverse !important;
}

:root {
    /* Primary Colors - Deep Blue from Logo is now PRIMARY */
    --primary: #103356;
    --primary-light: #1a4a7a;
    --primary-dark: #0a2240;
    --navy: #103356;
    --navy-light: #1a4a7a;
    --navy-dark: #0a2240;

    /* Accent Colors - Gold is now SECONDARY */
    --gold: #d4af37;
    --gold-light: #f5e6b3;
    --gold-dark: #b8960c;

    /* Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Gradients - Blue-dominant */
    --gradient-primary: linear-gradient(135deg,
            #103356 0%,
            #1a4a7a 50%,
            #103356 100%);
    --gradient-gold: linear-gradient(135deg,
            #d4af37 0%,
            #f5e6b3 50%,
            #d4af37 100%);
    --gradient-navy: linear-gradient(135deg, #103356 0%, #1a4a7a 100%);
    --gradient-hero: linear-gradient(135deg,
            rgba(16, 51, 86, 0.08) 0%,
            rgba(212, 175, 55, 0.03) 100%);
    --gradient-premium: linear-gradient(135deg,
            #103356 0%,
            #1a4a7a 40%,
            #103356 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 40px -10px rgba(16, 51, 86, 0.5);
    --shadow-gold: 0 10px 40px -10px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern - Blue dominant with subtle gold accent */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 0% 0%, rgba(16, 51, 86, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 0%,
            rgba(16, 51, 86, 0.04) 0px,
            transparent 50%),
        radial-gradient(at 50% 100%,
            rgba(212, 175, 55, 0.02) 0px,
            transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== ANIMATIONS ===== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Glow - Blue primary */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 51, 86, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 51, 86, 0.5);
    }
}

/* Pulse Glow Gold - For special accents */
@keyframes pulseGlowGold {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    }
}

/* Shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Rotate */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Stagger Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Initially hidden for animation - with paused state */
[class*="animate-"] {
    opacity: 0;
    animation-play-state: paused;
}

/* Visible state - animations play */
.animate-fade-in-up.visible,
.animate-slide-left.visible,
.animate-slide-right.visible,
.animate-scale-in.visible,
.animate-fade-in.visible {
    opacity: 1;
    animation-play-state: running;
}

/* Ensure animations fill forwards */
.animate-fade-in-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale-in,
.animate-fade-in {
    animation-fill-mode: forwards;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.85);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(16, 51, 86, 0.5);
}

/* Gold button - now used as secondary accent */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(16, 51, 86, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Fix gradient text clipping - add padding for descenders */
.bg-clip-text {
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.text-gold {
    color: var(--gold);
}

.text-navy {
    color: var(--navy);
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-secondary);
}

.bg-primary {
    background-color: var(--primary);
}

.gradient-text {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-light) 50%,
            var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Label Pill - Blue themed with gold accent dot */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(16, 51, 86, 0.08);
    border: 1px solid rgba(16, 51, 86, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulseGlowGold 2s ease-in-out infinite;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Hero section - flip layout in RTL (image left, text right) */
/* Use order property to swap the hero content and image */
@media (min-width: 1024px) {
    [dir="rtl"] .hero-layout>div:first-child {
        order: 2;
    }

    [dir="rtl"] .hero-layout>div:last-child {
        order: 1;
    }
}

[dir="rtl"] body {
    font-family: "Tajawal", sans-serif;
}

/* Buttons - flip icon to right side in RTL */
[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* Icon flip in RTL for arrows */
[dir="rtl"] .btn i.fa-arrow-right,
[dir="rtl"] .btn i.fa-paper-plane,
[dir="rtl"] a i.fa-arrow-right {
    transform: scaleX(-1);
}

/* Navigation bar - keep logo left, buttons right (same as English) */
[dir="rtl"] nav .glass {
    flex-direction: row-reverse;
}

/* Specific fix for Contact Page "Book Consultation" Button in RTL */
/* User wants Icon on Left (< Text) instead of Right (Text <) */
[dir="rtl"] a[href="#contact-form"].btn {
    flex-direction: row !important;
}

/* Grid items text alignment */

/* Specific fix for Contact Page "Send a Message" Header in RTL */
/* Prevent global row-reverse from flipping this. We want Icon (First) on Right. */
[dir="rtl"] .section-header .flex.items-center.justify-center.gap-4 {
    flex-direction: row !important;
}

/* Also for the specific form header container if different */
[dir="rtl"] #contact-form .flex.items-center.justify-center.gap-4 {
    flex-direction: row !important;
}

/* Pill dot position */
[dir="rtl"] .pill::before {
    margin-right: 0;
    margin-left: 8px;
}

/* Lists with icons - keep icon on right */
[dir="rtl"] ul li {
    text-align: right;
}

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

/* Service list items with checkmark icons - ensure icon is on right in RTL */
[dir="rtl"] li.flex.items-center {
    flex-direction: row-reverse !important;
}

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

/* Service cards - icon on right */
[dir="rtl"] .service-card .flex.items-start {
    flex-direction: row-reverse;
}

/* Contact info items */
[dir="rtl"] a.flex.items-center,
[dir="rtl"] div.flex.items-center:not(.nav-links):not(.glass) {
    flex-direction: row-reverse;
}

/* Footer - flip direction */
[dir="rtl"] footer .flex.justify-between {
    flex-direction: row-reverse;
}

/* Mobile menu alignment */
[dir="rtl"] #mobileMenu .flex-col {
    align-items: flex-end;
}

/* Ensure proper alignment for centered elements */
[dir="rtl"] .section-header {
    text-align: center;
}

[dir="rtl"] .text-center {
    text-align: center;
}

[dir="rtl"] .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Border adjustments for RTL */
[dir="rtl"] .border-l-4 {
    border-left: none;
    border-right: 4px solid var(--gold);
}

[dir="rtl"] .pl-6 {
    padding-left: 0;
    padding-right: 1.5rem;
}

/* Stats cards - keep inline items RTL */
/* IMPORTANT: Exclude .mission-checklist-item from row-reverse to preserve natural RTL flow */
[dir="rtl"] .stat-item,
[dir="rtl"] .flex.items-center.gap-2:not(.btn):not(.mission-checklist-item),
[dir="rtl"] .flex.items-center.gap-3:not(.btn):not(.mission-checklist-item),
[dir="rtl"] .flex.items-center.gap-4:not(.btn):not(.mission-checklist-item) {
    flex-direction: row-reverse;
}

/* Credential badges - keep as is */
[dir="rtl"] .flex.flex-wrap.gap-3 {
    justify-content: flex-end;
}

/* Form labels */
[dir="rtl"] label {
    display: block;
    text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* All buttons - consistent large size for mobile touch targets */
    .btn {
        padding: 16px 32px !important;
        font-size: 1.05rem !important;
        min-height: 54px !important;
        width: 100%;
        justify-content: center;
        font-weight: 600 !important;
    }

    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .glass-card {
        padding: 1.5rem;
    }

    /* Navigation mobile fixes */
    nav .glass {
        padding: 0.5rem 1rem;
    }

    nav img {
        height: 2.5rem;
    }

    /* Hero section mobile */
    .hero-gradient {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    /* Stats on mobile */
    .counter {
        font-size: 1.5rem;
    }

    /* Footer mobile */
    footer {
        padding: 3rem 0;
    }

    footer .grid {
        gap: 2rem;
    }

    /* Credential badges mobile */
    .credential-badge {
        padding: 1rem;
    }

    .credential-badge h4 {
        font-size: 1.25rem;
    }

    /* Pills mobile */
    .pill {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.875rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    /* Keep buttons large even on smallest screens */
    .btn {
        padding: 16px 28px !important;
        font-size: 1rem !important;
        min-height: 52px !important;
    }

    /* Stats stacked on very small screens */
    .flex.gap-8 {
        gap: 1rem;
    }

    .text-3xl {
        font-size: 1.25rem;
    }
}

/* Mobile Performance Optimization - Disable expensive animations */
@media (max-width: 768px) {

    /* Disable expensive animations */
    .aurora-beam {
        animation: none !important;
    }

    .hero-glow-orb {
        animation: none !important;
    }

    .service-icon-float {
        animation: none !important;
    }

    .particle {
        display: none !important;
    }

    /* Reduce blur effects for better performance */
    .glass,
    .glass-card {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
}

/* ===== MOBILE HERO SECTION FIXES ===== */
@media (max-width: 767px) {

    /* Optimize Form Selects for Mobile - Reduce "Too Big" appearance */
    select,
    option {
        font-size: 0.9rem !important;
        /* Slightly smaller text */
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        line-height: normal !important;
        max-height: 45px !important;
    }

    /* Adjust the dropdown arrow container position if needed */
    .relative .absolute.top-1\/2 {
        /* No major change needed if padding is symmetric, but ensuring it centers */
        transform: translateY(-50%) !important;
    }


    /* Hero section - allow natural height, not forced 100vh */
    #hero.hero {
        height: auto !important;
        min-height: 100dvh;
        padding-top: 100px !important;
        padding-bottom: 48px !important;
    }

    /* Hero layout - force vertical stacking */
    .hero-layout {
        flex-direction: column !important;
        gap: 28px !important;
        align-items: center !important;
    }

    /* Hero image container - centered on mobile */
    .hero-image {
        width: 100% !important;
        order: 1 !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Hero image wrapper - larger size for better visibility */
    #heroImageContainer {
        width: 270px !important;
        max-width: 270px !important;
        max-height: none !important;
    }

    /* Hero image card - proper sizing */
    #heroImage {
        width: 100% !important;
    }

    /* Image aspect ratio container */
    #heroImage>div {
        min-height: 340px !important;
        max-height: 380px !important;
        aspect-ratio: 3/4 !important;
    }

    /* Hero content - below image, centered */
    .hero-content {
        width: 100% !important;
        order: 2 !important;
        text-align: center !important;
        padding: 0 20px !important;
    }

    /* Brand name - prominent and readable */
    #hero-heading {
        font-size: 2.15rem !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
        letter-spacing: -0.01em !important;
    }

    /* Tagline - clear and readable */
    .hero-content>p:first-of-type {
        font-size: 1.15rem !important;
        margin-bottom: 16px !important;
        line-height: 1.5 !important;
    }

    /* Service chips - wrap nicely with good touch targets */
    .hero-chips {
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    /* Individual service chip - larger for touch and readability */
    .service-chip {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
    }

    /* Benefit statement - readable size */
    .hero-content>p.italic {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }

    /* CTA button container */
    .hero-cta {
        justify-content: center !important;
    }

    /* CTA button - prominent and easy to tap */
    .cta-primary-enhanced {
        padding: 16px 36px !important;
        font-size: 1.05rem !important;
        min-height: 54px !important;
        font-weight: 600 !important;
    }

    /* Top 10 badge - larger and more visible on mobile */
    #heroImageContainer>div:first-child {
        top: -14px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
    }

    #heroImageContainer>div:first-child>div {
        padding: 10px 18px !important;
        gap: 10px !important;
    }

    #heroImageContainer>div:first-child span {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    #heroImageContainer>div:first-child img {
        width: 26px !important;
        height: 26px !important;
    }

    /* Name badge at bottom of image - readable */
    #heroImage .absolute.bottom-5 {
        bottom: 14px !important;
        left: 14px !important;
        right: 14px !important;
    }

    #heroImage .absolute.bottom-5>div {
        padding: 10px 14px !important;
    }

    #heroImage .absolute.bottom-5 .font-bold {
        font-size: 0.9rem !important;
    }

    #heroImage .absolute.bottom-5 .text-\[10px\] {
        font-size: 9px !important;
    }

    /* Hide glow orbs on mobile for cleaner look */
    .hero-glow-orb {
        display: none !important;
    }

    /* Hide subtle glow behind image on mobile */
    .hero-subtle-glow {
        display: none !important;
    }

    /* ===== ALL BUTTONS - Large, consistent, touch-friendly ===== */
    .btn,
    .btn-primary,
    .btn-gold,
    .cta-primary-enhanced,
    a[class*="btn"],
    button[class*="btn"] {
        padding: 16px 32px !important;
        font-size: 1.05rem !important;
        min-height: 54px !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
    }

    /* Ensure inline-flex buttons stay properly aligned */
    .btn.inline-flex,
    a.btn.inline-flex {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    /* Full-width buttons on mobile for better tap targets */
    .btn-primary,
    .cta-primary-enhanced {
        width: 100% !important;
        max-width: 320px !important;
    }
}

/* ===== MOBILE FOOTER FIXES ===== */
@media (max-width: 767px) {

    /* Footer container - more padding */
    footer .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-top: 48px !important;
        padding-bottom: 32px !important;
    }

    /* Footer grid - single column layout (hide Quick Links and Services) */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        justify-content: center !important;
    }

    /* Hide Quick Links and Services columns on mobile */
    footer .grid>div:nth-child(2),
    footer .grid>div:nth-child(3) {
        display: none !important;
    }

    /* Brand column (logo + description) - full width */
    footer .grid>div.lg\:col-span-1:first-child {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }

    /* Contact column - full width */
    footer .grid>div#footer-contact-column {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }


    /* Footer logo - larger */
    footer .lg\:col-span-1 img {
        height: 70px !important;
        width: auto !important;
    }

    /* Footer description text - larger and readable */
    footer .lg\:col-span-1 p.text-slate-400 {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 24px !important;
    }

    /* Social media icons - larger touch targets */
    footer .flex.gap-3 {
        gap: 12px !important;
    }

    footer .flex.gap-3 a {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.15rem !important;
    }

    /* Section headings - larger and bolder */
    footer h4 {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
        letter-spacing: 0.1em !important;
    }

    /* Footer links - larger and better spacing */
    footer ul.space-y-3 {
        gap: 14px !important;
    }

    footer ul.space-y-3 li {
        margin-bottom: 14px !important;
    }

    footer ul a,
    footer ul a span {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Footer link chevron icon - slightly larger */
    footer ul a i.fa-chevron-right {
        font-size: 0.7rem !important;
    }

    /* Contact items - clean simplified look on mobile */
    footer .footer-contact-item {
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Hide the icon boxes on mobile - show simple icon instead */
    footer .footer-contact-item .contact-icon-box {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
    }

    footer .footer-contact-item .contact-icon-box i {
        color: #94a3b8 !important;
        font-size: 1rem !important;
    }

    /* Hide the small labels on mobile */
    footer .footer-contact-item .contact-label {
        display: none !important;
    }

    /* Make text larger */
    footer .footer-contact-item .contact-text-block a,
    footer .footer-contact-item .contact-text-block p:not(.contact-label) {
        font-size: 1.05rem !important;
    }

    /* Reduce spacing in contact list */
    footer ul.space-y-4 {
        gap: 12px !important;
    }

    footer ul.space-y-4>li {
        margin: 0 !important;
    }

    /* Copyright bar - larger text */
    footer .border-t {
        padding-top: 24px !important;
        margin-top: 32px !important;
    }

    footer .border-t p,
    footer .border-t span,
    footer .border-t a {
        font-size: 0.95rem !important;
    }

    /* Center footer content on mobile */
    footer .lg\:col-span-1,
    footer>div>div>div {
        text-align: center !important;
    }

    footer .flex.gap-3 {
        justify-content: center !important;
    }

    footer ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    footer ul a {
        justify-content: center !important;
    }
}

/* ===== MOBILE ABOUT PAGE FIXES ===== */
@media (max-width: 767px) {

    /* ===== MISSION SECTION ===== */

    /* Force vertical stacking for mission layout */
    #mission-layout-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 32px !important;
    }

    /* Mission - all children full width */
    #mission-layout-container>div {
        width: 100% !important;
        text-align: center !important;
    }

    /* Mission image container - image on top */
    #mission-layout-container>div.animate-slide-left {
        order: -1 !important;
    }

    /* Mission image - centered and sized */
    #mission-layout-container img {
        width: 220px !important;
        max-width: 220px !important;
        height: 220px !important;
        margin: 0 auto !important;
    }

    /* Mission paragraph */
    #mission-layout-container p {
        text-align: center !important;
    }

    /* Mission checklist container */
    #mission-layout-container .space-y-6 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Mission checklist - center items */
    .mission-checklist-item {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Mission checklist text */
    .mission-checklist-item span {
        text-align: center !important;
    }

    /* ===== FOUNDER SECTION ===== */

    /* Force vertical stacking */
    .section-alt .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 32px !important;
    }

    /* Image container - full width, centered */
    .section-alt .lg\:w-2\/5 {
        width: 100% !important;
        text-align: center !important;
    }

    /* Image - larger and centered */
    .section-alt .lg\:w-2\/5 img {
        width: 220px !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }

    /* Text container - full width, centered */
    .section-alt .lg\:w-3\/5 {
        width: 100% !important;
        text-align: center !important;
    }

    /* Center gold subtitle */
    .section-alt .text-gold.font-semibold {
        text-align: center !important;
    }

    /* Center blockquote */
    .section-alt blockquote {
        text-align: center !important;
        border-left: none !important;
        border-top: 4px solid var(--gold) !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
    }

    /* RTL blockquote */
    [dir="rtl"] .section-alt blockquote {
        border-right: none !important;
        border-top: 4px solid var(--gold) !important;
        padding-right: 0 !important;
    }

    /* Center paragraphs */
    .section-alt .lg\:w-3\/5 p {
        text-align: center !important;
    }

    /* Problem-Solving Approach box - title stays centered */
    .section-alt .lg\:w-3\/5>div.mb-8 h4 {
        text-align: center !important;
    }

    /* Problem solving grid - single column on mobile */
    .section-alt .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Problem-solving items: LTR = left aligned */
    html[dir="ltr"] .section-alt .grid.sm\:grid-cols-2 .flex.items-start {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Problem-solving items: RTL = right aligned (Start of axis is Right in RTL) */
    html[dir="rtl"] .section-alt .grid.sm\:grid-cols-2 .flex.items-start {
        justify-content: flex-start !important;
        flex-direction: row !important;
        text-align: right !important;
    }

    /* Center credentials badges */
    .section-alt .flex.flex-wrap.gap-3 {
        justify-content: center !important;
    }

    /* ===== PROJECT CARDS ===== */

    /* Center project cards content */
    .project-card {
        text-align: center !important;
    }

    /* Stack icon and text vertically */
    .project-card .flex.items-center.gap-4 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Center the text block */
    .project-card .flex.items-center.gap-4>div:last-child {
        text-align: center !important;
    }

    /* Center project name */
    .project-card h4 {
        text-align: center !important;
    }

    /* Center project description */
    .project-card p {
        text-align: center !important;
    }

    /* Center the country text */
    .project-card>p.text-xs {
        text-align: center !important;
    }

    /* Center icon */
    .project-card .w-12 {
        margin: 0 auto !important;
    }
}

/* ===== MOBILE RTL (Arabic) HERO FIXES ===== */
@media (max-width: 767px) {

    /* RTL hero content - keep centered on mobile */
    [dir="rtl"] .hero-content {
        text-align: center !important;
    }

    /* RTL service chips - center them */
    [dir="rtl"] .hero-chips {
        justify-content: center !important;
    }

    /* RTL CTA - center */
    [dir="rtl"] .hero-cta {
        justify-content: center !important;
    }
}

/* ===== 2025 HERO SECTION ELEVATED STYLES ===== */

/* Hero Gradient Background */
.hero-bg-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%,
            rgba(99, 102, 241, 0.15) 0%,
            transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 0%,
            rgba(139, 92, 246, 0.1) 0%,
            transparent 50%),
        radial-gradient(ellipse 50% 40% at 0% 100%,
            rgba(16, 51, 86, 0.08) 0%,
            transparent 50%),
        linear-gradient(180deg,
            rgba(248, 250, 252, 1) 0%,
            rgba(241, 245, 249, 1) 100%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }
}

/* Hero Gradient Text */
.hero-gradient-text {
    background: linear-gradient(135deg,
            #103356 0%,
            #1a4a7a 35%,
            #6366f1 70%,
            #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: textGradientFlow 4s ease-in-out infinite;
}

@keyframes textGradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Hero Primary Button */
.hero-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #103356 0%, #1a4a7a 50%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(16, 51, 86, 0.5);
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(16, 51, 86, 0.6);
}

.hero-btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d4af37 100%);
    border-radius: 50px;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hero-btn-primary:hover .hero-btn-glow {
    opacity: 0.6;
}

/* Hero Secondary Button */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    border: 2px solid rgba(16, 51, 86, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(16, 51, 86, 0.4);
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.4) 0%,
            rgba(139, 92, 246, 0.3) 100%);
    animation: floatParticle 20s ease-in-out infinite;
}

.particle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
    opacity: 0.3;
}

.particle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
    opacity: 0.2;
}

.particle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
    opacity: 0.15;
}

.particle-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 30%;
    animation-delay: -15s;
    opacity: 0.2;
}

.particle-5 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: -7s;
    opacity: 0.15;
}

.particle-6 {
    width: 120px;
    height: 120px;
    bottom: 5%;
    right: 10%;
    animation-delay: -12s;
    opacity: 0.2;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(10px, 30px) scale(1.05);
    }
}

/* Wave Animation */
.wave-animation .wave-path-1 {
    animation: waveMove1 8s ease-in-out infinite;
}

.wave-animation .wave-path-2 {
    animation: waveMove2 10s ease-in-out infinite;
}

@keyframes waveMove1 {

    0%,
    100% {
        d: path("M0,60 C360,120 720,0 1080,60 C1260,90 1380,30 1440,60 L1440,120 L0,120 Z"
            );
    }

    50% {
        d: path("M0,80 C360,20 720,100 1080,40 C1260,60 1380,90 1440,70 L1440,120 L0,120 Z"
            );
    }
}

@keyframes waveMove2 {

    0%,
    100% {
        d: path("M0,80 C240,40 480,100 720,80 C960,60 1200,100 1440,80 L1440,120 L0,120 Z"
            );
    }

    50% {
        d: path("M0,60 C240,100 480,40 720,60 C960,80 1200,40 1440,60 L1440,120 L0,120 Z"
            );
    }
}

/* Hero Image Parallax Container */
.hero-image-container {
    perspective: 1000px;
}

.hero-image-card {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Hero Glow Animation */
.hero-glow {
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Delayed Float Animation */
@keyframes floatDelayed {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

.animate-float-delayed {
    animation: floatDelayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Counter Number Animation */
.hero-counter {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat Item Hover */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

/* Animation delay for 250ms */
.delay-250 {
    animation-delay: 0.25s;
}

/* RTL Adjustments for Hero */
[dir="rtl"] .hero-btn-primary i.fa-arrow-right,
[dir="rtl"] .hero-btn-secondary i.fa-arrow-right {
    transform: scaleX(-1);
}

[dir="rtl"] .group:hover .fa-arrow-right {
    transform: scaleX(-1) translateX(-4px) !important;
}

[dir="rtl"] .hero-image-card .absolute.-bottom-4.-left-4,
[dir="rtl"] .hero-image-card .absolute.-bottom-6.-left-6 {
    left: auto;
    right: -1rem;
}

[dir="rtl"] .hero-image-card .absolute.-top-3.-right-3,
[dir="rtl"] .hero-image-card .absolute.-top-4.-right-4 {
    right: auto;
    left: -0.75rem;
}

/* Hero Section RTL - Flip layout on desktop (image left, text right) */
@media (min-width: 1024px) {
    [dir="rtl"] .hero-layout {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .hero-content {
        text-align: right;
    }

    [dir="rtl"] .hero-chips {
        justify-content: flex-end;
    }

    [dir="rtl"] .hero-cta {
        justify-content: flex-end;
    }
}

/* Hero CTA button - flip icon position in RTL */
[dir="rtl"] .cta-primary-enhanced {
    flex-direction: row-reverse;
}

[dir="rtl"] .cta-primary-enhanced i.fa-arrow-right {
    transform: scaleX(-1);
}

[dir="rtl"] .cta-primary-enhanced:hover i.fa-arrow-right {
    transform: scaleX(-1) translateX(-4px);
}

/* Mobile Responsive Hero Adjustments */
@media (max-width: 768px) {

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        padding: 14px 24px;
    }

    .particle {
        display: none;
    }

    .hero-gradient-text {
        font-size: 2.25rem !important;
    }
}

/* ===== AURORA BACKGROUND ===== */
:root {
    /* Aurora Colors (Tailwind equivalents) */
    --aurora-white: #ffffff;
    --aurora-black: #000000;
    --aurora-blue-500: #3b82f6;
    --aurora-indigo-300: #a5b4fc;
    --aurora-blue-300: #93c5fd;
    --aurora-violet-200: #ddd6fe;
    --aurora-blue-400: #60a5fa;
    --aurora-transparent: transparent;
}

@keyframes aurora {
    from {
        background-position:
            50% 50%,
            50% 50%;
    }

    to {
        background-position:
            350% 50%,
            350% 50%;
    }
}

.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: var(--bg-primary); Removed to allow underlying bg if needed, though usually this covers */
    /* Ensure it doesn't block clicks */
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    /* Behind content but above negative z-index background */
}

/* Ensure content sits on top */
.relative.z-10 {
    position: relative;
    z-index: 10;
}

.aurora-beam {
    position: absolute;
    inset: -10px;
    opacity: 0;
    will-change: auto;
    filter: blur(10px) invert(1);
    /* Light mode inversion */
    pointer-events: none;
    /* Fade in after page load to prevent hero image blinking */
    animation: auroraContainerFadeIn 1s ease-out 0.2s forwards;

    /* Complex Gradients */
    --white-gradient: repeating-linear-gradient(100deg,
            var(--aurora-white) 0%,
            var(--aurora-white) 7%,
            var(--aurora-transparent) 10%,
            var(--aurora-transparent) 12%,
            var(--aurora-white) 16%);
    --dark-gradient: repeating-linear-gradient(100deg,
            var(--aurora-black) 0%,
            var(--aurora-black) 7%,
            var(--aurora-transparent) 10%,
            var(--aurora-transparent) 12%,
            var(--aurora-black) 16%);
    --aurora-gradient: repeating-linear-gradient(100deg,
            var(--aurora-blue-500) 10%,
            var(--aurora-indigo-300) 15%,
            var(--aurora-blue-300) 20%,
            var(--aurora-violet-200) 25%,
            var(--aurora-blue-400) 30%);

    background-image: var(--white-gradient), var(--aurora-gradient);
    background-size: 300% 200%;
    background-position:
        50% 50%,
        50% 50%;
}

/* Aurora container fade-in to prevent hero image blinking */
@keyframes auroraContainerFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.5;
    }
}

/* Fade in aurora after delay to prevent blinking */
@keyframes auroraFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.aurora-beam::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--white-gradient), var(--aurora-gradient);
    background-size: 200% 100%;
    background-attachment: fixed;
    mix-blend-mode: difference;
    opacity: 0;
    /* Fade in first, then start aurora animation - prevents hero image blinking */
    animation: auroraFadeIn 0.8s ease-out 0.3s forwards, aurora 120s linear 0.5s infinite;
}

/* Optional Radial Gradient Mask */
.aurora-mask {
    mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 100% 0%,
            black 10%,
            transparent 70%);
}

/* ===== 2025 HERO ENHANCEMENTS ===== */

/* Light Engineering Grid Pattern */
.bg-pattern-engineering {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(16, 51, 86, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 51, 86, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center,
            black 40%,
            transparent 100%);
    pointer-events: none;
}

/* Floating Architectural Frame */
.hero-image-frame {
    position: relative;
    z-index: 10;
}

.hero-image-frame::before {
    content: "";
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle Gold Border */
    border-radius: 32px;
    /* Matches card radius + offset */
    z-index: -1;
    transform: translate(15px, 15px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image-frame:hover::before {
    transform: translate(25px, 25px);
    border-color: rgba(212, 175, 55, 0.4);
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(16, 51, 86, 0.05);
    /* Subtle Navy Border */
    border-radius: 32px;
    z-index: -2;
    transform: translate(-15px, -15px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image-frame:hover::after {
    transform: translate(-25px, -25px);
    border-color: rgba(16, 51, 86, 0.1);
}

/* Enhanced KSA Flag */
.ksa-flag-enhanced {
    font-size: 24px !important;
    /* Significantly larger */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    margin-bottom: 4px !important;
}

/* Top Right Badge Positioning */
.badge-top-right {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 30;
}

/* Enhanced CTA Buttons */
.cta-primary-enhanced {
    position: relative;
    overflow: hidden;
    background: #103356;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 51, 86, 0.3);
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.cta-primary-enhanced::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #103356 0%, #4f46e5 50%, #8b5cf6 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.cta-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 51, 86, 0.5);
    color: white !important;
}

.cta-primary-enhanced:hover::before {
    opacity: 1;
}

.cta-secondary-enhanced {
    background: white;
    color: #103356 !important;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-secondary-enhanced:hover {
    background: #103356;
    color: white !important;
    border-color: #103356;
    box-shadow: 0 8px 25px rgba(16, 51, 86, 0.3);
    transform: translateY(-2px);
}

/* Specific icon animation for buttons */
.cta-primary-enhanced:hover i,
.cta-secondary-enhanced:hover i {
    transform: translateX(4px);
    /* Ensure icon color inherits correctly */
    color: inherit;
}

/* ===== TESTIMONIALS SECTION ===== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 320px;
    scroll-snap-align: center;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(16, 51, 86, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.profile-img-container {
    position: relative;
    overflow: hidden;
}

.profile-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 51, 86, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .profile-img-container::after {
    opacity: 1;
}

/* ===== CARD ALIGNMENT FIXES ===== */
/* Icons always centered */
.expertise-card .expertise-icon,
.trust-card .trust-icon {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* TRUST CARDS: Always Centered (Both Languages) */
.trust-card,
.trust-card h3,
.trust-card p,
.trust-card li {
    text-align: center !important;
}

/* EXPERTISE CARDS: Desktop - Language-Dependent Alignment */
@media (min-width: 768px) {

    /* H3 Titles always centered on Desktop */
    .expertise-card h3 {
        text-align: center !important;
    }

    /* English (LTR): Content aligned left */
    html[dir="ltr"] .expertise-card p,
    html[dir="ltr"] .expertise-card ul,
    html[dir="ltr"] .expertise-card li {
        text-align: left !important;
    }

    /* Arabic (RTL): Content aligned right */
    html[dir="rtl"] .expertise-card p,
    html[dir="rtl"] .expertise-card ul,
    html[dir="rtl"] .expertise-card li {
        text-align: right !important;
    }
}

/* EXPERTISE CARDS: Mobile - Always Centered (Both Languages) */
@media (max-width: 767px) {

    .expertise-card,
    .expertise-card h3,
    .expertise-card p,
    .expertise-card ul,
    .expertise-card li {
        text-align: center !important;
    }

    /* Center the ul block itself */
    .expertise-card ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* SERVICES CARDS: Mobile - Vertically Centered Layout */
@media (max-width: 767px) {

    /* Header: Stack Icon and Text */
    .service-card>.flex>div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Inner Header Text Container */
    .service-card>.flex>div:first-child>div:last-child {
        text-align: center !important;
    }

    /* Content: Center text in features grid */
    .service-card>.flex>div:last-child .grid {
        text-align: center !important;
    }

    /* Center List Items */
    .service-card ul li {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Force RTL Centering explicitly */
    html[dir="rtl"] .service-card>.flex>div:first-child,
    html[dir="rtl"] .service-card>.flex>div:first-child>div:last-child,
    html[dir="rtl"] .service-card>.flex>div:last-child .grid,
    html[dir="rtl"] .service-card .grid>div,
    html[dir="rtl"] .service-card h4,
    html[dir="rtl"] .service-card ul,
    html[dir="rtl"] .service-card ul li {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure list items flow correctly in center */
    html[dir="rtl"] .service-card ul li {
        flex-direction: row !important;
    }

    /* EXCEPTION: Expert Witness / Golden Check Items - Should align RIGHT in RTL Mobile */
    html[dir="rtl"] .service-card li.expert-witness-checklist {
        justify-content: flex-start !important;
        /* Start = Right in RTL */
        text-align: right !important;
        width: 100% !important;
    }
}

/* ===== GLOBAL FOOTER STYLES ===== */

/* Force RTL Footer Alignment to CENTER */
[dir="rtl"] footer .text-slate-400,
[dir="rtl"] footer h4,
[dir="rtl"] footer a,
[dir="rtl"] footer p,
[dir="rtl"] footer li,
[dir="rtl"] footer .footer-contact-item {
    text-align: center !important;
}

[dir="rtl"] footer .flex,
[dir="rtl"] footer .group.flex,
[dir="rtl"] footer ul {
    justify-content: center !important;
    align-items: center !important;
}

/* Override specific contact column rules */
[dir="rtl"] #footer-contact-column {
    text-align: center !important;
}

[dir="rtl"] #footer-contact-column .footer-contact-item>div:last-child {
    text-align: center !important;
}

/* Fix Contact Item Icons spacing in RTL */
[dir="rtl"] footer .footer-contact-item {
    flex-direction: row-reverse !important;
    /* Icon on Right, Text on Left */
    gap: 0.75rem;
}

/* Reset margins for centered icons */
[dir="rtl"] footer .footer-contact-item>div:first-child {
    margin: 0 !important;
}

/* Center Social Media Icons */
[dir="rtl"] footer .lg\:col-span-1 .flex {
    justify-content: center !important;
}

/* RTL Layout for Footer Contact Column */
[dir="rtl"] #footer-contact-column {
    text-align: right !important;
}

[dir="rtl"] #footer-contact-column .footer-contact-item {
    flex-direction: row-reverse !important;
}

[dir="rtl"] #footer-contact-column .footer-contact-item>div:last-child {
    text-align: right !important;
}

/* RTL Layout for Newsletter Form - Button on Left */
[dir="rtl"] #footerNewsletterForm {
    flex-direction: row-reverse !important;
}

/* RTL: Stack items vertically, Copyright Top, Credit Bottom */
[dir="rtl"] #footer-bottom-bar {
    flex-direction: column !important;
}

/* RTL: Correct reading order - "CvWebs" then "من تطوير" */
[dir="rtl"] #footer-cvwebs-credit {
    order: 2 !important;
    flex-direction: row !important;
}

/* RTL: Center Brand Column (Logo, Bio, Social) */
[dir="rtl"] footer .lg\:col-span-1 {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Center logo link specifically */
[dir="rtl"] footer .lg\:col-span-1>a {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block !important;
}

/* Center text paragraph */
[dir="rtl"] footer .lg\:col-span-1 p {
    text-align: center !important;
}

/* Center Social Icons Flex Container */
[dir="rtl"] footer .lg\:col-span-1 .flex {
    justify-content: center !important;
    width: 100% !important;
}

/* Make CvWebs company name bigger in footer credit */
#cvwebs-link span {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}