:root {
    /* ================================================================
       THEME CONFIGURATION
       Edit only the values in this block to re-skin the whole site:
       fonts, base brand colors, corner roundness and page width.
       Everything below is derived from these and should not need to
       change.
       ================================================================ */
    --font-primary: 'Inter', 'Cairo', sans-serif;   /* body text */
    --font-heading: 'Inter', 'Cairo', sans-serif;   /* titles */

    --color-primary:   #00529B; /* brand blue */
    --color-accent:    #F7941D; /* brand orange */
    --color-danger:    #ef4444; /* brand red */
    --color-secondary: #031b4e; /* deep navy — top bar / footer / gradients */

    --radius-base:      12px; /* base corner roundness (cards…) */
    --radius-sm-base:    8px; /* small elements (menus, badges…) */
    --radius-lg-base:   20px; /* large panels (hero box, modals…) */
    --radius-pill-base: 48px; /* pill buttons/tags — clamped to a circle by the browser once large enough */

    --container-max: 1320px; /* page content width on large screens */
    --nav-font-size:      16px; /* navigation menu text size */
    --nav-uppercase:      none; /* 'uppercase' or 'none' — menu casing */
    --nav-letter-spacing: normal; /* paired with uppercase for readability */
    --heading-scale:         1; /* multiplier applied to section/hero titles */
    /* ================================================================ */

    --c-primary: var(--color-primary);
    --c-primary-dark: #00396c;
    --c-primary-light: #e8f0fe;
    --c-secondary: var(--color-secondary);
    --c-accent: var(--color-accent);
    --c-yellow: #eab308;
    --c-yellow-light: #fef9c3;
    --c-yellow-bg: #fef3c7;
    --c-green: #22c55e;
    --c-green-light: #dcfce7;
    --c-green-bg: #f0fdf4;
    --c-orange: var(--color-accent);
    --c-orange-light: #fed7aa;
    --c-orange-bg: #fff7ed;
    --c-red: var(--color-danger);
    --c-red-light: #fecaca;
    --c-red-bg: #fef2f2;
    --c-dark: #0c121d;
    --c-dark2: #1a1f2e;
    --c-dark3: #252b3d;
    --c-light: #f8fafc;
    --c-gray: #64748b;
    --c-gray-light: #cbd5e1;
    --c-text: #1e293b;
    --c-text-light: #64748b;
    --c-white: #ffffff;
    --c-body: #f1f5f9;
    --c-card: #ffffff;
    --c-border: #e2e8f0;
    --c-footer-bg: #0c1a32;
    --c-footer-text: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: var(--radius-base);
    --radius-sm: var(--radius-sm-base);
    --radius-lg: var(--radius-lg-base);
    --radius-pill: var(--radius-pill-base);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
    --c-primary-light: #1a2a4a;
    --c-light: #0f1420;
    --c-body: #0a0e17;
    --c-yellow-bg: #2a2410;
    --c-green-bg: #102a1a;
    --c-orange-bg: #2a1a10;
    --c-red-bg: #2a1010;
    --c-card: #151b2b;
    --c-text: #e2e8f0;
    --c-text-light: #94a3b8;
    --c-border: #1e293b;
    --c-gray-light: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
}
/* ===== COLOR UTILITIES ===== */
.text-yellow { color: var(--c-yellow) !important; }
.text-green { color: var(--c-green) !important; }
.text-orange { color: var(--c-orange) !important; }
.text-red { color: var(--c-red) !important; }
.bg-yellow { background: var(--c-yellow-bg) !important; }
.bg-green { background: var(--c-green-bg) !important; }
.bg-orange { background: var(--c-orange-bg) !important; }
.bg-red { background: var(--c-red-bg) !important; }
.badge-yellow { background: var(--c-yellow); color: #000; }
.badge-green { background: var(--c-green); color: #fff; }
.badge-orange { background: var(--c-orange); color: #fff; }
.badge-red { background: var(--c-red); color: #fff; }
.icon-yellow { color: var(--c-yellow); }
.icon-green { color: var(--c-green); }
.icon-orange { color: var(--c-orange); }
.icon-red { color: var(--c-red); }
[dir="rtl"] {
    --font-primary: 'Cairo', 'Inter', sans-serif;
    --font-heading: 'Cairo', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-body);
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}
a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container-max); }

/* ===== SECTION BACKGROUND DECOR (fills empty side gutters on wide screens) ===== */
.bg-decor { position: relative; overflow: hidden; }
.bg-decor::before, .bg-decor::after {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    border-radius: 50%; filter: blur(70px);
}
.bg-decor::before { width: 420px; height: 420px; top: -140px; left: -160px; background: radial-gradient(circle, rgba(0,82,155,.12), transparent 70%); }
.bg-decor::after { width: 460px; height: 460px; bottom: -160px; right: -160px; background: radial-gradient(circle, rgba(247,148,29,.12), transparent 70%); }
.bg-decor > .container { position: relative; z-index: 1; }

/* Theme Toggle */
.theme-toggle {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: var(--c-text);
    transition: all var(--transition);
    position: fixed; bottom: 90px; right: 30px; z-index: 999;
    box-shadow: var(--shadow-md);
}
.theme-toggle:hover { transform: scale(1.1); }

/* Language Toggle */
.lang-toggle {
    background: var(--c-primary);
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; font-weight: 700; color: #fff;
    transition: all var(--transition);
    position: fixed; bottom: 140px; right: 30px; z-index: 999;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
}
.lang-toggle:hover { transform: scale(1.1); background: var(--c-primary-dark); }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--c-secondary);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}
.top-bar a { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: #fff; }
.top-bar .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 12px; margin-left: 5px;
    transition: background var(--transition);
}
.top-bar .social-links a:hover { background: var(--c-primary); }
[dir="rtl"] .top-bar .social-links a { margin-left: 0; margin-right: 5px; }

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    transition: all var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; height: 80px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; width: auto; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--c-primary); line-height: 1.2; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; color: var(--c-text-light); letter-spacing: 1px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav > .nav-item > a {
    padding: calc(var(--nav-font-size) * .625) calc(var(--nav-font-size) * 1);
    font-size: var(--nav-font-size); font-weight: 600;
    color: var(--c-text); border-radius: var(--radius-sm);
    transition: all var(--transition); position: relative;
    white-space: nowrap; text-transform: var(--nav-uppercase);
    letter-spacing: var(--nav-letter-spacing, normal);
}
.nav a:hover, .nav a.active, .nav > .nav-item > a:hover, .nav > .nav-item > a.active { background: var(--c-primary-light); color: var(--c-primary); }

