﻿/* Design System & Variables */
:root {
    --primary-blue: #1E2A44;
    --sky-blue: #6EC6FF;
    --white: #FFFFFF;
    --bg-dark: #0F172A;
    --card-dark: #1E293B;
    --text-dark: #F8FAFC;
    --text-muted: #94A3B8;
    --border-dark: #334155;

    --bg-light: #F8FAFC;
    --card-light: #FFFFFF;
    --text-light: #1E293B;
    --text-muted-light: #64748B;
    --border-light: #E2E8F0;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    position: relative;
    overflow: hidden;
}

.section-padding {
    padding: 6rem 0;
}

.section-bg {
    background-color: rgba(30, 41, 59, 0.5);
}

.light-mode .section-bg {
    background-color: rgba(226, 232, 240, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--sky-blue);
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
    width: 100%;
}

ul {
    list-style: none;
}

/* Force FontAwesome 6 Solid Icons to render properly when implicitly inheriting lighter weights */
.fas, .fa-solid {
    font-weight: 900 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* Header & Nav */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(15, 23, 42, 0.2);
    /* Slight tint */
    backdrop-filter: blur(5px);
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid var(--border-dark);
}

.light-mode header.scrolled {
    background-color: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

/* Professional blending for white background in light mode */
.light-mode .logo-img {
    mix-blend-mode: multiply;
}

/* Premium styling for new metallic logo */
.logo-img {
    height: 75px;
    /* Slightly larger for better detail Visibility */
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.dark-mode .logo-img {
    filter: brightness(1.1) drop-shadow(0 4px 15px rgba(110, 198, 255, 0.3));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 6px 20px rgba(110, 198, 255, 0.4));
}

header.scrolled .logo-img {
    height: 55px;
    padding: 6px 12px;
}

.footer-logo-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.footer-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.footer-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.mobile-nav-panel {
    display: none; /* Hidden on desktop */
}

.nav-links a {
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--sky-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.light-mode .btn-lang {
    border-color: var(--border-light);
    color: var(--text-light);
}

.btn-lang:hover {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    border-color: var(--sky-blue);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--sky-blue);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-dark);
}

.light-mode #theme-toggle {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    /* Sky-blue base gradient for blending */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d1b3e 100%);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Make images 'transparent' and blend with blue base */
    mix-blend-mode: luminosity;
    filter: brightness(0.5) contrast(1.1);
}

.hero-slide.active {
    opacity: 0.4;
    /* Intentional transparency for artistic blending */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft blue glow/overlay */
    background: radial-gradient(circle at center, rgba(110, 198, 255, 0.15), transparent 70%),
        linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5));
    z-index: 2;
    pointer-events: none; /* Crucial: allow clicks to pass through to the buttons */
}

.light-mode .hero-overlay {
    background: radial-gradient(circle at center, rgba(110, 198, 255, 0.1), transparent 70%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 3;
    padding-top: 2rem;
    pointer-events: auto; /* Ensure container catches clicks */
}

@media (min-width: 992px) {
    .hero-container {
        display: grid;
        grid-template-columns: 1.4fr 0.6fr;
        /* Give more space to text */
        gap: 2rem;
        align-items: center;
    }
}

.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--sky-blue);
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    /* Force single line on desktop */
}

@media (max-width: 768px) {
    .hero-title {
        white-space: normal;
        /* Allow wrapping on small mobile */
        font-size: 2.2rem;
    }
}

