/* ==========================================================================
   EIB - ELITE INTEGRATED BUSINESS Brand Redesign Stylesheet
   Visual DNA: Deep Navy, Industrial Charcoal, Warm Gold & Light Ivory
   Architecture: Technical blueprint grids, asymmetric editorial alignment, 
   curved geometric shapes, and premium Saudi corporate aesthetics.
   ========================================================================== */

/* --- BRAND CONFIGURATION --- */
:root {
    /* Color System */
    --navy-primary: #081021;
    --navy-secondary: #0c162b;
    --navy-dark: #050a14;
    --gold-primary: #d4af37;
    --gold-dark: #aa820a;
    --gold-light: #f3e5ab;
    --ivory-base: #f5f6f8;
    --white: #ffffff;
    --logo-red: #e52b2b;
    --logo-orange: #f28f1c;

    /* Semantic Overlays */
    --card-bg: rgba(12, 22, 43, 0.7);
    --card-border: rgba(212, 175, 55, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #627289;

    /* Fonts & Motion */
    --font-main: 'Cairo', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;

    /* Shadows */
    --gold-glow: 0 0 30px rgba(212, 175, 55, 0.08);
    --heavy-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- BASE & UTILITIES --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--navy-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    text-align: right;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--navy-dark);
    border-left: 1px solid rgba(212, 175, 55, 0.1);
}

::-webkit-scrollbar-thumb {
    background-color: var(--gold-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold-light);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
    box-sizing: border-box;
}

.section-padding {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

.text-center {
    text-align: center;
}

/* Blueprint Grid Background Pattern */
.blueprint-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.blueprint-grid-bg.grid-fine {
    background-size: 30px 30px;
}

/* Architectural Section Divider */
.section-padding::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15) 10%, rgba(212, 175, 55, 0.15) 90%, transparent);
    pointer-events: none;
    z-index: 10;
}

/* Technical Blueprint Overlay Layers */
.technical-drawing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.technical-drawing-overlay svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* Enforce Interactive Elements Sit Above Blueprint Watermarks */
.container,
.hero-container,
.editorial-about-grid,
.services-explorer,
.sectors-editorial-explorer,
.why-eib-grid,
.projects-filter-bar,
.projects-asymmetric-gallery,
.quality-safety-grid,
.contact-layout-grid {
    position: relative;
    z-index: 2;
}

/* --- BUTTONS (ENHANCED PREMIUM LOOK) --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* Premium Gold Button with Light Reflection Animation */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--navy-dark);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-gold:hover::before {
    right: 100%;
}

.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), var(--gold-glow);
    transform: translateY(-3px);
    border-color: var(--gold-light);
    color: var(--navy-dark);
}

/* Premium Outline Button with Left-to-Right Slide-in Background Overlay */
.btn-outline {
    background: rgba(212, 175, 55, 0.03);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline:hover {
    color: var(--navy-dark) !important;
    border-color: var(--gold-primary);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

.btn-whatsapp {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.03);
}

.btn-whatsapp::before {
    background: #25d366;
}

.btn-whatsapp:hover {
    color: var(--white) !important;
    border-color: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn i {
    font-size: 1.2em;
    transition: var(--transition-fast);
}

.btn:hover i {
    transform: translateX(-4px);
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--logo-red), var(--logo-orange), var(--gold-primary));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* --- HEADER & NAVIGATION — FLOATING GLASS SYSTEM --- */

/* Entrance animation */
@keyframes navbarEntrance {
    from {
        opacity: 0;
        transform: translateY(-16px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

@keyframes navbarEntranceMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.main-header {
    /* — Floating pill geometry — */
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 92%;
    max-width: 1480px;
    z-index: 999;
    border-radius: 10px;

    /* — Glass background (always visible, deepens on scroll) — */
    background: rgba(5, 10, 22, 0.52);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    /* — Subtle gold border + inner highlight — */
    border: 1px solid rgba(212, 175, 55, 0.09);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(212, 175, 55, 0.05);

    /* — Smooth multi-property transition — */
    transition:
        background 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        top 0.45s ease,
        backdrop-filter 0.45s ease;

    /* — Entrance animation — */
    animation: navbarEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;

    /* — Respect reduced motion — */
    @media (prefers-reduced-motion: reduce) {
        animation: none;
    }
}

.main-header.scrolled {
    top: 10px;
    background: rgba(5, 10, 20, 0.90);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-color: rgba(212, 175, 55, 0.16);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.28),
        0 12px 40px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(212, 175, 55, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Override .container max-width — fill the floating bar */
    max-width: none;
    width: 100%;
    padding: 13px 28px;
    margin: 0;
    box-sizing: border-box;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-decoration: none;
    direction: ltr;
    text-align: left;
}

.logo-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.logo-icon-svg {
    flex-shrink: 0;
}

.logo-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-family: var(--font-main);
    font-size: 0.52rem;
    font-weight: 800;
    color: var(--text-secondary);
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: left;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    transition: width var(--transition-fast) ease, left var(--transition-fast) ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    left: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* --- HERO SECTION (ENHANCED PREMIUM LAYOUT) --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--navy-dark);
    overflow: hidden;
}

/* Prominent technical coordinate overlay grid background */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 4;
    /* Layered on top of slider and dark overlay, but behind content */
}

.hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1050px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(12, 22, 43, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--logo-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--logo-orange);
    animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.gold-text-accent {
    color: var(--gold-primary);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.15), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mobile-only-br {
    display: none;
}

.hero-lead {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--white);
    margin-bottom: 40px;
    max-width: 950px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Asymmetric geometric visual mockup column */
/* Cinematic Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: var(--navy-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(1.03);
    transition: transform 5.2s cubic-bezier(0.1, 0.8, 0.25, 1);
    /* Base cinematic adjustments - 8-10% lighter than previous version */
    filter: brightness(0.88) contrast(1.02) saturate(0.95);
}

/* Fine-tuned brightness adjustments per slide for visual consistency */
.hero-slide:nth-child(1) .hero-slide-img {
    filter: brightness(0.84) contrast(1.02) saturate(0.92);
}

.hero-slide:nth-child(2) .hero-slide-img {
    filter: brightness(0.84) contrast(1.02) saturate(0.92);
}

.hero-slide:nth-child(3) .hero-slide-img {
    filter: brightness(0.86) contrast(1.02) saturate(0.92);
}

.hero-slide:nth-child(4) .hero-slide-img {
    filter: brightness(0.88) contrast(1.02) saturate(0.92);
}

.hero-slide.active .hero-slide-img {
    transform: scale(1.00);
}

/* Premium Dark Gradient Overlay */
.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    /* Sophisticated dark navy overlay: reduced by 10-12% for natural clarity
       while keeping contrast behind the centered title and lead texts */
    background:
        radial-gradient(circle at center, rgba(12, 22, 43, 0.72) 0%, rgba(8, 16, 33, 0.48) 60%, rgba(5, 10, 20, 0.58) 100%),
        linear-gradient(to bottom, rgba(5, 10, 20, 0.35) 0%, rgba(5, 10, 20, 0.70) 100%);
    background-blend-mode: multiply;
}

/* === PREMIUM THUMBNAIL STRIP (replaces old slider controls) === */
.hero-thumbnails-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    padding: 0 20px;
}

.hero-thumbnails-strip {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px;
}

.hero-thumbnails-strip::-webkit-scrollbar {
    display: none;
}

.hero-thumbnail {
    flex-shrink: 0;
    width: 90px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    background: transparent;
    padding: 0;
    position: relative;
    opacity: 0.6;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.hero-thumbnail:hover {
    opacity: 0.85;
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.04);
}

.hero-thumbnail.active {
    opacity: 1;
    border-color: var(--gold-primary);
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.45), 0 0 30px rgba(212, 175, 55, 0.15);
}

/* Magnifying glass cue on hover */
.thumbnail-cue {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: 4px;
}

.thumbnail-cue i {
    color: var(--gold-primary);
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
}

.hero-thumbnail:hover .thumbnail-cue {
    opacity: 1;
}

/* === FULLSCREEN LIGHTBOX === */
.hero-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 90vw;
    max-width: 1200px;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 5;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* Lock scroll when lightbox or mobile menu is open */
html.lightbox-active,
html.menu-open {
    overflow: hidden !important;
}

html.lightbox-active body,
html.menu-open body {
    overflow: hidden !important;
}