/* Mega Menu */
.nav-item { position: static !important; }
.nav-item > a i { font-size: calc(var(--nav-font-size) * .625); margin-left: 4px; transition: transform var(--transition); }
.nav-item:hover > a i { transform: rotate(-180deg); }
.mega-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-card); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-primary);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s ease; z-index: 1000;
    padding: 24px;
}
.nav-item:hover .mega-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mega-col h5 { font-size: 13px; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--c-primary-light); }
.mega-col a {
    display: block; padding: 6px 0; font-size: 13px; color: var(--c-text-light);
    background: none !important; border-radius: 0;
}
.mega-col a:hover { color: var(--c-primary); padding-left: 4px; }
.mega-col .lab-links { padding-left: 16px; border-left: 2px solid var(--c-border); margin: 4px 0 10px; }
.mega-col .lab-links a { font-size: 12px; padding: 3px 0; }
[dir="rtl"] .mega-col a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .mega-col .lab-links { padding-left: 0; padding-right: 16px; border-left: none; border-right: 2px solid var(--c-border); }
.mega-featured .mega-feat-card {
    background: var(--c-primary-light); border-radius: var(--radius-sm);
    padding: 20px; height: 100%;
}
.mega-feat-card i { font-size: 28px; color: var(--c-primary); margin-bottom: 10px; }
.mega-feat-card h5 { font-size: 15px; font-weight: 700; color: var(--c-text); border: none; padding: 0; margin-bottom: 8px; }
.mega-feat-card p { font-size: 13px; color: var(--c-text-light); margin-bottom: 10px; line-height: 1.6; }
.mega-feat-card a { font-size: 13px; font-weight: 600; color: var(--c-primary); padding: 0; }
.mega-feat-card a:hover { padding: 0; }

/* Simple Dropdown */
.nav-item.has-dropdown { position: relative !important; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--c-card); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-primary);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s ease; z-index: 1000;
    padding: 12px 0; min-width: 200px;
}
.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
    display: block; padding: 8px 20px; font-size: 13px; color: var(--c-text-light);
    background: none !important; border-radius: 0; white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--c-primary); background: var(--c-primary-light) !important; }

/* Version 2 button */
.version-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    color: #fff; background: var(--c-primary);
    border-radius: var(--radius-sm); text-decoration: none;
    transition: all var(--transition);
}
.version-btn:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }

/* Narrow dropdown-style mega menu (desktop only) */
@media (min-width: 992px) {
    .nav-item.has-mega-sm { position: relative !important; }
    .nav-item.has-mega-sm .mega-menu { left: 50%; transform: translateX(-50%) translateY(10px); width: 260px; right: auto; padding: 16px; }
    .nav-item.has-mega-sm:hover .mega-menu { transform: translateX(-50%) translateY(0); }
    .nav-item.has-mega-sm .mega-row { grid-template-columns: 1fr; gap: 0; }
    .nav-item.has-mega-sm .mega-col h5 { display: none; }
    .nav-item.has-mega-sm .mega-col a { padding: 8px 12px; border-radius: 4px; }
    .nav-item.has-mega-sm .mega-col a:hover { padding-left: 16px; background: var(--c-primary-light) !important; }
}

@media (max-width: 991px) {
    .mega-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--c-primary); border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 12px 16px; margin: 4px 0; background: var(--c-light); }
    .nav-item.open-mega .mega-menu { display: block; }
    .mega-row { grid-template-columns: 1fr; gap: 16px; }
    .nav-item { position: relative !important; }
    .nav-item > a { display: flex; justify-content: space-between; align-items: center; }
    .nav-item > a i { transition: transform .3s; }
    .nav-item.open-mega > a i { transform: rotate(-180deg); }
    .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--c-primary); border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 8px 0; margin: 4px 0; background: var(--c-light); }
    .nav-item.open-dropdown .dropdown-menu { display: block; }
    .dropdown-menu a { padding: 8px 24px; white-space: normal; }
    .nav-item.has-dropdown > a { display: flex; justify-content: space-between; align-items: center; }
}

