/* ===========================
   DIJLA MEDICAL COMPANY
   Main Stylesheet
   =========================== */

/* CSS Variables — Brand: Dijla Medical (Teal + Red) */
:root {
    /* Layout heights — used for fixed top-bar + navbar offset */
    --topbar-height: 42px;
    --navbar-height: 80px;
    --header-total: calc(var(--topbar-height) + var(--navbar-height));

    /* Primary Teal — from logo "dijla" lettering */
    --primary: #1FA99E;
    --primary-light: #2ABFB3;
    --primary-dark: #147A72;
    /* Accent Red — from logo "M" in Medical */
    --accent-red: #E63333;
    --accent-red-dark: #C41E1E;
    /* Legacy aliases kept for compatibility */
    --secondary: #2ABFB3;
    --secondary-light: #4DCFC6;
    --accent: #1FA99E;
    --accent-light: #2ABFB3;
    --danger: #E63333;
    --warning: #f57c00;
    --success: #2e7d32;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #ecf0f1;
    --mid-gray: #95a5a6;
    --dark: #1a2a2a;
    --text-dark: #1f3634;
    --text-muted: #6b8280;
    --border: #d4e8e6;

    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', 'Poppins', sans-serif;

    --shadow-sm: 0 2px 10px rgba(31,169,158,0.10);
    --shadow-md: 0 5px 25px rgba(31,169,158,0.15);
    --shadow-lg: 0 15px 50px rgba(31,169,158,0.20);
    --shadow-primary: 0 8px 30px rgba(31,169,158,0.30);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Base Styles */
*, *::before, *::after { box-sizing: border-box; }

/* Fix horizontal scroll on all devices */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-en);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* Global safety: no element should bleed outside the viewport */
section, .section, footer, header, nav {
    max-width: 100%;
    overflow-x: hidden;
}

body.rtl, body.font-cairo {
    font-family: var(--font-ar);
    direction: rtl;
}

body.ltr, body.font-inter {
    font-family: var(--font-en);
    direction: ltr;
}

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

a { color: var(--secondary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary); }

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

/* ===========================
   PRELOADER
   =========================== */
#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

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

.preloader-logo img {
    height: 70px;
    width: auto;
    max-width: 220px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.preloader-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: lowercase;
    font-style: italic;
}

.preloader-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   TOP BAR
   =========================== */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    /* Fixed at top of viewport, above navbar */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1041;
    width: 100%;
}

.top-bar-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.top-bar-link:hover { color: white; }

.top-bar .divider { color: rgba(255,255,255,0.3); }

/* Language Switcher */
.lang-switcher { display: flex; align-items: center; }

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    text-decoration: none;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-1px);
}

.social-links .social-link {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.social-links .social-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===========================
   NAVBAR
   =========================== */
.main-navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease, top 0.3s ease;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 1030;
}

.main-navbar.navbar-transparent {
    background: transparent;
    box-shadow: none;
}

.main-navbar.navbar-transparent .nav-link,
.main-navbar.navbar-transparent .navbar-brand-text span {
    color: rgba(255,255,255,0.9) !important;
}

.main-navbar.navbar-transparent .nav-link:hover,
.main-navbar.navbar-transparent .nav-link.active {
    color: #fff !important;
}

.main-navbar.navbar-transparent .nav-link.active::after {
    background: rgba(255,255,255,0.8);
}

.main-navbar.navbar-transparent .nav-cta {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    color: #fff !important;
}

.main-navbar.navbar-transparent .nav-cta:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
}

.main-navbar.navbar-transparent .navbar-toggler {
    border-color: rgba(255,255,255,0.6);
}

.main-navbar.navbar-transparent .navbar-toggler-icon {
    filter: invert(1);
}

.main-navbar.navbar-transparent .navbar-logo {
    filter: brightness(0) invert(1);
}

.main-navbar.scrolled {
    background: white;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.navbar-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-brand { display: flex; align-items: center; text-decoration: none; }

.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.navbar-brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-main {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-ar);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(31,169,158,0.08);
}

.main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    border: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(31,169,158,0.40);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* Override the global `nav { overflow-x: hidden }` rule so the Products dropdown
   (position: absolute) is never clipped by the navbar's scroll context */
.main-navbar {
    overflow: visible;
}