/* Mobile thumbnail adjustments */
@media (max-width: 768px) {
    .hero-thumbnails-container {
        margin-top: 24px;
        padding: 0 12px;
    }

    .hero-thumbnails-strip {
        justify-content: flex-start;
        gap: 8px;
        padding: 4px 2px;
    }

    .hero-thumbnail {
        width: 68px;
    }

    .lightbox-content {
        width: 95vw;
        gap: 10px;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lightbox-close {
        top: -30px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-thumbnail {
        width: 58px;
    }

    .hero-thumbnails-strip {
        gap: 6px;
    }
}

/* --- ABOUT SECTION --- */
.editorial-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.section-badge-technical {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-badge-technical.center-badge {
    justify-content: center;
    margin-bottom: 24px;
}

.badge-num {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.section-headline {
    font-size: 2.8rem;
    font-weight: 850;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 35px;
}

.text-block-with-line {
    position: relative;
    padding-right: 25px;
    border-right: 3px solid var(--gold-primary);
    margin-bottom: 45px;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* Typographic Stats layout */
.stats-editorial-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

.stat-entry {
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding-bottom: 20px;
}

.stat-big-num {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1.1;
    margin-bottom: 5px;
}

.stat-meta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.about-graphic-col {
    display: flex;
    justify-content: center;
}

.curved-graphic-mask {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1.1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--heavy-shadow);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gold contour outline reflecting the EIB custom graphics */
.graphic-gold-contour {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    opacity: 0.2;
    pointer-events: none;
}

.metadata-floating-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(8, 16, 33, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.meta-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    font-family: monospace;
}

.meta-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 3px;
}

/* --- SERVICES SECTION --- */
.section-lead-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -15px auto 60px;
}

/* Services Explorer layout */
.services-explorer {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    background: rgba(5, 10, 20, 0.4);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--heavy-shadow);
}

.explorer-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cat-tab-btn {
    font-family: var(--font-main);
    background: rgba(12, 22, 43, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 12px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.cat-tab-btn:hover {
    color: var(--white);
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(12, 22, 43, 0.8);
}

.cat-tab-btn.active {
    background: var(--gold-primary);
    color: var(--navy-dark);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.services-list-container {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.services-sub-list {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.services-sub-list.active {
    display: flex;
}

.service-list-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(12, 22, 43, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.service-idx {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-left: 20px;
    opacity: 0.6;
}

.service-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-grow: 1;
}

.service-list-item .arrow-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.service-list-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(12, 22, 43, 0.7);
}

.service-list-item:hover .service-name {
    color: var(--white);
}

.service-list-item.active {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.service-list-item.active .service-name {
    color: var(--gold-primary);
}

.service-list-item.active .service-idx {
    opacity: 1;
}

.service-list-item.active .arrow-icon {
    transform: translateX(-5px);
    color: var(--gold-primary);
}

/* Detail Display Panel layout */
.explorer-display-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 50px;
    display: flex;
    flex-direction: column;

    position: relative;
}

.display-blueprint-mark {
    position: absolute;
    top: 0;
    left: 0;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 15px;
}

.display-category-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
}

.display-index {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.25);
}

.display-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.display-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.display-technical-labels {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tech-item-pill {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.display-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.display-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.display-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 16, 33, 0.8) 0%, transparent 60%);
}

/* Mobile Accordions style override (starts hidden) */
.services-mobile-accordion {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.mobile-accordion-group {
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(12, 22, 43, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.mobile-accordion-header {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mobile-accordion-header i {
    transition: var(--transition-fast);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-accordion-content.active {
    padding: 20px;
    max-height: 1000px;
}

.mobile-service-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 15px;
}

.mobile-service-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-service-card h4 {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--white);
    margin-bottom: 8px;
}

.mobile-service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- SECTORS SECTION --- */
.sectors-editorial-explorer {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: stretch;
}

.sectors-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sector-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(12, 22, 43, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sector-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: var(--transition-fast);
}

.sector-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sector-nav-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(12, 22, 43, 0.6);
}

.sector-nav-item:hover .sector-nav-title {
    color: var(--white);
}

.sector-nav-item.active {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.04);
}

.sector-nav-item.active .sector-dot {
    background-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
    transform: scale(1.5);
}

.sector-nav-item.active .sector-nav-title {
    color: var(--gold-primary);
}

.sectors-details-panel {
    position: relative;
    border: 1px solid var(--card-border);
    background: var(--navy-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--heavy-shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
}

.panel-border-glow {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

.panel-image-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.panel-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.panel-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 10, 20, 0.95) 20%, rgba(5, 10, 20, 0.7) 60%, transparent 100%);
    z-index: 2;
}

.panel-text-content {
    position: relative;
    z-index: 3;
}

.panel-tech-label {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
}

.panel-title {
    font-size: 2.2rem;
    font-weight: 850;
    color: var(--white);
    margin: 10px 0 20px;
}

.panel-description {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 30px;
}

.panel-gold-foot-accent {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- WHY EIB SECTION --- */
.why-eib-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pillar-editorial-card {
    background: rgba(12, 22, 43, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 40px 30px;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-smooth);
}

.pillar-line-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.pillar-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.pillar-num {
    font-family: monospace;
    font-size: 2.6rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.15);
    line-height: 1;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.pillar-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pillar-editorial-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border);
    box-shadow: var(--heavy-shadow), var(--gold-glow);
    background: rgba(12, 22, 43, 0.7);
}

.pillar-editorial-card:hover .pillar-line-accent {
    background-color: var(--gold-primary);
}

.pillar-editorial-card:hover .pillar-num {
    color: var(--gold-primary);
}

/* --- PROJECTS SECTION --- */
.projects-filter-bar {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 24px;
    background: rgba(12, 22, 43, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(12, 22, 43, 0.8);
    color: var(--white);
    border-color: rgba(212, 175, 55, 0.4);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--navy-dark);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* --- FILTER NAVIGATION SLIDERS --- */
.sectors-nav-slider-wrapper,
.projects-filter-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 10px;
}

.projects-filter-slider-wrapper {
    margin-bottom: 50px;
}

.filter-nav-track {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
}

.filter-nav-track::-webkit-scrollbar {
    display: none;
}

/* Ensure single row inside sliders with max-content width so track handles scrolling */
.projects-filter-slider-wrapper .projects-filter-bar,
.sectors-nav-slider-wrapper .sectors-nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 0;
    padding: 6px 4px;
    width: max-content;
    min-width: 100%;
    overflow: visible;
}

.filter-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: rgba(12, 22, 43, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    z-index: 5;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-nav-arrow:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--navy-dark);
}

.filter-nav-arrow:active {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-dark);
}

.filter-nav-arrow.is-disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Hide sectors scroll arrows on desktop since list is a vertical sidebar */
@media (min-width: 1025px) {
    .sectors-nav-slider-wrapper .filter-nav-arrow {
        display: none;
    }
}

/* Asymmetric grid portfolio */
.projects-asymmetric-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-item-wrapper {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.project-item-wrapper.hide {
    display: none;
}

.project-item-wrapper.large-span {
    grid-column: span 2;
}

.project-item-wrapper.large-span .project-architectural-card {
    aspect-ratio: 21 / 9;
    min-height: 380px;
}

.project-architectural-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 340px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--heavy-shadow);
    cursor: default;
    box-sizing: border-box;
}

.project-img-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.project-img-holder img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Cinematic Gradient Overlay (Dark at bottom, clear at top) */
.project-img-darkener {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(5, 10, 20, 0.96) 0%,
            rgba(5, 10, 20, 0.8) 35%,
            rgba(5, 10, 20, 0.2) 70%,
            rgba(5, 10, 20, 0.05) 100%);
    transition: var(--transition-smooth);
    z-index: 2;
}

.project-details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    box-sizing: border-box;
}

/* Metadata Row (Price Tag) */
.proj-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    width: 100%;
}

.proj-badge {
    display: none;
}