/* ===== MOBILE NAV (separate from desktop) ===== */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 300px;
    height: 100vh; background: var(--c-card); z-index: 100002;
    flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,.15);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    display: flex; overflow-y: auto; visibility: hidden;
}
.mobile-nav.open { right: 0; visibility: visible; }
.mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--c-border);
}
.mobile-nav-header img { height: 38px; }
.mobile-nav-close {
    background: none; border: none; font-size: 22px;
    cursor: pointer; color: var(--c-text); padding: 4px;
}
.mobile-nav-list { list-style: none; padding: 8px 0; }
.mobile-nav-list li { border-bottom: 1px solid var(--c-border); }
.mobile-nav-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(var(--nav-font-size) * .875) calc(var(--nav-font-size) * 1.25);
    font-size: var(--nav-font-size); font-weight: 600;
    color: var(--c-text); transition: background var(--transition);
    text-transform: var(--nav-uppercase); letter-spacing: var(--nav-letter-spacing, normal);
}
.mobile-nav-list a:hover, .mobile-nav-list a.active { background: var(--c-primary-light); color: var(--c-primary); }
.mobile-nav-list a i { font-size: 12px; transition: transform .3s; }
.mobile-nav-list li.open > a i { transform: rotate(-180deg); }
.mobile-nav-list .sub-menu {
    list-style: none; max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    background: var(--c-light);
}
.mobile-nav-list li.open > .sub-menu { max-height: 500px; }
.mobile-nav-list .sub-menu a {
    padding: 11px 20px 11px 32px; font-size: 14px; font-weight: 400;
    border-bottom: none;
}
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 100001; display: none;
}
.mobile-nav-overlay.show { display: block; }

@media (min-width: 992px) {
    .mobile-nav, .mobile-nav-overlay { display: none !important; }
}

.nav-toggle {
    display: none; background: none; border: none;
    font-size: 24px; color: var(--c-text); cursor: pointer;
    padding: 8px;
}

@media (max-width: 991px) {
    .nav { display: none !important; } /* hide desktop nav */
    .nav-overlay { display: none !important; }
    .nav-toggle { display: block; }
    .header-inner { height: 65px; }
    .logo img { height: 40px; }
    .theme-toggle, .lang-toggle { right: 15px; }
}

/* ===== HERO ===== */
.hero {
    position: relative; overflow: hidden;
    min-height: 85vh; display: flex; align-items: center;
 
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg video {
    width: 100%; height: 100%; object-fit: cover; opacity: .25;
}
.hero-bg.loading video { opacity: 0; }
.hero-bg.loaded video { opacity: 1; transition: opacity .8s ease; }
.hero-bg .poster-img {
    width: 100%; height: 100%; object-fit: cover; opacity: .2;
}
.hero-bg.loaded .poster-img { display: none; }
.hero-bg-photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .85; display: none;
}
html[data-hero-bg="photo"] .hero-bg-photo { display: block; }
html[data-hero-bg="photo"] .hero-bg video,
html[data-hero-bg="photo"] .hero-bg .poster-img { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; background: #001137b5;
    padding: 35px;
    border-radius: var(--radius-lg);
}
.hero-tag {
    display: inline-block; background: rgba(255,255,255,.15);
    color: #fff; padding: 6px 20px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: calc(clamp(30px, 5vw, 46px) * var(--heading-scale));
    font-weight: 800; color: #fff; line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--c-accent); }
.hero p {
    font-size: 18px; color: rgba(255,255,255,.75);
    margin-bottom: 30px; max-width: 540px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-pill); font-size: 15px;
    font-weight: 600; border: none; cursor: pointer;
    transition: all var(--transition); font-family: var(--font-primary);
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,95,180,.35); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline-light:hover { background: #fff; color: var(--c-secondary); border-color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--c-primary); }
.btn-white:hover { background: var(--c-primary-light); color: var(--c-primary-dark); transform: translateY(-2px); }

.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-shapes span {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.03);
}
.hero-shapes span:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero-shapes span:nth-child(2) { width: 200px; height: 200px; bottom: 10%; left: 5%; }
.hero-shapes span:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 20%; background: rgba(0,180,216,.05); }

/* ===== HERO WAVES (optional, toggled via the customizer) — "gentle wave" parallax ===== */
.hero-waves { display: none; }
html.hero-waves-on .hero-waves {
    display: block; position: absolute; bottom: 0; left: 0;
    z-index: 5; width: 100%; height: 180px; pointer-events: none;
}
.hero-waves__svg { display: block; width: 100%; height: 100%; }
html.hero-waves-on .hero-waves__parallax > use {
    animation-name: heroWaveMove;
    animation-timing-function: cubic-bezier(.55,.5,.45,.5);
    animation-iteration-count: infinite;
}
html.hero-waves-on .hero-waves__parallax > use:nth-child(1) { fill: rgba(255,255,255,.10); animation-duration: 7s; animation-delay: -2s; }
html.hero-waves-on .hero-waves__parallax > use:nth-child(2) { fill: rgba(255,255,255,.22); animation-duration: 10s; animation-delay: -3s; }
html.hero-waves-on .hero-waves__parallax > use:nth-child(3) { fill: rgba(226,232,240,.4); animation-duration: 13s; animation-delay: -4s; }
html.hero-waves-on .hero-waves__parallax > use:nth-child(4) { fill: var(--c-light); animation-duration: 20s; animation-delay: -5s; }
@keyframes heroWaveMove {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    html.hero-waves-on .hero-waves__parallax > use { animation: none; }
}
@media (max-width: 768px) { html.hero-waves-on .hero-waves { height: 90px; } }