/* Dropdown Mega Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin-top: 5px !important;
    min-width: 220px;
    z-index: 9000;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(10,61,98,0.06);
    color: var(--primary);
    /* Use border-left instead of changing padding to avoid layout shift */
    border-left: 3px solid var(--primary);
    padding-left: 13px;
}

/* ===========================
   HERO / SLIDER
   =========================== */
.hero-section { position: relative; overflow: hidden; }

.hero-swiper { height: 80vh; min-height: 500px; max-height: 750px; }

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,61,98,0.85) 0%,
        rgba(10,61,98,0.55) 50%,
        rgba(10,61,98,0.2) 100%
    );
    z-index: 1;
}

.rtl .hero-overlay {
    background: linear-gradient(
        to left,
        rgba(10,61,98,0.85) 0%,
        rgba(10,61,98,0.55) 50%,
        rgba(10,61,98,0.2) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 650px;
    color: white;
}

.rtl .hero-content { left: auto; right: 8%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.swiper-pagination-bullet-active { background: white !important; }

/* Pages without video hero need top padding for fixed top-bar + fixed navbar */
body:not(.page-home) main > *:first-child:not(.video-hero-section) {
    padding-top: 0;
}

main:not(:has(.video-hero-section)) {
    padding-top: var(--header-total);
}


.video-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    /* Dark fallback background while video buffers */
    background: #051e37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 30, 55, 0.55) 0%,
        rgba(5, 30, 55, 0.45) 60%,
        rgba(5, 30, 55, 0.75) 100%
    );
    z-index: 1;
}

.video-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 850px;
    width: 100%;
    /* Hidden until video is ready to play */
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reveal hero content once video is ready (class added by JS) */
.video-hero-section.video-ready .video-hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Per-item stagger animation inside hero content */
.video-hero-section.video-ready .hero-anim {
    animation: heroItemIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--hero-delay, 0s);
}

@keyframes heroItemIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   HERO LOADING OVERLAY
   ============================ */
.hero-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #051e37;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-loading-overlay.hidden {
    opacity: 0;
}

.hero-loading-logo {
    height: 72px;
    width: auto;
    max-width: 220px;
    filter: brightness(0) invert(1);
    animation: heroPulse 1.8s ease-in-out infinite;
}

.hero-loading-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: lowercase;
    font-style: italic;
    margin: 10px 0 22px;
}

.hero-loading-bar {
    width: 130px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.hero-loading-bar-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 2px;
    animation: heroLoadingSlide 1.4s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes heroLoadingSlide {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(430%); }
}

.video-hero-content .hero-badge {
    margin: 0 auto 20px;
    display: inline-flex;
}

.video-hero-content .hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 18px;
    line-height: 1.25;
}

.video-hero-content .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.video-hero-content .hero-buttons {
    justify-content: center;
    margin-bottom: 40px;
}

.video-hero-scroll {
    margin-top: 20px;
}

.scroll-down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    animation: bounceDown 1.8s infinite;
    transition: background 0.3s, border-color 0.3s;
}

.scroll-down-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    color: #fff;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Responsive video hero */
@media (max-width: 768px) {
    .video-hero-content .hero-title { font-size: 1.8rem; }
    .video-hero-content .hero-subtitle { font-size: 1rem; }
    .video-hero-section { height: 100svh; }
}

@media (max-width: 480px) {
    .video-hero-content .hero-title { font-size: 1.4rem; }
    .video-hero-content .hero-buttons { flex-direction: column; align-items: center; }
    .video-hero-content .hero-buttons .btn { width: 90%; }
}

.hero-static {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--secondary) 100%);
    padding: calc(var(--header-total) + 40px) 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-static::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

/* ===========================
   SECTION STYLES
   =========================== */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 100px 0; }

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(31,169,158,0.10);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title span { color: var(--accent-red); }

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 2px;
    margin: 16px auto;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(10,61,98,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10,61,98,0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    border-color: var(--secondary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(30,136,229,0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,136,229,0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background: var(--off-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-sm { padding: 6px 16px; font-size: 0.82rem; }

/* ===========================
   CARDS
   =========================== */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Product Card */
.product-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--off-white);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img { transform: scale(1.08); }

.product-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rtl .product-card-badge { right: auto; left: 12px; }

.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.product-card-category {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10,61,98,0.1) 0%, rgba(30,136,229,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.1);
}

.category-card-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid var(--light-gray);
    transition: var(--transition);
}

.category-card:hover .category-card-img { border-color: var(--primary); }

.category-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.category-card-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Activity Card */
.activity-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.activity-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--off-white);
}