.proj-value {
    font-family: var(--font-main);
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(12, 22, 43, 0.85);
    padding: 4px 11px;
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Project Title */
.proj-title {
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.proj-meta {
    display: none;
}

/* Micro corner crosshair overlays for the technical grid feel */
.technical-corners span {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--gold-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 6;
}

.technical-corners .tc-1 {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.technical-corners .tc-2 {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.technical-corners .tc-3 {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

.technical-corners .tc-4 {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

/* Interactive Hover States */
.project-architectural-card:hover .project-img-holder img {
    transform: scale(1.06);
}

.project-architectural-card:hover .project-img-darkener {
    background: linear-gradient(to bottom,
            rgba(5, 10, 20, 0.82) 0%,
            rgba(5, 10, 20, 0.2) 30%,
            rgba(5, 10, 20, 0.65) 60%,
            rgba(5, 10, 20, 0.98) 100%);
}

.project-architectural-card:hover .proj-title {
    color: var(--gold-primary);
}

.project-architectural-card:hover .technical-corners span {
    opacity: 0.6;
}

/* --- QUALITY & SAFETY SECTION --- */
.quality-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.standards-editorial-panel {
    background: rgba(12, 22, 43, 0.35);
    border: 1px solid var(--card-border);
    padding: 50px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--heavy-shadow);
}

.standards-icon-box {
    width: 70px;
    height: 70px;
    border: 1.5px solid var(--gold-primary);
    border-radius: 50%;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    box-shadow: var(--gold-glow);
}

.standards-icon-box.hse-icon {
    border-color: var(--logo-orange);
    color: var(--logo-orange);
    box-shadow: 0 0 30px rgba(252, 143, 28, 0.08);
}

.standards-panel-header {
    margin-bottom: 25px;
}

.panel-tech-id {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.standards-panel-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
}

.standards-panel-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.standards-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.standards-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.standards-features li i {
    color: var(--gold-primary);
    font-size: 1rem;
}

.standards-features li i.fa-helmet-safety {
    color: var(--logo-orange);
}

/* --- FINAL CTA SECTION --- */
.final-cta-section {
    position: relative;
    padding: 140px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-backdrop-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-backdrop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg-darkener {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.88);
}

.relative-cta-container {
    position: relative;
    z-index: 2;
}

.cta-editorial-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-technical-label {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 20px;
}

.cta-headline {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 45px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- CONTACT SECTION --- */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: stretch;
}

.contact-editorial-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-tech-label {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.contact-editorial-info h3 {
    font-size: 2.2rem;
    font-weight: 850;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ci-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ci-text h4 {
    font-size: 1rem;
    font-weight: 750;
    color: var(--white);
    margin-bottom: 5px;
}

.ci-text p,
.ci-text a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.ci-text a:hover {
    color: var(--gold-primary);
}

/* Contact Form Box Layout */
.contact-editorial-form-box {
    background: var(--navy-secondary);
    border: 1px solid var(--card-border);
    padding: 50px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--heavy-shadow);
}

.contact-editorial-form-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.contact-editorial-form-box>p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.form-row-group {
    margin-bottom: 22px;
}

.form-row-group.grid-split-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-input-container label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-wrapper i {
    position: absolute;
    right: 18px;
    color: var(--gold-primary);
    font-size: 1.05rem;
}

.form-input-wrapper input,
.form-input-wrapper textarea {
    width: 100%;
    background-color: rgba(5, 10, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--white);
    padding: 14px 48px 14px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input-wrapper textarea {
    resize: none;
}

.form-input-wrapper.text-area-align {
    align-items: flex-start;
}

.form-input-wrapper.text-area-align i {
    top: 16px;
}

.form-input-wrapper input:focus,
.form-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: rgba(5, 10, 20, 0.7);
    box-shadow: var(--gold-glow);
}

/* Validation messaging */
.form-input-container.error input,
.form-input-container.error textarea {
    border-color: var(--logo-red);
}

.error-msg {
    display: none;
    color: var(--logo-red);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
}

.form-input-container.error .error-msg {
    display: block;
}

/* Contact Form Success overlay */
.success-alert {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-secondary);
    border-radius: 8px;
    padding: 50px;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.success-alert.show {
    display: flex;
    opacity: 1;
}

.success-icon {
    font-size: 4.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

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

.success-alert h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.success-alert p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 380px;
}

/* --- FOOTER (ENHANCED PREMIUM DESIGN WITH GRAPHIC WATERMARK) --- */
.main-footer {
    background-color: var(--navy-dark);
    border-top: 1px solid var(--card-border);
    padding: 90px 0 35px;
    position: relative;
    overflow: hidden;
}

/* Abstract faint architectural details running background of footer */
.main-footer::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.1fr 1.2fr;
    gap: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 60px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.brand-info-col .eib-logo-svg {
    margin-bottom: 25px;
}

.footer-about-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    margin-top: 20px;
    max-width: 440px;
}

.footer-tagline-motto {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-primary);
    border-right: 2.5px solid var(--gold-primary);
    padding-right: 15px;
    letter-spacing: 0.5px;
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background-color: var(--gold-primary);
}

.footer-nav-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--gold-primary);
    opacity: 0;
    transform: translateX(5px);
    transition: var(--transition-fast);
}

.footer-nav-links a:hover {
    color: var(--gold-primary);
    transform: translateX(-4px);
}

.footer-nav-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-details li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact-details li i {
    color: var(--gold-primary);
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.footer-social-wrapper {
    margin-top: 35px;
}

.footer-social-wrapper h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-social-icons {
    display: flex;
    gap: 14px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-social-icons a:hover {
    background-color: var(--gold-primary);
    color: var(--navy-dark);
    border-color: var(--gold-primary);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: var(--gold-glow);
}

.footer-legal-bar {
    position: relative;
    z-index: 2;
}

.footer-legal-bar p {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* --- DEVELOPER CREDIT BADGE --- */
.developer-credit-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    vertical-align: middle;
}

.developer-credit-wrapper .credit-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.developer-credit-wrapper .credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37, 211, 102, 0.25);
    background: rgba(37, 211, 102, 0.04);
    text-decoration: none;
    direction: ltr; /* Force icon on left, name on right */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.developer-credit-wrapper .credit-badge i {
    color: #25D366;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.developer-credit-wrapper .credit-badge .credit-name {
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: var(--font-main);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover State */
.developer-credit-wrapper .credit-badge:hover {
    border-color: rgba(37, 211, 102, 0.55);
    background: rgba(37, 211, 102, 0.08);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.developer-credit-wrapper .credit-badge:hover i {
    transform: scale(1.15) rotate(10deg);
}

.developer-credit-wrapper .credit-badge:hover .credit-name {
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(243, 229, 171, 0.3);
}

/* --- BACK TO TOP & FLOATING WHATSAPP --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(12, 22, 43, 0.85);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.back-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background-color: var(--gold-primary);
    color: var(--navy-dark);
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.whatsapp-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-floating-widget:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* --- ENTRANCE ANIMATIONS SYSTEM --- */
.animate-up,
.animate-left,
.animate-right {
    opacity: 0;
}

.animate-up {
    transform: translateY(40px);
}

.animate-left {
    transform: translateX(45px);
}

.animate-right {
    transform: translateX(-45px);
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN & QUALITY ASSURANCE FIXES
   ========================================================================== */

@media (max-width: 1140px) {

    /* ── Compact floating mobile bar ── */
    .main-header {
        top: 12px;
        width: 94%;
        border-radius: 10px;
        animation: navbarEntranceMobile 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .header-container {
        padding: 11px 18px;
    }

    .btn-header {
        display: none;
        /* Hidden on mobile — available in full-screen menu */
    }

    /* ── Hamburger becomes visible ── */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
        padding: 6px;
        box-sizing: content-box;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }

    /* ── Full-Screen Architectural Luxury Overlay ── */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100dvh;
        min-height: 100vh;
        background: #050a14;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 998;
        display: flex !important;
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(0.985) translateY(-8px);
        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);

        /* Blueprint grid detail overlay */
        background-image:
            radial-gradient(circle at 50% 12%, rgba(212, 175, 55, 0.09) 0%, transparent 65%),
            linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
            linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
        background-size: 100% 100%, 36px 36px, 36px 36px;
    }

    /* Active / open state */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1) translateY(0);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
    }

    /* Architectural SVG Blueprint Overlay */
    .menu-blueprint-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
        opacity: 0;
        transition: opacity 0.4s ease 0.05s;
    }

    .nav-menu.active .menu-blueprint-overlay {
        opacity: 1;
    }

    .menu-blueprint-overlay svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Inner Wrapper - Centered Vertical Composition */
    .mobile-menu-inner {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 480px;
        min-height: 100dvh;
        margin: 0 auto;
        padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
        box-sizing: border-box;
    }

    /* ── Branded Mobile Header inside Overlay ── */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin-bottom: 22px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.14);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
    }

    .nav-menu.active .mobile-menu-header {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-brand-text {
        display: flex;
        flex-direction: column;
    }

    .mobile-brand-text .logo-title {
        font-size: 1.35rem;
        font-weight: 900;
        color: var(--white);
        line-height: 1;
        letter-spacing: 0.5px;
    }

    .mobile-brand-text .logo-subtitle {
        font-size: 0.52rem;
        font-weight: 800;
        color: var(--gold-primary);
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    /* ── Navigation List ── */
    .nav-menu ul.mobile-nav-list {
        flex-direction: column;
        gap: 15px;
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
        width: 100%;
        counter-reset: nav-counter;
    }

    .desktop-lang-switch {
        display: none !important;
    }

    /* Staggered link items */
    .nav-menu li {
        counter-increment: nav-counter;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100%;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.12s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.16s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.20s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.24s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.28s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.32s;
    }

    .nav-menu.active li:nth-child(7) {
        transition-delay: 0.36s;
    }

    .nav-menu.active li:nth-child(8) {
        transition-delay: 0.40s;
    }

    /* Nav Card Links */
    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        padding: 8px 16px;
        border-radius: 6px;
        background: rgba(12, 22, 43, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        white-space: nowrap;
        position: relative;
    }

    /* Counter Badge Prefix */
    .nav-menu li:not(.desktop-lang-switch) a::before {
        content: counter(nav-counter, decimal-leading-zero);
        font-family: monospace;
        font-size: 0.78rem;
        font-weight: 800;
        color: rgba(212, 175, 55, 0.75);
        margin-inline-end: 14px;
        padding: 2px 7px;
        background: rgba(212, 175, 55, 0.08);
        border-radius: 4px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        flex-shrink: 0;
    }

    .nav-label {
        flex-grow: 1;
    }

    .nav-arrow {
        font-size: 0.75rem;
        color: rgba(212, 175, 55, 0.4);
        transition: transform 0.25s ease, color 0.25s ease;
        flex-shrink: 0;
    }

    /* Hover State */
    .nav-menu a:hover {
        color: var(--white);
        background: rgba(212, 175, 55, 0.08);
        border-color: rgba(212, 175, 55, 0.28);
    }

    .nav-menu a:hover .nav-arrow {
        color: var(--gold-primary);
        transform: translateX(4px);
    }

    html[dir="rtl"] .nav-menu a:hover .nav-arrow {
        transform: translateX(-4px);
    }

    /* Refined Active State */
    .nav-menu a.active {
        color: var(--white);
        background: rgba(16, 28, 54, 0.85);
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.14);
        border-inline-start: 3px solid var(--gold-primary);
    }

    .nav-menu a.active::before {
        color: var(--gold-primary);
        border-color: rgba(212, 175, 55, 0.45);
        background: rgba(212, 175, 55, 0.16);
    }

    .nav-menu a.active .nav-arrow {
        color: var(--gold-primary);
    }

    /* ── Mobile Overlay Footer Utility & Action Area ── */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
        margin: 0;
        padding-top: 0;
        border-top: none;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.35s ease 0.45s, transform 0.35s ease 0.45s;
    }

    .nav-menu.active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-utility-row {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .lang-switch-control {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        font-size: 0.84rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        background: rgba(12, 22, 43, 0.6);
        border: 1px solid rgba(212, 175, 55, 0.22);
        border-radius: 20px;
        padding: 6px 18px;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .lang-switch-control:hover {
        border-color: var(--gold-primary);
        color: var(--white);
        background: rgba(212, 175, 55, 0.1);
    }

    .lang-switch-control .active-lang {
        color: var(--gold-primary);
        font-weight: 800;
    }

    .lang-switch-control .lang-divider {
        color: rgba(212, 175, 55, 0.35);
        margin: 0 2px;
    }

    .btn-mobile-cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 360px;
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.28) !important;
        letter-spacing: 0.3px;
        transition: all 0.25s ease !important;
    }

    .btn-mobile-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4) !important;
    }

    /* Short Screen Height Refinements */
    @media (max-height: 720px) {
        .mobile-menu-header {
            margin-bottom: 12px;
            padding-bottom: 8px;
        }

        .nav-menu ul.mobile-nav-list {
            margin-bottom: 12px;
            gap: 4px;
        }

        .nav-menu a {
            min-height: 38px;
            padding: 6px 12px;
            font-size: 0.94rem;
        }

        .mobile-menu-footer {
            gap: 12px;
        }

        .btn-mobile-cta {
            padding: 9px 18px !important;
            font-size: 0.88rem !important;
        }
    }

    /* Hamburger -> X transform */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
        background-color: var(--gold-primary);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
        background-color: var(--gold-primary);
    }
}