@media (max-width: 768px) {
    .hero { min-height: 70vh; text-align: center; }
    .hero-content { max-width: 100%; padding: 40px 0; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
}

/* ===== SECTION ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--c-light); }
.crten-section { padding: 90px 0; }
.section-bg-gray { background: var(--c-light); }
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title .tag {
    display: inline-block; background: var(--c-primary-light);
    color: var(--c-primary); padding: 5px 18px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: calc(clamp(26px, 3.5vw, 38px) * var(--heading-scale));
    font-weight: 800; color: var(--c-text);
    margin-bottom: 12px;
}
.section-title p { color: var(--c-text-light); max-width: 600px; margin: 0 auto; font-size: 17px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius); }
.about-image .exp-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--c-primary); color: #fff;
    padding: 16px 24px; border-radius: var(--radius-sm);
    text-align: center; line-height: 1.2;
}
.about-image .exp-badge strong { display: block; font-size: 28px; font-weight: 800; }
.about-image .exp-badge small { font-size: 12px; opacity: .85; }
.about-content .tag { display: inline-block; background: var(--c-primary-light); color: var(--c-primary); padding: 5px 18px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.about-content h3 { font-family: var(--font-heading); font-size: calc(clamp(22px, 3vw, 32px) * var(--heading-scale)); font-weight: 800; color: var(--c-text); margin-bottom: 16px; }
.about-content p { color: var(--c-text-light); margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.about-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--c-text); list-style: none; }
.about-features li i { color: var(--c-primary); font-size: 16px; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image img { height: 280px; }
    .about-features { grid-template-columns: 1fr; }
}

/* ===== STATS ===== */
.stats { background: var(--c-light); padding: 70px 0; position: relative; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat-box {
    position: relative; overflow: hidden; text-align: center;
    border-radius: var(--radius-lg); padding: 34px 20px; color: #fff;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-box::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(255,255,255,.28), transparent 60%);
    pointer-events: none;
}
.stat-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-box.c-blue   { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); }
.stat-box.c-orange { background: linear-gradient(135deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 60%, black)); }
.stat-box.c-red    { background: linear-gradient(135deg, var(--c-red), color-mix(in srgb, var(--c-red) 60%, black)); }
.stat-box.c-navy   { background: linear-gradient(135deg, var(--c-secondary), color-mix(in srgb, var(--c-secondary) 60%, black)); }
.stat-icon-wrap {
    position: relative; z-index: 1; width: 58px; height: 58px; margin: 0 auto 16px;
    border-radius: 50%; background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.stat-box h4 { position: relative; z-index: 1; font-size: 38px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.stat-box p { position: relative; z-index: 1; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .stat-box h4 { font-size: 30px; } }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card-item {
    background: var(--c-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.card-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-item .card-img { width: 100%; height: 200px; object-fit: cover; }
.card-item .card-body { padding: 24px; }
.card-item .card-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--c-primary-light);
    color: var(--c-primary); padding: 4px 14px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: .5px;
}
.card-item .card-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-item .card-tag.tag-orange { background: var(--c-orange-bg); color: var(--c-accent); }
.card-item .card-tag.tag-red { background: var(--c-red-bg); color: var(--c-red); }
.card-item h5 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--c-text); }
.card-item h5 a { color: inherit; }
.card-item h5 a:hover { color: var(--c-primary); }
.card-item p { font-size: 14px; color: var(--c-text-light); margin-bottom: 14px; }
.card-item .card-meta {
    font-size: 12px; color: var(--c-text-light); display: flex; gap: 18px;
    padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--c-border);
}
.card-item .card-meta span { display: inline-flex; align-items: center; gap: 7px; }
.card-item .card-meta i {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--c-primary-light); color: var(--c-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}

/* ===== LABS ===== */
.labs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lab-card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.lab-card .icon {
    width: 64px; height: 64px; border-radius: var(--radius);
    background: var(--c-primary-light); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 26px;
}
.lab-card h5 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--c-text); }
.lab-card p { font-size: 14px; color: var(--c-text-light); margin-bottom: 12px; min-height: 90; }
.lab-card .lab-link { font-size: 13px; font-weight: 600; color: var(--c-primary); }
.lab-card .lab-link i { transition: transform var(--transition); }
.lab-card .lab-link:hover i { transform: translateX(4px); }
[dir="rtl"] .lab-card .lab-link:hover i { transform: translateX(-4px); }

@media (max-width: 991px) { .labs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .labs-grid { grid-template-columns: 1fr; } }

/* ===== PARTNERS ===== */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; align-items: center; }
.partner-item {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); padding: 20px;
    display: flex; align-items: center; justify-content: center;
    height: 90px; transition: all var(--transition);
}
.partner-item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.partner-item img { max-height: 50px; opacity: .6; transition: opacity var(--transition); }
.partner-item:hover img { opacity: 1; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--c-primary-dark), var(--c-secondary));
    padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-family: var(--font-heading); font-size: calc(clamp(24px, 3vw, 36px) * var(--heading-scale)); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.7); max-width: 600px; margin: 0 auto 30px; font-size: 17px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--c-footer-bg); color: var(--c-footer-text);
    position: relative; overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.footer-main { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer .logo { margin-bottom: 16px; }
.footer .logo img { height: 45px; }
.footer .logo-text { font-size: 18px; }
.footer .logo-text small { color: rgba(255,255,255,.5); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--c-footer-text); font-size: 14px; transition: all var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer-contact li i { color: var(--c-primary); margin-top: 3px; min-width: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; transition: all var(--transition);
}
.footer-social a:hover { background: var(--c-primary); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0; font-size: 13px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--c-primary); }

@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== NEWS CARDS with date ===== */
.news-date-badge {
    position: relative; overflow: hidden;
}
.news-date {
    position: absolute; top: 12px; left: 12px;
    background: var(--c-primary); color: #fff;
    text-align: center; padding: 8px 14px; border-radius: var(--radius-sm);
    line-height: 1.2; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.news-date strong { display: block; font-size: 18px; font-weight: 800; }
.news-date small { font-size: 10px; text-transform: uppercase; opacity: .85; }
[dir="rtl"] .news-date { left: auto; right: 12px; }

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; z-index: 998;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: all var(--transition);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--c-primary-dark); transform: translateY(-3px); }
[dir="rtl"] .back-top { right: auto; left: 30px; }
[dir="rtl"] .theme-toggle { right: auto; left: 30px; }
[dir="rtl"] .lang-toggle { right: auto; left: 30px; }