.activity-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-card-img img { transform: scale(1.08); }

.activity-card-body { padding: 20px; }

.activity-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.activity-card-date, .activity-card-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================
   STATS SECTION
   =========================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.stat-item { text-align: center; padding: 20px; }

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.stat-icon {
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

/* ===========================
   CLIENTS / PARTNERS
   =========================== */
.clients-section { background: var(--off-white); }

.client-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    height: 100px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.client-logo:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.client-logo img {
    max-height: 70px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.client-logo:hover img { filter: grayscale(0); }

/* Brand Logo Card */
.brand-logo-card {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    height: 120px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
}

.brand-logo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(10,61,98,0.15);
}

.brand-logo-card img {
    max-height: 75px;
    max-width: 170px;
    width: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.brand-logo-card:hover img { filter: grayscale(0); }

/* Clients Swiper */
.clients-swiper { padding: 10px 0 30px !important; }

/* ===========================
   ABOUT PAGE
   =========================== */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 { color: white; }

.about-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

.timeline { position: relative; padding: 20px 0; }

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.rtl .timeline-item { padding-right: 0; padding-left: calc(50% + 40px); }
.rtl .timeline-item:nth-child(even) { padding-left: 0; padding-right: calc(50% + 40px); }

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary);
    z-index: 1;
}

.timeline-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    max-width: 380px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.timeline-card:hover { box-shadow: var(--shadow-md); }

.timeline-year {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Service Feature Box */
.feature-box {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    align-items: flex-start;
}

.feature-box:hover { box-shadow: var(--shadow-md); }

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.feature-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   ABOUT PAGE — SERVICE & PROJECT CARDS
   =========================== */
.service-card-full {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card-full:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-icon-lg {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.project-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.project-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ===========================
   ABOUT PAGE — STAT CARDS (Goals Section)
   =========================== */
.about-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-height: 130px;
}

.about-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.about-stat-card .stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-number-lg {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}

/* ===========================
   PRODUCTS PAGE
   =========================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--secondary) 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero h1 { color: white; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-hero p { color: rgba(255,255,255,0.85); }

/* Category Filter */
.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===========================
   CAREER PAGE
   =========================== */
.career-hero {
    position: relative;
    overflow: hidden;
    background: var(--primary);
}

.career-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.3;
}

.career-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.job-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}

.rtl .job-card { border-left: none; border-right: 4px solid var(--primary); }

.job-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.rtl .job-card:hover { transform: translateX(-4px); }

.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

.job-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }

.job-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.job-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-type { background: rgba(10,61,98,0.1); color: var(--primary); }
.badge-location { background: rgba(0,137,123,0.1); color: var(--accent); }
.badge-dept { background: rgba(30,136,229,0.1); color: var(--secondary); }

.job-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.job-meta-item { display: flex; align-items: center; gap: 4px; }

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.contact-info-text { flex: 1; }
.contact-info-text h6 { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 3px; }
.contact-info-text a, .contact-info-text p { font-size: 0.95rem; color: var(--text-dark); font-weight: 600; margin: 0; }

.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.92rem;
    transition: var(--transition);
    color: var(--text-dark);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,61,98,0.1);
    outline: none;
}

.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 6px; }

/* ===========================
   OFFERS
   =========================== */
.offer-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.offer-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--off-white);
    position: relative;
}

.offer-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.offer-card:hover .offer-card-img img { transform: scale(1.08); }