.light-mode .hero-title {
    background: linear-gradient(135deg, #1a73e8 0%, var(--sky-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(110, 198, 255, 0.2);
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .light-mode .hero-title {
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-role {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.light-mode .hero-role {
    color: #44566c;
    text-shadow: none;
}

.hero-intro {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.7;
    font-weight: 400;
}

.light-mode .hero-intro {
    color: #5f6368;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 10; /* Elevate buttons above all overlays and blobs */
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    border: 2px solid var(--sky-blue);
    box-shadow: 0 4px 15px rgba(110, 198, 255, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--sky-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 198, 255, 0.2);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.light-mode .btn-outline {
    border-color: rgba(30, 42, 68, 0.2);
    color: var(--primary-blue);
    background: rgba(30, 42, 68, 0.05);
}

.btn-outline:hover {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, rgba(110, 198, 255, 0.2) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobMorph 10s infinite linear alternate;
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
}

.visual-card {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--card-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--sky-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: floating 4s ease-in-out infinite;
}

.light-mode .visual-card {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@keyframes blobMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Hero Glassmorphism Logo - Final Rectangular Implementation */
.hero-glass-card {
    position: relative;
    width: 100%;
    min-width: 250px;
    max-width: 450px; /* Slight increase to comfortably fit the big logo and title */
    height: auto; /* Remove aspect-ratio restriction to allow content to dictate height */
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column; /* Stack logo on top of title */
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: floating_rect 12s ease-in-out infinite;
}

.hero-glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.glass-logo {
    width: 95%;
    /* Occupy full width of card */
    height: 95%;
    /* Occupy full height of card */
    object-fit: contain;
    transition: all 0.5s ease;
    /* Perfect blending for White on Black assets */
    mix-blend-mode: screen;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.4));
}

.hero-glass-card:hover .glass-logo {
    transform: scale(1.05);
}

@keyframes floating_rect {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Theme Adaptation */
.dark-mode .hero-glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Mobile Responsiveness for Rectangular Aspect */
@media (max-width: 768px) {
    .hero-glass-card {
        width: 100%;
        max-width: 340px;
        padding: 1.5rem;
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-glass-card {
        width: 280px;
        padding: 15px 10px;
    }
}

/* Objective/Vision Section */
.objective-card {
    background: linear-gradient(135deg, var(--card-dark), rgba(30, 42, 68, 0.5));
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.light-mode .objective-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.objective-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--sky-blue);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--card-dark);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--sky-blue);
    border: 1px solid var(--border-dark);
    position: relative;
}

.light-mode .photo-placeholder {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.photo-placeholder::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: -20px;
    border: 2px solid var(--sky-blue);
    border-radius: 24px;
    z-index: -1;
}

html[dir="ltr"] .photo-placeholder::after {
    right: -20px;
    left: 20px;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.light-mode .about-content p {
    color: var(--text-muted-light);
}


/* Branches / Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--card-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
}

.light-mode .project-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.corporate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--sky-blue);
}

.light-mode .corporate-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.project-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--sky-blue);
    position: relative;
    overflow: hidden;
}

.branch-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--white); /* White background for logos usually looks best */
    padding: 20px;
}

.project-info {
    padding: 2.5rem 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
}

.light-mode .project-info h3 {
    color: var(--text-light);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
}

.justify-center {
    justify-content: center;
}

.view-details {
    color: var(--sky-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border: 1px solid var(--sky-blue);
    border-radius: 8px;
    transition: var(--transition);
}

.view-details:hover {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
}

html[dir="rtl"] .arrow-icon {
    transform: scaleX(-1);
}

/* Project Toggle & Details */
.project-title-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-title-toggle:hover {
    color: var(--sky-blue);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.project-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.project-card.expanded .project-details {
    max-height: 200px;
    /* High enough to contain content */
    opacity: 1;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.details-content {
    background-color: rgba(110, 198, 255, 0.05);
    padding: 1.5rem;
    border: 1px dashed var(--sky-blue);
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.light-mode .details-content {
    background-color: rgba(30, 42, 68, 0.03);
    color: var(--text-light);
}

/* Accreditations Infinite Marquee */
.accreditations-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.light-mode .accreditations-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.text-muted {
    color: var(--text-muted);
}

.light-mode .text-muted {
    color: var(--text-muted-light);
}

/* Accreditations Swiper Overrides */
.partners-swiper {
    width: 100%;
    margin-top: 4rem;
    padding: 2rem 0;
    overflow: hidden; /* Prevent horizontal scrollbar on body */
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.partners-swiper .swiper-wrapper {
    transition-timing-function: linear !important; /* Crucial for smooth continuous continuous scroll */
    align-items: center;
}

.partners-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-width: 220px;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .partner-logo {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    border-color: var(--sky-blue);
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(110, 198, 255, 0.15);
}

.partner-logo i {
    font-size: 3.2rem;
    color: var(--sky-blue);
    filter: drop-shadow(0 0 10px rgba(110, 198, 255, 0.3));
    transition: var(--transition);
}

.partner-logo:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(110, 198, 255, 0.5));
}

.partner-logo span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    opacity: 0.85;
}

.partner-logo img {
    height: 180px; /* Extremely large fixed height */
    width: 320px; /* Extremely wide fixed width */
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

.light-mode .partner-logo span {
    color: var(--text-light);
}

html[dir="rtl"] .marquee {
    /* RTL adjustments for infinite scroll - CSS animations behave differently with text-direction */
    animation: scrollRTL 30s linear infinite;
}


/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--sky-blue);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.light-mode .stat-label {
    color: var(--text-muted-light);
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-dark);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
}

.light-mode .feature-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--sky-blue);
    box-shadow: 0 10px 30px rgba(110, 198, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--sky-blue);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.light-mode .feature-card p {
    color: var(--text-muted-light);
}

/* Journey Section CSS */
.journey-section {
    background-color: var(--bg-dark);
    /* fallback */
    position: relative;
    overflow: hidden;
}

.journey-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for dark mode to make text pop */
    background-image: linear-gradient(rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.light-mode .journey-bg {
    /* Use dark overlay in light mode so the white card texts are readable */
    background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.light-mode .journey-section .section-title,
.light-mode .journey-section .text-muted {
    color: var(--white) !important;
}

.relative-z {
    position: relative;
    z-index: 1;
}

.journey-container {
    display: flex;
    align-items: stretch;
    background-color: transparent;
    border: none; /* Removed the border entirely */
    border-radius: 20px;
    padding: 0;
    gap: 3rem;
}

.light-mode .journey-container {
    background-color: transparent;
    border: none; /* Removed border here as well */
}

.journey-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 2rem;
}

.journey-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #0d5f8c;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.journey-btn:hover {
    background-color: #1282be;
    transform: scale(1.1);
}

.journey-btn:disabled {
    background-color: #334155;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.light-mode .journey-btn:disabled {
    background-color: var(--border-light);
}

.journey-track-wrapper {
    flex: 1;
    height: 400px;
    /* fixed height to allow scrolling */
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.journey-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-dark);
    z-index: 1;
}

.light-mode .journey-line {
    background-color: var(--border-light);
}

html[dir="rtl"] .journey-line {
    right: 260px;
    transform: translateX(50%);
}

html[dir="ltr"] .journey-line {
    left: 260px;
    transform: translateX(-50%);
}

.journey-track {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    /* Add some padding so items scroll cleanly */
}

.journey-item {
    display: flex;
    align-items: center;
    min-height: 120px;
    margin-bottom: 2rem;
    opacity: 0.3;
    transition: var(--transition);
    position: relative;
}

.journey-item.active {
    opacity: 1;
}

html[dir="rtl"] .journey-item {
    padding-right: 300px;
    padding-left: 20px;
}

html[dir="ltr"] .journey-item {
    padding-left: 300px;
    padding-right: 20px;
}

.journey-card {
    background-color: #0d5f8c;
    /* like the image */
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.journey-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 266px;
}

html[dir="rtl"] .journey-point {
    right: 0;
    flex-direction: row;
    justify-content: flex-end;
}

html[dir="ltr"] .journey-point {
    left: 0;
    flex-direction: row;
    justify-content: flex-end;
}

.journey-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid #0d5f8c;
    flex-shrink: 0;
    transition: var(--transition);
}

.active .journey-dot {
    background-color: #1282be;
    transform: scale(1.5);
    box-shadow: 0 0 0 6px rgba(18, 130, 190, 0.2);
}

.light-mode .journey-dot {
    background-color: var(--bg-light);
}

.journey-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.light-mode .journey-date {
    color: var(--sky-blue);
}

@media (max-width: 768px) {
    .journey-container {
        flex-direction: column-reverse;
        padding: 2rem;
    }

    .journey-controls {
        flex-direction: row;
        margin-top: 1rem;
    }

    html[dir="rtl"] .journey-item,
    html[dir="ltr"] .journey-item {
        padding: 0 20px;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 3rem;
    }

    html[dir="rtl"] .journey-line,
    html[dir="ltr"] .journey-line {
        display: none;
    }

    html[dir="rtl"] .journey-point,
    html[dir="ltr"] .journey-point {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        justify-content: flex-start;
        width: auto;
    }

    html[dir="rtl"] .journey-point {
        flex-direction: row;
    }
}

/* Corporate Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    background-color: var(--card-dark);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
}

.light-mode .service-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.service-card:hover {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
}

.light-mode .service-card:hover {
    background-color: var(--bg-light);
}

.service-icon {
    font-size: 3rem;
    color: var(--sky-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-muted);
}

.light-mode .service-card p {
    color: var(--text-muted-light);
}


/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.light-mode .form-group label {
    color: var(--text-muted-light);
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.light-mode input,
.light-mode textarea {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

input:focus,
textarea:focus {
    border-color: var(--sky-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(110, 198, 255, 0.1);
}

.w-full {
    width: 100%;
}

.corporate-contact-details {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.light-mode .corporate-contact-details {
    color: var(--text-muted-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--border-dark);
    color: var(--sky-blue);
}

.light-mode .social-links a {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.social-links a:hover {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-dark);
}

.light-mode .footer {
    border-top: 1px solid var(--border-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.light-mode .footer-bottom {
    color: var(--text-muted-light);
}

.back-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--card-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sky-blue);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.appear {
    opacity: 1 !important;
    transform: none !important;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-intro {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 1199px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-lang,
    #theme-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .mobile-nav-panel {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        max-width: 280px;
        background-color: #0d1b2a;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        z-index: 3000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            visibility 0.4s;
        overflow-y: auto;
        border-left: 1px solid rgba(56, 189, 248, 0.3);
    }

    .nav-links {
        display: none; /* Hide desktop menu on mobile */
    }

    .mobile-nav-panel li.nav-close-btn {
        display: flex;
        justify-content: flex-end;
        padding: 1rem 0;
        margin-bottom: 0.5rem;
    }

    .menu-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .mobile-nav-panel li {
        width: 100%;
        opacity: 0;
        transform: translateY(15px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.4s ease;
    }

    .mobile-nav-panel a {
        display: block;
        padding: 0.9rem 1.2rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        font-weight: 600;
        color: #ffffff !important;
        text-decoration: none;
        border: 1px solid rgba(56, 189, 248, 0.1);
        transition: all 0.25s ease;
        letter-spacing: 0.02em;
    }

    .mobile-nav-panel a:hover,
    .mobile-nav-panel a:active {
        background: rgba(56, 189, 248, 0.15);
        border-color: rgba(56, 189, 248, 0.4);
        color: #38bdf8 !important;
        transform: translateX(-4px);
    }

    /* RTL behavior for mobile menu */
    [dir="rtl"] .mobile-nav-panel {
        left: 0;
        right: auto;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    body.menu-open .mobile-nav-panel {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    body.menu-open .mobile-nav-panel li {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* Re-adjust RTL translate for open state */
    [dir="rtl"].menu-open .mobile-nav-panel {
        transform: translateX(0);
    }

    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(8px); /* Increased blur for more depth */
        z-index: 2500;
        cursor: pointer;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.4s ease, visibility 0.4s;
    }

    body.menu-open .menu-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .light-mode .nav-links {
        background-color: var(--white);
    }

    .menu-btn {
        display: block;
    }

}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-role {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-intro {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        display: none;
        /* Hide visual on mobile to prioritize text */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.4rem 0.6rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 38px;
        /* Further reduced for tight screens */
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .header-actions {
        gap: 0.3rem;
    }

    .btn-lang,
    #theme-toggle {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Detail Page Styles */
.detail-hero {
    padding: 220px 0 80px; /* Force extra space below header */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d1b3e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Gap between the logo card and the text card */
}

/* Individual Logo Card */
.hero-logo-card {
    position: relative;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px; /* Square with rounded corners */
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 20px;
    margin-top: 40px; /* Ensure physical separation from header */
    animation: floating_rect 12s ease-in-out infinite alternate;
}

/* Specific adjustment for the wrapped element inside */
.hero-logo-card .hero-icon-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 75% !important; /* Scale down to create padding effect inside the 300px box */
    height: 75% !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.hero-logo-card .hero-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Adjustments for the Text Card */
.details-hero-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem;
    padding: 2.5rem 2rem !important;
    max-width: 600px !important; /* Allow the text box to be appropriately wide */
}

/* Detail Page Hero Icon / Logo Styling */
.hero-icon-wrapper {
    display: block !important;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    transition: transform 0.5s ease;
}

.hero-icon-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(110, 198, 255, 0.2);
    border-color: rgba(110, 198, 255, 0.4);
}

.hero-center-icon.custom-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

i.hero-center-icon {
    font-size: 4.5rem;
    color: var(--sky-blue);
    display: inline-block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 15px rgba(110, 198, 255, 0.4));
}

.detail-hero .hero-title {
    margin-bottom: 0.5rem;
}

.detail-hero .hero-role {
    font-size: 1.5rem;
    color: var(--sky-blue);
    opacity: 0.8;
}

.detail-content-section {
    padding: 5rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-text h2 {
    color: var(--sky-blue);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.light-mode .detail-text h2 {
    color: var(--primary-blue);
}

.detail-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.light-mode .detail-text p {
    color: var(--text-muted-light);
}

.feature-list {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.light-mode .feature-item {
    color: var(--text-light);
}

.feature-item i {
    color: var(--sky-blue);
}

.gallery-section {
    padding-bottom: 8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    background: var(--card-dark);
    /* Placeholder for blocked images */
}

.light-mode .gallery-item {
    background: var(--bg-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(110, 198, 255, 0.2);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.back-btn-container {
    margin-top: 3rem;
}

@media (max-width: 991px) {
    .journey-section {
        padding: 3rem 0 !important;
    }

    .journey-container {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        display: block !important;
    }

    .journey-controls {
        display: none !important;
    }

    .journey-track-wrapper {
        display: block !important;
        width: 100% !important;
        height: 500px !important;
        /* Fixed height for vertical scroll area */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scroll-snap-type: y mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 0 !important;
        position: relative !important;
    }

    .journey-track-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    .journey-track {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        transform: none !important;
        padding: 200px 0 !important;
        /* Top/bottom padding to center items */
    }

    .journey-line {
        display: none !important;
    }

    .journey-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 0 4rem 0 !important;
        padding: 0 1rem !important;
        opacity: 1 !important;
        scroll-snap-align: center !important;
        min-height: auto !important;
    }

    .journey-point {
        position: static !important;
        transform: none !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    .journey-dot {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }

    .journey-date {
        font-size: 1.2rem !important;
        color: var(--sky-blue) !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }

    .journey-card {
        padding: 2.5rem 1.5rem !important;
        font-size: 1.1rem !important;
        border-radius: 20px !important;
        text-align: center !important;
        background: rgba(13, 95, 140, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        width: calc(100% - 2rem) !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        border: 1px solid rgba(110, 198, 255, 0.1) !important;
    }
}

/* =========================================================================
   Details Page Styles (details.html)
   ========================================================================= */

/* 1. Details Hero Parallax */
.details-hero {
    min-height: 40vh; /* Reduced from 60vh to make the hero shorter */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height); /* Prevent header overlap */
    padding-bottom: 60px !important; /* Reduced bottom padding */
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 35%; /* Adjust vertical alignment for a balanced view */
    z-index: -2;
    transition: background-image 0.5s ease;
}

.details-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: -1;
}

.light-mode .details-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.3) 0%, rgba(248, 250, 252, 0.7) 100%);
}

.details-hero-card {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-card {
    background-color: #ffffff; /* Solid white to ensure the dark blue logo is visible */
    width: 320px;
    height: 200px;
    margin: 3rem auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: var(--transition);
}

.hero-center-icon {
    font-size: 6rem;
    color: var(--primary-blue);
    margin-bottom: 0 !important;
}

img.hero-center-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    padding: 0;
    filter: none; /* Removed the glow, as the white background provides perfect contrast */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 500;
}

.light-mode .hero-subtitle {
    color: var(--text-muted-light);
}

/* 2. Quick Highlights Bar */
.stats-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.light-mode .stats-bar {
    border-bottom: 1px solid var(--border-light);
}

.stats-bar-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-highlight i {
    font-size: 2rem;
    color: var(--sky-blue);
    text-shadow: 0 0 10px rgba(110, 198, 255, 0.3);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.light-mode .stat-text strong {
    color: var(--text-light);
}

.stat-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.light-mode .stat-text span {
    color: var(--text-muted-light);
}

/* 3. About Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.light-mode .lead-text {
    color: var(--text-muted-light);
}

.custom-check-list {
    list-style: none;
    padding: 0;
}

.custom-check-list li {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.light-mode .custom-check-list li {
    color: var(--text-light);
}

.custom-check-list li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--sky-blue);
    font-size: 1.2rem;
}

html[dir="ltr"] .custom-check-list li {
    padding-right: 0;
    padding-left: 2rem;
}
html[dir="ltr"] .custom-check-list li::before {
    right: auto;
    left: 0;
}

.collage-wrapper {
    position: relative;
    height: 450px;
    width: 100%;
}

.collage-placeholder {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-blue);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 3px solid var(--bg-dark); /* Outline separator */
    transition: transform 0.4s ease;
    background-size: cover;
    background-position: center;
}

.light-mode .collage-placeholder {
    border-color: var(--bg-light);
}

.collage-placeholder:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10 !important;
}

.collage-placeholder.main-img {
    width: 70%;
    height: 70%;
    top: 0;
    right: 0;
    z-index: 2;
    font-size: 4rem;
}

.collage-placeholder.sub-img-1 {
    width: 50%;
    height: 50%;
    bottom: 0;
    left: 0;
    z-index: 3;
    font-size: 3rem;
}

.collage-placeholder.sub-img-2 {
    width: 45%;
    height: 40%;
    top: 15%;
    left: 10%;
    z-index: 1;
    font-size: 2.5rem;
    opacity: 0.8;
}

/* 4. Interactive Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.light-mode .program-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(110, 198, 255, 0.05), transparent);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: var(--sky-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.program-card:hover::before {
    transform: translateY(0);
}

.program-icon {
    font-size: 3rem;
    color: var(--sky-blue);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-card h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.light-mode .program-card h3 {
    color: var(--text-light); /* Fixed visible dark text for light mode */
}