/* ===== ANIMATIONS ===== */
[data-aos] { transition-timing-function: cubic-bezier(.4,0,.2,1); }

/* ===== EVENTS ===== */
.events-list { display: grid; gap: 20px; }
.event-item {
    display: flex; gap: 20px;
    background: var(--c-card); border-radius: var(--radius);
    padding: 20px; border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.event-item:hover { box-shadow: var(--shadow-md); }
.event-date-box {
    min-width: 80px; text-align: center;
    height: -webkit-fill-available;
    background: var(--c-primary-light); border-radius: var(--radius-sm);
    padding: 12px 8px; align-self: start;
}
.event-date-box strong { display: block; font-size: 26px; color: var(--c-primary); font-weight: 800; line-height: 1; }
.event-date-box small { font-size: 11px; color: var(--c-text-light); text-transform: uppercase; font-weight: 600; }
.event-info h5 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--c-text); }
.event-info p { font-size: 13px; color: var(--c-text-light); }
@media (max-width: 576px) { .event-item { flex-direction: column; } .event-date-box { display: flex; gap: 8px; align-items: center; min-width: auto; } }

/* ===== SWIPER OVERRIDES ===== */
.swiper { padding-bottom: 40px; }
.swiper-pagination-bullet { background: var(--c-primary); }
.swiper-button-next, .swiper-button-prev { color: var(--c-primary); }

[dir="rtl"] .mega-col a { background: none !important; }
[dir="rtl"] .nav-item > a i { margin-left: 0; margin-right: 4px; }

@media (max-width: 768px) {
    .hero { min-height: 60vh; }
    .hero-bg video { display: none; }
    .hero-bg.loaded video { display: block; }
}
/* ===== SEARCH BUTTON ===== */
.search-btn {
    background: none; border: none; color: var(--c-text);
    font-size: 18px; cursor: pointer; padding: 8px 10px;
    border-radius: var(--radius-sm); transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: var(--c-primary-light); color: var(--c-primary); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(13,59,122,.95);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transform: translateY(-30%);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.search-overlay.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-overlay-close {
    position: absolute; top: 20px; right: 25px;
    background: none; border: none; color: #fff;
    font-size: 32px; cursor: pointer; opacity: .7;
    transition: opacity var(--transition);
}
.search-overlay-close:hover { opacity: 1; }
.search-overlay-inner {
    max-width: 650px; margin: 0 auto;
    position: relative; top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}
.search-overlay-form { display: flex; border-radius: var(--radius-pill); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.search-overlay-form input {
    flex: 1; border: none; padding: 18px 24px;
    font-size: 18px; font-family: var(--font-primary);
    outline: none; background: #fff; color: var(--c-text);
}
.search-overlay-form button {
    background: var(--c-primary); color: #fff; border: none;
    padding: 0 30px; font-size: 20px; cursor: pointer;
    transition: background var(--transition);
}
.search-overlay-form button:hover { background: var(--c-primary-dark); }
[dir="rtl"] .search-overlay-close { right: auto; left: 25px; }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-item {
    position: relative; border-radius: var(--radius);
    overflow: hidden; display: block; cursor: pointer;
}
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.album-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    padding: 40px 16px 14px; color: #fff;
    transform: translateY(100%); transition: transform .4s ease;
}
.gallery-item:hover .album-info { transform: translateY(0); }
.album-info strong { display: block; font-size: 15px; margin-bottom: 2px; }
.album-info small { font-size: 11px; opacity: .8; }
.album-info small i { margin-right: 4px; }
[dir="rtl"] .album-info small i { margin-right: 0; margin-left: 4px; }
.gallery-overlay {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.9); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    opacity: 0; transition: opacity var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ===== TESTIMONIALS ===== */
.testimonial-swiper { max-width: 800px; margin: 0 auto; padding-bottom: 50px; overflow: hidden; }
.swiper-slide { height: auto; }
.testimonial-card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 36px; text-align: center;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.testimonial-stars { margin-bottom: 16px; }
.testimonial-stars i { color: #f59e0b; font-size: 18px; margin: 0 2px; }
.testimonial-card > p {
    font-size: 16px; color: var(--c-text-light);
    line-height: 1.8; font-style: italic;
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex; align-items: center; justify-content: center;
    gap: 14px;
}
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 15px; color: var(--c-text); }
.testimonial-author small { font-size: 12px; color: var(--c-text-light); }

/* ===== EVENT MODAL ===== */
.event-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.event-modal-overlay.show { display: flex; }
.event-modal {
    background: var(--c-card); border-radius: var(--radius-lg);
    max-width: 680px; width: 100%; overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.4);
    display: flex; flex-direction: column;
    animation: modalIn .4s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.event-modal-img {
    width: 100%; height: 220px; object-fit: cover;
    display: block;
}
.event-modal-body { padding: 24px 28px 28px; position: relative; }
.event-modal-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--c-primary); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; padding: 5px 12px; border-radius: 20px;
    margin-bottom: 12px;
}
.event-modal-body h3 {
    font-size: 20px; font-weight: 800; color: var(--c-text);
    margin-bottom: 8px; line-height: 1.3;
}
.event-modal-body p {
    font-size: 14px; color: var(--c-text-light);
    line-height: 1.6; margin-bottom: 16px;
}
.event-modal-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    font-size: 13px; color: var(--c-text-light); margin-bottom: 20px;
}
.event-modal-meta i { margin-right: 6px; color: var(--c-primary); }
[dir="rtl"] .event-modal-meta i { margin-right: 0; margin-left: 6px; }
.event-modal-actions { display: flex; gap: 12px; align-items: center; }
.event-modal-actions .btn { padding: 10px 24px; font-size: 14px; }
.event-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,.4); color: #fff; border: none;
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background var(--transition);
}
.event-modal-close:hover { background: rgba(0,0,0,.6); }
[dir="rtl"] .event-modal-close { right: auto; left: 12px; }
@media (max-width: 576px) {
    .event-modal-img { height: 160px; }
    .event-modal-body { padding: 18px 20px 22px; }
    .event-modal-body h3 { font-size: 17px; }
}
   /* Lab Cards */
        .lab-card {
            text-align: center;
            padding: 30px 20px;
            border-radius: var(--radius);
            background: var(--c-light);
            border: 1px solid var(--c-border);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            transition: transform .3s;
            height: 100%;
        }
        .lab-card:hover { transform: translateY(-5px); }
        .lab-card .lab-icon {
            width: 70px; height: 70px;
            margin: 0 auto 18px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 30px; color: #fff;
        }