/* ── Desktop Reset & Isolation Helper ── */
@media (min-width: 1141px) {
    .nav-menu {
        position: static !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .mobile-menu-header,
    .mobile-menu-footer,
    .menu-blueprint-overlay,
    .nav-arrow {
        display: none !important;
    }

    .desktop-lang-switch {
        display: list-item !important;
    }
}

/* Laptop / Large Tablets Breakpoint */
@media (max-width: 1024px) {
    .hero-layout {
        display: flex;
        justify-content: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 600px;
    }

    .hero-title,
    .hero-subtitle,
    .hero-lead {
        text-align: center;
    }

    .hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-thumbnails-container {
        margin: 40px auto 0 auto;
        max-width: 500px;
    }

    .editorial-about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-graphic-col {
        order: -1;
    }

    .services-explorer {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .explorer-display-panel {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-top: 40px;
        margin-top: 20px;
    }

    .sectors-editorial-explorer {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sectors-details-panel {
        aspect-ratio: auto;
        padding: 24px;
        justify-content: flex-start;
    }

    .sectors-details-panel .panel-image-holder {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: 20px;
        border-radius: 4px;
        overflow: hidden;
    }

    .sectors-details-panel .panel-image-holder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sectors-details-panel .panel-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(12, 22, 43, 0.4) 0%, rgba(12, 22, 43, 0.1) 100%);
        z-index: 2;
    }

    .sectors-details-panel .panel-text-content {
        position: relative;
        z-index: 3;
    }

    .sectors-details-panel .panel-title {
        font-size: 1.6rem;
        margin: 8px 0 12px;
    }

    .sectors-details-panel .panel-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .why-eib-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects-asymmetric-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-item-wrapper.large-span {
        grid-column: span 1;
    }

    .project-architectural-card,
    .project-item-wrapper.large-span .project-architectural-card {
        aspect-ratio: 16 / 10;
        min-height: 320px;
    }

    .project-details-overlay {
        padding: 24px 20px;
    }

    .proj-title {
        font-size: clamp(1.1rem, 1.5vw, 1.4rem);
        line-height: 1.4;
        -webkit-line-clamp: 3;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Footer responsive 1-column layout for mobile & tablet */
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
        margin-bottom: 25px;
    }

    .footer-about-description {
        max-width: 100%;
    }

    .footer-contact-details li {
        font-size: 0.92rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Sectors nav becomes horizontal on tablet */
    .sectors-editorial-explorer>.sectors-nav-slider-wrapper {
        grid-column: 1 / -1;
    }

    .sectors-nav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
        overflow: visible;
    }

    .sectors-nav-list::-webkit-scrollbar {
        display: none;
    }

    .sector-nav-item {
        flex-shrink: 0;
    }
}

/* Mobile & Small Tablets - Responsive Overflows & Alignment Fixes */
@media (max-width: 768px) {

    body,
    html {
        width: 100%;
        overflow-x: hidden;
        /* Strict lock on horizontal scroll */
    }

    .container {
        padding-right: 16px;
        padding-left: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Strict container constraints for mobile sliders and galleries to prevent RTL left overflow */
    .sectors-nav-slider-wrapper,
    .projects-filter-slider-wrapper,
    .projects-asymmetric-gallery,
    .project-item-wrapper,
    .project-architectural-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-padding {
        padding: 85px 0;
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 50px;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }

    .hero-title {
        font-size: 2.3rem;
        /* Downsized title for smaller mobile viewports */
        line-height: 1.25;
        margin-bottom: 18px;
    }

    .hero-lead {
        font-size: 0.98rem;
        line-height: 1.8;
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }

    .hero-thumbnails-container {
        margin: 30px auto 0 auto;
        max-width: 320px;
    }

    /* Target focal points for mobile viewports to keep subjects centered */
    .hero-slide:nth-child(1) .hero-slide-img {
        background-position: 45% center;
    }

    .hero-slide:nth-child(2) .hero-slide-img {
        background-position: 40% center;
    }

    .hero-slide:nth-child(3) .hero-slide-img {
        background-position: 50% center;
    }

    .hero-slide:nth-child(4) .hero-slide-img {
        background-position: center center;
    }

    .hero-slide:nth-child(5) .hero-slide-img {
        background-position: 60% center;
    }

    .btn {
        width: 100%;
        /* Full width buttons for mobile touch comfort */
        padding: 15px 25px;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .quality-safety-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .section-headline {
        font-size: 1.85rem;
        line-height: 1.35;
        margin-bottom: 25px;
    }

    .section-lead-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 45px;
    }

    /* Switch explorer layout to accordion for mobile UX */
    .services-explorer {
        display: none;
    }

    .services-mobile-accordion {
        display: flex;
    }


    .sectors-details-panel {
        padding: 20px;
    }

    .sectors-details-panel .panel-title {
        font-size: 1.4rem;
        margin: 6px 0 10px;
    }

    .sectors-details-panel .panel-description {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 12px;
    }

    .why-eib-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-asymmetric-gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-item-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-item-wrapper.large-span {
        grid-column: span 1;
    }

    .project-architectural-card,
    .project-item-wrapper.large-span .project-architectural-card {
        aspect-ratio: 16 / 10;
        min-height: 180px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 6px;
    }

    .project-details-overlay {
        padding: clamp(14px, 3.5vw, 20px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .proj-title {
        font-size: clamp(0.95rem, 3.8vw, 1.25rem);
        line-height: 1.35;
        -webkit-line-clamp: 3;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* Narrow Mobile Devices (320px - 420px) Art Direction */
@media (max-width: 420px) {

    .project-architectural-card,
    .project-item-wrapper.large-span .project-architectural-card {
        aspect-ratio: 16 / 10;
        min-height: 170px;
    }

    .project-details-overlay {
        padding: 12px 14px;
    }

    .proj-value {
        font-size: 0.76rem;
        padding: 2px 7px;
    }

    .proj-title {
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        line-height: 1.35;
        -webkit-line-clamp: 3;
    }

    .proj-meta {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .quality-safety-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .standards-editorial-panel {
        padding: 35px 20px;
    }

    .cta-headline {
        font-size: 2.1rem;
        line-height: 1.3;
    }

    .cta-desc {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 35px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }

    .form-row-group.grid-split-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-editorial-form-box {
        padding: 35px 20px;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-bottom: 40px;
        margin-bottom: 25px;
    }

    .footer-column h3 {
        margin-bottom: 20px;
    }

    .footer-social-wrapper {
        margin-top: 25px;
    }

    /* Shift back to top button slightly up on mobile to clear the WhatsApp widget */
    .back-to-top-btn {
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-floating-widget {
        bottom: 25px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
}

/* Extra Small screens */
@media (max-width: 480px) {
    .mobile-only-br {
        display: block;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .section-headline {
        font-size: 1.6rem;
    }

    .stats-editorial-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-big-num {
        font-size: 2.8rem;
    }

    .about-description {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .contact-editorial-info h3 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Project Details Modal Styles
   ========================================================================== */
.project-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 12, 26, 0.85);
    backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--navy-secondary);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    overflow: hidden;
    z-index: 2005;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.05);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(12, 22, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: var(--gold-primary);
    color: var(--navy-dark);
    border-color: var(--gold-primary);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 450px;
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 22, 43, 0.95) 0%, rgba(12, 22, 43, 0.5) 50%, rgba(12, 22, 43, 0.1) 100%);
}

.modal-info-wrapper {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    direction: rtl;
}

.modal-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.06);
    padding: 4px 12px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 10px;
}

.modal-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    color: var(--gold-primary);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.price-highlight {
    color: var(--gold-light) !important;
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 850;
}

/* Modal details responsive positioning */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image-wrapper {
        height: 220px;
        min-height: auto;
    }

    .modal-image-overlay {
        background: linear-gradient(to top, rgba(12, 22, 43, 0.95) 0%, rgba(12, 22, 43, 0.2) 100%);
    }

    .modal-info-wrapper {
        padding: 30px 20px;
    }

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

/* Custom bullet lists for new service descriptions */
.service-marketing-headline {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-includes-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-top: 25px;
    margin-bottom: 12px;
}

.service-includes-list {
    list-style: none;
    padding-right: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-includes-list li {
    position: relative;
    padding-right: 20px;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-includes-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--gold-primary);
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   CREDENTIALS & CERTIFICATES CAROUSEL SECTION
   ========================================================================== */
.credentials-section {
    position: relative;
    background-color: var(--navy-primary);
    overflow: hidden;
}

.credentials-slider-container {
    margin-top: 50px;
    position: relative;
    padding: 20px 0 60px 0;
}

.credentials-swiper {
    width: 100%;
    overflow: visible !important;
}

/* Swiper slide container */
.swiper-slide {
    height: auto;
}

/* Premium Framed Document Preview Card */
.cert-card-container {
    background: rgba(12, 22, 43, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--heavy-shadow);
    backdrop-filter: blur(10px);
}

.cert-card-container:hover {
    border-color: var(--gold-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12), var(--heavy-shadow);
}

/* Miniature Framed Certificate CSS Preview */
.cert-preview-frame {
    background: #fdfbf7;
    /* ivory paper background */
    border-radius: 6px;
    padding: 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
    box-shadow: inset 0 0 25px rgba(212, 175, 55, 0.08), 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Thin internal gold double border */
.cert-preview-frame::after {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    border: 1px solid var(--theme-border, var(--gold-primary));
    opacity: 0.85;
    pointer-events: none;
}

.cert-preview-frame.theme-green {
    --theme-border: #1e824c;
    --theme-accent: #1e824c;
}

.cert-preview-frame.theme-navy {
    --theme-border: #1f3a60;
    --theme-accent: #2c3e50;
}

.cert-preview-frame.theme-gold {
    --theme-border: #b89737;
    --theme-accent: #d4af37;
}

.cert-preview-frame.theme-red {
    --theme-border: #962d22;
    --theme-accent: #c0392b;
}

.cert-preview-frame.theme-purple {
    --theme-border: #663399;
    --theme-accent: #8e44ad;
}

/* Header inside preview */
.cert-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding-bottom: 8px;
}

.cert-preview-header i {
    font-size: 16px;
    color: var(--theme-accent, var(--gold-primary));
}

.cert-preview-header span {
    font-size: 7px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Body inside preview */
.cert-preview-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 6px;
}

.cert-preview-body h4 {
    font-size: 13px;
    font-weight: 800;
    color: #0b1325;
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: var(--font-main);
}

.cert-preview-body h5 {
    font-size: 9px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cert-preview-body p {
    font-size: 8px;
    color: #718096;
    line-height: 1.3;
    margin-top: 4px;
    font-weight: 500;
}

/* Footer inside preview */
.cert-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 8px;
}

.cert-preview-signature {
    text-align: right;
}

.cert-preview-signature .sig-title {
    display: block;
    font-size: 5px;
    font-weight: 700;
    color: #718096;
    margin-bottom: 2px;
}

.cert-preview-signature .sig-line {
    display: block;
    font-size: 7px;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    color: #2d3748;
}

.cert-preview-seal {
    text-align: center;
    line-height: 1;
}

.cert-preview-seal i {
    font-size: 20px;
    color: var(--theme-accent, var(--gold-primary));
}

.cert-preview-qr {
    line-height: 1;
}

.cert-preview-qr i {
    font-size: 26px;
    color: #1a202c;
}

/* Card details (outside preview) */
.cert-card-info {
    text-align: right;
    flex-grow: 1;
}

.cert-type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    letter-spacing: 0.5px;
}

.cert-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.4;
}

.cert-card-issuer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-card-issuer i {
    color: var(--gold-primary);
    font-size: 1rem;
}

/* Metadata List */
.cert-metadata-list {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-bottom: 24px;
}

.cert-metadata-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.cert-meta-label {
    color: var(--text-muted);
}

.cert-meta-val {
    color: var(--white);
    font-weight: 600;
}

/* Action button inside card */
.cert-actions-wrapper {
    margin-top: auto;
}

.cert-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.cert-btn-primary {
    background: var(--gold-primary);
    color: var(--navy-primary);
    border: 1px solid var(--gold-primary);
}

.cert-btn-primary:hover {
    background: transparent;
    color: var(--gold-primary);
}

/* Slider Custom Controls & Buttons */
.slider-controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.swiper-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.swiper-nav-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--navy-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.swiper-pagination-cred {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    display: flex;
    gap: 8px;
}

/* Swiper Pagination Bullets style override */
.swiper-pagination-cred .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    width: 8px;
    height: 8px;
    transition: var(--transition-fast);
}

.swiper-pagination-cred .swiper-pagination-bullet-active {
    background: var(--gold-primary) !important;
    width: 24px;
    border-radius: 4px;
}

/* Responsiveness overrides */
@media (max-width: 768px) {
    .cert-card-container {
        padding: 20px;
    }

    .cert-preview-frame {
        height: 250px;
        padding: 16px;
    }

    .cert-preview-body h4 {
        font-size: 11px;
    }

    .cert-preview-body h5 {
        font-size: 8px;
    }

    .cert-preview-body p {
        font-size: 7px;
    }

    .cert-preview-qr i {
        font-size: 22px;
    }

    .cert-preview-seal i {
        font-size: 16px;
    }
}

/* Document Card Image Preview styles */
.cert-preview-image-container {
    width: 100%;
    height: 460px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.cert-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.cert-card-container:hover .cert-preview-img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .cert-preview-image-container {
        height: 340px;
        margin-bottom: 16px;
        padding: 8px;
    }
}

/* ==========================================================================
   INTERACTIVE ORGANIZATIONAL MAP SECTION
   ========================================================================== */
.org-chart-section {
    position: relative;
    background-color: var(--navy-primary);
    overflow: hidden;
}

.relative-org-container {
    position: relative;
    z-index: 5;
}

/* Expand container on large screens to accommodate 8 and 9 grid columns without side overflow */
@media (min-width: 1441px) {
    .relative-org-container {
        max-width: 1580px !important;
        width: 95%;
    }
}

/* Leadership Tier styles */
.org-leadership-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto 60px auto;
    max-width: 600px;
}

.org-leadership-node {
    background: rgba(12, 22, 43, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.org-leadership-node:hover {
    border-color: var(--gold-primary);
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Distinct visual accent for Executive Director node */
.org-leadership-node.director-node {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(12, 22, 43, 0.95) 0%, rgba(26, 38, 64, 0.95) 100%);
}

.org-leadership-node.director-node::after {
    content: '';
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    opacity: 0.3;
    pointer-events: none;
}

.org-leadership-node .node-icon {
    font-size: 1.8rem;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.org-leadership-node .node-info {
    text-align: right;
}

.org-leadership-node .node-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.org-leadership-node .node-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.org-link-vertical {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-primary) 0%, rgba(212, 175, 55, 0.1) 100%);
}

/* Connector SVG Container */
.org-connector-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Desktop grid map layout */
.org-map-desktop {
    position: relative;
    z-index: 3;
    margin-top: 40px;
}

.org-grid-row {
    display: grid;
    gap: 14px;
    margin-bottom: 70px;
}

.org-grid-row.row-1 {
    grid-template-columns: repeat(8, 1fr);
}

.org-grid-row.row-2 {
    grid-template-columns: repeat(9, 1fr);
}

/* Node Card styles */
.org-node-card {
    background: rgba(12, 22, 43, 0.9);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 16px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Corner borders styling for draft blueprint look */
.node-corner-accent {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold-primary);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.node-corner-accent.top-left {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
}

.node-corner-accent.top-right {
    top: 4px;
    right: 4px;
    border-left: none;
    border-bottom: none;
}

.node-corner-accent.bottom-left {
    bottom: 4px;
    left: 4px;
    border-right: none;
    border-top: none;
}

.node-corner-accent.bottom-right {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
}

.org-node-card:hover .node-corner-accent {
    opacity: 1;
}

/* Header inside Node Card */
.node-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
}

.node-card-icon {
    font-size: 1.15rem;
    color: var(--gold-primary);
    margin-top: 2px;
}

.node-card-title-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 2px;
}

.node-card-en {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-family: monospace;
    line-height: 1.2;
}

/* Bottom CTA inside Node Card */
.node-card-cta {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    transition: var(--transition-fast);
}

.org-node-card:hover .node-card-cta {
    color: var(--gold-primary);
}

.node-card-cta i {
    font-size: 0.65rem;
    transform: translateX(0);
    transition: var(--transition-fast);
}

.org-node-card:hover .node-card-cta i {
    transform: translateX(-4px);
}

/* Dimming/Focus Interaction states */
.org-dimmed {
    opacity: 0.28;
    transform: scale(0.97);
    filter: blur(1px);
}

.org-active {
    opacity: 1 !important;
    transform: translateY(-6px) scale(1.03);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Responsive visibility utilities */
@media (max-width: 1024px) {
    .d-none-mobile {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .d-none-desktop {
        display: none !important;
    }
}

/* Mobile Premium Vertical Tree styling */
.org-map-mobile {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    padding: 0 10px;
}

.org-mobile-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Centered Tree Nodes (Level 1, Level 2, Level 3) */
.org-tree-node {
    background: linear-gradient(135deg, rgba(12, 22, 43, 0.95) 0%, rgba(26, 38, 64, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.org-tree-node.level-1 {
    border-color: rgba(212, 175, 55, 0.3);
}

.org-tree-node.level-2 {
    border-color: rgba(212, 175, 55, 0.4);
}

.org-tree-node.level-3 {
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Icons and Titles inside nodes */
.org-tree-node .node-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.org-tree-node .node-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.org-tree-node .node-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.org-tree-node .node-info span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Vertical connectors between centered nodes */
.org-tree-connector-vertical {
    width: 2px;
    height: 36px;
    background: rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

/* Sector Headers */
.org-tree-sector-header {
    width: 100%;
    max-width: 320px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0 0 0;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.org-tree-sector-header.clickable-sector-header {
    cursor: pointer;
}

.org-tree-sector-header.clickable-sector-header:hover {
    background: rgba(212, 175, 55, 0.09);
    border-color: rgba(212, 175, 55, 0.45);
}

.org-tree-sector-header.clickable-sector-header.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-primary);
    border-style: solid;
}

.org-tree-sector-header .sector-badge {
    display: inline-block;
    font-size: 0.65rem;
    background: var(--gold-primary);
    color: var(--navy-dark);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sector-header-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2px;
}

.org-tree-sector-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.sector-toggle-icon {
    font-size: 0.72rem;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.org-tree-sector-header.active .sector-toggle-icon {
    transform: rotate(180deg);
}

.org-tree-sector-header span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Trunk containing branches (right-aligned vertical line) */
.org-tree-trunk {
    width: 100%;
    max-width: 320px;
    position: relative;
    padding-right: 32px;
    /* Space for the vertical line on the right side for RTL */
    box-sizing: border-box;
    margin-top: 0;
    padding-top: 16px;
}

.org-tree-trunk-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    /* Vertical trunk line location */
    width: 2px;
    background: rgba(212, 175, 55, 0.25);
    z-index: 1;
}

/* Department Wrapper and Branch connectors */
.org-tree-department-wrapper {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.org-tree-department-wrapper::before {
    content: '';
    position: absolute;
    top: 24px;
    /* Align horizontally with center of card header (48px header height / 2 = 24px) */
    right: -17px;
    /* From the vertical trunk (15px inside trunk padding of 32px = 17px) */
    width: var(--branch-width, 17px);
    height: 2px;
    background: rgba(212, 175, 55, 0.25);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.org-tree-department-wrapper::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -17px;
    /* Centered on the trunk line */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
    border: 2px solid var(--navy-dark);
    z-index: 3;
    transform: translate(50%, -50%);
    transition: all 0.3s ease;
}

/* Level 4 Department Nodes (Cards on the left) */
.org-tree-node.level-4 {
    width: 100%;
    max-width: none;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    cursor: pointer;
}

.node-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
}

.node-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.node-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
}

.node-card-title-group h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.node-card-en {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.branch-toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* Active Highlight Tree Branch Path States */
.org-tree-department-wrapper.org-active::before {
    background: var(--gold-accent);
}

.org-tree-department-wrapper.org-active::after {
    background: var(--gold-accent);
    box-shadow: 0 0 8px var(--gold-accent);
    border-color: var(--navy-dark);
}

.org-tree-department-wrapper.org-active .org-tree-node.level-4 {
    border-color: var(--gold-accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
}

.org-tree-department-wrapper.org-active .branch-toggle-icon {
    color: var(--gold-primary);
}

/* Sub-branch containing child responsibilities */
.org-tree-sub-branch {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(8, 16, 33, 0.4);
    padding: 12px 14px;
    box-sizing: border-box;
}

.org-tree-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-tree-sub-node {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.org-tree-sub-node i {
    color: var(--gold-primary);
    font-size: 0.75rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   ORG CHART CINEMATIC ENTRANCE ANIMATION SUPPORT
   ========================================================================== */

/* SVG Connector line draw animation (GSAP controls strokeDashoffset) */
#orgConnectorSvg path {
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.4s ease;
}

/* Junction dots inside SVG */
#orgConnectorSvg circle {
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
    transition: opacity 0.3s ease;
}

/* Ensure leadership nodes and cards are GPU-accelerated for GSAP */
.org-leadership-node,
.org-node-card,
.org-link-vertical,
.org-tree-node,
.org-tree-connector-vertical,
.org-tree-trunk-line,
.org-tree-sector-header,
.org-tree-department-wrapper {
    will-change: opacity, transform;
}

/* Remove will-change after animation to free GPU memory */
.org-entrance-done .org-leadership-node,
.org-entrance-done .org-node-card,
.org-entrance-done .org-tree-node {
    will-change: auto;
}

/* org-link-vertical must have transform-origin set via JS, just ensure it stacks */
.org-link-vertical {
    transform-origin: top center;
}

/* Gold pulse keyframe for junction dots and node highlights */
@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
    }

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

/* Active state after entrance for mobile tree sector headers */
.org-tree-sector-header.sec-entrance-done {
    animation: goldPulse 1.5s ease-out;
}

/* Organizational details Popup Modal */
.org-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}

.org-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 21, 0.8);
    backdrop-filter: blur(8px);
}

.org-modal-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--navy-secondary);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1201;
    text-align: right;
}

.org-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.org-modal-close:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.org-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.org-modal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.org-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.org-modal-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.org-modal-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 14px;
}

.org-modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-left: 5px;
}

/* Custom Scrollbar for list */
.org-modal-list::-webkit-scrollbar {
    width: 6px;
}

.org-modal-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.org-modal-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.org-modal-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.org-modal-list li i {
    color: var(--gold-primary);
    font-size: 0.85rem;
}

/* Responsive grid overrides */
@media (max-width: 1440px) {
    .org-grid-row.row-1 {
        grid-template-columns: repeat(4, 1fr);
    }

    .org-grid-row.row-2 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .org-grid-row.row-1 {
        grid-template-columns: repeat(3, 1fr);
    }

    .org-grid-row.row-2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   CINEMATIC BLUEPRINT PRELOADER & INTRO SYSTEM
   ========================================================================== */
html.preloader-active,
html.preloader-active body {
    overflow: hidden !important;
    height: 100vh !important;
}

.eib-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: all;
    overflow: hidden;
    background-color: transparent;
}

/* Vertical split panels (covering top and bottom halves) */
.preloader-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: var(--navy-dark);
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.preloader-panel-top {
    top: 0;
    transform-origin: top center;
    border-bottom: 0.5px solid rgba(212, 175, 55, 0.15);
}

.preloader-panel-bottom {
    bottom: 0;
    transform-origin: bottom center;
    border-top: 0.5px solid rgba(212, 175, 55, 0.15);
}

/* When preloader is complete, panels split apart vertically */
.eib-preloader.preloader-done .preloader-panel-top {
    transform: translateY(-100%);
}

.eib-preloader.preloader-done .preloader-panel-bottom {
    transform: translateY(100%);
}

/* Preloader content area */
.preloader-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.eib-preloader.preloader-done .preloader-content {
    opacity: 0;
    visibility: hidden;
}

/* Blueprint Grid Background Pattern */
.preloader-blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0;
    animation: blueprintGridFadeIn 1.5s ease forwards;
}