.program-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-dark);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.light-mode .program-meta {
    border-top-color: var(--border-light);
    color: var(--text-muted-light);
}

.program-meta span i {
    color: var(--sky-blue);
    margin-left: 5px;
}

html[dir="ltr"] .program-meta span i {
    margin-left: 0;
    margin-right: 5px;
}

/* 5. Masonry Gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    /* Placeholder default aspect ratio */
    aspect-ratio: 4/3; 
    background: var(--card-dark);
}

.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item.wide { aspect-ratio: 16/9; }
.gallery-item.square { aspect-ratio: 1/1; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* 6. Glowing CTA */
.details-cta {
    position: relative;
    overflow: hidden;
    margin-bottom: -3rem; /* Compensate for footer padding */
    padding-bottom: 6rem;
}

.cta-gradient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(13, 95, 140, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.light-mode .cta-gradient-bg {
    background: radial-gradient(circle, rgba(110, 198, 255, 0.2) 0%, rgba(248, 250, 252, 0) 70%);
}

.glowing-btn {
    box-shadow: 0 0 20px rgba(110, 198, 255, 0.4);
}

.glowing-btn:hover {
    box-shadow: 0 0 30px rgba(110, 198, 255, 0.6);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(110, 198, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(110, 198, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(110, 198, 255, 0.4); }
}

.pulse-animation {
    animation: pulse-glow 3s infinite;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title.text-right {
        text-align: center;
    }

    html[dir="rtl"] .custom-check-list li,
    html[dir="ltr"] .custom-check-list li {
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 2rem;
    }

    html[dir="rtl"] .custom-check-list li::before,
    html[dir="ltr"] .custom-check-list li::before {
        right: 50%;
        left: unset;
        transform: translateX(50%);
        top: 25px;
    }
    
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .stats-bar-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .collage-wrapper {
        height: 350px;
    }

    .masonry-grid {
        column-count: 1;
    }
    
    .hero-center-icon {
        font-size: 2.5rem;
    }
    
    .details-hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================================================
   About Page Styles (about.html)
   ========================================================================= */

/* 1. About Hero */
.about-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.about-bg {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1920&auto=format&fit=crop');
}

/* Hero Glass Container (Logo Only) */
.about-hero-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(110, 198, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.light-mode .about-hero-glass {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(13, 95, 140, 0.2);
}

.about-hero-logo {
    width: 600px; /* Reduced slightly to fit better inside the tight box on all screens */
    max-width: 100%;
    margin-bottom: 0; /* Margin moved to the glass container */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

/* Hero Text Glass Container */
.about-hero-text-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(110, 198, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 3rem;
    display: inline-block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.light-mode .about-hero-text-glass {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(13, 95, 140, 0.2);
}

.about-hero-text-glass .glow-text,
.about-hero-text-glass .hero-subtitle {
    margin: 0; /* Override default margins inside the clean box */
}

.about-hero-text-glass .hero-subtitle {
    margin-top: 0.5rem; /* Small space between title and subtitle */
    color: var(--white); /* Brighter color for better readability on glass */
}




/* 2. Philosophy Split Layout */


.philosophy-box {
    background: rgba(110, 198, 255, 0.03);
    border: 1px solid var(--border-dark);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
}

.light-mode .philosophy-box {
    background: rgba(13, 95, 140, 0.02);
    border-color: var(--border-light);
}

.philosophy-box:hover {
    border-color: var(--sky-blue);
    transform: translateX(-5px);
    box-shadow: 5px 10px 20px rgba(0,0,0,0.1);
}

html[dir="ltr"] .philosophy-box:hover {
    transform: translateX(5px);
}

.philosophy-box h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-collage {
    height: 500px;
}

.collage-img {
    position: absolute;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 5px solid var(--bg-dark);
    transition: transform 0.5s ease;
}

.light-mode .collage-img {
    border-color: var(--bg-light);
}

.collage-img:hover {
    transform: scale(1.03);
    z-index: 10;
}

.collage-img.main {
    top: 0;
    right: 0;
    width: 75%;
    height: 75%;
    z-index: 2;
}

.collage-img.sub1 {
    bottom: 0;
    left: 0;
    width: 60%;
    height: 55%;
    z-index: 3;
}

/* 3. Timeline / History */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--sky-blue);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 3rem; /* RTL default: items on right visual side of line */
}

.timeline-item.right {
    margin-right: 50%; /* Push to left side visually in RTL */
    padding-right: 0;
    padding-left: 3rem;
    text-align: left;
}

html[dir="ltr"] .timeline-item {
    padding-right: 0;
    padding-left: 3rem;
    margin-right: 50%;
    text-align: left;
}

html[dir="ltr"] .timeline-item.right {
    margin-right: 0;
    margin-left: 50%;
    padding-left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    right: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--sky-blue);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.right .timeline-dot {
    right: auto;
    left: -9px;
}

html[dir="ltr"] .timeline-item .timeline-dot {
    right: auto;
    left: -9px;
}

html[dir="ltr"] .timeline-item.right .timeline-dot {
    left: auto;
    right: -7px;
}

.light-mode .timeline-dot { background: var(--bg-light); }

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 15px rgba(110, 198, 255, 0.6);
}

.timeline-content {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
}

.light-mode .timeline-content {
    background: var(--white);
    border-color: var(--border-light);
}

.timeline-item:hover .timeline-content {
    border-color: var(--sky-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.light-mode .timeline-title { color: var(--text-dark); }

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 4. Leadership Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.leader-card {
    background: var(--card-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
    text-align: center;
}

.light-mode .leader-card {
    background: var(--white);
    border-color: var(--border-light);
}

.leader-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.leader-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect ratio */
    overflow: hidden;
}

.leader-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.leader-card:hover img {
    transform: scale(1.1);
}

.leader-socials {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
    transition: bottom 0.4s ease;
}

.leader-card:hover .leader-socials {
    bottom: 0;
}

.leader-socials a {
    color: var(--white);
    background: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.leader-socials a:hover {
    background: var(--sky-blue);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.leader-info {
    padding: 1.5rem;
}

.leader-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.light-mode .leader-info h3 { color: var(--text-dark); }

.leader-role {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive Overrides for About Page */
@media (max-width: 992px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }
    html[dir="ltr"] .timeline-line {
        left: 20px;
    }

    .timeline-item, 
    .timeline-item.right,
    html[dir="ltr"] .timeline-item,
    html[dir="ltr"] .timeline-item.right {
        width: 100%;
        margin: 0 0 2rem 0;
        padding: 0 40px 0 0 !important; /* Fixed RTL padding */
        text-align: right !important; /* Fixed RTL alignment */
    }

    html[dir="ltr"] .timeline-item,
    html[dir="ltr"] .timeline-item.right {
        padding: 0 0 0 40px !important;
        text-align: left !important;
    }

    .timeline-dot,
    .timeline-item.right .timeline-dot,
    html[dir="ltr"] .timeline-item .timeline-dot,
    html[dir="ltr"] .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }
}

/* ========================================= */
/*       Details Page (Masonry Gallery)      */
/* ========================================= */

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 1.5rem;
    grid-auto-flow: dense;
    align-items: stretch;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Set a base height for standard items */
    min-height: 250px;
}

/* Make every 3rd item span 2 rows to create the masonry effect */
.masonry-item:nth-child(3n+1) {
    grid-row: span 2;
    min-height: 500px; /* Double height to account for gap */
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    position: absolute; /* Cover the whole card */
    top: 0;
    left: 0;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.masonry-item:hover .masonry-overlay i {
    transform: scale(1);
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    .masonry-item:nth-child(3n+1) {
        grid-row: span 1;
        min-height: 300px;
    }
}\n
/* ========================================= */
/* ABOUT PAGE REDESIGN - NEW SECTIONS        */
/* ========================================= */

.vision-2030-logo {
    display: block;
    margin: 20px auto 0;
    opacity: 0.9;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.ceo-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ceo-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.ceo-name-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(14, 165, 233, 0.3);
}
.ceo-name-badge h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}
.ceo-name-badge p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.ceo-text-wrapper {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
}
.ceo-p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}
.ceo-p:last-child {
    margin-bottom: 0;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.strategy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.strategy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.strategy-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(14, 165, 233, 0.3);
}
.strategy-card:hover::before {
    transform: scaleX(1);
}
/* RTL adjustment for hover line */
html[dir="rtl"] .strategy-card::before {
    transform-origin: right;
    background: linear-gradient(-90deg, var(--primary-color), transparent);
}

.strat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 15px;
}
.strategy-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.strategy-card p {
    color: var(--text-muted);
    line-height: 1.7;
}
.strat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.strat-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}
html[dir="rtl"] .strat-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}
.strat-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}
html[dir="rtl"] .strat-list li::before {
    left: auto;
    right: 0;
}

.portfolio-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.port-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.port-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.port-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.port-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.port-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(14, 165, 233, 0.3);
}
.port-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.port-info {
    padding: 1.5rem;
}
.port-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.port-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.org-chart-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}
.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 800px;
}
.org-node {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    min-width: 250px;
    z-index: 2;
}
.org-node:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: #fff;
}
.org-node.level-1 {
    font-size: 1.2rem;
    border-color: #f59e0b;
}
.org-node.level-1::after,
.org-node.level-2::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary-color);
    z-index: 1;
}
.org-branches-2 {
    display: flex;
    justify-content: center;
    gap: 4rem;
    position: relative;
    margin-bottom: 2rem;
}
.org-branches-2::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
}
.org-branches-2 .org-node::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary-color);
}