/* Event Cards */
        .event-card {
            background: var(--c-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 3px 20px rgba(0,0,0,0.06);
            display: flex;
            transition: all 0.4s;
        }
        .event-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
        .event-card .event-date-box {
            width: 100px;
            background: var(--c-primary);
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .event-card .event-date-box .day { font-size: 32px; font-weight: 800; line-height: 1; }
        .event-card .event-date-box .month { font-size: 13px; text-transform: uppercase; opacity: 0.8; }
        .event-card .event-body { padding: 20px; flex: 1; }
        .event-card .event-body .event-type {
            font-size: 11px;
            font-weight: 600;
            color: var(--c-accent);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .event-card .event-body h5 { font-size: 15px; font-weight: 700; color: var(--c-text); margin: 6px 0; }
        .event-card .event-body p { font-size: 13px; color: #888; }

/* ===== NEWSLETTER ===== */
.newsletter-wrap {
    display: flex; border-radius: var(--radius-pill); overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
}
.newsletter-wrap input {
    flex: 1; border: none; padding: 12px 16px;
    font-size: 13px; font-family: var(--font-primary);
    background: transparent; color: #fff; outline: none;
}
.newsletter-wrap input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-wrap button {
    background: var(--c-primary); color: #fff; border: none;
    padding: 0 18px; cursor: pointer; font-size: 15px;
    transition: background var(--transition);
}
.newsletter-wrap button:hover { background: var(--c-primary-dark); }

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

 /* Lab Cards */
        .cc .labo-card {
            background: var(--c-card);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 5px 30px rgba(0,0,0,0.08);
            transition: all 0.4s;
            height: 100%;
        }
        .cc .labo-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
        .cc .labo-card .labo-icon {
            height: 120px;
            background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 50px;
                width: 100%;
    border-radius: 0;
        }
        .cc .labo-card .labo-body { padding: 25px; }
        .cc .labo-card .labo-body h5 {
            font-size: 18px;
            font-weight: 700;
            color: var(--c-primary);
            margin-bottom: 10px;
        }
        .cc .labo-card .labo-body h5 span { display: block; font-size: 12px; font-weight: 500; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
       .cc  .labo-card .labo-body p { font-size: 14px; color: #666; line-height: 1.7; }
        .cc .labo-card .labo-body .btn-link {
            color: var(--c-accent);
            font-weight: 600;
            text-decoration: none;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
            transition: gap 0.3s;
        }
       .cc .labo-card .labo-body .btn-link:hover { gap: 10px; }
       .section-white{
        background: #ffffff;
       }

/* ===== SITE CUSTOMIZER ===== */
.customizer-tab {
    position: fixed; top: 50%; left: 0; transform: translateY(-50%);
    z-index: 1001; background: var(--c-primary); color: #fff;
    border: none; cursor: pointer; writing-mode: vertical-rl;
    padding: 16px 10px; border-radius: 0 10px 10px 0;
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-md);
    transition: background var(--transition), padding var(--transition);
}
.customizer-tab i { font-size: 15px; writing-mode: horizontal-tb; }
.customizer-tab:hover { background: var(--c-primary-dark); padding-left: 14px; }

.customizer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 100003; display: none;
}
.customizer-overlay.show { display: block; }

.customizer-panel {
    position: fixed; top: 0; left: -340px; width: 340px; height: 100vh;
    background: var(--c-card); z-index: 100004;
    box-shadow: 5px 0 30px rgba(0,0,0,.2);
    transition: left .35s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.customizer-panel.open { left: 0; }
.customizer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; background: var(--c-card); z-index: 1;
}
.customizer-header h5 { font-size: 16px; font-weight: 800; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.customizer-close { background: none; border: none; font-size: 20px; color: var(--c-text-light); cursor: pointer; }
.customizer-body { padding: 22px; }
.customizer-group { margin-bottom: 26px; }
.customizer-group label {
    display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--c-text-light); margin-bottom: 10px;
}
.customizer-select, .customizer-range {
    width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--c-border); background: var(--c-body); color: var(--c-text);
    font-family: var(--font-primary); font-size: 14px;
}
.customizer-range { padding: 0; accent-color: var(--c-primary); }
.customizer-swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.customizer-swatch-item { text-align: center; font-size: 11px; color: var(--c-text-light); }
.customizer-swatch-item input[type="color"] {
    width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--c-card);
    box-shadow: 0 0 0 1px var(--c-border); cursor: pointer; padding: 0; background: none;
    display: block; margin: 0 auto 6px;
}
.customizer-range-value { float: right; font-weight: 700; color: var(--c-primary); text-transform: none; letter-spacing: 0; }
[dir="rtl"] .customizer-range-value { float: left; }
.customizer-footer { padding: 18px 22px; border-top: 1px solid var(--c-border); margin-top: auto; }
.customizer-reset {
    width: 100%; padding: 11px; border-radius: var(--radius-sm); border: 1px solid var(--c-border);
    background: none; color: var(--c-text-light); font-size: 13px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all var(--transition);
}
.customizer-reset:hover { background: var(--c-red-bg); color: var(--c-red); border-color: var(--c-red); }
.customizer-note { font-size: 11px; color: var(--c-text-light); line-height: 1.6; margin-top: 4px; }
.customizer-switch-row { display: flex; align-items: center; justify-content: space-between; }
.customizer-switch-row label { margin-bottom: 0; }
.customizer-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.customizer-switch input { opacity: 0; width: 0; height: 0; }
.customizer-switch-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: var(--c-border); border-radius: 999px; transition: background var(--transition);
}
.customizer-switch-slider::before {
    content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.customizer-switch input:checked + .customizer-switch-slider { background: var(--c-primary); }
.customizer-switch input:checked + .customizer-switch-slider::before { transform: translateX(18px); }
[dir="rtl"] .customizer-switch input:checked + .customizer-switch-slider::before { transform: translateX(-18px); }
[dir="rtl"] .customizer-tab { left: auto; right: 0; border-radius: 10px 0 0 10px; writing-mode: vertical-lr; }
[dir="rtl"] .customizer-tab:hover { padding-left: 10px; padding-right: 14px; }
[dir="rtl"] .customizer-panel { left: auto; right: -340px; box-shadow: -5px 0 30px rgba(0,0,0,.2); transition: right .35s cubic-bezier(.4,0,.2,1); }
[dir="rtl"] .customizer-panel.open { right: 0; }
@media (max-width: 480px) {
    .customizer-panel { width: 85vw; left: -85vw; }
    [dir="rtl"] .customizer-panel { right: -85vw; }
}

/* ===== CARD CORNER ACCENT (optional, toggled via the customizer) ===== */
html.cards-cornered .card-item,
html.cards-cornered .lab-card,
html.cards-cornered .labo-card,
html.cards-cornered .event-card,
html.cards-cornered .testimonial-card,
html.cards-cornered .partner-item {
    position: relative;
}
html.cards-cornered .card-item::before,
html.cards-cornered .lab-card::before,
html.cards-cornered .labo-card::before,
html.cards-cornered .event-card::before,
html.cards-cornered .testimonial-card::before,
html.cards-cornered .partner-item::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 30%; height: 30%; max-width: 60px; max-height: 60px;
    border-top: 6px solid var(--c-primary); border-right: 6px solid var(--c-primary);
    border-top-right-radius: var(--radius);
    pointer-events: none; z-index: 2;
}
html.cards-cornered .card-item::after,
html.cards-cornered .lab-card::after,
html.cards-cornered .labo-card::after,
html.cards-cornered .event-card::after,
html.cards-cornered .testimonial-card::after,
html.cards-cornered .partner-item::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30%; height: 30%; max-width: 60px; max-height: 60px;
    border-bottom: 6px solid var(--c-primary); border-left: 6px solid var(--c-primary);
    border-bottom-left-radius: var(--radius);
    pointer-events: none; z-index: 2;
}
[dir="rtl"] html.cards-cornered .card-item::before,
[dir="rtl"] html.cards-cornered .lab-card::before,
[dir="rtl"] html.cards-cornered .labo-card::before,
[dir="rtl"] html.cards-cornered .event-card::before,
[dir="rtl"] html.cards-cornered .testimonial-card::before,
[dir="rtl"] html.cards-cornered .partner-item::before {
    right: auto; left: 0;
    border-right: none; border-left: 6px solid var(--c-primary);
    border-top-right-radius: 0; border-top-left-radius: var(--radius);
}
[dir="rtl"] html.cards-cornered .card-item::after,
[dir="rtl"] html.cards-cornered .lab-card::after,
[dir="rtl"] html.cards-cornered .labo-card::after,
[dir="rtl"] html.cards-cornered .event-card::after,
[dir="rtl"] html.cards-cornered .testimonial-card::after,
[dir="rtl"] html.cards-cornered .partner-item::after {
    left: auto; right: 0;
    border-left: none; border-right: 6px solid var(--c-primary);
    border-bottom-left-radius: 0; border-bottom-right-radius: var(--radius);
}