.offer-ribbon {
    position: absolute;
    top: 16px;
    right: -30px;
    background: var(--danger);
    color: white;
    padding: 6px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.offer-card-body { padding: 20px; }

.offer-validity {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

/* ===========================
   EDUCATION
   =========================== */
.education-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.education-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.education-card-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ===========================
   EDUCATION GALLERY
=========================== */
.edu-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.edu-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.edu-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edu-gallery-item:hover img {
    transform: scale(1.08);
}

.edu-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 61, 98, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.edu-gallery-item:hover .edu-gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .edu-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .edu-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

.type-workshop { background: rgba(30,136,229,0.1); color: var(--secondary); }
.type-seminar { background: rgba(0,137,123,0.1); color: var(--accent); }
.type-course { background: rgba(10,61,98,0.1); color: var(--primary); }
.type-certification { background: rgba(245,124,0,0.1); color: var(--warning); }
.type-training { background: rgba(46,125,50,0.1); color: var(--success); }

/* ===========================
   ADMIN STYLES
   =========================== */
.admin-body {
    background: #f0f2f5;
    min-height: 100vh;
    font-family: var(--font-en);
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.admin-sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.admin-sidebar-logo-text { color: white; }
.admin-sidebar-logo-text .brand { font-size: 1rem; font-weight: 800; line-height: 1; }
.admin-sidebar-logo-text .sub { font-size: 0.7rem; color: rgba(255,255,255,0.6); }

.admin-nav { padding: 16px 0; }

.admin-nav-section {
    padding: 8px 16px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border-radius: 0;
    margin: 1px 8px;
    border-radius: 8px;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,0.12);
    color: white;
    padding-left: 24px;
}

.admin-nav-link .nav-icon {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}

.admin-nav-link:hover .nav-icon, .admin-nav-link.active .nav-icon { color: white; }

.admin-nav-link .badge {
    margin-left: auto;
    background: var(--danger);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin 0.3s ease;
}

.admin-header {
    background: white;
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-header-title h4 { font-size: 1.1rem; margin: 0; color: var(--primary); font-weight: 700; }
.admin-header-title small { font-size: 0.78rem; color: var(--text-muted); }

.admin-header-actions { display: flex; align-items: center; gap: 12px; }

.admin-content { padding: 24px; }

/* Admin Cards */
.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.stat-card-info { flex: 1; }
.stat-card-number { font-size: 1.8rem; font-weight: 900; color: var(--text-dark); line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

.bg-gradient-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.bg-gradient-secondary { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%); }
.bg-gradient-accent { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); }
.bg-gradient-warning { background: linear-gradient(135deg, #f57c00 0%, #ffa726 100%); }
.bg-gradient-danger { background: linear-gradient(135deg, #e53935 0%, #ef5350 100%); }
.bg-gradient-success { background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%); }

/* Admin Table */
.admin-table {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table table { margin: 0; }
.admin-table .table th {
    background: var(--off-white);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border: none;
    padding: 14px 16px;
    white-space: nowrap;
}

.admin-table .table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    vertical-align: middle;
    border-color: var(--border);
    color: var(--text-dark);
}

.admin-table .table tbody tr:hover { background: rgba(10,61,98,0.02); }

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-header h5 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--primary); }

.admin-card-body { padding: 20px; }

/* Admin Login */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.admin-login-logo { text-align: center; margin-bottom: 30px; }
.admin-login-logo img { width: 70px; height: 70px; border-radius: 50%; }

/* ===========================
   PAGE BREADCRUMB
   =========================== */
.breadcrumb-section {
    background: var(--off-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb { margin: 0; font-size: 0.83rem; }
.breadcrumb-item a { color: var(--secondary); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===========================
   ALERTS
   =========================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(46,125,50,0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(229,57,53,0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* ===========================
   PAGINATION
   =========================== */
.pagination .page-link {
    border-radius: var(--radius-sm);
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 14px;
    margin: 0 2px;
    transition: var(--transition-fast);
}

.pagination .page-link:hover { background: var(--primary); color: white; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ===========================
   BACK TO TOP
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.rtl .back-to-top { right: auto; left: 24px; }

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   FOOTER
   =========================== */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
}

.footer-top { padding: 60px 0 40px; }

.footer-widget { margin-bottom: 20px; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-img {
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}
.footer-tagline-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-style: italic;
    margin-bottom: 8px;
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-main { font-size: 1.2rem; font-weight: 900; color: white; font-family: var(--font-ar); }
.footer-brand-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; text-transform: uppercase; }

.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-social { display: flex; gap: 8px; }
.footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.rtl .footer-title::after { left: auto; right: 0; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover { color: white; padding-left: 5px; }
.rtl .footer-links a:hover { padding-left: 0; padding-right: 5px; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}

.footer-contact-list li i {
    color: var(--secondary);
    margin-top: 3px;
    min-width: 16px;
}

.footer-contact-list a { color: rgba(255,255,255,0.75); transition: var(--transition-fast); }
.footer-contact-list a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
}

.footer-credit { color: rgba(255,255,255,0.3); }

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary-light { background: var(--off-white); }
.border-primary { border-color: var(--primary) !important; }

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

.overflow-hidden { overflow: hidden; }

/* Line clamp utilities */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===========================
   RESPONSIVE — Mobile First
   =========================== */

/* ---- Tablet & below (≤991px) ---- */
@media (max-width: 991.98px) {
    /* Admin sidebar */
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }

    /* Hero */
    .hero-swiper { height: 65vh; }
    .hero-content { left: 5%; max-width: 85%; }
    .rtl .hero-content { right: 5%; left: auto; }

    /* Collapsed navbar: give a solid dark background when navbar is transparent
       (on video hero page) so links are readable over the video background.
       Applies to all screen sizes where the hamburger menu is shown (< 992px). */
    .main-navbar.navbar-transparent .navbar-collapse.show,
    .main-navbar.navbar-transparent .navbar-collapse.collapsing {
        background: rgba(5, 30, 55, 0.96);
        border-radius: var(--radius-md);
        padding: 12px 8px;
        margin-top: 8px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }
    .main-navbar.navbar-transparent .navbar-collapse.show .nav-link {
        color: rgba(255,255,255,0.92) !important;
    }
    .main-navbar.navbar-transparent .navbar-collapse.show .nav-link:hover,
    .main-navbar.navbar-transparent .navbar-collapse.show .nav-link.active {
        background: rgba(255,255,255,0.12);
        color: #fff !important;
    }
    .main-navbar.navbar-transparent .navbar-collapse.show .dropdown-menu:not(.mega-menu-full) {
        background: rgba(5, 30, 55, 0.7);
        border-color: rgba(255,255,255,0.15);
    }
    .main-navbar.navbar-transparent .navbar-collapse.show .dropdown-item {
        color: rgba(255,255,255,0.85);
    }
    .main-navbar.navbar-transparent .navbar-collapse.show .dropdown-item:hover {
        background: rgba(255,255,255,0.12);
        color: #fff;
        border-left: none;
        padding-left: 16px;
    }
    .main-navbar.navbar-transparent .navbar-collapse.show .nav-cta {
        background: rgba(255,255,255,0.18) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        color: #fff !important;
    }

    /* Timeline */
    .timeline::before { display: none; }
    .timeline-item, .timeline-item:nth-child(even) { padding: 0; justify-content: flex-start; width: 100%; }
    .rtl .timeline-item, .rtl .timeline-item:nth-child(even) { padding: 0; }
    .timeline-dot { display: none; }
    .timeline-card { max-width: 100%; width: 100%; }

    /* RTL admin sidebar */
    .rtl .admin-sidebar { transform: translateX(100%); }
    .rtl .admin-sidebar.show { transform: translateX(0); }

    /* Fix Bootstrap g-5 row overflow at tablet */
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767.98px) {
    /* Responsive layout heights */
    :root {
        --topbar-height: 34px;
        --navbar-height: 60px;
        --header-total: calc(var(--topbar-height) + var(--navbar-height));
    }

    /* Critical: fix Bootstrap row negative margin overflow
       g-5 = 3rem gutter → -1.5rem margin, container only has 0.75rem padding → 0.75rem bleed */
    .row {
        margin-left: calc(-.5 * var(--bs-gutter-x, 0.75rem));
        margin-right: calc(-.5 * var(--bs-gutter-x, 0.75rem));
    }
    .row.g-5 { --bs-gutter-x: 1rem; --bs-gutter-y: 1.5rem; }
    .row.g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }

    /* Prevent AOS horizontal translate from creating scrollable space */
    [data-aos="fade-right"],
    [data-aos="fade-left"] {
        transform: none !important;
        opacity: 1 !important;
    }
    [data-aos="fade-up"] { transform: translateY(20px); }

    /* Sections */
    .section { padding: 48px 0; }

    /* Top bar: hide non-essential items, prevent overflow */
    .top-bar {
        font-size: 0.78rem;
        padding: 6px 0;
        /* Keep fixed, just reduce padding/font for mobile */
    }
    .top-bar .container > div {
        flex-wrap: wrap;
        gap: 4px !important;
    }
    .top-bar-contact { flex-wrap: wrap; gap: 6px !important; }

    /* Navbar */
    .main-navbar { padding: 8px 0; }
    .navbar-logo { height: 44px; }
    .navbar-collapse { margin-top: 10px; }
    .main-navbar .nav-link { padding: 10px 14px !important; border-radius: var(--radius-sm); }
    .nav-cta { text-align: center; margin-top: 6px; }

    /* Hero */
    .hero-swiper { height: auto; min-height: 60vh; }
    .hero-content { left: 0 !important; right: 0 !important; max-width: 100%; padding: 0 20px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    /* Hero static fallback */
    .hero-static { padding: 80px 0 60px; }

    /* Section titles */
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9rem; }

    /* Stats */
    .stat-number { font-size: 2rem; }
    .stat-number-lg { font-size: 1.5rem; }

    /* About stat cards: reduce padding on small screens */
    .about-stat-card { padding: 16px 10px !important; gap: 6px !important; }

    /* Cards */
    .product-card, .activity-card, .education-card { margin-bottom: 16px; }
    .service-card-full { flex-direction: column; gap: 14px; }

    /* About page components */
    .team-card { padding: 20px 16px; }
    .project-card { padding: 20px; }
    .about-logo-showcase { padding: 24px !important; }
    .about-logo-showcase img { max-width: 200px !important; }

    /* Feature boxes: stack vertically */
    .feature-box { gap: 12px; padding: 16px; }

    /* Filter buttons */
    .category-filter { gap: 6px; flex-wrap: wrap; }
    .filter-btn { padding: 6px 12px; font-size: 0.78rem; }

    /* Company profile image: reduce height on mobile */
    .company-profile-img { height: 250px !important; }

    /* Footer */
    .main-footer .footer-logo-img { height: 44px; }
    .footer-widget { text-align: center; }
    .footer-links { padding: 0; }
    .footer-contact-list li { justify-content: center; }
    .footer-social { justify-content: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .rtl .footer-title::after { left: 50%; right: auto; transform: translateX(-50%); }

    /* Back to top */
    .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }

    /* Dropdowns (exclude mega menu – handled separately) */
    .dropdown-menu:not(.mega-menu-full) { position: static !important; transform: none !important; box-shadow: none; border: 1px solid var(--border); }

    /* Admin */
    .admin-login-card { padding: 24px; }
    .job-card-header { flex-direction: column; gap: 8px; }
    .contact-card { padding: 20px; }
}

/* ---- Small mobile (≤575px) ---- */
@media (max-width: 575.98px) {
    /* Hard clamp: nothing bleeds out at all */
    .container { padding-left: 14px; padding-right: 14px; }
    .row { margin-left: -7px; margin-right: -7px; }
    .row > * { padding-left: 7px; padding-right: 7px; }
    .row.g-5 { --bs-gutter-x: 0.875rem; --bs-gutter-y: 1.25rem; }
    .row.g-4 { --bs-gutter-x: 0.875rem; --bs-gutter-y: 0.875rem; }
    .row.g-3 { --bs-gutter-x: 0.75rem;  --bs-gutter-y: 0.75rem; }

    /* Section padding */
    .section { padding: 40px 0; }

    /* Preloader */
    .preloader-logo img { height: 55px; }

    /* Top bar: simplify to single row */
    .top-bar .top-bar-contact .divider { display: none !important; }

    /* Hero heights for phones */
    .hero-swiper { min-height: 55vh; }
    .hero-content { padding: 0 16px; }
    .hero-title { font-size: 1.3rem; line-height: 1.3; }
    .hero-badge { font-size: 0.75rem; padding: 5px 12px; }

    /* Page hero */
    .page-hero { padding: 60px 0 40px; }
    .page-hero h1 { font-size: 1.5rem; }

    /* Breadcrumb */
    .breadcrumb-section { padding: 10px 0; }
    .breadcrumb { font-size: 0.8rem; flex-wrap: nowrap; overflow-x: auto; }

    /* Stats row: 2 per row */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Cards */
    .team-card .team-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
    .category-card { padding: 20px 12px; }
    .category-card-title { font-size: 0.82rem; }

    /* Value pills: wrap properly */
    .value-pill { font-size: 0.78rem; padding: 6px 12px; }

    /* Tables in admin */
    .admin-table { font-size: 0.82rem; }

    /* Ensure images don't overflow */
    img { max-width: 100%; height: auto; }

    /* Swiper navigation arrows */
    .swiper-button-next, .swiper-button-prev { display: none; }

    /* Footer columns: full width on tiny phones */
    .main-footer .col-lg-4,
    .main-footer .col-lg-2,
    .main-footer .col-lg-3 { min-width: 0; }
}

/* ---- Very small screens (≤380px) ---- */
@media (max-width: 380px) {
    .hero-title { font-size: 1.15rem; }
    .navbar-logo { height: 38px; }
    .section-title { font-size: 1.3rem; }
    .stat-mini .stat-number { font-size: 1.5rem; }
    .container { padding-left: 10px; padding-right: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CATEGORIES — Main Cards & Subcategory Sidebar
   ═══════════════════════════════════════════════════════════ */

/* ── Main Category Card (index page) ── */
.main-cat-card {
    border-radius: 14px;
    border: 1px solid #e0eaf4;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.main-cat-card:hover { box-shadow: 0 8px 28px rgba(10,61,98,.12); transform: translateY(-3px); }

.main-cat-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 16px;
    background: linear-gradient(135deg,#051e37 0%,#0a3d62 100%);
    text-decoration: none;
    color: #fff;
    transition: opacity .2s;
}
.main-cat-card-header:hover { opacity: .92; color: #fff; }
.main-cat-icon  { font-size: 1.7rem; color: #1FA99E; flex-shrink: 0; }
.main-cat-title { font-size: 1.05rem; font-weight: 700; margin: 0; }

.sub-cat-list {
    list-style: none;
    margin: 0; padding: 10px 0;
    border-top: 1px solid #e0eaf4;
}
.sub-cat-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    color: #3a5068;
    font-size: .875rem;
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
}
.sub-cat-list li a:hover { background: #f0f7ff; color: #0a3d62; padding-left: 28px; }
.sub-cat-arrow { font-size: .65rem; color: #1FA99E; }

/* ── Category Sidebar (category page) ── */
.cat-sidebar {
    background: #fff;
    border: 1px solid #e0eaf4;
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 130px;
}
.cat-sidebar-title {
    background: linear-gradient(135deg,#051e37,#0a3d62);
    color: #fff;
    padding: 16px 20px;
    margin: 0;
    font-size: .9rem;
    letter-spacing: .3px;
}
.cat-sidebar-main { border-bottom: 1px solid #eef3f8; }
.cat-sidebar-main-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: #2c3e50;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.cat-sidebar-main-link:hover,
.cat-sidebar-main-link.active { background: #f0f7ff; color: #0a3d62; }
.cat-sidebar-arrow { transition: transform .25s; font-size: .7rem; }
.cat-sidebar-main.open .cat-sidebar-arrow { transform: rotate(180deg); }

.cat-sidebar-subs {
    list-style: none;
    margin: 0; padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #fafcff;
}
.cat-sidebar-subs.show { max-height: 600px; }
.cat-sidebar-subs li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 30px;
    color: #4a6074;
    font-size: .83rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.cat-sidebar-subs li a:hover,
.cat-sidebar-subs li a.active { background: #e8f4fd; color: #0a3d62; font-weight: 600; }

/* ── Subcategory Cards (main category with no products) ── */
.sub-cat-card-link { text-decoration: none; display: block; }

/* sub-cat-list level 3 (index page) */
.sub-cat-list--l3 {
    margin: 2px 0 0 16px;
    padding-left: 8px;
    border-left: 2px solid #dde8f5;
}
.sub-cat-list--l3 li a {
    font-size: .78rem;
    color: #7a90a6;
    padding: 3px 0;
}
.sub-cat-list--l3 li a:hover { color: #0a3d62; }

.sub-cat-card {
    border: 1px solid #e0eaf4;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.sub-cat-card:hover { box-shadow: 0 6px 20px rgba(10,61,98,.1); transform: translateY(-2px); }
.sub-cat-card-icon { font-size: 2.2rem; color: #1FA99E; }
.sub-cat-card h6 { color: #0a3d62; }
.bg-primary-soft { background: rgba(10,61,98,.08) !important; }

/* ═══════════════════════════════════════════════════════════
   MEGA MENU — anchored to navbar, full-width, scrollable on mobile
   ═══════════════════════════════════════════════════════════ */

/* 1 ─ Navbar container is the positioning parent */
.main-navbar { overflow: visible !important; }
.main-navbar > .container { position: relative; }

/* 2 ─ The nav-item itself must NOT create a stacking context */
.mega-nav-item { position: static !important; }

/* 3 ─ Mega menu stretches across the full navbar container */
.mega-menu-full {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    border-radius: 14px;
    border: none;
    box-shadow: 0 16px 48px rgba(5,30,55,.18);
    overflow: hidden;
    margin: 0 !important;
    z-index: 9900;
}
.mega-menu-header {
    background: linear-gradient(135deg,#051e37,#0a3d62);
    min-height: 44px;
}
.mega-menu-body {
    background: #fff;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.mega-col {
    padding: 10px 6px;
    border-right: 1px solid #eef3f8;
    display: flex;
    flex-direction: column;
}
.mega-col:last-child { border-right: none; }

.mega-main-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .8rem;
    color: #0a3d62;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.mega-main-link:hover { background: #f0f7ff; color: #0a3d62; }
.mega-main-link i { font-size: .9rem; flex-shrink: 0; }

.mega-sub-list {
    list-style: none;
    margin: 2px 0 4px;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 240px;
    scrollbar-width: thin;
    scrollbar-color: #d0dce8 transparent;
}
.mega-sub-list::-webkit-scrollbar { width: 4px; }
.mega-sub-list::-webkit-scrollbar-track { background: transparent; }
.mega-sub-list::-webkit-scrollbar-thumb { background: #c8d8e8; border-radius: 4px; }

.mega-sub-list li a {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 5px 10px 5px 12px;
    font-size: .75rem;
    color: #4a6074;
    text-decoration: none;
    border-radius: 6px;
    transition: background .12s, color .12s;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}
.mega-sub-list li a i { margin-top: 3px; flex-shrink: 0; }
.mega-sub-list li a:hover { background: #f5faff; color: #0a3d62; font-weight: 600; }

/* ── RTL: mirror the absolute position so menu aligns to the right edge ── */
body.rtl .mega-menu-full,
[dir="rtl"] .mega-menu-full {
    left: 0 !important;
    right: 0 !important;
}

/* ── Mobile mega menu: block-level, scrollable ── */
@media (max-width: 991.98px) {
    .mega-nav-item { position: relative !important; }
    .mega-menu-full {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 6px 20px rgba(5,30,55,.12);
        max-height: 65vh;
        overflow-y: auto !important;
        overflow-x: hidden;
    }
    .mega-menu-body {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
    }
    .mega-col { border-bottom: 1px solid #eef3f8; }
    .mega-sub-list { max-height: none; overflow-y: visible; }
}
@media (max-width: 575.98px) {
    .mega-menu-body { grid-template-columns: 1fr; }
    .mega-menu-full { max-height: 70vh; }
}


/* ── Mega Menu Level 3 (sub-subcategories) ── */
.mega-sub3-list {
    list-style: none;
    margin: 1px 0 3px 10px;
    padding: 0;
    border-left: 2px solid #e8f0f8;
}
.mega-sub3-list li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    font-size: .72rem;
    color: #6a7f94;
    text-decoration: none;
    border-radius: 4px;
    transition: background .12s, color .12s;
    line-height: 1.3;
}
.mega-sub3-list li a:hover { background: #f0f7ff; color: #0a3d62; font-weight: 600; }

/* ── Category Sidebar Level 3 ── */
.cat-sidebar-sub3 {
    list-style: none;
    padding: 0;
    margin: 0 0 2px 12px;
    border-left: 2px solid #e0eaf4;
}
.cat-sidebar-sub3 li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 10px;
    font-size: .74rem;
    color: #7a8fa0;
    text-decoration: none;
    border-radius: 4px;
    transition: background .12s, color .12s;
}
.cat-sidebar-sub3 li a:hover,
.cat-sidebar-sub3 li a.active {
    background: #f0f7ff;
    color: #0a3d62;
    font-weight: 600;
}
/* ═══════════════════════════════════════════════════════════
   BRAND LOGO — Hover overlay linking to product category
   ═══════════════════════════════════════════════════════════ */
.brand-logo-link { text-decoration: none; display: block; }

.brand-logo-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e0eaf4;
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    transition: box-shadow .25s, transform .25s;
}
.brand-logo-card:hover { box-shadow: 0 8px 28px rgba(10,61,98,.14); transform: translateY(-3px); }

.brand-logo-card img { max-height: 60px; max-width: 100%; object-fit: contain; transition: opacity .25s; }
.brand-logo-card:hover img { opacity: .15; }

.brand-logo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    background: linear-gradient(135deg,rgba(10,61,98,.9),rgba(31,169,158,.9));
    border-radius: 11px;
}
.brand-logo-card:hover .brand-logo-overlay { opacity: 1; }
.brand-logo-overlay span {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
    padding: 0 10px;
}