.org-branches-multi {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 2rem;
    position: relative;
    padding-top: 2rem;
}
.org-branches-multi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--primary-color);
}
.org-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.org-col::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary-color);
}
.org-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}
.org-node.level-4 {
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    min-width: 220px;
}
.org-node.branch-node {
    border-color: rgba(14, 165, 233, 0.5);
}

@media (max-width: 991px) {
    .ceo-grid, .strategy-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for large ongoing project images */
.d-project-full-img img,
.d-project-grid img,
.d-grid-col-2 img,
.d-grid-col-1 img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}
/* ========================================= */
/* LIGHT MODE DESIGN OVERRIDES - ABOUT PAGE  */
/* ========================================= */

.light-mode .about-hero-glass,
.light-mode .about-hero-text-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.light-mode .vision-2030-logo {
    filter: none !important;
}
.light-mode .glow-text {
    color: var(--primary-color);
    text-shadow: none;
}
.light-mode .hero-subtitle {
    color: var(--text-color);
    font-weight: 600;
}

/* CEO Block */
.light-mode .ceo-text-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.light-mode .ceo-name-badge {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--text-color);
}
.light-mode .ceo-name-badge h3 {
    color: var(--primary-dark);
}
.light-mode .ceo-p {
    color: var(--text-color);
}
.light-mode .quote-icon {
    opacity: 0.1;
    color: var(--primary-color);
}

/* Strategy Cards */
.light-mode .strategy-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.light-mode .strategy-card:hover {
    background: #f8fafc;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
}
.light-mode .strategy-card p, .light-mode .strat-list li {
    color: var(--text-color);
}
.light-mode .strat-icon {
    background: rgba(14, 165, 233, 0.1);
}

/* Portfolio Tabs & Cards */
.light-mode .port-tab-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}
.light-mode .port-tab-btn:hover {
    background: #f1f5f9;
}
.light-mode .port-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}
.light-mode .port-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.light-mode .port-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
}
.light-mode .port-info h4 {
    color: var(--primary-dark);
}
.light-mode .port-info p {
    color: var(--text-muted);
}