/* ============================================================
   INNER PAGES — shared across all non-home pages
   (page header / breadcrumb, generic content, services,
   contact, lab & unit detail, news/events/gallery listings)
   ============================================================ */

/* ===== PAGE HEADER / BREADCRUMB ===== */
.page-header {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary-dark), var(--c-secondary));
    padding: 56px 0 46px;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    font-family: var(--font-heading);
    font-size: calc(clamp(26px, 3.6vw, 40px) * var(--heading-scale));
    font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.2;
}
.breadcrumb-nav {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 14px; color: rgba(255,255,255,.7);
}
.breadcrumb-nav a { color: rgba(255,255,255,.7); }
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav i { font-size: 10px; opacity: .55; }
.breadcrumb-nav .current { color: #fff; font-weight: 600; }

/* ===== GENERIC CONTENT PAGE ===== */
.content-page { padding: 80px 0; }
.content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 44px; align-items: start; }
.content-main { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.content-main .tag { display: inline-block; background: var(--c-primary-light); color: var(--c-primary); padding: 5px 18px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.content-main h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--c-text); margin: 24px 0 12px; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { color: var(--c-text-light); margin-bottom: 16px; }
.content-main ul.check-list { list-style: none; margin: 16px 0; }
.content-main ul.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--c-text); margin-bottom: 10px; }
.content-main ul.check-list li i { color: var(--c-primary); margin-top: 4px; }
.content-main .content-figure { width: 100%; border-radius: var(--radius-sm); margin: 20px 0; }
.content-side .side-box { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.content-side .side-box h5 { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--c-primary-light); }
.content-side .side-links { list-style: none; }
.content-side .side-links li { border-bottom: 1px solid var(--c-border); }
.content-side .side-links li:last-child { border-bottom: none; }
.content-side .side-links a { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; font-size: 14px; color: var(--c-text-light); }
.content-side .side-links a:hover { color: var(--c-primary); }
.content-side .side-links a.active { color: var(--c-primary); font-weight: 700; }
.content-side .side-contact p { font-size: 13px; color: var(--c-text-light); display: flex; gap: 10px; margin-bottom: 12px; }
.content-side .side-contact i { color: var(--c-primary); margin-top: 3px; }
@media (max-width: 991px) { .content-layout { grid-template-columns: 1fr; } .content-main { padding: 28px 24px; } }