/* Technical Details in Corners */
.preloader-tech-coords {
    position: absolute;
    font-family: monospace;
    font-size: 0.68rem;
    color: rgba(212, 175, 55, 0.35);
    letter-spacing: 1px;
    opacity: 0;
    animation: techCoordsFadeIn 1.2s ease forwards;
}

.preloader-tech-coords.top-left {
    top: 30px;
    left: 30px;
    animation-delay: 0.2s;
}

.preloader-tech-coords.bottom-right {
    bottom: 30px;
    right: 30px;
    animation-delay: 0.4s;
    direction: ltr;
}

/* Center Logo Container */
.preloader-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* SVG Vector Drawing */
.preloader-svg-logo {
    margin-bottom: 25px;
    position: relative;
    overflow: visible;
}

/* Blueprint lines drawing animation */
.blueprint-line {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: drawOutline 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rect-red-line {
    animation-delay: 0.5s;
}

.rect-orange-line {
    animation-delay: 0.8s;
}

/* Solid Fills revealed after drawing */
.solid-fill {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fill-red {
    animation: fillRedReveal 0.8s ease forwards;
    animation-delay: 1.7s;
}

.fill-orange {
    animation: fillOrangeReveal 0.8s ease forwards;
    animation-delay: 1.9s;
}

/* Logo Slogan Typography */
.preloader-logo-title {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(15px);
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.8s;
}

.preloader-logo-subtitle {
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.0s;
}

/* Precision Gold Line Reveal */
.preloader-split-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transform: translate(-50%, -50%);
    z-index: 15;
    opacity: 0;
    animation: splitLineExpand 0.7s cubic-bezier(0.85, 0, 0.15, 1) forwards;
    animation-delay: 2.3s;
}

.eib-preloader.preloader-done .preloader-split-line {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Metallic Light Sweep Effect on SVG Logo */
.preloader-logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: lightSweep 1.0s ease-in-out forwards;
    animation-delay: 2.2s;
}

/* KEYFRAMES ANIMATIONS */
@keyframes blueprintGridFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes techCoordsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

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

@keyframes drawOutline {
    0% {
        stroke-dashoffset: 320;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillRedReveal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fillOrangeReveal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.85;
    }
}

@keyframes textRevealUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes splitLineExpand {
    0% {
        opacity: 0;
        width: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        width: 100%;
    }
}

@keyframes lightSweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Skip Preloader animations if reduced motion is enabled */
@media (prefers-reduced-motion: reduce) {

    .preloader-blueprint-grid,
    .preloader-tech-coords,
    .blueprint-line,
    .solid-fill,
    .preloader-logo-title,
    .preloader-logo-subtitle,
    .preloader-split-line,
    .preloader-logo-container::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
        width: 100% !important;
    }

    .fill-orange {
        opacity: 0.85 !important;
    }

    .preloader-panel {
        transition-duration: 0.5s !important;
    }
}

