@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Core definitions (Default dark theme) */
    --background-dark: #000000;
    --background-darker: #111111;
    --background-card: #1A1A1A;
    --background-light: #F4F4F4;
    --background-white: #FFFFFF;

    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-dark: #000000;
    --text-dark-light: #555555;

    --accent-green: #86C82A;
    /* Deloitte green */
    --accent-green-hover: #75b323;

    --spacing-section: 6rem;
    --border-radius: 8px;
    --font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Theme border, translucent bg and shadow variables */
    --border-color: rgba(255, 255, 255, 0.12);
    --bg-translucent: rgba(255, 255, 255, 0.05);
    --bg-translucent-hover: rgba(255, 255, 255, 0.10);
    --text-translucent: rgba(255, 255, 255, 0.60);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
    --card-overlay-color: 255, 255, 255;
}

/* Light mode overrides */
[data-theme="light"] {
    --background-dark: #FFFFFF;
    --background-darker: #F9F9F9;
    --background-card: #FFFFFF;
    --background-light: #EBEBEB;
    --background-white: #000000;

    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-dark: #FFFFFF;
    --text-dark-light: #CCCCCC;

    --border-color: rgba(0, 0, 0, 0.12);
    --bg-translucent: rgba(0, 0, 0, 0.04);
    --bg-translucent-hover: rgba(0, 0, 0, 0.08);
    --text-translucent: rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --card-overlay-color: 0, 0, 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Allow text selection in inputs and textareas */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 992px) {
    .container-fullwidth {
        padding: 0 5%;
    }
}

/* Utilities */
.text-accent {
    color: var(--accent-green);
}

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

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

.text-dark-light {
    color: var(--text-dark-light);
}

.mb-0 {
    margin-bottom: 0;
}

.mt-auto {
    margin-top: auto;
}

.fw-bold {
    font-weight: bold;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.38;
    margin-bottom: 2rem;
}

.section-title.dark-text {
    color: var(--text-dark);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.link-arrow svg {
    transition: transform 0.3s ease;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.link-arrow.dark-link {
    color: var(--text-dark);
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hamburger Menu Button & Mobile Nav Behavior */
.menu-btn {
    display: none !important;
}

@media (max-width: 992px) {
    .menu-btn {
        display: inline-flex !important;
    }

    .nav {
        gap: 1rem;
    }

    /* Hide standard top header links in mobile view since all items are inside the Hamburger Menu */
    .header .nav-item:not(.menu-btn),
    .header .lang-dropdown,
    .header .lang-toggle-pill,
    .header .theme-toggle-pill,
    .header .theme-toggle-btn {
        display: none !important;
    }
}

/* Ensure the absolute header sitting on the dark banner stays white in both modes */
.header .nav-item {
    color: #ffffff;
}

.header .nav-item:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   Header Mega Dropdown Menu ("About Us") - Mitrex Style
   ========================================================================== */
.nav-item.mega-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mega-dropdown-toggle {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mega-dropdown-toggle:hover,
.nav-item.mega-dropdown:hover .mega-dropdown-toggle {
    color: var(--accent-green);
}

.mega-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.mega-dropdown:hover .mega-chevron {
    transform: rotate(180deg);
}

/* Full-width Dropdown Container */
.mega-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 92vw;
    max-width: 1050px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

/* Dropdown Bridge to prevent menu closing on mouse movement */
.nav-item.mega-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50px;
    right: -50px;
    height: 1.5rem;
    background: transparent;
}

.nav-item.mega-dropdown:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.mega-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.2rem 2rem;
    min-height: 220px;
    text-decoration: none;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[dir="rtl"] .mega-card {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-card:last-child {
    border-right: none;
}

[dir="rtl"] .mega-card:last-child {
    border-left: none;
}

.mega-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mega-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.mega-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mega-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mega-card-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.mega-card-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    transition: color 0.25s ease;
}

/* Card Hover States - Mitrex Style */
.mega-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mega-card:hover .mega-card-title {
    color: var(--accent-green);
}

.mega-card:hover .mega-card-dot {
    background: var(--accent-green);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.mega-card:hover .mega-card-icon {
    color: var(--accent-green);
    transform: translateY(-4px);
}

.mega-card:hover .mega-card-icon svg {
    stroke: var(--accent-green);
}

.mega-card:hover .mega-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Language Selector Pill & Dropdown
   ========================================================================== */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    padding: 4px 10px 4px 6px;
    height: 34px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.lang-dropdown-btn:hover,
.lang-dropdown.open .lang-dropdown-btn {
    background: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.lang-dropdown-btn:focus-visible {
    outline: 2px solid var(--accent-green, #86C82A);
    outline-offset: 2px;
}

.lang-flag-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.lang-chevron {
    width: 12px;
    height: 12px;
    stroke: #111827;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu Popup */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 6px;
    min-width: 140px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Invisible bridge between button and dropdown menu to bridge hover gap */
.lang-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: -10px;
    right: -10px;
    height: 14px;
    background: transparent;
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
}

.lang-dropdown.open .lang-dropdown-menu,
.lang-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #1f2937 !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827 !important;
}

.lang-dropdown-item.active {
    background: #f0fdf4;
    color: #15803d !important;
    font-weight: 600;
}

.lang-dropdown-item.active::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green, #86C82A);
    margin-left: auto;
}

[dir="rtl"] .lang-dropdown-item.active::after {
    margin-left: 0;
    margin-right: auto;
}

/* ==========================================================================
   Redesigned Premium White Full-Screen Mobile Overlay Menu (Green Theme)
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(134, 200, 42, 0.25);
    background: #FFFFFF !important;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-logo .mobile-logo-img {
    height: 90px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}

.mobile-menu-close {
    background: rgba(134, 200, 42, 0.12);
    border: 1.5px solid rgba(134, 200, 42, 0.3);
    color: #86C82A;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-menu-close:hover {
    background: #86C82A;
    color: #FFFFFF;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(134, 200, 42, 0.3);
}

.mobile-menu-content {
    flex: 1;
    padding: 2rem 1.75rem 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
    background: #FFFFFF !important;
    box-sizing: border-box;
}

.mobile-menu-intro {
    margin-bottom: 1.5rem;
}

.mobile-menu-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #86C82A;
    text-transform: uppercase;
    background: rgba(134, 200, 42, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.mobile-menu-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mobile-nav-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(134, 200, 42, 0.14);
    color: #86C82A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.mobile-nav-icon svg {
    stroke: #86C82A !important;
}

.mobile-nav-text {
    flex: 1;
}

.mobile-nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    transition: color 0.2s ease;
}

.mobile-nav-sub {
    font-size: 0.82rem;
    color: #6B7280;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.mobile-nav-arrow {
    color: #86C82A;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.mobile-nav-card:hover,
.mobile-nav-card.active {
    background: linear-gradient(135deg, rgba(134, 200, 42, 0.12) 0%, #FFFFFF 100%);
    border-color: #86C82A;
    box-shadow: 0 8px 20px -4px rgba(134, 200, 42, 0.2);
    transform: translateY(-2px);
}

.mobile-nav-card:hover .mobile-nav-title,
.mobile-nav-card.active .mobile-nav-title {
    color: #86C82A;
}

.mobile-nav-card:hover .mobile-nav-icon,
.mobile-nav-card.active .mobile-nav-icon {
    background: #86C82A;
    color: #FFFFFF;
}

.mobile-nav-card:hover .mobile-nav-icon svg,
.mobile-nav-card.active .mobile-nav-icon svg {
    stroke: #FFFFFF !important;
}

.mobile-nav-card:hover .mobile-nav-arrow,
.mobile-nav-card.active .mobile-nav-arrow {
    opacity: 1;
    transform: translateX(4px);
}

[dir="rtl"] .mobile-nav-card:hover .mobile-nav-arrow,
[dir="rtl"] .mobile-nav-card.active .mobile-nav-arrow {
    transform: translateX(-4px);
}

.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(134, 200, 42, 0.3) 50%, transparent 100%);
    margin: 1.5rem 0;
}

.mobile-menu-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-action-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(134, 200, 42, 0.12);
    color: #86C82A !important;
    border: 1.5px solid rgba(134, 200, 42, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-action-pill svg {
    stroke: #86C82A !important;
}

.mobile-action-pill:hover {
    background: #86C82A;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(134, 200, 42, 0.3);
}

.mobile-action-pill:hover svg {
    stroke: #FFFFFF !important;
}

.mobile-menu-contact-row {
    margin-top: 1.25rem;
    text-align: center;
}

.mobile-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #86C82A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-contact-email:hover {
    color: #68A11C;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 90px;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}

.hero-bg-flipped {
    transform: scaleX(-1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.75) 0%, rgba(10, 10, 12, 0.25) 55%, var(--background-dark) 100%);
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through, mouse movements handled on container */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 2rem;
    }
}

.hero-left {
    flex: 1;
    max-width: 650px;
}

/* Right-aligned Hero Banner Variant */
.hero-align-right {
    justify-content: flex-end;
}

.hero-align-right .hero-left {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

html[dir="rtl"] .hero-align-right {
    justify-content: flex-start;
}

html[dir="rtl"] .hero-align-right .hero-left {
    margin-right: 0;
    margin-left: auto;
    align-items: flex-start;
    text-align: right;
}

.hero-title {
    font-size: clamp(2.0rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 550px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-btn .btn-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-green);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hero-btn:hover .btn-icon {
    transform: scale(1.05);
    background-color: var(--accent-green-hover);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.layered-text {
    position: relative;
    width: 400px;
    height: 300px;
}

.layer {
    position: absolute;
    right: 0;
    text-align: right;
}

.layer-1 {
    top: 0;
    opacity: 0.2;
    transform: translateY(0);
}

.layer-2 {
    top: 40px;
    opacity: 0.5;
    transform: translateY(0);
}

.layer-3 {
    top: 80px;
    opacity: 1;
    transform: translateY(0);
}

.deloitte-text {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: -10px;
}

.fast-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
}

.fast-container .number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.8;
}

.fast-container .fast-text {
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    color: var(--accent-green);
    margin-top: 5px;
}

/* Fast Growth Section */
.fast-growth {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: var(--spacing-section) 0;
    background-color: var(--background-dark);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 1s cubic-bezier(0.25, 0.9, 0.3, 1), transform 1s cubic-bezier(0.25, 0.9, 0.3, 1), background-color 0.3s ease;
}

.fast-growth.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fast-growth-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(ellipse 65% 90% at 12% -10%, rgba(255, 255, 255, 0.11), transparent 62%),
        radial-gradient(ellipse 45% 65% at 88% -20%, rgba(120, 120, 120, 0.08), transparent 70%);
    pointer-events: none;
}

.fast-growth-dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.8;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(250, 250, 250, 0.08) 0.65px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(250, 250, 250, 0.08) 0.65px, transparent 1px);
    background-size: 12px 12px;
    pointer-events: none;
}

.fast-growth-container-custom {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.fast-growth-header-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fast-growth-header-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.fast-growth-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fast-growth-badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
}