/* ===== SERVICES ===== */
.service-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: all var(--transition); height: 100%; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.service-card .icon { width: 58px; height: 58px; border-radius: var(--radius-sm); background: var(--c-primary-light); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.service-card .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--c-accent); margin-bottom: 6px; }
.service-card h5 { font-size: 17px; font-weight: 700; color: var(--c-text); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--c-text-light); margin-bottom: 16px; }
.service-card .lab-link { font-size: 13px; font-weight: 600; color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; }
.service-card .lab-link i { transition: transform var(--transition); }
.service-card .lab-link:hover i { transform: translateX(4px); }
[dir="rtl"] .service-card .lab-link:hover i { transform: translateX(-4px); }

/* ===== CONTACT ===== */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.contact-info-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.contact-info-card .icon { width: 60px; height: 60px; border-radius: 50%; background: var(--c-primary-light); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; }
.contact-info-card h5 { font-size: 16px; font-weight: 700; color: var(--c-text); margin-bottom: 8px; }
.contact-info-card p { font-size: 14px; color: var(--c-text-light); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: stretch; }
.contact-form-wrap { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form-wrap h3 { font-size: 22px; font-weight: 800; color: var(--c-text); margin-bottom: 6px; }
.contact-form-wrap > p { color: var(--c-text-light); margin-bottom: 24px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-body); color: var(--c-text); font-family: var(--font-primary); font-size: 14px; transition: border-color var(--transition); }
.form-control:focus { outline: none; border-color: var(--c-primary); }
textarea.form-control { resize: vertical; min-height: 130px; }
.contact-map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); min-height: 320px; }
.contact-map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 991px) { .contact-info-grid { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ===== LAB / UNIT DETAIL (shared design: logo, description, members) ===== */
.entity-header { display: flex; align-items: center; gap: 26px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.entity-logo { width: 96px; height: 96px; border-radius: var(--radius); background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; flex-shrink: 0; }
.entity-header h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--c-text); margin-bottom: 6px; }
.entity-header .entity-full-name { font-size: 14px; color: var(--c-text-light); margin-bottom: 10px; }
.entity-header .entity-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-light); }
.entity-header .entity-meta span { display: inline-flex; align-items: center; gap: 6px; }
.entity-header .entity-meta i { color: var(--c-primary); }
.entity-section { margin-bottom: 46px; }
.entity-section h3 { font-size: 21px; font-weight: 800; color: var(--c-text); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.entity-section h3 i { color: var(--c-primary); font-size: 18px; }
.entity-section p { color: var(--c-text-light); margin-bottom: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-card img { width: 100%; height: 190px; object-fit: cover; }
.member-card .member-body { padding: 16px; }
.member-card h6 { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.member-card .role { font-size: 12px; color: var(--c-primary); font-weight: 600; }
.project-list { list-style: none; display: grid; gap: 14px; }
.project-list li { display: flex; align-items: flex-start; gap: 12px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 16px 18px; }
.project-list li i { color: var(--c-primary); margin-top: 3px; }
.project-list li strong { display: block; color: var(--c-text); font-size: 14px; margin-bottom: 3px; }
.project-list li span { font-size: 13px; color: var(--c-text-light); }
@media (max-width: 768px) { .entity-header { flex-direction: column; text-align: center; } .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ===== LIST PAGES (news / events / galleries) pagination ===== */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.list-toolbar .count { font-size: 14px; color: var(--c-text-light); }
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination-wrap a, .pagination-wrap span { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--c-text); background: var(--c-card); border: 1px solid var(--c-border); }
.pagination-wrap a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.pagination-wrap .active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ===== ARTICLE / EVENT / ALBUM DETAIL ===== */
.detail-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.detail-meta-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-light); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
.detail-meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.detail-meta-row i { color: var(--c-primary); }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.share-row span { font-size: 13px; font-weight: 600; color: var(--c-text); }
.share-row a { width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-light); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.share-row a:hover { background: var(--c-primary); color: #fff; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } .detail-hero-img { max-height: 260px; } }

/* ===== NOT FOUND (unknown slug/id in query string) ===== */
.not-found-box { text-align: center; padding: 60px 20px; }
.not-found-box i { font-size: 48px; color: var(--c-text-light); margin-bottom: 18px; }
.not-found-box h3 { font-size: 20px; color: var(--c-text); margin-bottom: 10px; }
.not-found-box p { color: var(--c-text-light); margin-bottom: 20px; }