/* ==========================================================================
   LTR DIRECTION OVERRIDES (ENGLISH VERSION)
   ========================================================================== */
html[dir="ltr"] body {
    text-align: left;
}

html[dir="ltr"] .logo-area {
    align-items: flex-start;
    order: 3;
    /* Move logo to the right in LTR header */
}

html[dir="ltr"] .nav-menu {
    order: 2;
    /* Nav stays in the middle */
}

html[dir="ltr"] .header-cta {
    order: 1;
    /* Move CTA + hamburger to the left in LTR header */
}

html[dir="ltr"] .org-leadership-node .node-info {
    text-align: left;
}

html[dir="ltr"] .node-card-header {
    text-align: left;
}

html[dir="ltr"] .org-modal-container {
    text-align: left;
}

html[dir="ltr"] .org-modal-close {
    left: auto;
    right: 20px;
}

html[dir="ltr"] .cert-preview-signature {
    text-align: left;
}

html[dir="ltr"] .cert-card-info {
    text-align: left;
}

html[dir="ltr"] .service-idx {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="ltr"] .service-list-item.active .arrow-icon {
    transform: translateX(5px);
}

html[dir="ltr"] .explorer-display-panel {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 0;
    padding-left: 50px;
}

html[dir="ltr"] .text-block-with-line {
    padding-right: 0;
    padding-left: 25px;
    border-right: none;
    border-left: 3px solid var(--gold-primary);
}