/* Timeline */
.light-mode .timeline-item .timeline-content {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.light-mode .timeline-item .timeline-content p {
    color: var(--text-color);
}
/* Re-style triangle arrow for light mode */
html[dir="rtl"] .light-mode .timeline-item.left .timeline-content::after {
    border-color: transparent transparent transparent #ffffff;
}
html[dir="rtl"] .light-mode .timeline-item.right .timeline-content::after {
    border-color: transparent #ffffff transparent transparent;
}
html[dir="ltr"] .light-mode .timeline-item.left .timeline-content::after {
    border-color: transparent transparent transparent #ffffff;
}
html[dir="ltr"] .light-mode .timeline-item.right .timeline-content::after {
    border-color: transparent #ffffff transparent transparent;
}

/* Org Chart */
.light-mode .org-chart-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.light-mode .org-node {
    background: #ffffff;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.light-mode .org-node:hover {
    background: var(--primary-color);
    color: #ffffff;
}
.light-mode .org-node.level-4 {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.light-mode .org-node.branch-node {
    border: 1px solid rgba(14, 165, 233, 0.6);
    background: #f0f9ff;
}
.light-mode .org-col h4 {
    color: var(--primary-color);
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
/* ========================================= */
/* LIGHT MODE ADDITIONAL FIXES               */
/* ========================================= */

/* Fix Portfolio Tab Buttons */
.light-mode .tab-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: var(--text-color);
}
.light-mode .tab-btn:hover {
    background: #f1f5f9;
}
.light-mode .tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* Fix Timeline Headers */
.light-mode .timeline-content h4 {
    color: var(--primary-dark);
}
.light-mode .section-title {
    color: var(--primary-dark);
}
/* ========================================= */
/* LIGHT MODE: ALTERNATING BLOCK BACKGROUNDS */
/* ========================================= */

/* 1. CEO Section (Light / White) */
.light-mode .about-ceo {
    background-color: #ffffff;
}

/* 2. Strategy Section (DARK BLOCK) */
.light-mode .about-strategy {
    background: linear-gradient(135deg, var(--primary-dark), #0f172a);
    color: #ffffff;
    position: relative;
}
/* Override the light-mode text colors specifically for this dark block */
.light-mode .about-strategy .section-title {
    color: #ffffff !important;
}
.light-mode .about-strategy .strategy-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.light-mode .about-strategy .strategy-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.light-mode .about-strategy .strategy-card h3 {
    color: #ffffff !important;
}
.light-mode .about-strategy .strategy-card p,
.light-mode .about-strategy .strat-list li {
    color: rgba(255, 255, 255, 0.8) !important;
}
.light-mode .about-strategy .strat-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* 3. Portfolio Section (Light Gray) */
.light-mode .about-portfolio {
    background-color: #f8fafc;
}

/* 4. History / Org Chart Section (White) */
.light-mode .about-history {
    background-color: #ffffff;
}
/* ========================================= */
/* LIGHT MODE: ALTERNATING BLOCK BACKGROUNDS */
/* (FIXED SELECTORS)                         */
/* ========================================= */

/* 1. CEO Section (Light / White) */
.light-mode .about-ceo {
    background-color: #ffffff;
}

/* 2. Strategy Section (DARK BLOCK) */
.light-mode .strategy-section {
    background: linear-gradient(135deg, var(--primary-dark), #0f172a);
    color: #ffffff;
    position: relative;
}
.light-mode .strategy-section .section-title,
.light-mode .strategy-section .lead-text {
    color: #ffffff !important;
}
.light-mode .strategy-section .strategy-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.light-mode .strategy-section .strategy-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.light-mode .strategy-section .strategy-card h3 {
    color: #ffffff !important;
}
.light-mode .strategy-section .strategy-card p,
.light-mode .strategy-section .strat-list li {
    color: rgba(255, 255, 255, 0.8) !important;
}
.light-mode .strategy-section .strat-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* 3. Portfolio Section (Light Gray) */
.light-mode .portfolio-section {
    background-color: #f8fafc;
}

/* 4. History / Org Chart Section (White) */
.light-mode .history-section {
    background-color: #ffffff;
}

/* =========================================================================
   Ongoing Projects Vertical Layout (about.html)
   ========================================================================= */
.ongoing-projects-section {
    background: transparent;
}
.light-mode .ongoing-projects-section {
    background-color: #f8fafc;
}
.d-projects-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.d-project-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.light-mode .d-project-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.d-project-item:hover {
    transform: translateY(-5px);
}
.d-project-title {
    color: var(--sky-blue);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 1rem;
}
.light-mode .d-project-title {
    color: var(--primary-blue);
    border-bottom-color: var(--border-light);
}
.d-project-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.d-project-text {
    flex: 1;
}
.d-project-logo {
    width: 250px;
    flex-shrink: 0;
}
.d-list-bullet {
    list-style: none;
    padding: 0;
    margin: 0;
}
.d-list-bullet > li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.d-list-bullet > li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: var(--sky-blue);
    position: absolute;
    right: 0;
    top: 8px;
}
.d-sub-list {
    list-style: none;
    padding-right: 1.5rem;
    margin-top: 1rem;
}
.d-sub-list li {
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}
.light-mode .d-sub-list li {
    color: var(--text-muted-light);
}
.d-project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
.d-grid-col-2 img, .d-grid-col-1 img {
    border: 2px solid var(--border-dark);
}
.light-mode .d-grid-col-2 img, .light-mode .d-grid-col-1 img {
    border-color: var(--border-light);
}
@media (max-width: 768px) {
    .d-project-row, .d-project-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .d-project-logo {
        width: 100%;
        margin-top: 1.5rem;
    }
    .d-project-item {
        padding: 1.5rem;
    }
}

/* =========================================================================
   DARK SECTION (ALTERNATING BACKGROUNDS IN LIGHT MODE DEFAULT)
   ========================================================================= */
.light-mode .dark-section {
    background-color: var(--primary-blue) !important;
    background-image: linear-gradient(135deg, var(--bg-dark), var(--primary-blue)) !important;
    color: #F8FAFC !important;
}
.light-mode .dark-section .section-title,
.light-mode .dark-section .lead-text,
.light-mode .dark-section h1, 
.light-mode .dark-section h2, 
.light-mode .dark-section h3, 
.light-mode .dark-section h4,
.light-mode .dark-section p {
    color: #F8FAFC !important;
}
.light-mode .dark-section .strategy-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.light-mode .dark-section .strategy-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.light-mode .dark-section .strat-list li {
    color: rgba(255, 255, 255, 0.8) !important;
}
.light-mode .dark-section .org-node {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #F8FAFC !important;
    border-color: var(--primary-color) !important;
}
.light-mode .dark-section .org-node.level-4,
.light-mode .dark-section .org-node.branch-node {
    background: rgba(255, 255, 255, 0.05) !important;
}
.light-mode .dark-section .timeline-content {
    background: var(--card-dark) !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.light-mode .dark-section .timeline-title {
    color: #F8FAFC !important;
}
.light-mode .dark-section .timeline-item.left .timeline-content::after {
    border-color: transparent transparent transparent var(--card-dark) !important;
}
.light-mode .dark-section .timeline-item.right .timeline-content::after {
    border-color: transparent var(--card-dark) transparent transparent !important;
}
html[dir="rtl"] .light-mode .dark-section .timeline-item.left .timeline-content::after {
    border-color: transparent transparent transparent var(--card-dark) !important;
}
html[dir="rtl"] .light-mode .dark-section .timeline-item.right .timeline-content::after {
    border-color: transparent var(--card-dark) transparent transparent !important;
}
.light-mode .dark-section .strat-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

/* FIX ORG CHART IN DARK SECTION (LIGHT BOX, DARK TEXT) */
.light-mode .dark-section .org-chart-wrapper {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
    border-radius: 20px !important;
}
.light-mode .dark-section .org-chart-wrapper h1,
.light-mode .dark-section .org-chart-wrapper h2,
.light-mode .dark-section .org-chart-wrapper h3,
.light-mode .dark-section .org-chart-wrapper h4,
.light-mode .dark-section .org-chart-wrapper p {
    color: var(--text-light) !important;
}
.light-mode .dark-section .org-chart-wrapper h2.section-title {
    color: var(--primary-blue) !important;
}
.light-mode .dark-section .org-chart-wrapper .org-node {
    background: #ffffff !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}
.light-mode .dark-section .org-chart-wrapper .org-node:hover {
    background: var(--sky-blue) !important;
    color: var(--primary-blue) !important;
    border-color: var(--sky-blue) !important;
}
.light-mode .dark-section .org-chart-wrapper .org-node.level-1,
.light-mode .dark-section .org-chart-wrapper .org-node.level-2 {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    border-color: var(--primary-blue) !important;
}
.light-mode .dark-section .strategy-card h3 {
    color: var(--sky-blue) !important;
}
.light-mode .dark-section .strat-icon {
    color: var(--sky-blue) !important;
    border-color: rgba(110, 198, 255, 0.2) !important;
}

/* ========================================= */
/* MULTI-COLOR PALETTE UTILITIES - HOME PAGE */
/* ========================================= */
.light-mode .bg-white { background: #FFFFFF !important; }
.light-mode .bg-soft { background: #F8FAFC !important; }

/* Overrides for .dark-section so they don't get the default primary-blue gradient */
.light-mode .bg-dark-navy.dark-section { 
    background-color: #0F172A !important; 
    background-image: none !important; 
}
.light-mode .bg-dark-slate.dark-section { 
    background-color: #1E293B !important; 
    background-image: none !important; 
}
.light-mode .bg-gradient-dark.dark-section { 
    background-image: linear-gradient(135deg, #0F172A 0%, #1E2A44 100%) !important; 
    background-color: transparent !important;
}

/* Fix text visibility for cards inside dark sections that have white backgrounds */
.light-mode .dark-section .service-card h3 {
    color: var(--primary-blue) !important;
}
.light-mode .dark-section .service-card p {
    color: var(--text-muted-light) !important;
}
.light-mode .dark-section .service-card:hover h3 {
    color: var(--primary-blue) !important;
}

/* Force Hero Text to remain bright in light mode because background is a dark image */
.light-mode .hero-role {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}
.light-mode .hero-intro {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
}

/* Force Hero Buttons to remain bright */
.light-mode .hero-btns .btn-outline {
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: var(--white) !important;
}
.light-mode .hero-btns .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
}

/* Force Navbar Elements to be Bright when at the top (unscrolled) because the Hero background is dark */
.light-mode header:not(.scrolled) .nav-links a {
    color: var(--white) !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
.light-mode header:not(.scrolled) .btn-lang {
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.6) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.light-mode header:not(.scrolled) .logo-img {
    mix-blend-mode: normal !important;
    filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0,0,0,0.5)) !important; /* Forces logo to be white if it's dark natively */
}
.light-mode header:not(.scrolled) .menu-btn {
    color: var(--white) !important;
}

/* --- Events and Occasions Section --- */
.events-section { position: relative; overflow: hidden; }
.event-card { 
    background: var(--bg-card, #fff); 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid rgba(0,0,0,0.05); 
}
.dark-mode .events-section .event-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.dark-mode .event-card { background: rgba(255,255,255,0.05); }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.event-img-wrap { position: relative; height: 220px; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.05); }
.event-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.event-card:hover .event-img { transform: scale(1.08); }

.event-date-badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: rgba(14, 165, 233, 0.9); 
    color: white; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    backdrop-filter: blur(5px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

.event-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.event-title { font-size: 1.2rem; font-weight: 800; color: var(--text-light); margin-bottom: 10px; line-height: 1.4; transition: color 0.3s ease; }
.light-mode .dark-section .event-card .event-title { color: var(--text-light) !important; }
.dark-mode .event-title { color: var(--text-dark) !important; }
.event-card:hover .event-title { color: var(--sky-blue) !important; }

.event-desc-content { 
    max-height: 0; 
    overflow: hidden; 
    opacity: 0; 
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease; 
    margin-top: 0; 
}
.event-desc-content.expanded { max-height: 600px; opacity: 1; margin-top: 15px; margin-bottom: 15px; }
.event-desc-text { font-size: 0.95rem; color: var(--text-muted-light); line-height: 1.8; margin: 0; }
.light-mode .dark-section .event-card .event-desc-text { color: #64748B !important; }
.dark-mode .event-card .event-desc-text { color: #94A3B8 !important; }

/* ROOT FIX: dark-section forces color:#F8FAFC on all p/h3 - override inside event cards */
.light-mode .dark-section .event-card p,
.light-mode .dark-section .event-card h3 {
    color: inherit !important;
}

/* READMORE BUTTON - use explicit hex values to avoid undefined variable issues */
.event-readmore-btn {
    background: transparent; 
    border: none; 
    color: #1E2A44 !important;
    font-weight: 800; 
    font-size: 0.9rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 0 0 0; 
    margin-top: auto; 
    border-top: 1px dashed rgba(0,0,0,0.1); 
    width: 100%; 
    transition: color 0.3s ease; 
}
.light-mode .dark-section .event-card .event-readmore-btn,
.light-mode .dark-section .event-card .event-readmore-btn span,
.light-mode .dark-section .event-card .event-readmore-btn i {
    color: #1E2A44 !important;
}
.dark-mode .event-readmore-btn,
.dark-mode .event-readmore-btn span,
.dark-mode .event-readmore-btn i { 
    color: #6EC6FF !important;
    border-color: rgba(255,255,255,0.1); 
}
.event-readmore-btn:hover,
.event-readmore-btn:hover span,
.event-readmore-btn:hover i { color: #1a73e8 !important; }
.event-readmore-btn i { transition: transform 0.4s ease; font-size: 1.1em; }
.event-readmore-btn.expanded i { transform: rotate(180deg); color: #6EC6FF !important; }

/* Fix header contrast in light mode when scrolled */
.light-mode #header.scrolled .nav-links a { color: #1E293B !important; text-shadow: none !important; }
.light-mode #header.scrolled .btn-lang { color: #1E293B !important; border-color: #E2E8F0 !important; }
.light-mode #header.scrolled .menu-btn { color: #1E293B !important; }
.light-mode #header.scrolled .logo-img { filter: brightness(0) !important; mix-blend-mode: normal !important; }

/* =============================================
   PROFESSIONAL FOOTER - OVERRIDE
   ============================================= */
.footer {
    background: linear-gradient(160deg, #0a1628 0%, #0F172A 50%, #0d1f3c 100%) !important;
    border-top: 1px solid rgba(110, 198, 255, 0.15) !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6EC6FF, transparent);
    z-index: 1;
}
.light-mode .footer {
    background: linear-gradient(160deg, #0a1628 0%, #0F172A 50%, #0d1f3c 100%) !important;
}
.footer-main { padding: 4rem 0 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.footer-brand .footer-logo {
    height: 80px; width: auto;
    margin-bottom: 1.5rem; display: block;
    filter: brightness(1.1) drop-shadow(0 4px 15px rgba(110,198,255,0.4));
    mix-blend-mode: normal !important;
}
.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.8rem;
}
.footer-socials { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.footer-social-link {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(110,198,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #6EC6FF !important; font-size: 1rem; transition: all 0.3s ease;
}
.footer-social-link:hover {
    background: #6EC6FF; border-color: #6EC6FF;
    color: #0F172A !important; transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(110,198,255,0.35);
}
.footer-col-title {
    color: #fff; font-size: 1.05rem; font-weight: 700;
    margin-bottom: 1.5rem; padding-bottom: 0.7rem;
    border-bottom: 2px solid rgba(110,198,255,0.3); position: relative;
}
.footer-col-title::after {
    content: ''; position: absolute; bottom: -2px; right: 0;
    width: 35px; height: 2px; background: #6EC6FF;
}
html[dir="ltr"] .footer-col-title::after { right: auto; left: 0; }
.footer-links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.footer-links li a {
    color: rgba(255,255,255,0.6) !important; font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease; padding: 0.2rem 0;
}
.footer-links li a::before {
    content: '\f053'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 0.65rem; color: #6EC6FF; flex-shrink: 0;
}
html[dir="ltr"] .footer-links li a::before { content: '\f054'; }
.footer-links li a:hover { color: #6EC6FF !important; padding-right: 8px; }
html[dir="ltr"] .footer-links li a:hover { padding-right: 0; padding-left: 8px; }
.footer-contact-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 1rem;
}
.footer-contact-list li {
    display: flex; align-items: flex-start; gap: 0.8rem;
    color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.5;
}
.footer-contact-list li i {
    color: #6EC6FF; font-size: 1rem; margin-top: 2px;
    flex-shrink: 0; width: 18px; text-align: center;
}
.footer-contact-list li a { color: rgba(255,255,255,0.6) !important; transition: color 0.3s ease; }
.footer-contact-list li a:hover { color: #6EC6FF !important; }
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 0; background: rgba(0,0,0,0.25);
}
.footer-bottom-bar .container {
    display: flex; justify-content: space-between;
    align-items: center; gap: 1rem;
}
.footer-bottom-bar p { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin: 0; }
.back-to-top {
    width: 40px; height: 40px;
    background: rgba(110,198,255,0.1) !important;
    border: 1px solid rgba(110,198,255,0.3) !important;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #6EC6FF !important;
    font-size: 0.85rem; transition: all 0.3s ease; flex-shrink: 0;
    background-color: unset;
}
.back-to-top:hover {
    background: #6EC6FF !important; color: #0F172A !important;
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(110,198,255,0.35);
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom-bar .container { flex-direction: column; text-align: center; }
    .footer-main { padding: 2.5rem 0 2rem; }
}

/* Fix: footer logo in light mode pages - show naturally */
.light-mode .footer .footer-brand .footer-logo {
    filter: brightness(1.2) drop-shadow(0 4px 15px rgba(110,198,255,0.5)) !important;
    mix-blend-mode: normal !important;
}

/* Footer glow decoration */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0; left: 30%; right: 30%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(110,198,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Social links hover effect with color per platform */
.footer-social-link[aria-label="Twitter"]:hover { background: #1da1f2; border-color: #1da1f2; color: #fff !important; }
.footer-social-link[aria-label="LinkedIn"]:hover { background: #0a66c2; border-color: #0a66c2; color: #fff !important; }
.footer-social-link[aria-label="YouTube"]:hover { background: #ff0000; border-color: #ff0000; color: #fff !important; }
.footer-social-link[aria-label="WhatsApp"]:hover { background: #25d366; border-color: #25d366; color: #fff !important; }

/* Footer column separator lines */
.footer-grid .footer-col:not(.footer-brand) {
    border-right: 1px solid rgba(255,255,255,0.06);
    padding-right: 2rem;
}
html[dir="ltr"] .footer-grid .footer-col:not(.footer-brand) {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    padding-right: 0;
    padding-left: 2rem;
}
@media (max-width: 992px) {
    .footer-grid .footer-col:not(.footer-brand) {
        border: none;
        padding-right: 0;
        padding-left: 0;
    }
}

/* =============================================
   DETAILS PAGE - SECTION BACKGROUNDS (LIGHT MODE)
   ظƒط³ط± ط§ظ„ظ„ظˆظ† ط§ظ„ط£ط¨ظٹط¶ ط§ظ„طµط§ط±ط® ط¨ظ†ط¸ط§ظ… ط£ظ„ظˆط§ظ† ظ…طھط¯ط±ط¬
   ============================================= */

/* ط§ظ„طµظپط­ط© ط§ظ„ط¯ط§ط®ظ„ظٹط©: طھط­ظˆظٹظ„ ط§ظ„ط®ظ„ظپظٹط© ط§ظ„ط¨ظٹط¶ط§ط، ظ„ط±ظ…ط§ط¯ظٹ ظ†ط§ط¹ظ… */
.light-mode .details-page-body,
body.light-mode.details-page {
    background-color: #f0f4f8;
}

/* ط´ط±ظٹط· ط§ظ„ط¥ط­طµط§ط،ط§طھ - ظƒط­ظ„ظٹ ط¯ط§ظƒظ† */
.light-mode .stats-bar {
    background: linear-gradient(135deg, #1E2A44 0%, #0F172A 100%);
    border-bottom: none;
}
.light-mode .stats-bar .stats-bar-number {
    color: #6EC6FF;
}
.light-mode .stats-bar .stats-bar-label {
    color: rgba(255,255,255,0.7);
}
.light-mode .stats-bar i {
    color: #6EC6FF;
}

/* ظ‚ط³ظ… ط¹ظ† ط§ظ„ظ…ط¹ظ‡ط¯ - ط£ط¨ظٹط¶ ظ…ظƒط³ط± ط¯ط§ظپط¦ */
.light-mode .details-about {
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 10% 50%, rgba(110,198,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(30,42,68,0.03) 0%, transparent 40%);
}

/* ظ‚ط³ظ… ط§ظ„ط¨ط±ط§ظ…ط¬ - ظƒط­ظ„ظٹ ظ†ط§ط¹ظ… */
.light-mode .details-programs {
    background: linear-gradient(160deg, #1a2744 0%, #1E293B 100%);
    background-color: #1E2A44 !important;
}
.light-mode .details-programs .section-title {
    color: #ffffff !important;
}
.light-mode .details-programs .section-title * {
    color: #ffffff !important;
}
/* ط¨ط·ط§ظ‚ط§طھ ط§ظ„ط¨ط±ط§ظ…ط¬ ط¯ط§ط®ظ„ ط§ظ„ظ‚ط³ظ… ط§ظ„ط¯ط§ظƒظ† */
.light-mode .details-programs .program-card,
.light-mode .details-programs .prog-card {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(110,198,255,0.15) !important;
    color: #ffffff !important;
}
.light-mode .details-programs .program-card h3,
.light-mode .details-programs .prog-card h3,
.light-mode .details-programs .program-card p,
.light-mode .details-programs .prog-card p {
    color: rgba(255,255,255,0.9) !important;
}
.light-mode .details-programs .programs-grid .prog-icon,
.light-mode .details-programs .programs-grid i {
    color: #6EC6FF !important;
}

/* ظ‚ط³ظ… ظ…ط¹ط±ط¶ ط§ظ„طµظˆط± - ط±ظ…ط§ط¯ظٹ ظ†ط§ط¹ظ… */
.light-mode .details-gallery {
    background-color: #eef2f7;
    background-image: linear-gradient(180deg, #e8edf5 0%, #eef2f7 100%);
}
.light-mode .details-gallery .section-title {
    color: #1E2A44;
}

/* ظ‚ط³ظ… CTA - ظٹط¨ظ‚ظ‰ ط¯ط§ظƒظ†ط§ظ‹ (ط¬ظٹط¯ ظƒظ…ط§ ظ‡ظˆ) */
.light-mode .details-cta {
    background: linear-gradient(135deg, #1E2A44 0%, #0a1628 100%);
}

/* ط¥طµظ„ط§ط­: ظ‚ط³ظ… section-bg ظپظٹ details page */
.light-mode .details-page .section-bg,
body.details-page.light-mode .section-bg {
    background: linear-gradient(160deg, #1a2744 0%, #1E293B 100%) !important;
}

/* ط¨ط·ط§ظ‚ط§طھ ط§ظ„ط¨ط±ط§ظ…ط¬ ظپظٹ ط§ظ„ظ‚ط³ظ… ط§ظ„ط¯ط§ظƒظ† */
.light-mode .details-programs .program-card {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(110,198,255,0.18) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}
.light-mode .details-programs .program-card:hover {
    background: rgba(110,198,255,0.12) !important;
    border-color: rgba(110,198,255,0.4) !important;
    transform: translateY(-5px);
}
.light-mode .details-programs .program-card h3 {
    color: #ffffff !important;
}
.light-mode .details-programs .program-card .program-meta {
    color: rgba(255,255,255,0.6) !important;
}
.light-mode .details-programs .program-card .program-meta i {
    color: #6EC6FF !important;
}
.light-mode .details-programs .program-icon,
.light-mode .details-programs .program-card .program-icon i {
    color: #6EC6FF !important;
}

/* ط¥ط­طµط§ط،ط§طھ ط´ط±ظٹط· ط§ظ„طھظپط§طµظٹظ„ ظپظٹ ط§ظ„ظˆط¶ط¹ ط§ظ„ط¯ط§ظƒظ† */
.light-mode .stats-bar .stat-bar-item { color: #fff; }
.light-mode .stats-bar .stat-bar-value { color: #6EC6FF !important; font-weight: 800; }
.light-mode .stats-bar .stat-bar-label { color: rgba(255,255,255,0.7) !important; }

/* ط¹ظ†ظˆط§ظ† ظ‚ط³ظ… ظ…ط¹ط±ط¶ ط§ظ„طµظˆط± */
.light-mode .details-gallery .section-title { color: #1E2A44 !important; }

/* CTA Section text */
.light-mode .details-cta h2,
.light-mode .details-cta p { color: #ffffff !important; }

/* =============================================
   HEADER FIX - طµظپط­ط§طھ ط§ظ„ظ…ط¹ط§ظ‡ط¯ ظˆط§ظ„طھظپط§طµظٹظ„
   ط§ظ„ظ‡ظٹط¯ط± ط¯ط§ظƒظ† ط¯ط§ط¦ظ…ط§ظ‹ ظپظٹ ط§ظ„طµظپط­ط§طھ ط§ظ„ط¯ط§ط®ظ„ظٹط©
   ظ„ط£ظ†ظ‡ ظٹط¬ظ„ط³ ظپظˆظ‚ طµظˆط±/ط®ظ„ظپظٹط§طھ ط¯ط§ظƒظ†ط©
   ============================================= */
body.details-page.light-mode #header,
body.details-page.light-mode #header.scrolled,
body.about-page.light-mode #header,
body.about-page.light-mode #header.scrolled {
    background-color: rgba(10, 22, 40, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(110, 198, 255, 0.15) !important;
}

/* ظ†طµظˆطµ ظˆط±ظˆط§ط¨ط· ط§ظ„ظ‡ظٹط¯ط± ظپظٹ ط§ظ„طµظپط­ط§طھ ط§ظ„ط¯ط§ط®ظ„ظٹط© - طھط¨ظ‚ظ‰ ظپط§طھط­ط© */
body.details-page.light-mode #header .nav-links a,
body.about-page.light-mode #header .nav-links a {
    color: rgba(255,255,255,0.9) !important;
    text-shadow: none !important;
}
body.details-page.light-mode #header .nav-links a:hover,
body.about-page.light-mode #header .nav-links a:hover {
    color: #6EC6FF !important;
}
body.details-page.light-mode #header .btn-lang,
body.about-page.light-mode #header .btn-lang {
    color: rgba(255,255,255,0.9) !important;
    border-color: rgba(255,255,255,0.3) !important;
}
body.details-page.light-mode #header .menu-btn,
body.about-page.light-mode #header .menu-btn {
    color: rgba(255,255,255,0.9) !important;
}
body.details-page.light-mode #header .logo-img,
body.about-page.light-mode #header .logo-img {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(110,198,255,0.3)) !important;
    mix-blend-mode: normal !important;
}

/* =============================================
   ظ‚ط³ظ… ط§ظ„طھظˆط§طµظ„ ظ…ط¹ ط§ظ„ط¥ط¯ط§ط±ط© - ط®ظ„ظپظٹط© ظپط§طھط­ط©
   ============================================= */
.light-mode #contact.contact-section {
    background: linear-gradient(160deg, #f0f6ff 0%, #e8f0fe 50%, #f2f7ff 100%) !important;
    background-color: #f0f6ff !important;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(110,198,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30,42,68,0.05) 0%, transparent 40%) !important;
}

/* ط§ظ„ط¹ظ†ظˆط§ظ† ط§ظ„ط±ط¦ظٹط³ظٹ ظ„ظ„ظ‚ط³ظ… */
.light-mode #contact .section-title {
    color: #1E2A44 !important;
}

/* ط¨ظٹط§ظ†ط§طھ ط§ظ„طھظˆط§طµظ„ - ظ†طµ ط¯ط§ظƒظ† */
.light-mode #contact .contact-info h3,
.light-mode #contact .contact-info p,
.light-mode #contact .contact-info a,
.light-mode #contact .contact-info span {
    color: #1E2A44 !important;
}
.light-mode #contact .contact-info a:hover {
    color: #0ea5e9 !important;
}

/* ط£ظٹظ‚ظˆظ†ط§طھ ط§ظ„طھظˆط§طµظ„ */
.light-mode #contact .contact-info i {
    color: #0ea5e9 !important;
}

/* ط£ظٹظ‚ظˆظ†ط§طھ ط§ظ„ط³ظˆط´ظٹط§ظ„ ظ…ظٹط¯ظٹط§ */
.light-mode #contact .social-links a {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1E2A44 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.light-mode #contact .social-links a:hover {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;
}

/* ظ†ظ…ط§ط°ط¬ ط§ظ„ط¥ط¯ط®ط§ظ„ */
.light-mode #contact input,
.light-mode #contact textarea {
    background-color: #ffffff !important;
    border: 1px solid #d1dbe8 !important;
    color: #1E2A44 !important;
}
.light-mode #contact input::placeholder,
.light-mode #contact textarea::placeholder {
    color: #94a3b8 !important;
}
.light-mode #contact input:focus,
.light-mode #contact textarea:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12) !important;
}

/* label ط§ظ„ظ†ظ…ط§ط°ط¬ */
.light-mode #contact label {
    color: #475569 !important;
}

/* =============================================
   ABOUT SECTION - 3D ROTATING CUBE
   ظ…ظƒط¹ط¨ ط¯ظˆظ‘ط§ط± ط«ظ„ط§ط«ظٹ ط§ظ„ط£ط¨ط¹ط§ط¯ ظ…ط¹ ط¥ط­طµط§ط،ط§طھ ط§ظ„ط´ط±ظƒط©
   ============================================= */
.about-visual-box {
    position: relative;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: visible;
}

/* Cube Scene - Perspective Container */
.cube-scene {
    width: 180px;
    height: 180px;
    perspective: 600px;
    position: relative;
    z-index: 2;
}

/* The rotating cube */
.cube {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

@keyframes rotateCube {
    0%   { transform: rotateX(0deg)   rotateY(0deg); }
    25%  { transform: rotateX(10deg)  rotateY(90deg); }
    50%  { transform: rotateX(0deg)   rotateY(180deg); }
    75%  { transform: rotateX(-10deg) rotateY(270deg); }
    100% { transform: rotateX(0deg)   rotateY(360deg); }
}

/* Cube Faces */
.cube-face {
    position: absolute;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(110,198,255,0.35);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,42,68,0.9) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 0 30px rgba(110,198,255,0.1);
}

.cube-face--front  { transform: rotateY(0deg)   translateZ(90px); }
.cube-face--back   { transform: rotateY(180deg)  translateZ(90px); }
.cube-face--right  { transform: rotateY(90deg)   translateZ(90px); }
.cube-face--left   { transform: rotateY(-90deg)  translateZ(90px); }
.cube-face--top    { transform: rotateX(90deg)   translateZ(90px); }
.cube-face--bottom { transform: rotateX(-90deg)  translateZ(90px); }

.cube-icon {
    font-size: 2rem;
    color: #6EC6FF;
    filter: drop-shadow(0 0 10px rgba(110,198,255,0.6));
}

.cube-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 15px rgba(110,198,255,0.5);
}

.cube-lbl {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Floating Particles */
.about-particle {
    position: absolute;
    border-radius: 50%;
    background: #6EC6FF;
    animation: floatParticle linear infinite;
    opacity: 0.6;
}

.about-particle.p1 {
    width: 8px; height: 8px;
    top: 20%; left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
}
.about-particle.p2 {
    width: 5px; height: 5px;
    top: 70%; left: 85%;
    animation-duration: 8s;
    animation-delay: -2s;
    background: rgba(110,198,255,0.5);
}
.about-particle.p3 {
    width: 10px; height: 10px;
    top: 15%; left: 80%;
    animation-duration: 7s;
    animation-delay: -1s;
    opacity: 0.4;
}
.about-particle.p4 {
    width: 6px; height: 6px;
    top: 80%; left: 15%;
    animation-duration: 9s;
    animation-delay: -3s;
    background: rgba(255,255,255,0.4);
}

@keyframes floatParticle {
    0%   { transform: translateY(0px) scale(1); opacity: 0.6; }
    50%  { transform: translateY(-20px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0px) scale(1); opacity: 0.6; }
}

/* Glow Ring */
.about-glow-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px solid rgba(110,198,255,0.12);
    animation: pulseRing 4s ease-in-out infinite;
    z-index: 0;
}

.about-glow-ring::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(110,198,255,0.08);
    animation: pulseRing 4s ease-in-out infinite reverse;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    50%       { transform: scale(1.08); opacity: 1;   }
}

/* Light mode adaptation for cube */
.light-mode .cube-face {
    background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(30,42,68,0.92) 100%);
    border-color: rgba(110,198,255,0.4);
}

.light-mode .about-visual-box {
    background: radial-gradient(ellipse at center, rgba(110,198,255,0.06) 0%, transparent 70%);
    border-radius: 20px;
}

/* Responsive cube */
@media (max-width: 768px) {
    .about-visual-box { height: 260px; }
    .cube-scene, .cube { width: 140px; height: 140px; }
    .cube-face {
        width: 140px; height: 140px;
        }
    .cube-face--front,
    .cube-face--back   { transform: rotateY(0deg)   translateZ(70px); }
    .cube-face--back   { transform: rotateY(180deg)  translateZ(70px); }
    .cube-face--right  { transform: rotateY(90deg)   translateZ(70px); }
    .cube-face--left   { transform: rotateY(-90deg)  translateZ(70px); }
    .cube-face--top    { transform: rotateX(90deg)   translateZ(70px); }
    .cube-face--bottom { transform: rotateX(-90deg)  translateZ(70px); }
    .cube-num  { font-size: 1.4rem; }
    .cube-icon { font-size: 1.5rem; }
}
/* Fix stat text colors for stats bar with dark background */
.stats-bar .stat-text strong,
.light-mode .stats-bar .stat-text strong {
    color: #ffffff !important;
}
.stats-bar .stat-text span,
.light-mode .stats-bar .stat-text span {
    color: #6EC6FF !important;
}

/* Org Chart Mobile Fixes */
@media (max-width: 768px) {
    .org-chart-wrapper {
        padding: 2rem 1rem !important;
        -webkit-overflow-scrolling: touch;
    }
    .org-tree {
        min-width: max-content !important;
        margin: 0 auto;
        padding: 1rem;
    }
    .org-node {
        min-width: 180px !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
    .org-branches-2 {
        gap: 2rem !important;
    }
    .org-branches-multi {
        gap: 1rem !important;
    }
    .org-branches-2::before {
        left: 25% !important;
        right: 25% !important;
    }
}

/* === Single Line Typography for Company and Branches on Mobile === */
@media (max-width: 768px) {
    .hero-glass-card {
        width: 95% !important;
        max-width: none !important;
        padding: 1.5rem 0.5rem !important;
        margin-top: 2rem !important;
    }
    
    .hero-glass-card h1.glow-text,
    .about-hero-text-glass h1.glow-text,
    #detail-hero-title {
        white-space: nowrap !important;
        font-size: clamp(10px, 3.4vw, 1.4rem) !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    
    .hero-glass-card .hero-subtitle {
        white-space: nowrap !important;
        font-size: clamp(10px, 2.8vw, 1rem) !important;
        text-align: center !important;
    }
}

/* Fix overly-restrictive 480px block previously defined */
@media (max-width: 480px) {
    .hero-glass-card {
        width: 95% !important;
        padding: 1rem 0.5rem !important;
    }
}

/* === Custom Check List Bullet Fix For Mobile === */
@media (max-width: 992px) {
    html[dir="rtl"] .custom-check-list li {
        padding-right: 2rem !important;
        padding-left: 0 !important;
        padding-bottom: 0 !important;
        text-align: right !important;
    }
    html[dir="rtl"] .custom-check-list li::before {
        right: 0 !important;
        left: unset !important;
        transform: none !important;
        top: 4px !important;
    }
    html[dir="ltr"] .custom-check-list li {
        padding-left: 2rem !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        text-align: left !important;
    }
    html[dir="ltr"] .custom-check-list li::before {
        left: 0 !important;
        right: unset !important;
        transform: none !important;
        top: 4px !important;
    }
}