.fast-growth-badge {
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    border-radius: 9999px;
    padding: 0.25rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.fast-growth-badge-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.fast-growth-main-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.fast-growth-desc {
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.fast-growth-btn-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .fast-growth-btn-row {
        flex-direction: row;
        align-items: center;
    }
}

.fast-growth-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    color: var(--text-primary);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fast-growth-btn-primary:hover {
    background-color: var(--bg-translucent-hover);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.fast-growth-btn-indicator {
    position: relative;
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
}

.fast-growth-btn-indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1px solid currentColor;
    opacity: 0.3;
}

.fast-growth-btn-indicator-inner {
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 9999px;
    background-color: currentColor;
    transition: transform 0.5s ease;
}

.fast-growth-btn-primary:hover .fast-growth-btn-indicator-inner {
    transform: scale(1.1);
}

.fast-growth-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.5s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.fast-growth-link-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.arrow-diagonal {
    font-size: 1.125rem;
    line-height: 1;
}

.fast-growth-showcase-card {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.fast-growth-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(108, 189, 69, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 10;
}

.fast-growth-showcase-card:hover::after {
    opacity: 1;
}

@media (min-width: 1024px) {
    .fast-growth-showcase-card {
        max-width: 28rem;
    }
}

.fast-growth-showcase-figure {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.fast-growth-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.fast-growth-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.fast-growth-image-wrapper:hover .fast-growth-showcase-img {
    transform: scale(1.02);
}

.fast-growth-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent, rgba(0, 0, 0, 0.3));
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.fast-growth-showcase-beacon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    pointer-events: none;
}

.beacon-svg {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
}

.fast-growth-showcase-orbit {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    opacity: 0.6;
    animation: hero1-orbit 8s linear infinite;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.fast-growth-showcase-caption {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-translucent);
    transition: color 0.3s ease;
}

.fast-growth-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot-live {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 9999px;
    background-color: currentColor;
    animation: pulse-live 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Animations for Showcase Beacon */
.animate-pulse-custom {
    animation: hero1-pulse 4.5s ease-in-out infinite;
    transform-origin: center;
}

.animate-trace-custom {
    animation: hero1-trace 6s ease-in-out infinite;
}

.delay-custom {
    animation-delay: 0.45s;
}

@keyframes hero1-orbit {
    0% {
        stroke-dashoffset: 0;
        transform: rotate(0deg);
    }

    100% {
        stroke-dashoffset: -44;
        transform: rotate(360deg);
    }
}

@keyframes hero1-node {

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

    50% {
        transform: translateY(6px);
        opacity: 0.6;
    }
}

@keyframes hero1-trace {

    0%,
    30% {
        stroke-dasharray: 0 160;
        opacity: 0;
    }

    45%,
    65% {
        stroke-dasharray: 160 0;
        opacity: 1;
    }

    100% {
        stroke-dasharray: 0 160;
        opacity: 0;
    }
}

@keyframes hero1-pulse {

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

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

/* Bottom Grid (Capabilities Row) */
.fast-growth-capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .fast-growth-capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fast-growth-cap-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.fast-growth-cap-card:hover {
    border-color: var(--accent-green);
}

.cap-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.cap-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Spotlight gradient tracking the cursor */
.fast-growth-cap-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(108, 189, 69, 0.18), transparent 72%);
    pointer-events: none;
}

.fast-growth-cap-card:hover::after {
    opacity: 1;
}

.cap-circle-decoration {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.7;
    pointer-events: none;
    transition: border-color 0.5s ease;
}

.fast-growth-cap-card:hover .cap-circle-decoration {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Client Logos Marquee Strip */
.client-logos-strip-container {
    margin-top: 5rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3.5rem;
}

.client-logos-title,
html[dir="rtl"] .client-logos-title,
html[dir="ltr"] .client-logos-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-align: center !important;
    width: 100%;
}

.client-logos-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0 3.5rem 0;
    /* Soft edge masks */
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.client-logos-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

/* Pause on hover for interaction */
.client-logos-marquee-wrapper:hover .client-logos-marquee-track {
    animation-play-state: paused;
}

.client-logo-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 170px;
    padding: 0.5rem 1.25rem;
    margin: 0 0.6rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.client-logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-logo-item:hover {
    box-shadow: 0 6px 20px rgba(108, 189, 69, 0.25);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.client-logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* In Light Mode: restore transparent background without white box */
html[data-theme="light"] .client-logo-item {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0 2rem;
    margin: 0;
    height: 50px;
    width: 170px;
    transform: none;
}

html[data-theme="light"] .client-logo-item img {
    opacity: 0.8;
}

html[data-theme="light"] .client-logo-item:hover {
    background-color: transparent;
    box-shadow: none;
    border: none;
    transform: none;
}

html[data-theme="light"] .client-logo-item:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* Tooltip Hover Badge Positioned UNDER the Logo */
.client-logo-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background-color: var(--background-card);
    color: var(--text-primary);
    border: 1px solid var(--accent-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* Arrow Pointer Pointing UP to the Logo */
.client-logo-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--accent-green) transparent;
}

.client-logo-item:hover .client-logo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Business of AI Section */
.business-ai {
    padding: var(--spacing-section) 0;
    background-color: var(--background-darker);
    position: relative;
    overflow: hidden;
}

.container-fluid-custom {
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    margin: 0 auto;
}

.ai-header-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .ai-header-container {
        flex-direction: row;
        align-items: flex-end;
    }
}

.ai-header {
    max-width: 600px;
}

.ai-slider-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
}

.slider-btn:active {
    transform: scale(0.92);
}

.slider-btn svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.slider-btn:hover svg {
    transform: scale(1.1);
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: -20px 0;
}

.grid-cards {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbars on Firefox */
    padding-top: 20px;
    /* Allow space for hover lift */
    padding-bottom: 20px;
    /* Allow space for hover shadow */
    margin-top: -20px;
    margin-bottom: -20px;
}

.grid-cards::-webkit-scrollbar {
    display: none;
    /* Hide scrollbars on Chrome/Safari/Opera */
}

.card {
    flex: 0 0 350px;
    width: 350px;
    min-width: 350px;
    background-color: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 280px;
        width: 280px;
        min-width: 280px;
    }
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-card-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    border-color: var(--accent-green);
    background-color: rgba(134, 200, 42, 0.05);
}

.card-title {
    font-size: 1.3rem;
}

.card-text {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Case Study Section */
.case-study {
    padding: var(--spacing-section) 0;
    position: relative;
}

.case-study-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.case-study-header {
    max-width: 600px;
}

.case-study-desc {
    margin-top: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all-btn:hover {
    color: #6cbd45;
}

.btn-arrow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.view-all-btn:hover .btn-arrow-circle {
    border-color: #6cbd45;
    background-color: #6cbd45;
    color: #000000;
}

.case-study-slider-wrapper {
    position: relative;
    width: 100%;
}

.case-study-slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding-top: 20px;
    padding-bottom: 30px;
    margin-top: -20px;
    margin-bottom: -30px;
}

.case-study-slider-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.case-study-card {
    position: relative;
    height: 480px;
    width: 290px;
    flex-basis: 290px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        flex-basis 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 189, 69, 0.12), transparent 80%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.case-study-card:hover {
    border-color: #6cbd45;
    box-shadow: 0 12px 30px rgba(108, 189, 69, 0.25);
    transform: translateY(-6px);
}

.case-study-card:hover::after {
    opacity: 1;
}

.case-study-card.active {
    width: 580px;
    flex-basis: 580px;
}

.case-study-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.6s ease;
    filter: grayscale(35%) brightness(0.75);
}

.case-study-card.active .case-study-bg-img,
.case-study-card:hover .case-study-bg-img {
    filter: grayscale(0%) brightness(0.88);
}

.case-study-card:hover .case-study-bg-img {
    transform: scale(1.04);
}

.case-study-card.active:hover .case-study-bg-img {
    transform: scale(1.02);
}

.case-study-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
    opacity: 0.75;
}