html[dir="ltr"] .footer-tagline-motto {
    border-right: none;
    border-left: 2.5px solid var(--gold-primary);
    padding-right: 0;
    padding-left: 15px;
}

html[dir="ltr"] .service-includes-list li {
    padding-right: 0;
    padding-left: 20px;
}

html[dir="ltr"] .service-includes-list li::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .org-tree-trunk {
    padding-right: 0;
    padding-left: 32px;
}

html[dir="ltr"] .org-tree-trunk-line {
    right: auto;
    left: 15px;
}

html[dir="ltr"] .org-tree-department-wrapper::before {
    right: auto;
    left: -17px;
}

html[dir="ltr"] .org-tree-department-wrapper::after {
    right: auto;
    left: -17px;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   ARABIC HERO — PREMIUM MOBILE ENHANCEMENT
   Scope: RTL (Arabic) page only, viewport ≤ 480px
   ========================================================================== */
@media (max-width: 480px) {

    /* ── Section spacing ── */
    html[dir="rtl"] .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100dvh;
        display: flex;
        align-items: center;
    }

    /* ── Hero content column ── */
    html[dir="rtl"] .hero-content {
        align-items: center;
        text-align: center;
        gap: 0;
        width: 100%;
        padding: 0 4px;
    }

    /* ── Badge ── */
    html[dir="rtl"] .hero-badge {
        font-size: 0.78rem;
        padding: 7px 16px 7px 20px;
        gap: 8px;
        margin-bottom: 22px;
        border-color: rgba(212, 175, 55, 0.35);
        background: rgba(8, 16, 33, 0.7);
        backdrop-filter: blur(8px);
        max-width: 92%;
        text-align: center;
        line-height: 1.5;
        letter-spacing: 0.2px;
    }

    html[dir="rtl"] .badge-dot {
        flex-shrink: 0;
        width: 9px;
        height: 9px;
        box-shadow: 0 0 12px var(--logo-orange), 0 0 6px var(--logo-orange);
    }

    /* ── Main headline ── */
    html[dir="rtl"] .hero-title {
        font-size: 2.55rem;
        line-height: 1.22;
        margin-bottom: 0;
        letter-spacing: -0.3px;
        text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
    }

    html[dir="rtl"] .hero-title .gold-text-accent {
        display: block;
        margin-top: 2px;
        text-shadow: 0 0 40px rgba(212, 175, 55, 0.35), 0 4px 20px rgba(0, 0, 0, 0.75);
    }

    /* ── Gold divider accent between title and subtitle ── */
    html[dir="rtl"] .hero-title::after {
        content: '';
        display: block;
        width: 52px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
        margin: 18px auto 14px;
        border-radius: 2px;
        opacity: 0.8;
    }

    /* ── Subtitle ── */
    html[dir="rtl"] .hero-subtitle {
        font-size: 1.08rem;
        font-weight: 600;
        line-height: 1.55;
        max-width: 260px;
        margin-inline: auto;
        margin-bottom: 28px;
        color: rgba(255, 255, 255, 0.88);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
        letter-spacing: 0.15px;
    }

    /* ── CTA buttons ── */
    html[dir="rtl"] .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-inline: auto;
        gap: 13px;
    }

    html[dir="rtl"] .hero-actions .btn-gold {
        background: linear-gradient(135deg, #d4af37 0%, #b8922b 100%);
        box-shadow:
            0 6px 22px rgba(212, 175, 55, 0.38),
            0 2px 8px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        padding: 16px 28px;
        font-size: 1.02rem;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

    html[dir="rtl"] .hero-actions .btn-outline {
        padding: 14px 28px;
        font-size: 0.97rem;
        font-weight: 700;
        border-color: rgba(212, 175, 55, 0.5);
        background: rgba(212, 175, 55, 0.06);
        backdrop-filter: blur(4px);
    }

    /* ── Slider controls ── */
    html[dir="rtl"] .hero-slider-controls {
        margin-top: 36px;
        gap: 14px;
        max-width: 300px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   FLOATING GLASS NAVBAR — DESKTOP REFINEMENT SYSTEM
   Scope: Desktop only (> 1140px) — both RTL and LTR
   Goal : Premium, balanced, architectural navigation at all desktop widths.
   ========================================================================== */

@media (min-width: 1141px) {

    /* ── Nav items — comfortable fluid spacing ── */
    .nav-menu ul {
        gap: clamp(20px, 2.2vw, 36px);
        align-items: center;
    }

    /* ── Nav link typography ── */
    .nav-menu a {
        font-size: 0.9rem;
        letter-spacing: 0.2px;
        white-space: nowrap;
        padding: 7px 0;
    }

    /* ── Active indicator — refined gold underline ── */
    .nav-menu a::after {
        bottom: 0;
        height: 1.5px;
        background: var(--gold-primary);
        box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
    }

    /* ── Compact CTA button ── */
    .btn-header {
        padding: 9px 22px;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.25px;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* ── Language switcher — pill utility control ── */
    .lang-switch-item {
        margin-inline-start: 6px;
        padding-inline-start: 14px;
        border-inline-start: 1px solid rgba(212, 175, 55, 0.18);
    }

    .lang-switch-link {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: rgba(212, 175, 55, 0.72) !important;
        background: rgba(212, 175, 55, 0.06);
        border: 1px solid rgba(212, 175, 55, 0.16);
        border-radius: 20px;
        padding: 4px 11px !important;
        transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .lang-switch-link:hover {
        background: rgba(212, 175, 55, 0.12) !important;
        color: var(--gold-primary) !important;
        border-color: rgba(212, 175, 55, 0.38) !important;
    }

    /* No underline indicator on lang switcher */
    .lang-switch-link::after {
        display: none !important;
    }

    /* ── Header CTA group ── */
    .header-cta {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
    }
}

/* ── 1920px / wide screens ── */
@media (min-width: 1600px) {
    .nav-menu ul {
        gap: 38px;
    }

    .header-container {
        padding: 14px 40px;
    }
}

/* ── 1440px ── */
@media (min-width: 1440px) and (max-width: 1599px) {
    .nav-menu ul {
        gap: 30px;
    }

    .header-container {
        padding: 13px 34px;
    }
}

/* ── 1366px ── */
@media (min-width: 1280px) and (max-width: 1439px) {
    .nav-menu ul {
        gap: 24px;
    }

    .header-container {
        padding: 13px 28px;
    }
}

/* ── 1280px ── */
@media (min-width: 1200px) and (max-width: 1279px) {
    .nav-menu ul {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 0.875rem;
    }

    .header-container {
        padding: 12px 24px;
    }
}

/* ── 1141–1199px — graceful minimum ── */
@media (min-width: 1141px) and (max-width: 1199px) {
    .nav-menu ul {
        gap: 16px;
    }

    .nav-menu a {
        font-size: 0.84rem;
    }

    .btn-header {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .header-container {
        padding: 12px 20px;
    }
}

/* ── Tiny mobile refinements ── */
@media (max-width: 480px) {
    .main-header {
        width: 96%;
        border-radius: 8px;
        top: 10px;
    }

    .header-container {
        padding: 10px 14px;
    }
}

@media (max-width: 390px) {
    .main-header {
        width: 97%;
    }

    .logo-title {
        font-size: 1.55rem;
    }

    .logo-subtitle {
        font-size: 0.46rem;
    }
}

/* ==========================================================================
   EIB HERO SLIDER IMAGE-PREVIEW SYSTEM (THUMBNAILS & LIGHTBOX)
   ========================================================================== */

html.lightbox-active {
    overflow: hidden !important;
}


.hero-thumbnails-container {
    margin-top: 25px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.hero-thumbnails-strip {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 6px 16px;
    background: rgba(8, 16, 33, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-thumbnails-strip::-webkit-scrollbar {
    display: none;
}

.hero-thumbnail {
    position: relative;
    width: 80px;
    height: 48px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--navy-dark);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-thumbnail:hover {
    opacity: 0.9;
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.hero-thumbnail.active {
    opacity: 1;
    border-color: var(--gold-primary, #d4af37);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.45);
    transform: scale(1.03) translateY(-2px);
}

.hero-thumbnail .thumbnail-cue {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 22, 43, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    color: var(--gold-primary, #d4af37);
    font-size: 0.9rem;
}

.hero-thumbnail.active .thumbnail-cue {
    opacity: 1;
}

.hero-thumbnail.active:hover .thumbnail-cue {
    background: rgba(12, 22, 43, 0.3);
    color: var(--white);
    font-size: 1rem;
}

/* Subtle chevron arrow controls beside the thumbnail strip */
.hero-thumbnail-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.hero-thumbnail-arrow:hover {
    color: var(--gold-primary);
    transform: scale(1.15);
}

.hero-thumbnail-arrow:active {
    transform: scale(0.95);
}

/* Mobile responsive constraints: horizontal row with touch scroll */
@media (max-width: 768px) {
    .hero-thumbnails-container {
        margin-top: 15px;
        gap: 8px;
    }

    .hero-thumbnails-strip {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        max-width: 80%;
        padding: 6px 12px;
        gap: 8px;
    }

    .hero-thumbnail {
        width: 64px;
        height: 38px;
    }

    .hero-thumbnail-arrow {
        padding: 6px 8px;
        font-size: 1rem;
    }
}

/* --- PREMIUM HERO IMAGE LIGHTBOX --- */
.hero-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.hero-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 12, 24, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.4s ease;
}

.lightbox-container {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.lightbox-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 10001;
}

.lightbox-close-btn:hover {
    opacity: 1;
    color: var(--gold-primary);
    transform: scale(1.1);
}

.lightbox-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lightbox-image-container {
    width: 100%;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background-color: rgba(5, 10, 20, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-lightbox.open .lightbox-image-container {
    transform: scale(1);
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.lightbox-arrows-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lightbox-arrow {
    background: rgba(12, 22, 43, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--white);
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-arrow:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(12, 22, 43, 0.9);
    transform: scale(1.1);
}

.lightbox-arrow:active {
    transform: scale(0.95);
}

.lightbox-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 98vw;
        gap: 0;
        padding: 0 4px;
    }

    .lightbox-nav {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 20 !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(5, 10, 20, 0.82) !important;
        border: 1px solid rgba(212, 175, 55, 0.45) !important;
        color: var(--gold-primary) !important;
        font-size: 1.1rem !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .lightbox-prev {
        left: 8px !important;
        right: auto !important;
    }

    .lightbox-next {
        right: 8px !important;
        left: auto !important;
    }

    .lightbox-image {
        max-height: 75vh;
        width: 100%;
        object-fit: contain;
    }

    .lightbox-close-btn {
        top: -45px;
        right: 10px;
        font-size: 1.75rem;
    }

    .lightbox-arrows-row {
        gap: 20px;
    }

    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        background: rgba(5, 10, 20, 0.85);
        border-color: rgba(212, 175, 55, 0.4);
        color: var(--gold-primary);
    }
}

/* Accessibility overrides */
@media (prefers-reduced-motion: reduce) {

    .hero-lightbox,
    .lightbox-image-container,
    .hero-thumbnail,
    .hero-thumbnail img,
    .hero-thumbnail .thumbnail-cue {
        transition: none !important;
        transform: none !important;
    }
}

/* Permanently disable project modal popup */
#projectModal {
    display: none !important;
}