.case-study-card.active .case-study-overlay,
.case-study-card:hover .case-study-overlay {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.case-study-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-tag {
    background: var(--accent-green, #6cbd45);
    color: #000000;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    z-index: 4;
}

.case-study-card.active .case-study-tag,
.case-study-card:hover .case-study-tag {
    opacity: 1;
    background: #ffffff;
    color: #000000;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.38;
    color: #ffffff;
    margin: 0;
    opacity: 0.92;
    transition: color 0.3s ease, font-size 0.4s ease, margin-bottom 0.4s ease, opacity 0.3s ease;
}

.case-study-card.active .case-study-title {
    font-size: 1.65rem;
    font-weight: 700;
    opacity: 1;
    margin-bottom: 0.5rem;
}

.case-study-card:hover .case-study-title {
    opacity: 1;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green, #6cbd45);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    height: 0;
    overflow: hidden;
}

.case-study-link:hover {
    color: #ffffff;
}

.case-study-card.active .case-study-link,
.case-study-card:hover .case-study-link {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    height: auto;
    margin-top: 1rem;
    overflow: visible;
}

.btn-arrow-circle.small {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.case-study-link:hover .btn-arrow-circle.small {
    background-color: #6cbd45;
    border-color: #6cbd45;
    color: #000000;
}

.case-study-next-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-next-btn:hover {
    background-color: #6cbd45;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(108, 189, 69, 0.4);
}

.case-study-next-btn:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 1024px) {
    .case-study-card {
        width: 270px;
        flex-basis: 270px;
        height: 440px;
        padding: 1.75rem 1.5rem;
    }

    .case-study-card.active {
        width: 440px;
        flex-basis: 440px;
        max-width: calc(100vw - 4rem);
    }

    .case-study-card.active .case-study-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .case-study-card {
        width: 250px;
        flex-basis: 250px;
        padding: 1.5rem 1.25rem;
        height: 390px;
    }

    .case-study-card.active {
        width: 320px;
        flex-basis: 320px;
        max-width: calc(100vw - 2.5rem);
    }

    .case-study-title {
        font-size: 1.05rem;
    }

    .case-study-card.active .case-study-title {
        font-size: 1.25rem;
    }

    .case-study-next-btn {
        right: 0.75rem;
        width: 44px;
        height: 44px;
    }

    .case-study-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .view-all-btn {
        align-self: flex-start;
    }
}

/* Quote Section */
.quote-section {
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .quote-section {
        flex-direction: row;
    }
}

.explore-col {
    background-color: #F4F4F4;
    color: #000000;
    padding: 6rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.explore-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #000000;
}

.explore-text {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 3rem;
    max-width: 400px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-outline {
    border: 2px solid #000;
    color: #000;
    background: transparent;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

.quote-col {
    background-color: #1A1A1A;
    padding: 6rem 4rem;
    flex: 1.5;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.quote-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(108, 189, 69, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.testimonial-carousel {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.testimonial-track {
    position: relative;
    min-height: 280px;
    width: 100%;
}

@media (max-width: 768px) {
    .testimonial-track {
        min-height: 340px;
    }
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.testimonial-slide.active {
    position: absolute;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.quote-mark {
    font-size: 8rem;
    line-height: 1;
    color: var(--accent-green);
    opacity: 0.12;
    font-family: Georgia, serif;
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    pointer-events: none;
    user-select: none;
}

.quote-text {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(108, 189, 69, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.testimonial-slide:hover .author-avatar {
    border-color: var(--accent-green);
    transform: scale(1.05);
}

.author-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.author-role {
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 400;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.carousel-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.carousel-control-btn:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(108, 189, 69, 0.3);
}

.carousel-control-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent-green);
}

/* Sustainability Section */
.sustainability-section {
    padding: var(--spacing-section) 0;
    background-color: #E8ECEF;
    /* Light grayish blue from ref */
}

.sustainability-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 900px) {
    .sustainability-container {
        flex-direction: row;
    }
}

.sustainability-img-wrapper {
    flex: 1;
}

.sustainability-img {
    width: 100%;
    border-radius: var(--border-radius);
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.sustainability-content {
    flex: 1;
}

.sustainability-content .text-dark {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Startups Section */
.clients-section {
    padding: var(--spacing-section) 0;
    background-color: #ffffff;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #EEE;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.clients-subtitle {
    color: var(--text-dark-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.client-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .client-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.client-card {
    border: 1px solid #EAEAEA;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.client-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prophaze-logo {
    color: #0052CC;
}

.guardarcs-logo {
    color: #8A2BE2;
}

.client-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: #F4F4F4;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.client-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.client-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--background-darker);
    padding: 5rem 0 0;
    /* Let canvas bleed to bottom */
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5%;
    position: relative;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4rem;
    }
}

.footer-left-col,
.footer-brand-col {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo .logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Footer Social Media Icons */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.social-icon-link svg {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon-link:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #0b0f19;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 230, 153, 0.35);
}

.social-icon-link:hover svg {
    transform: scale(1.1);
}

[data-theme="light"] .social-icon-link {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
}

[data-theme="light"] .social-icon-link:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #ffffff;
}

html[dir="rtl"] .footer-socials {
    justify-content: flex-start;
}


.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-badge-img,
.badge-img {
    height: 36px;
    width: auto;
    max-width: 110px;
    display: block;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.badge-item:hover .footer-badge-img,
.badge-item:hover .badge-img {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-link-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.footer-link-item:hover {
    color: var(--accent-green);
}

.footer-link-item:hover .link-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Footer Bottom Bar Alignment */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-awards-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-awards-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.award-item:hover .footer-awards-img {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

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

@media (min-width: 768px) {
    html[dir="rtl"] .footer-grid {
        flex-direction: row-reverse;
    }

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

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

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

/* Flickering Canvas Container */
.footer-flicker-container {
    position: relative;
    width: calc(100% + 10%);
    margin-left: -5%;
    height: 160px;
    margin-top: 1rem;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-flicker-container {
        height: 240px;
    }
}

.flicker-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--background-darker) 0%, transparent 60%, var(--background-darker) 100%);
    z-index: 2;
    pointer-events: none;
}

#flickering-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Who We Are Section */
.who-we-are {
    padding: var(--spacing-section) 0;
    background-color: var(--background-darker);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.who-we-are .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5%;
    /* Fluid margins for full width design */
}

.who-we-are-header-row {
    display: block;
    margin-bottom: 2.5rem;
}

.mobile-only-img {
    display: none !important;
}

.desktop-only-img {
    display: block !important;
}

.who-we-are-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
}

.who-we-are-title .text-green {
    color: #6bc235;
    /* Exact vibrant green from reference */
}

.who-we-are-top {
    display: grid;
    grid-template-columns: 4fr 6fr;
    /* Always side-by-side */
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: flex-start;
    margin-bottom: -11vw;
    /* Pull card up by a predictable fluid amount */
    position: relative;
    z-index: 2;
}

.who-we-are-image-container {
    width: 100%;
    position: relative;
    z-index: 10;
    /* Sits on top of the bottom card */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.who-we-are-image-container:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.who-we-are-img {
    width: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: auto;
    /* Preserve natural landscape shape with rounded corners */
    transform: scale(1.06);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.who-we-are-image-container:hover .who-we-are-img {
    transform: scale(1.14);
}

.who-we-are-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 12vw;
    /* Pushes text up so it isn't covered by the overlapping card */
}

.who-we-are-p {
    font-size: clamp(0.8rem, 1.8vw, 1.02rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Bottom Card */
.who-we-are-card {
    display: block;
    background-image: linear-gradient(to right, rgb(var(--card-overlay-color)) 25%, rgba(var(--card-overlay-color), 0.7) 60%, rgba(var(--card-overlay-color), 0) 95%), url('../assets/who_we_are_architecture.png');
    background-repeat: no-repeat;
    background-position: 70% bottom;
    /* Prioritize the arches and lantern */
    background-size: cover;
    position: relative;
    z-index: 1;
    /* Sits below the overlapping meeting image */
    background-color: var(--background-white);
    border-radius: 28px;
    overflow: hidden;
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.who-we-are-card-content {
    max-width: clamp(55%, 60vw, 65%);
    padding: max(10rem, calc(11vw + 4rem)) 2rem clamp(6rem, 10vw, 10rem) clamp(1.5rem, 4vw, 4.5rem);
    /* Top padding clears overlap fluidly, bottom clears skyline */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.who-we-are-card-title {
    font-size: clamp(1.1rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.who-we-are-card-title .text-green {
    color: #6bc235;
    /* Matching vibrant green */
}

.who-we-are-card-p {
    font-size: clamp(0.75rem, 1.8vw, 1.02rem);
    line-height: 1.6;
    color: var(--text-dark-light);
    transition: color 0.3s ease;
    font-weight: 400;
}

.who-we-are-card-image {
    display: none;
    /* Always hide inline image, we always use background overlay */
}

/* What We Do Section */
.what-we-do {
    padding: var(--spacing-section) 0;
    background-color: var(--background-dark);
    color: var(--text-primary);
}

.what-we-do .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5%;
    /* Fluid margins for full width design matching 'Who We Are' */
}

.what-we-do .section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.what-we-do .section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 4rem;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 900px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        /* 2/2 grid layout on desktop */
    }

    .reveal-item.full-width {
        grid-column: span 2;
        /* Spans across both columns for odd items */
    }
}

.reveal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.reveal-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.reveal-content {
    max-width: 60%;
    /* Leaves space for the images on the right */
    transition: opacity 0.5s ease;
}

.reveal-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.reveal-item:hover .reveal-title {
    color: var(--accent-green);
}

.reveal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.reveal-item:hover .reveal-desc {
    color: var(--text-primary);
}

/* Image reveal effects matching React styling */
.reveal-images-container {
    position: absolute;
    right: 1.5rem;
    /* Moves the reveal container closer to the right card edge */
    top: 50%;
    transform: translateY(-50%);
    width: 170px;
    height: 220px;
    pointer-events: none;
    z-index: 10;
}

.reveal-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    /* Smoother, modern roundness */
    overflow: hidden;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image-inner {
    width: 100%;
    height: 100%;
}

.reveal-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back image (index 1 in react component) */
.img-back {
    transition-delay: 0.05s;
    z-index: 11;
}

/* Front image (index 0 in react component, rotates and translates on hover) */
.img-front {
    transition-delay: 0.1s;
    z-index: 12;
}

/* Hover States */
.reveal-item:hover .reveal-image-wrapper {
    opacity: 1;
}

/* Back card: slightly grows, shifts left and up, and rotates counter-clockwise */
.reveal-item:hover .img-back {
    transform: scale(1.05) translate(-15px, -10px) rotate(-6deg);
}

/* Front card: slightly grows, shifts right and down, and rotates clockwise (popping out of boundaries) */
.reveal-item:hover .img-front {
    transform: scale(1.05) translate(35px, 20px) rotate(12deg);
}

@media (max-width: 768px) {
    .reveal-item {
        padding: 2.5rem 2rem;
    }

    .reveal-content {
        max-width: 100%;
    }

    .reveal-images-container {
        display: none;
        /* Hide hover image effects on mobile */
    }
}

/* ==========================================================================
   Leadership Page Specific Styles
   ========================================================================== */

.leadership-intro {
    max-width: 800px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.leadership-intro .section-title {
    text-align: center;
}

html[dir="rtl"] .leadership-intro,
html[dir="rtl"] .leadership-intro .section-title,
html[dir="rtl"] .leadership-intro .section-subtitle {
    text-align: center !important;
}

.leadership-intro .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: var(--spacing-section);
}

@media (min-width: 640px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* 5-column compact grid for Operations Team */
.leadership-grid-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: var(--spacing-section);
}

@media (min-width: 576px) {
    .leadership-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 850px) {
    .leadership-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1100px) {
    .leadership-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

.leadership-grid-5 .leader-info {
    padding: 1.25rem 1rem;
}

.leadership-grid-5 .leader-role {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.leadership-grid-5 .leader-name {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.leader-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--background-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leader-card.leader-card-no-popup {
    cursor: default;
}

.leader-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(134, 200, 42, 0.12), transparent 80%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.leader-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 15px 35px rgba(134, 200, 42, 0.18);
    transform: translateY(-8px);
}

.leader-card:hover::after {
    opacity: 1;
}

.leader-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.6s ease;
}

.leader-card:hover .leader-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.leader-info {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}

.leader-role {
    color: var(--accent-green);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.leader-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.leader-tagline,
.chairman-expertise,
.dialog-expertise,
.dialog-quote {
    display: none !important;
}

.leader-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.leader-socials {
    display: flex;
    gap: 1rem;
}

.leader-social-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.leader-social-link:hover {
    color: var(--accent-green);
    transform: scale(1.1);
}

.leader-btn-link {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.3s ease;
}

.leader-card:hover .leader-btn-link {
    color: var(--accent-green);
}

.leader-btn-link svg {
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-btn-link svg {
    transform: translateX(3px);
}

/* Modal Dialog Styling */
dialog.leader-dialog,
dialog.news-dialog {
    background: transparent;
    border: none;
    max-width: 950px;
    width: 90%;
    margin: auto;
    padding: 0;
    outline: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

dialog.leader-dialog[open],
dialog.news-dialog[open] {
    opacity: 1;
    transform: scale(1);
}

/* Fallback/Modern backdrop styling */
dialog.leader-dialog::backdrop,
dialog.news-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

dialog.leader-dialog[open]::backdrop,
dialog.news-dialog[open]::backdrop {
    opacity: 1;
}

.dialog-content {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .dialog-content {
        flex-direction: row;
    }
}

.dialog-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.dialog-close-btn:hover {
    background-color: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
    transform: rotate(90deg);
}

.dialog-left {
    flex: 0 0 100%;
    max-height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dialog-left {
        flex: 0 0 42%;
        max-height: none;
        height: auto;
    }
}

.dialog-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-right {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dialog-right {
        padding: 4rem 3.5rem;
    }
}

.dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dialog-role {
    color: var(--accent-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.dialog-name {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

.dialog-quote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-green);
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.dialog-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.dialog-bio p {
    margin-bottom: 1rem;
}

.dialog-bio p:last-child {
    margin-bottom: 0;
}

.dialog-expertise {
    margin-top: 1rem;
}

.dialog-expertise-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.dialog-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dialog-badge {
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* News Popup Modal Dedicated Styling */
dialog.news-dialog {
    max-width: 820px;
    width: 92%;
}

.news-popup-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.news-popup-img-container {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.news-popup-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 12px;
    flex-shrink: 0 !important;
}

.news-popup-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.05em;
}

.news-popup-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-top: 0.25rem;
}

.news-popup-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.news-popup-body p {
    margin-bottom: 1.35rem;
}

.news-popup-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .news-popup-card {
        padding: 1.25rem;
    }
}

/* Chairman Section Styling */
.chairman-section {
    width: 100%;
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.chairman-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--background-card);
    overflow: hidden;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.chairman-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 200, 42, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.chairman-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px rgba(134, 200, 42, 0.08);
}

.chairman-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .chairman-container {
        grid-template-columns: 420px 1fr;
    }
}

.chairman-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1.15;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.chairman-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chairman-card:hover .chairman-img {
    transform: scale(1.03);
}

.chairman-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chairman-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chairman-role {
    color: var(--accent-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.chairman-name {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.chairman-quote {
    position: relative;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-green);
    margin: 0.5rem 0;
}

.chairman-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chairman-bio p {
    margin-bottom: 1rem;
}

.chairman-bio p:last-child {
    margin-bottom: 0;
}

.chairman-expertise {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.chairman-expertise-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 700;
}

.chairman-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chairman-badge {
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.chairman-card:hover .chairman-badge {
    border-color: rgba(134, 200, 42, 0.3);
    background-color: rgba(134, 200, 42, 0.03);
    color: var(--accent-green);
}

/* Leadership Groups Styling */
.leadership-section-group {
    width: 100%;
    margin-bottom: 4.5rem;
}

.leadership-section-group:last-child {
    margin-bottom: 2rem;
}

.leadership-group-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    display: block;
    width: 100%;
}

.leadership-group-title span.text-green {
    color: var(--accent-green);
}

/* Footer Awards/Recognition Styling */
.footer-right-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-awards {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-awards {
        justify-content: flex-end;
    }
}

.award-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.award-item:hover {
    transform: translateY(-4px);
}

.footer-awards-img {
    height: 42px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

/* Footer Link Columns Alignment */
html[dir="ltr"] .footer-col,
html:not([dir="rtl"]) .footer-col {
    text-align: left;
}

html[dir="ltr"] .footer-col ul,
html:not([dir="rtl"]) .footer-col ul {
    align-items: flex-start;
}

html[dir="ltr"] .footer-link-item,
html:not([dir="rtl"]) .footer-link-item {
    flex-direction: row;
    justify-content: flex-start;
}


/* Search Overlay Styling */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-green);
}

.search-container {
    width: 90%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-green);
}

.search-icon-inside {
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 0;
}

.search-input-wrapper:focus-within .search-icon-inside {
    color: var(--accent-green);
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: inherit;
    padding-left: 2.5rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-results {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
}

/* Scrollbar styling for search results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background-color: var(--bg-translucent);
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    background-color: var(--bg-translucent-hover);
    border-color: rgba(134, 200, 42, 0.3);
}

.search-result-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.search-result-item:hover .search-result-title {
    color: var(--accent-green);
}

.search-result-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-result-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   Arabic RTL Adjustments - Thmanyah Sans Font Family
   ========================================================================== */

@font-face {
    font-family: 'Thmanyah';
    src: url('../assets/fonts/thmanyah-sans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('../assets/fonts/thmanyah-sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('../assets/fonts/thmanyah-sans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('../assets/fonts/thmanyah-sans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah';
    src: url('../assets/fonts/thmanyah-sans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../assets/fonts/thmanyah-sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html[dir="rtl"] {
    direction: rtl;
    --font-family: 'Thmanyah', 'Thmanyah Sans', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-family);
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .title, html[dir="rtl"] .section-title, html[dir="rtl"] .card-title, html[dir="rtl"] .footer-col h4 {
    text-align: right;
}

/* Explicit LTR (English) Text Direction & Alignments */
html[dir="ltr"],
html:not([dir="rtl"]) {
    direction: ltr;
}

html[dir="ltr"] body,
html:not([dir="rtl"]) body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3, html[dir="ltr"] h4, html[dir="ltr"] h5, html[dir="ltr"] h6,
html[dir="ltr"] .footer-col, html[dir="ltr"] .footer-col h4, html[dir="ltr"] .footer-brand-col {
    text-align: left;
}

/* RTL Search Overlay Styling */
html[dir="rtl"] .search-close-btn {
    right: auto;
    left: 2rem;
}

html[dir="rtl"] .search-icon-inside {
    left: auto;
    right: 0;
}

html[dir="rtl"] .search-input {
    padding-left: 0;
    padding-right: 2.5rem;
    text-align: right;
    font-family: var(--font-family);
}

html[dir="rtl"] .search-result-item {
    text-align: right;
    font-family: var(--font-family);
}

html[dir="rtl"] .search-result-title,
html[dir="rtl"] .search-result-desc,
html[dir="rtl"] .search-result-badge {
    font-family: var(--font-family);
}

/* Directional translations & alignments */
html[dir="rtl"] .hero-left {
    text-align: right;
}

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

html[dir="rtl"] .hero-btn .btn-icon svg,
html[dir="rtl"] .link-arrow svg,
html[dir="rtl"] .link-chevron svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .link-arrow:hover svg {
    transform: scaleX(-1) translateX(4px);
    /* in RTL, moving to the left on hover */
}

/* Deloitte Fast 50 layers in Hero */
html[dir="rtl"] .layered-text {
    direction: ltr;
    /* keep numeric and name layout consistent but positioned properly */
}

html[dir="rtl"] .layer {
    right: auto;
    left: 0;
    text-align: left;
}

html[dir="rtl"] .fast-container {
    justify-content: flex-start;
}

html[dir="rtl"] .fast-container .fast-text {
    text-align: left;
}

/* Who We Are section overrides */
html[dir="rtl"] .who-we-are-text-container {
    text-align: right;
}

html[dir="rtl"] .who-we-are-card-content {
    text-align: right;
}

html[dir="rtl"] .who-we-are-card {
    background-image: none;
}

html[dir="rtl"] .who-we-are-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgb(var(--card-overlay-color)) 25%, rgba(var(--card-overlay-color), 0.7) 60%, rgba(var(--card-overlay-color), 0) 95%), url('../assets/who_we_are_architecture.png');
    background-repeat: no-repeat;
    background-position: 70% bottom;
    background-size: cover;
    transform: scaleX(-1);
    z-index: -1;
}

/* What We Do section overrides */
html[dir="rtl"] .reveal-content {
    text-align: right;
}

html[dir="rtl"] .reveal-images-container {
    right: auto;
    left: 1.5rem;
}

html[dir="rtl"] .reveal-item:hover .img-back {
    transform: scale(1.05) translate(15px, -10px) rotate(6deg);
}

html[dir="rtl"] .reveal-item:hover .img-front {
    transform: scale(1.05) translate(-35px, 20px) rotate(-12deg);
}

/* Fast Growth section overrides */
html[dir="rtl"] .fast-growth-details {
    text-align: right;
}

html[dir="rtl"] .fast-growth-btn-row {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .fast-growth-showcase-beacon {
    left: auto;
    right: 1.5rem;
}

html[dir="rtl"] .fast-growth-showcase-orbit {
    right: auto;
    left: 2.5rem;
}

html[dir="rtl"] .fast-growth-showcase-caption {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cap-circle-decoration {
    right: auto;
    left: -3rem;
}

html[dir="rtl"] .fast-growth-cap-card {
    text-align: right;
}

/* Why Reflections GCC overrides */
html[dir="rtl"] .ai-header {
    text-align: right;
}

html[dir="rtl"] .ai-header-container {
    align-items: flex-end;
}

html[dir="rtl"] .slider-btn svg {
    transform: scaleX(-1);
}

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

/* Case Study Section overrides */
html[dir="rtl"] .case-study-header {
    text-align: right;
}

html[dir="rtl"] .case-study-header-container {
    align-items: flex-end;
}

html[dir="rtl"] .case-study-header .section-title,
html[dir="rtl"] .case-study-header .case-study-desc {
    text-align: right;
}

@media (max-width: 768px) {
    html[dir="rtl"] .case-study-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    html[dir="rtl"] .case-study-header {
        text-align: right;
        width: 100%;
    }
}

html[dir="rtl"] .case-study-next-btn {
    right: auto;
    left: 2rem;
}

@media (max-width: 768px) {
    html[dir="rtl"] .case-study-next-btn {
        right: auto;
        left: 1rem;
    }
}

html[dir="rtl"] .case-study-next-btn svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .case-study-content {
    align-items: flex-start;
    text-align: right;
}

html[dir="rtl"] .case-study-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .case-study-link svg {
    transform: scaleX(-1);
}

/* Quote Section / Testimonials overrides */
html[dir="rtl"] .explore-col {
    text-align: right;
}

html[dir="rtl"] .quote-col {
    text-align: right;
}

html[dir="rtl"] .testimonial-slide {
    text-align: right;
}

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

html[dir="rtl"] .prev-testimonial svg,
html[dir="rtl"] .next-testimonial svg {
    transform: scaleX(-1);
}

/* Footer overrides */
html[dir="rtl"] .footer-brand-col {
    text-align: right;
}

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

html[dir="rtl"] .footer-badges {
    justify-content: flex-start;
}

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

html[dir="rtl"] .footer-col ul {
    align-items: flex-start;
}

html[dir="rtl"] .footer-link-item {
    flex-direction: row;
    justify-content: flex-start;
}

html[dir="rtl"] .footer-link-item .link-chevron {
    transform: translateX(0);
}

html[dir="rtl"] .footer-link-item:hover .link-chevron {
    transform: translateX(-4px);
}

html[dir="rtl"] .footer-awards {
    justify-content: flex-start;
}

/* Modals / Dialogs overrides */
html[dir="rtl"] .dialog-close-btn {
    right: auto;
    left: 1.25rem;
}

html[dir="rtl"] .dialog-right {
    text-align: right;
}

html[dir="rtl"] .dialog-quote {
    border-right: 3px solid var(--accent-green);
    border-left: none;
    padding-right: 1.25rem;
    padding-left: 0;
}

html[dir="rtl"] .chairman-info {
    text-align: right;
}

html[dir="rtl"] .chairman-quote {
    border-right: 3px solid var(--accent-green);
    border-left: none;
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="rtl"] .chairman-badge-container,
html[dir="rtl"] .dialog-badge-container {
    justify-content: flex-start;
}

/* Search overrides */
html[dir="rtl"] .search-close-btn {
    right: auto;
    left: 2rem;
}

html[dir="rtl"] .search-input-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .search-input {
    text-align: right;
}

html[dir="rtl"] .search-results {
    text-align: right;
}

/* ==========================================================================
   Dual-Icon Sliding Theme Toggle Pill Button
   ========================================================================== */
.theme-toggle-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 62px;
    height: 34px;
    padding: 2px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    flex-shrink: 0;
    direction: ltr !important;
}

.theme-toggle-pill:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.theme-toggle-pill:focus-visible {
    outline: 2px solid var(--accent-green, #86C82A);
    outline-offset: 2px;
}

/* Sliding active circle thumb */
.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 1;
    pointer-events: none;
}

/* In Dark Mode (or default if dark), thumb slides right over Moon icon */
[data-theme="dark"] .theme-toggle-thumb,
:root:not([data-theme="light"]) .theme-toggle-thumb {
    transform: translateX(28px);
}

/* In Light Mode, thumb stays left over Sun icon */
[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(0);
}

/* Option Icons Container */
.theme-toggle-option {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #9ca3af;
    transition: color 0.25s ease;
}

/* Active Icon Color Highlights */
[data-theme="light"] .theme-option-sun {
    color: #111827;
}

[data-theme="light"] .theme-option-moon {
    color: #9ca3af;
}

[data-theme="dark"] .theme-option-moon,
:root:not([data-theme="light"]) .theme-option-moon {
    color: #111827;
}

[data-theme="dark"] .theme-option-sun,
:root:not([data-theme="light"]) .theme-option-sun {
    color: #9ca3af;
}

/* ==========================================================================
   Dual-Option Sliding Language Toggle Pill Button ("En" & "Ar")
   ========================================================================== */
.lang-toggle-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 62px;
    height: 34px;
    padding: 2px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    flex-shrink: 0;
    direction: ltr !important;
    text-decoration: none !important;
}

.lang-toggle-pill:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.lang-toggle-pill:focus-visible {
    outline: 2px solid var(--accent-green, #86C82A);
    outline-offset: 2px;
}

/* Sliding active circle thumb */
.lang-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 1;
    pointer-events: none;
}

/* Option Text Container */
.lang-toggle-option {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #9ca3af;
    transition: color 0.25s ease;
    font-family: inherit;
}

/* Active State & Sliding Thumb Positioning */
/* On English pages (default or lang="en" or not ar/rtl): Thumb stays left over "En" */
html[lang="en"] .lang-toggle-thumb,
:root:not([lang="ar"]):not([dir="rtl"]) .lang-toggle-thumb {
    transform: translateX(0);
}

html[lang="en"] .lang-option-en,
:root:not([lang="ar"]):not([dir="rtl"]) .lang-option-en {
    color: #111827;
}

html[lang="en"] .lang-option-ar,
:root:not([lang="ar"]):not([dir="rtl"]) .lang-option-ar {
    color: #9ca3af;
}

/* On Arabic pages (lang="ar" or dir="rtl"): Thumb slides right over "Ar" */
html[lang="ar"] .lang-toggle-thumb,
html[dir="rtl"] .lang-toggle-thumb {
    transform: translateX(28px);
}

html[lang="ar"] .lang-option-ar,
html[dir="rtl"] .lang-option-ar {
    color: #111827;
}

html[lang="ar"] .lang-option-en,
html[dir="rtl"] .lang-option-en {
    color: #9ca3af;
}

/* Footer logo on light mode (since footer background changes to light gray) */
[data-theme="light"] .footer .logo-img {
    filter: invert(1) brightness(0.2);
}

[data-theme="light"] img[src*="fortune_india"] {
    content: url("../assets/fortune_india_black.png");
}

[data-theme="light"] img[src*="deloitte_fast50"] {
    content: url("../assets/deloitte_fast50_black.png");
}

/* Search overlay light-mode styling */
[data-theme="light"] .search-overlay {
    background-color: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .search-input-wrapper {
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .search-icon-inside {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .search-input {
    color: #000;
}

[data-theme="light"] .search-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .search-close-btn {
    color: #000;
}

/* Footer flicker canvas light-mode styling */
[data-theme="light"] .footer-flicker-container {
    background-color: #FFFFFF;
}

[data-theme="light"] .flicker-gradient-overlay {
    background: linear-gradient(to bottom, #FFFFFF 0%, transparent 60%, #FFFFFF 100%);
}

/* Chairman Section light-mode overrides */
[data-theme="light"] .chairman-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chairman-card:hover {
    box-shadow: 0 15px 40px rgba(134, 200, 42, 0.06);
}

[data-theme="light"] .chairman-image-wrapper {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Case Study Template Styling
   ========================================================================== */

.cs-meta-bar {
    background-color: transparent;
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.cs-meta-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .cs-meta-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-meta-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(134, 200, 42, 0.08);
}

.cs-meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-translucent);
    font-weight: 600;
}

.cs-meta-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.cs-section {
    padding: 3rem 0;
}

.cs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .cs-grid.two-cols {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .cs-grid.two-cols.reverse {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.cs-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cs-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.38;
    margin-bottom: 1.5rem;
}

.cs-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cs-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-list-item {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

[dir="rtl"] .cs-list-item {
    padding-left: 0;
    padding-right: 2rem;
}

.cs-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

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

.cs-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: none;
    aspect-ratio: 4 / 3;
}

.cs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cs-image-wrapper:hover .cs-img {
    transform: scale(1.05);
}

.cs-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .cs-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .cs-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cs-benefit-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 35px rgba(134, 200, 42, 0.08);
}

.cs-benefit-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(134, 200, 42, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.cs-benefit-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.cs-benefit-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.cs-cta-section {
    background: linear-gradient(135deg, rgba(16, 16, 18, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%), url('../assets/cta_backdrop.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center !important;
    margin: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .cs-cta-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.95) 100%), url('../assets/cta_backdrop.jpg');
    background-size: cover;
    background-position: center;
}

.cs-cta-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.cs-cta-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 2;
    text-align: center !important;
}

.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--accent-green);
    color: var(--background-dark);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.cs-cta-btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

.cs-cta-btn svg {
    transition: transform 0.3s ease;
}

.cs-cta-btn:hover svg {
    transform: translateX(4px);
}

[dir="rtl"] .cs-cta-btn:hover svg {
    transform: translateX(-4px);
}

/* Light mode adjustments */
[data-theme="light"] .cs-benefit-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .cs-benefit-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .cs-image-wrapper {
    box-shadow: none;
}

/* ==========================================================================
   No-Fade Banner Section (.hero-no-fade) for Main Pages
   ========================================================================== */
.hero.hero-no-fade {
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay.hero-overlay-no-fade {
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.4) 100%);
}

/* ==========================================================================
   Clients & Partners Page Styles
   ========================================================================== */
.clients-showcase {
    padding: 6rem 0;
    position: relative;
}

.clients-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.clients-intro .section-title {
    margin-bottom: 1.5rem;
    text-align: center !important;
}

.clients-intro .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center !important;
}

/* Filter Bar */
.clients-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.clients-filter-btn {
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
}

.clients-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.clients-filter-btn.active {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #0b0c10;
    font-weight: 600;
}

[data-theme="light"] .clients-filter-btn.active {
    color: #ffffff;
}

/* Clients Grid & Cards */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.client-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 32, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] .client-showcase-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

.client-showcase-card:hover {
    border-color: rgba(108, 189, 69, 0.45);
    background: rgba(24, 30, 44, 0.65);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 0 30px rgba(108, 189, 69, 0.15);
}

[data-theme="light"] .client-showcase-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--accent-green);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9), 0 0 25px rgba(108, 189, 69, 0.12);
}

/* Card Spotlight cursor tracking (radial glow background on hover) */
.client-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 189, 69, 0.12), transparent 72%);
    pointer-events: none;
    z-index: 1;
}

.client-showcase-card:hover::after {
    opacity: 1;
}

.client-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .client-logo-wrapper {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.client-showcase-card:hover .client-logo-wrapper {
    background-color: #ffffff;
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(108, 189, 69, 0.15);
}

[data-theme="light"] .client-showcase-card:hover .client-logo-wrapper {
    background-color: #ffffff;
}

.client-logo-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.client-showcase-card:hover .client-logo-wrapper img {
    opacity: 1;
    transform: scale(1.03);
}

.client-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.client-sector-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    font-weight: 600;
}

.client-card-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.client-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.client-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.client-card-link:hover {
    color: var(--accent-green-hover);
}

.client-card-link .arrow-diagonal {
    display: inline-block;
    transition: transform 0.3s ease;
}

.client-card-link:hover .arrow-diagonal {
    transform: translate(2px, -2px);
}

[dir="rtl"] .client-card-link:hover .arrow-diagonal {
    transform: translate(-2px, -2px);
}

/* Filter Card Transition Animation classes */
.client-showcase-card.hide {
    display: none;
}

.client-showcase-card.show {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(5px);
    }

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

/* Showcase Tabs Styling */
.showcase-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.showcase-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px;
    gap: 4px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .showcase-tabs {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.showcase-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.showcase-tab-btn:hover {
    color: var(--text-primary);
}

.showcase-tab-btn.active {
    background-color: var(--accent-green);
    color: #ffffff;
}

.showcase-content-wrapper {
    display: none;
}

.showcase-content-wrapper.active {
    display: block;
    animation: tabFadeIn 0.5s ease forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Partners Grid & Cards */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 32, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] .partner-showcase-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

.partner-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 189, 69, 0.45);
    background: rgba(24, 30, 44, 0.65);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 0 30px rgba(108, 189, 69, 0.15);
}

[data-theme="light"] .partner-showcase-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--accent-green);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9), 0 0 25px rgba(108, 189, 69, 0.12);
}

.partner-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(220px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 189, 69, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.partner-showcase-card:hover::after {
    opacity: 1;
}

.partner-showcase-card.hide {
    display: none;
}

.partner-showcase-card.show {
    display: flex;
    animation: fadeInScale 0.4s ease forwards;
}








/* ==========================================================================
   New Premium Services Page Layout (Full-Width Bento & Split Media Grid)
   ========================================================================== */
.services-page-fullwidth {
    padding: 3rem 0 6rem 0;
    width: 100%;
}

.service-section-fullwidth {
    margin-bottom: 5rem;
    padding: 3.5rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px;
}

[data-theme="light"] .service-section-fullwidth {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.container-wide {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-block-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.service-section-fullwidth.reverse .service-block-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.service-section-fullwidth.reverse .service-content-col {
    order: 2;
}

.service-section-fullwidth.reverse .service-image-col {
    order: 1;
}

.service-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(134, 200, 42, 0.12);
    border: 1px solid rgba(134, 200, 42, 0.3);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.service-block-title {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.38;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.service-block-desc {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-btn-wrapper {
    margin-bottom: 2rem;
}

.guardarcs-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    background: rgba(108, 189, 69, 0.1);
    color: var(--accent-green, #6cbd45);
    border: 1.5px solid var(--accent-green, #6cbd45);
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(108, 189, 69, 0.12);
}

.guardarcs-link-btn:hover {
    background: var(--accent-green, #6cbd45);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 189, 69, 0.35);
}

.guardarcs-link-btn svg {
    transition: transform 0.3s ease;
}

.guardarcs-link-btn:hover svg {
    transform: translate(2px, -2px);
}

html[dir="rtl"] .guardarcs-link-btn:hover svg {
    transform: translate(-2px, -2px);
}

.service-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.service-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.85rem;
    transition: background 0.3s ease;
}

[data-theme="light"] .service-feature-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(134, 200, 42, 0.18);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-feature-text strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.service-feature-text span {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: block;
}

.service-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.service-tag {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

[data-theme="light"] .service-tag {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dual Image Media Composition */
.service-image-composition {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-media-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.service-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-media-card:hover img {
    transform: scale(1.04);
}

.service-media-primary {
    width: 82%;
    height: 320px;
    margin-right: auto;
    z-index: 1;
}

.service-media-secondary {
    position: absolute;
    width: 62%;
    height: 220px;
    bottom: -20px;
    right: 0;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.service-section-fullwidth.reverse .service-media-primary {
    margin-right: 0;
    margin-left: auto;
}

.service-section-fullwidth.reverse .service-media-secondary {
    right: auto;
    left: 0;
}

/* RTL Adjustments for Services Page */
html[dir="rtl"] .service-section-fullwidth {
    text-align: right;
}

html[dir="rtl"] .service-media-primary {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .service-media-secondary {
    right: auto;
    left: 0;
}

html[dir="rtl"] .service-section-fullwidth.reverse .service-media-primary {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .service-section-fullwidth.reverse .service-media-secondary {
    left: auto;
    right: 0;
}

/* Responsive Media Queries for Services Page */
@media (max-width: 992px) {
    .service-section-fullwidth {
        padding: 2.5rem 0;
        margin-bottom: 3rem;
    }

    .service-block-grid,
    .service-section-fullwidth.reverse .service-block-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .service-section-fullwidth.reverse .service-content-col {
        order: 1;
    }

    .service-section-fullwidth.reverse .service-image-col {
        order: 2;
    }

    .service-image-composition {
        min-height: 340px;
    }

    .service-media-primary {
        width: 88%;
        height: 280px;
    }

    .service-media-secondary {
        width: 65%;
        height: 180px;
        bottom: -15px;
    }
}

@media (max-width: 576px) {
    .service-block-title {
        font-size: 1.75rem;
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }

    .service-media-primary {
        width: 100%;
        height: 240px;
    }

    .service-media-secondary {
        display: none;
    }
}

/* ==========================================================================
   Aramco-Style Full-Width Alternating Zig-Zag Case Studies Showcase Styles
   ========================================================================== */
.cs-main-section {
    padding: 4.5rem 0 7rem;
    background-color: var(--background-dark);
    position: relative;
    width: 100%;
}

/* Full-Width Container (Spans edge-to-edge across wide monitors) */
.cs-full-container {
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .cs-full-container {
        padding: 0 2.5rem;
    }
}

@media (max-width: 768px) {
    .cs-full-container {
        padding: 0 1.5rem;
    }
}

/* Ambient Radial Glow Lighting */
.cs-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(134, 200, 42, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Frosted-Glass Stat Ribbon */
.cs-hero-ribbon {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .cs-hero-ribbon {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
}

@media (max-width: 500px) {
    .cs-hero-ribbon {
        grid-template-columns: 1fr;
    }
}

.cs-ribbon-item {
    display: flex;
    flex-direction: column;
}

.cs-ribbon-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1.1;
}

.cs-ribbon-lbl,
[data-theme="light"] .cs-ribbon-lbl {
    font-size: 0.85rem;
    color: #FFFFFF !important;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Category Filter Bar */
.cs-filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    position: relative;
    z-index: 3;
}

.cs-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 0.75rem 1.6rem;
    border-radius: 35px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cs-filter-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(134, 200, 42, 0.1);
    transform: translateY(-2px);
}

.cs-filter-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 6px 22px rgba(134, 200, 42, 0.4);
}

/* Alternating Zig-Zag Showcase Container */
.cs-zigzag-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    position: relative;
    z-index: 3;
}

.cs-zigzag-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 5rem;
    align-items: center;
    transition: opacity 0.35s ease;
}

.cs-zigzag-row.is-hidden {
    display: none !important;
}

/* Reverse Order for Even Rows */
.cs-zigzag-row.reverse .cs-zigzag-content {
    order: 2;
}

.cs-zigzag-row.reverse .cs-zigzag-media {
    order: 1;
}

/* Content Side (Clean, Unbounded Layout Matching Reference Image) */
.cs-zigzag-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
}

.cs-zigzag-tag {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-green);
    background: rgba(134, 200, 42, 0.12);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    border: 1px solid rgba(134, 200, 42, 0.35);
}

.cs-zigzag-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.38;
    margin: 0;
}

.cs-zigzag-desc {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.cs-zigzag-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(134, 200, 42, 0.12);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-green);
}

/* Circular Arrow Link (Exact Aramco Reference Style) */
.cs-circular-link {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}

.cs-circular-link:hover {
    color: var(--accent-green-hover);
    gap: 1.35rem;
}

.cs-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.cs-circular-link:hover .cs-circle-btn {
    background: var(--accent-green);
    color: #000000;
    box-shadow: 0 0 20px rgba(134, 200, 42, 0.4);
    transform: scale(1.05);
}

/* Media Side (Large 28px Rounded Image Frame Matching Screenshot) */
.cs-zigzag-media {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    background-color: var(--background-card);
}

.cs-zigzag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.7s ease;
    filter: grayscale(35%) brightness(0.88);
}

.cs-zigzag-media:hover .cs-zigzag-img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(0.98);
}

.cs-zigzag-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

/* Responsive Media Queries for Alternating Layout */
@media (max-width: 1024px) {

    .cs-zigzag-row,
    .cs-zigzag-row.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }

    .cs-zigzag-row.reverse .cs-zigzag-content {
        order: 1;
    }

    .cs-zigzag-row.reverse .cs-zigzag-media {
        order: 2;
    }

    .cs-zigzag-title {
        font-size: 1.85rem;
    }

    .cs-zigzag-media {
        height: 340px;
    }
}

@media (max-width: 576px) {
    .cs-zigzag-container {
        gap: 4rem;
    }

    .cs-zigzag-media {
        height: 260px;
        border-radius: 20px;
    }

    .cs-zigzag-title {
        font-size: 1.55rem;
    }
}

/* Stats Counter Banner Section */
.cs-stats-section {
    padding: 5.5rem 0;
    background-color: var(--background-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 900px) {
    .cs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 500px) {
    .cs-stats-grid {
        grid-template-columns: 1fr;
    }
}

.cs-stat-card {
    padding: 1.5rem 1rem;
}

.cs-stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-family);
}

.cs-stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cs-stat-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* RTL Support for Zig-Zag Case Studies Page */
html[dir="rtl"] .cs-zigzag-tag {
    letter-spacing: 0;
}

html[dir="rtl"] .cs-zigzag-metric {
    border-left: none;
    border-right: 3px solid var(--accent-green);
}

html[dir="rtl"] .cs-circle-btn svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .cs-circular-link:hover {
    gap: 1.35rem;
}

/* ==========================================================================
   Contact Page Premium Styles (Flat & Unshadowed Design)
   ========================================================================== */

.contact-section {
    padding: 4rem 0 6rem 0;
    position: relative;
    z-index: 2;
}

.contact-section .container,
.offices-section .container {
    max-width: 100%;
    padding: 0 4rem;
}

@media (max-width: 768px) {

    .contact-section .container,
    .offices-section .container {
        padding: 0 1.5rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-form-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem 2.75rem;
    position: relative;
    box-shadow: none;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}

.contact-form-card:hover {
    border-color: rgba(134, 200, 42, 0.35);
}

.contact-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(134, 200, 42, 0.1);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(134, 200, 42, 0.25);
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: none;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form-sub {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Service Pills Selection */
.service-pills-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.service-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.service-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: none;
}

.service-pill-btn:hover,
.service-pill-btn.active {
    background: rgba(134, 200, 42, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--accent-green);
    margin-left: 2px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-with-icon .form-control {
    padding-left: 3rem;
}

.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    box-shadow: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-with-icon .form-control:focus+.input-icon,
.form-control:focus {
    border-color: var(--accent-green);
    background-color: rgba(134, 200, 42, 0.04);
    box-shadow: none;
}

.input-with-icon:focus-within .input-icon {
    color: var(--accent-green);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2386C82A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-control option {
    background-color: #121215;
    color: var(--text-primary);
}

.submit-btn-wrapper {
    margin-top: 0.75rem;
}

.contact-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--accent-green);
    color: var(--background-dark);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 1.15rem 2rem;
    border-radius: 14px;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-submit-btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: none;
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(5px);
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.75rem 2.5rem;
    box-shadow: none;
}

.info-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.info-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(134, 200, 42, 0.1);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(134, 200, 42, 0.25);
    box-shadow: none;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.info-value:hover {
    color: var(--accent-green);
}

.sla-card {
    background: linear-gradient(135deg, rgba(134, 200, 42, 0.12) 0%, rgba(18, 18, 22, 0.85) 100%);
    border: 1px solid rgba(134, 200, 42, 0.3);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: none;
}

.sla-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(134, 200, 42, 0.15);
    border: 1px solid rgba(134, 200, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.sla-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sla-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Regional Offices Section */
.offices-section {
    padding: 5rem 0 6rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--background-darker);
    position: relative;
}

.offices-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.75rem auto;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.office-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.office-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.office-card:hover {
    transform: translateY(-6px);
    border-color: rgba(134, 200, 42, 0.4);
    box-shadow: none;
}

.office-card:hover::before {
    opacity: 1;
}

.office-flag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.office-country-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(134, 200, 42, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(134, 200, 42, 0.2);
}

.office-city {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.office-address {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.office-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-green);
    text-decoration: none;
    transition: gap 0.25s ease;
}

.office-contact-link:hover {
    gap: 0.8rem;
    color: var(--accent-green-hover);
}

/* Light Theme Overrides */
[data-theme="light"] .contact-form-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .office-card {
    box-shadow: none;
}

[data-theme="light"] .form-control {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    box-shadow: none;
}

[data-theme="light"] .form-control::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .form-control:focus {
    background-color: rgba(134, 200, 42, 0.06);
    box-shadow: none;
}

[data-theme="light"] select.form-control option {
    background-color: #ffffff;
    color: #121212;
}

[data-theme="light"] .service-pill-btn {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

[data-theme="light"] .service-pill-btn:hover,
[data-theme="light"] .service-pill-btn.active {
    background: rgba(134, 200, 42, 0.18) !important;
    border-color: #15803d !important;
    color: #15803d !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(21, 128, 61, 0.15) !important;
}

[data-theme="light"] .sla-card {
    background: linear-gradient(135deg, rgba(134, 200, 42, 0.1) 0%, rgba(245, 247, 250, 0.95) 100%);
    border-color: rgba(134, 200, 42, 0.3);
    box-shadow: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

/* RTL Support */
html[dir="rtl"] .input-icon {
    left: auto;
    right: 1.1rem;
}

html[dir="rtl"] .input-with-icon .form-control {
    padding-left: 1.1rem;
    padding-right: 3rem;
}

html[dir="rtl"] select.form-control {
    background-position: left 1.1rem center;
    padding-left: 2.5rem;
    padding-right: 1.1rem;
}

html[dir="rtl"] .contact-submit-btn:hover svg {
    transform: translateX(-5px);
}

/* ==========================================================================
   Network Map & Contact Cards Section
   ========================================================================== */

.network-map-section {
    padding: 5rem 0 6rem 0;
    background: var(--background-dark);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .network-map-section {
    background: var(--background-darker, #FAFAFA);
}

.map-section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}

.map-subtitle-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(134, 200, 42, 0.12);
    border: 1px solid rgba(134, 200, 42, 0.25);
    border-radius: 9999px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.map-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.map-section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Map Wrapper & Real Interactive Map Container */
.real-map-container,
.dotted-map-container {
    position: relative;
    width: 100%;
    max-width: 1320px;
    height: 520px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    background: #0b1120;
    z-index: 1;
}

.real-map-container.full-width {
    width: 100% !important;
    max-width: 100% !important;
    height: 580px;
    margin: 2.5rem 0 3.5rem 0;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .real-map-container.full-width {
        height: 440px;
        margin: 1.5rem 0 2.5rem 0;
    }
}

#interactive-real-map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Leaflet Dark Theme Overrides */
.leaflet-container {
    background-color: #0b1120 !important;
    font-family: inherit !important;
}

.leaflet-control-zoom {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-zoom a {
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background-color: var(--accent-green) !important;
    color: #0f172a !important;
}

.leaflet-container .leaflet-control-attribution,
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-container .leaflet-control-attribution a {
    color: var(--accent-green) !important;
}

/* Custom Leaflet Pulse Marker (Clean, transparent, no default white box) */
.leaflet-marker-icon.custom-leaflet-marker,
.leaflet-div-icon.custom-leaflet-marker,
.custom-leaflet-marker {
    background: transparent !important;
    border: none !important;
    position: absolute !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 500;
}

.custom-marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(134, 200, 42, 0.35);
    border: 1px solid rgba(134, 200, 42, 0.5);
    animation: leaflet-marker-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.custom-marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-green, #86c82a);
    border: 2.5px solid #0b1120;
    box-shadow: 0 0 14px var(--accent-green, #86c82a), 0 0 4px rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.custom-marker-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
}

.leaflet-div-icon.custom-leaflet-marker:hover .custom-marker-dot,
.custom-leaflet-marker:hover .custom-marker-dot,
.custom-leaflet-marker.active .custom-marker-dot {
    background: var(--accent-green-hover, #9be432);
    transform: translate(-50%, -50%) scale(1.45);
    box-shadow: 0 0 22px var(--accent-green-hover, #9be432), 0 0 8px rgba(255, 255, 255, 0.9);
}

@keyframes leaflet-marker-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Leaflet Custom Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(134, 200, 42, 0.3) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(134, 200, 42, 0.15) !important;
    color: #f8fafc !important;
    padding: 4px;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(134, 200, 42, 0.3) !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.5 !important;
    font-size: 0.9rem !important;
}

.leaflet-popup-content .popup-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.leaflet-popup-content .popup-address {
    font-size: 0.825rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #94a3b8 !important;
    padding: 8px 8px 0 0 !important;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--accent-green) !important;
}

/* Map Pins */
.map-pin-point {
    cursor: pointer;
}

.pin-hit-area {
    fill: transparent;
    cursor: pointer;
}

.pin-outer-ring {
    fill: rgba(134, 200, 42, 0.35);
    animation: pin-pulse 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.pin-inner-dot {
    fill: var(--accent-green);
    transition: fill 0.2s ease, r 0.2s ease;
    pointer-events: none;
}

.map-pin-point.active .pin-inner-dot,
.map-pin-point:hover .pin-inner-dot {
    fill: var(--accent-green-hover);
    r: 7;
}

@keyframes pin-pulse {
    0% {
        r: 5px;
        opacity: 0.85;
    }

    65% {
        r: 18px;
        opacity: 0;
    }

    100% {
        r: 18px;
        opacity: 0;
    }
}

/* Map Tooltip Card (Matching Melbourne reference in user image with theme colors) */
.map-tooltip-card {
    position: absolute;
    transform: translate(-50%, -100%);
    margin-top: -20px;
    background: #111111;
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.6), 0 10px 15px -5px rgba(0, 0, 0, 0.3);
    z-index: 20;
    pointer-events: none !important;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    text-align: left;
    will-change: left, top;
}

.map-tooltip-card * {
    pointer-events: none !important;
}

[data-theme="light"] .map-tooltip-card {
    background: #FFFFFF;
    border: 1px solid var(--accent-green);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

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

/* Arrow Notch below Tooltip */
.map-tooltip-card::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #111111;
    border-right: 1px solid var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
}

[data-theme="light"] .map-tooltip-card::after {
    background: #FFFFFF;
}

.tooltip-location-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-theme="light"] .tooltip-location-name {
    color: #000000;
}

.tooltip-location-name::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

.tooltip-address-1,
.tooltip-address-2 {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.35;
}

[data-theme="light"] .tooltip-address-1,
[data-theme="light"] .tooltip-address-2 {
    color: #555555;
}

/* Contact Channels Grid (7 Offices) */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

@media (max-width: 1200px) {
    .contact-channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.channel-card {
    background: var(--background-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

[dir="rtl"] .channel-card {
    align-items: flex-start;
}

[data-theme="light"] .channel-card {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: 0 12px 24px -6px rgba(134, 200, 42, 0.15);
}

.channel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.25rem;
}

.channel-header-row .channel-icon-box {
    margin-bottom: 0;
}

.office-country-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green);
    background: rgba(134, 200, 42, 0.1);
    border: 1px solid rgba(134, 200, 42, 0.25);
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
}

.office-channel-card {
    cursor: pointer;
}

.channel-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(134, 200, 42, 0.12);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.channel-card:hover .channel-icon-box {
    background: var(--accent-green);
    color: #000000;
}

.channel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.channel-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    flex-grow: 1;
}

.channel-card .channel-desc:last-child {
    margin-bottom: 0;
}

.channel-action {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

.channel-action:hover {
    color: var(--accent-green);
}

/* Featured Office Card Styling (Qatar Primary Address) */
.featured-office-card {
    border: 1.5px solid var(--accent-green) !important;
    background: linear-gradient(145deg, rgba(134, 200, 42, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    box-shadow: 0 8px 24px -4px rgba(134, 200, 42, 0.25) !important;
    position: relative;
}

[data-theme="light"] .featured-office-card {
    background: linear-gradient(145deg, rgba(134, 200, 42, 0.12) 0%, #FFFFFF 100%) !important;
    border-color: var(--accent-green) !important;
}

.featured-office-card .channel-icon-box {
    background: var(--accent-green);
    color: #000000;
}

.company-registered-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.office-country-tag.primary-tag {
    background: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(134, 200, 42, 0.3);
}


/* Responsive Media Queries */
@media (max-width: 992px) {
    .contact-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dotted-map-container {
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .contact-channels-grid {
        grid-template-columns: 1fr;
    }

    .map-section-title {
        font-size: 1.85rem;
    }

    .dotted-map-container {
        min-height: 320px;
    }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Layout Optimizations (<=768px & <=576px)
   ========================================================================== */
@media (max-width: 768px) {

    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .hero {
        padding-top: 110px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important;
        line-height: 1.25 !important;
    }

    .hero-text {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Mobile Who We Are Header Row: Title Left, Image Container Right */
    .who-we-are-header-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .who-we-are-header-row .who-we-are-title {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
        margin-bottom: 0 !important;
        flex: 1 !important;
    }

    .who-we-are-header-row .mobile-only-img {
        display: block !important;
        width: 220px !important;
        height: 145px !important;
        flex-shrink: 0 !important;
        border-radius: 18px !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
    }

    .who-we-are-top .desktop-only-img {
        display: none !important;
    }

    .who-we-are-top {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 0 !important;
        gap: 1rem !important;
    }

    .who-we-are-text-container {
        width: 100% !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .who-we-are-header-row .mobile-only-img {
        width: 190px !important;
        height: 125px !important;
    }

    .map-tooltip-card {
        max-width: 250px !important;
        padding: 10px 14px !important;
        font-size: 0.78rem !important;
    }

    .tooltip-location-name {
        font-size: 0.82rem !important;
    }

    .tooltip-address-1,
    .tooltip-address-2 {
        font-size: 0.72rem !important;
    }

    .cs-hero-ribbon {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 1.15rem 1rem !important;
        gap: 0.85rem !important;
    }

    .cs-ribbon-val {
        font-size: 1.4rem !important;
    }

    .cs-ribbon-lbl {
        font-size: 0.75rem !important;
    }

    .cs-filters-wrapper {
        gap: 0.45rem !important;
        margin-bottom: 2.5rem !important;
    }

    .cs-filter-btn {
        padding: 0.45rem 0.95rem !important;
        font-size: 0.8rem !important;
    }

    .header {
        padding: 1rem 1.25rem !important;
    }

    .logo-img {
        height: 34px !important;
    }

    .mobile-menu-logo .mobile-logo-img {
        height: 75px !important;
        max-width: 260px !important;
    }
}

/* ==========================================================================
   Careers Page Styles
   ========================================================================== */
.careers-hero-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.careers-hero-breadcrumbs a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.careers-hero-breadcrumbs a:hover {
    color: var(--accent-green);
}

.careers-hero-bg-reflect {
    transform: scaleX(-1);
}

/* Careers Hero Black Overlay (Darker on Left Side for Left-Aligned Content) */
.careers-hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.15) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%, var(--background-dark) 100%) !important;
}

html[dir="rtl"] .careers-hero-overlay {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.15) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%, var(--background-dark) 100%) !important;
}

/* Culture Section */
.careers-culture-section {
    padding: 6rem 0;
    position: relative;
    background: var(--background-darker);
    border-bottom: 1px solid var(--border-color);
}

.careers-culture-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.careers-culture-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.careers-culture-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.careers-culture-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
    border: 1px solid var(--border-color);
}

.careers-culture-img-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.careers-culture-img-wrapper:hover img {
    transform: scale(1.03);
}

/* Jobs Section */
.careers-jobs-section {
    padding: 6rem 0;
    position: relative;
}

.careers-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.careers-jobs-intro .section-title {
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
}

.careers-jobs-intro .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0;
    line-height: 1.6;
}

/* Filter Dropdown */
.location-filter-wrapper {
    position: relative;
    min-width: 180px;
}

.location-filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1.25rem;
    background: var(--bg-translucent);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-filter-select:focus,
.location-filter-select:hover {
    outline: none;
    border-color: var(--accent-green);
    background: var(--bg-translucent-hover);
}

.location-filter-wrapper::after {
    content: '';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-secondary);
    pointer-events: none;
}

/* Jobs Grid */
.careers-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.job-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.job-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-card-hover);
}

.job-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.job-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.job-meta-item {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.3s ease;
}

.job-btn-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.job-card:hover .job-btn-arrow {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000000;
    transform: translateX(4px);
}

.job-card:hover .job-details-btn {
    color: var(--accent-green);
}

/* View More Container */
.careers-view-more-container {
    text-align: center;
    margin-top: 3.5rem;
}

.careers-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.careers-view-more-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Internship Section */
.careers-internship-section {
    padding: 3rem 0 0 0;
    margin-bottom: 0;
    width: 100%;
}

.internship-banner {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
}

.internship-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.internship-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.internship-container-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.internship-card {
    position: relative;
    max-width: 540px;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--shadow-card-hover);
}

.internship-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.internship-desc {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.internship-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-green);
    color: #000000;
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.internship-apply-btn:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(134, 200, 42, 0.35);
}

/* Light Theme Overrides */
[data-theme="light"] .careers-culture-section {
    background: #F9F9F9;
}

[data-theme="light"] .job-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .job-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .internship-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .location-filter-select {
    background: #FFFFFF;
    color: #1A1A1A;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .careers-culture-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .careers-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .careers-jobs-grid {
        grid-template-columns: 1fr;
    }

    .internship-banner {
        justify-content: center;
    }

    .internship-card {
        margin: 1.5rem;
        padding: 2rem;
    }
}

/* ==========================================================================
   Full-Screen Language Transition Overlay
   ========================================================================== */
.lang-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .lang-transition-overlay {
    background: rgba(255, 255, 255, 0.94);
}

.lang-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lang-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-transition-overlay.active .lang-transition-content {
    transform: scale(1);
}

.lang-transition-spinner {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(134, 200, 42, 0.2);
    border-top-color: var(--accent-green, #86C82A);
    border-right-color: var(--accent-green, #86C82A);
    animation: langSpinnerRotate 0.8s linear infinite;
}

@keyframes langSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-core {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(134, 200, 42, 0.35);
    animation: langPulse 1.2s ease-in-out infinite alternate;
}

@keyframes langPulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.05); opacity: 1; }
}

.lang-transition-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lang-transition-text {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}

[data-theme="light"] .lang-transition-text {
    color: #111827;
}

/* ==========================================================================
   Smooth Theme Transition Fade (Dark <-> Light)
   ========================================================================== */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important,
                color 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important,
                border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important,
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important,
                fill 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important,
                stroke 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important,
                opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Native View Transitions API support for ultra-smooth cross-fade */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   News & Events Page Styles
   ========================================================================== */
.news-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.news-hero-btn:hover {
    background: var(--accent-green, #86C82A);
    border-color: var(--accent-green, #86C82A);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(134, 200, 42, 0.3);
}

.news-hero-btn .btn-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-hero-btn:hover .btn-arrow-circle {
    background: #000000;
    color: var(--accent-green, #86C82A);
    transform: translateX(3px);
}

[dir="rtl"] .news-hero-btn:hover .btn-arrow-circle {
    transform: translateX(-3px);
}

.news-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2.5rem;
}

.news-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-breadcrumbs a:hover {
    color: var(--accent-green, #86C82A);
}

/* Featured News Section */
.news-section {
    padding: 5rem 0 7rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #131926;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(134, 200, 42, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(134, 200, 42, 0.15);
}

.news-card-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0b0f19;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.news-share-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.news-share-btn:hover {
    color: var(--accent-green, #86C82A);
    background: rgba(255, 255, 255, 0.06);
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.55;
    color: #ffffff;
    margin: 0 0 0.85rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: 0.88rem;
    line-height: 1.85;
    color: #9ca3af;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none !important;
    transition: color 0.25s ease;
    margin-top: auto;
}

.news-read-more .read-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: var(--accent-green, #86C82A);
}

.news-read-more:hover .read-arrow-circle {
    border-color: var(--accent-green, #86C82A);
    background: var(--accent-green, #86C82A);
    color: #000000;
    transform: translateX(4px);
}

[dir="rtl"] .news-read-more:hover .read-arrow-circle {
    transform: translateX(-4px);
}

/* Light Theme Adjustments for News Cards */
[data-theme="light"] .news-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .news-card:hover {
    border-color: var(--accent-green, #86C82A);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .news-card-title {
    color: #111827;
}

[data-theme="light"] .news-card-desc {
    color: #4b5563;
}

[data-theme="light"] .news-read-more {
    color: #111827;
}

[data-theme="light"] .news-read-more .read-arrow-circle {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .news-breadcrumbs {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   YouTube Videos Section
   ========================================================================== */
.videos-section {
    padding: 5rem 0 6rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.videos-header {
    margin-bottom: 3rem;
}

a.videos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

a.videos-badge svg {
    width: 16px;
    height: 16px;
    fill: #ef4444 !important;
    flex-shrink: 0;
    transition: fill 0.3s ease, transform 0.3s ease;
}

a.videos-badge:hover {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

a.videos-badge:hover svg {
    fill: #ffffff !important;
    transform: scale(1.1);
}

[data-theme="light"] a.videos-badge {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #111827 !important;
}

[data-theme="light"] a.videos-badge svg {
    fill: #ef4444 !important;
}

[data-theme="light"] a.videos-badge:hover {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
}

[data-theme="light"] a.videos-badge:hover svg {
    fill: #ffffff !important;
}

.videos-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.youtube-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ef4444;
    color: #ffffff !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.youtube-subscribe-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.youtube-subscribe-btn svg {
    fill: currentColor;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background: #131926;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.15);
}

.video-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.video-thumb-wrapper:hover .video-thumb-img {
    transform: scale(1.06);
    opacity: 1;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
}

.video-thumb-wrapper:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ef4444;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.8);
}

.video-play-overlay svg {
    fill: #ffffff;
    margin-left: 3px;
}

.video-duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

[dir="rtl"] .video-duration-badge {
    right: auto;
    left: 12px;
}

.video-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-card-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green, #86C82A);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 0.6rem 0;
}

.video-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0;
}

/* Light Theme overrides for Videos */
[data-theme="light"] .videos-section {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .video-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .video-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .video-card-title {
    color: #111827;
}

[data-theme="light"] .video-card-desc {
    color: #4b5563;
}

@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.videos-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.videos-watch-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ffffff;
    padding: 0.85rem 2.2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.videos-watch-more-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.45);
}

.videos-watch-more-btn .btn-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.videos-watch-more-btn:hover .btn-arrow-circle {
    background: #ffffff;
    color: #ef4444;
    transform: translateX(4px);
}

[dir="rtl"] .videos-watch-more-btn:hover .btn-arrow-circle {
    transform: translateX(-4px);
}

.videos-watch-more-btn .yt-btn-icon {
    fill: #ef4444;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.videos-watch-more-btn:hover .yt-btn-icon {
    fill: #ffffff;
    transform: scale(1.1);
}

[data-theme="light"] .videos-watch-more-btn .yt-btn-icon {
    fill: #ef4444;
}

[data-theme="light"] .videos-watch-more-btn:hover .yt-btn-icon {
    fill: #ffffff;
}

[data-theme="light"] .videos-watch-more-btn {
    color: #111827;
    border-color: rgba(239, 68, 68, 0.5);
}

[data-theme="light"] .videos-watch-more-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   Page Loader Animation (Physics-inspired Rotating Green Blocks)
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.physics-loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    perspective: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.physics-cube-grid {
    position: relative;
    width: 64px;
    height: 64px;
    transform-style: preserve-3d;
    animation: gridPhysicsRotate 3.2s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.loader-block {
    position: absolute;
    width: 24px;
    height: 15px;
    background: linear-gradient(135deg, #22c55e, #6cbd45);
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.85), inset 0 0 5px rgba(255, 255, 255, 0.7);
    transform-style: preserve-3d;
}

.loader-block:nth-child(1) {
    top: 0;
    left: 0;
    animation: blockTumble1 1.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.loader-block:nth-child(2) {
    top: 0;
    right: 0;
    animation: blockTumble2 1.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.2s;
}

.loader-block:nth-child(3) {
    bottom: 0;
    right: 0;
    animation: blockTumble3 1.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.4s;
}

.loader-block:nth-child(4) {
    bottom: 0;
    left: 0;
    animation: blockTumble4 1.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.6s;
}

@keyframes gridPhysicsRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    33% {
        transform: rotateX(180deg) rotateY(90deg) rotateZ(45deg);
    }
    66% {
        transform: rotateX(90deg) rotateY(270deg) rotateZ(180deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes blockTumble1 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translate3d(-14px, -14px, 35px) rotateX(180deg) rotateY(90deg) scale(1.2);
        box-shadow: 0 0 28px rgba(34, 197, 94, 1), 0 0 45px rgba(108, 189, 69, 0.7);
    }
}

@keyframes blockTumble2 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translate3d(14px, -14px, -35px) rotateX(-180deg) rotateY(90deg) scale(1.2);
        box-shadow: 0 0 28px rgba(34, 197, 94, 1), 0 0 45px rgba(108, 189, 69, 0.7);
    }
}

@keyframes blockTumble3 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translate3d(14px, 14px, 35px) rotateX(180deg) rotateY(-90deg) scale(1.2);
        box-shadow: 0 0 28px rgba(34, 197, 94, 1), 0 0 45px rgba(108, 189, 69, 0.7);
    }
}

@keyframes blockTumble4 {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translate3d(-14px, 14px, -35px) rotateX(-180deg) rotateY(-90deg) scale(1.2);
        box-shadow: 0 0 28px rgba(34, 197, 94, 1), 0 0 45px rgba(108, 189, 69, 0.7);
    }
}

.loader-brand-text {
    margin-top: 2.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    animation: loaderPulse 1.5s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
    0% {
        opacity: 0.4;
        letter-spacing: 0.28em;
    }
    100% {
        opacity: 1;
        letter-spacing: 0.36em;
        color: var(--accent-green);
    }
}

[data-theme="light"] .videos-watch-more-btn .btn-arrow-circle {
    background: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Job Details Page Styles
   ========================================================================== */
.job-detail-hero {
    background: #1c1c20;
    color: #ffffff;
    padding: 4.5rem 0 0 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .job-detail-hero {
    background: #1f2024;
    color: #ffffff;
}

.job-detail-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.job-detail-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.job-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.job-detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.job-detail-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.job-detail-apply-btn:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000000;
}

.job-detail-apply-btn .btn-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.job-detail-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-detail-share-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--accent-green);
}

.job-detail-breadcrumbs {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.job-detail-breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-detail-breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-detail-breadcrumbs a:hover {
    color: var(--accent-green);
}

/* Main Body Section */
.job-detail-body-section {
    padding: 5rem 0;
    background: var(--background-dark);
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Main Left Column */
.job-detail-content {
    color: var(--text-primary);
}

.job-detail-section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.job-detail-intro-p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.job-detail-sub-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

.job-detail-resp-group {
    margin-bottom: 1.5rem;
}

.job-detail-resp-group-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
}

.job-detail-bullets {
    list-style-type: disc;
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}

.job-detail-bullets li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Sidebar Job Details Card */
.job-detail-sidebar-card {
    background: #eef0f3;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .job-detail-sidebar-card {
    background: #1c1d22;
}

.job-detail-sidebar-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

[data-theme="dark"] .job-detail-sidebar-title {
    color: #ffffff;
}

.job-detail-field {
    margin-bottom: 1.75rem;
}

.job-detail-field-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    display: block;
}

[data-theme="dark"] .job-detail-field-label {
    color: #ffffff;
}

.job-detail-field-value {
    font-size: 0.98rem;
    color: #444444;
}

[data-theme="dark"] .job-detail-field-value {
    color: #cccccc;
}

.job-detail-disclaimer {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #555555;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

[data-theme="dark"] .job-detail-disclaimer {
    color: #999999;
}

.job-detail-sidebar-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    padding: 0.75rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

[data-theme="dark"] .job-detail-sidebar-apply-btn {
    border-color: #ffffff;
    color: #ffffff;
}

.job-detail-sidebar-apply-btn:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000000;
}

.job-detail-sidebar-apply-btn .btn-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Recent Jobs Section */
.recent-jobs-section {
    padding: 5rem 0 6rem 0;
    background: var(--background-darker);
    border-top: 1px solid var(--border-color);
}

.recent-jobs-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.recent-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Application Modal */
.job-apply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.job-apply-modal-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-card-hover);
    max-height: 90vh;
    overflow-y: auto;
}

.job-apply-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.job-apply-modal-close:hover {
    background: var(--bg-translucent-hover);
}

/* Responsive */
@media (max-width: 992px) {
    .job-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .recent-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .recent-jobs-grid {
        grid-template-columns: 1fr;
    }
    .job-detail-meta-row {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Back to Top Floating Button
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.85);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background-color: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(134, 200, 42, 0.4);
}

.back-to-top-btn svg {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* Light mode overrides */
[data-theme="light"] .back-to-top-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-to-top-btn:hover {
    background-color: var(--accent-green);
    color: #000000;
}

/* RTL layout positioning */
html[dir="rtl"] .back-to-top-btn {
    right: auto;
    left: 2rem;
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
    html[dir="rtl"] .back-to-top-btn {
        right: auto;
        left: 1.5rem;
    }
}