:root {
    /* Color Palette - Light Mode (Default) */
    --primary-color: #003366;
    --primary-light: #0056b3;
    --secondary-color: #b30000;
    --secondary-light: #e60000;
    --bg-body: #f8f9fc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-main: #1a1a2e;
    --text-muted: #6c757d;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #b30000 0%, #ff3333 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    /* Color Palette - Dark Mode */
    --primary-color: #4da6ff;
    --primary-light: #80bfff;
    --secondary-color: #ff4d4d;
    --secondary-light: #ff8080;
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    margin: 0;
}

[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--shadow-md);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Animation Utilities */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.hover-scale {
    transition: transform 0.5s ease;
}

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

.hover-translate-up {
    transition: transform 0.3s ease;
}

.hover-translate-up:hover {
    transform: translateY(-3px);
}

.tracking-wide {
    letter-spacing: 2px;
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* Typography & General */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

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

/* Navbar */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .navbar-brand {
    color: var(--white) !important;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.nav-link.dropdown-toggle::after {
    width: 0 !important;
    background: transparent !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: #0f172a;
    font-weight: 700;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(179, 0, 0, 0.3);
    color: #fff;
}

/* Theme Toggle */
.theme-switch {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switch:hover {
    background: var(--bg-surface);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #003366, #002244, #1a1a2e, #001122);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    /* Premium Gradient & Texture */
    background: linear-gradient(
        to bottom,
        rgba(0, 51, 102, 0.7) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    background-image: 
        linear-gradient(to bottom, rgba(0, 51, 102, 0.75) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px;
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Glass Effect */
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .carousel-item {
    background: #06132b;
}

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

.hero-slide-item::before {
    content: "";
    position: absolute;
    inset: -6%;
    background-image: var(--hero-slide-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(22px);
    transform: scale(1.08);
    opacity: 0.6;
}

.hero-slide-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 24px);
}

.hero-slide-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.28));
}

/* Cards & Services */
.service-card {
    background: var(--bg-surface);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Candidate Cards */
.candidate-card {
    background: var(--bg-surface);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.candidate-img-wrapper {
    position: relative;
    overflow: hidden;
}

.candidate-img-wrapper img {
    transition: transform 0.5s ease;
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-surface);
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    position: relative;
}

/* Footer text to white override */
footer.bg-dark .text-secondary,
footer.bg-dark a.text-secondary,
footer.bg-dark .list-unstyled a,
footer.bg-dark p.text-secondary,
footer .hover-text-white:hover {
    color: #ffffff !important;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
}

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

/* Image Overlay & Hover Buttons */
.candidate-img-container {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.x-small {
    font-size: 0.7rem;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 10;
}

.candidate-img-container:hover .img-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 45px;
    height: 45px;
    background-color: #3b82f6; /* Blue color */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.overlay-btn:hover {
    transform: scale(1.15);
    background-color: #2563eb;
    color: white;
}

/* Text Gradients & Utilities */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-transparent-gradient {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.hover-scale-sm {
    transition: transform 0.3s ease;
}
.hover-scale-sm:hover {
    transform: scale(1.02);
}

.hover-bg-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.hover-bg-danger:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.hover-bg-success:hover {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.partners-scroller {
    overflow: hidden;
    width: 100%;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 100px;
    width: max-content;
    animation: partnersScroll 22s linear infinite;
    padding: 10px 0;
}

.partner-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .partner-pill {
    background: rgba(30,41,59,0.6);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.partner-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.partner-logo {
    height: 60px;
    width: auto;
    filter: grayscale(30%) opacity(0.95);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%) opacity(1);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
    .partner-logo {
        height: 45px;
    }
    .partners-track {
        gap: 60px;
        animation-duration: 26s;
    }
    .partner-pill {
        padding: 8px 14px;
        border-radius: 14px;
    }
}

/* Colorful theme for Success Partners */
#success-partners {
    background: #ffffff;
    position: relative;
    margin-top: 1.25rem;
}

#success-partners .partners-glass {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.partners-title {
    background: linear-gradient(90deg, #b8860b 0%, #d4af37 35%, #ffd700 50%, #d4af37 65%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(184, 134, 11, 0.25);
}

.partners-title::after {
    content: "";
    display: block;
    height: 4px;
    width: 120px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.partners-subtitle {
    color: var(--text-main);
    opacity: 0.85;
}

@media (min-width: 992px) {
    #success-partners {
        margin-top: 2rem;
    }
}

.partners-scroller:hover .partners-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

.stats-section {
    position: relative;
}

.stats-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 90%);
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0) 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.stats-section > .container {
    position: relative;
    z-index: 1;
}

.stats-section .glass-card {
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.22), 0 4px 10px rgba(0,0,0,0.12);
}

.stats-section .glass-card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.30), 0 8px 18px rgba(0,0,0,0.18);
}

/* Home Premium Motion */
.page-home.home-premium-page {
    --home-pointer-x: 50%;
    --home-pointer-y: 35%;
    --home-scroll-depth: 0px;
}

.page-home.home-premium-page .home-hero {
    isolation: isolate;
}

.page-home.home-premium-page .home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--home-pointer-x) 18%, rgba(255, 213, 128, 0.14), transparent 20%),
        radial-gradient(circle at 82% 82%, rgba(77, 166, 255, 0.16), transparent 24%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

.page-home.home-premium-page .hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), transparent 45%),
        radial-gradient(circle at var(--home-pointer-x) var(--home-pointer-y), rgba(255,255,255,0.12), transparent 28%);
    opacity: 0.9;
    pointer-events: none;
}

.page-home.home-premium-page .home-hero-content {
    transform: translateY(calc(var(--home-scroll-depth) * -0.16));
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.page-home.home-premium-page .home-premium-section {
    position: relative;
    isolation: isolate;
}

.page-home.home-premium-page #packages,
.page-home.home-premium-page #services {
    padding-top: 2.5rem !important;
    overflow: visible !important;
}

.page-home.home-premium-page #packages .container,
.page-home.home-premium-page #services .container,
.page-home.home-premium-page #packages .row,
.page-home.home-premium-page #services .row {
    overflow: visible;
}

.page-home.home-premium-page #packages .home-premium-card {
    margin-top: -0.45rem;
}

.page-home.home-premium-page #services .home-premium-card {
    margin-top: 0.35rem;
}

.page-home.home-premium-page .home-premium-section::before {
    content: "";
    position: absolute;
    inset: 10% 6% auto;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 204, 0.06), rgba(179, 0, 0, 0.02) 48%, transparent 72%);
    filter: blur(34px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.page-home.home-premium-page .home-premium-section > .container {
    position: relative;
    z-index: 1;
}

.page-home.home-premium-page .home-premium-card {
    --card-reveal-y: 26px;
    --card-lift: 0px;
    --card-scale: 1;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform:
        perspective(1200px)
        translate3d(0, calc(var(--card-reveal-y) + var(--card-lift)), 0)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale(var(--card-scale));
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        filter 0.35s ease;
    transition-delay: calc(var(--stagger-index, 0) * 70ms);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.page-home.home-premium-page .home-premium-card.is-visible {
    opacity: 1;
    --card-reveal-y: 0px;
}

.page-home.home-premium-page .home-premium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 15%, rgba(255,255,255,0.16) 50%, transparent 85%),
        radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,255,255,0.16), transparent 34%);
    opacity: 0;
    transform: translateX(-12%);
    transition: opacity 0.35s ease, transform 0.45s ease;
    pointer-events: none;
}

.page-home.home-premium-page .home-premium-card:hover {
    --card-lift: -10px;
    --card-scale: 1.012;
    filter: saturate(1.04);
    box-shadow:
        0 28px 56px rgba(15, 23, 42, 0.14),
        0 14px 28px rgba(0, 51, 102, 0.1) !important;
}

.page-home.home-premium-page .home-premium-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.page-home.home-premium-page .home-premium-tilt {
    transform-style: preserve-3d;
}

.page-home.home-premium-page .stats-section .home-premium-card h2,
.page-home.home-premium-page #packages .home-premium-card h5,
.page-home.home-premium-page #services .home-premium-card h4 {
    transition: transform 0.35s ease, letter-spacing 0.35s ease, color 0.35s ease;
}

.page-home.home-premium-page .home-premium-card:hover h2,
.page-home.home-premium-page .home-premium-card:hover h4,
.page-home.home-premium-page .home-premium-card:hover h5 {
    transform: translateY(-2px);
    letter-spacing: 0.01em;
}

.page-home.home-premium-page .btn,
.page-home.home-premium-page .badge,
.page-home.home-premium-page .partner-pill,
.page-home.home-premium-page .feature-item,
.page-home.home-premium-page .accordion-item {
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease,
        background-color 0.32s ease,
        border-color 0.32s ease,
        color 0.32s ease,
        opacity 0.32s ease;
}

.page-home.home-premium-page .btn:hover,
.page-home.home-premium-page .partner-pill:hover,
.page-home.home-premium-page .feature-item:hover,
.page-home.home-premium-page .accordion-item:hover {
    transform: translateY(-4px);
}

.page-home.home-premium-page .section-divider {
    transition: width 0.5s ease, box-shadow 0.5s ease;
}

.page-home.home-premium-page .home-premium-section:hover .section-divider,
.page-home.home-premium-page .section-header.is-visible .section-divider {
    width: 118px;
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.18);
}

.page-home.home-premium-page .partners-glass,
.page-home.home-premium-page .section-shell.home-premium-card,
.page-home.home-premium-page .glass-card.home-premium-card {
    border-color: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.page-home.home-premium-page .mohsen-faq .accordion-item {
    transform-origin: center top;
}

@media (prefers-reduced-motion: reduce) {
    .page-home.home-premium-page .home-hero-content,
    .page-home.home-premium-page .home-premium-card,
    .page-home.home-premium-page .btn,
    .page-home.home-premium-page .badge,
    .page-home.home-premium-page .partner-pill,
    .page-home.home-premium-page .feature-item,
    .page-home.home-premium-page .accordion-item,
    .page-home.home-premium-page .section-divider {
        transition: none !important;
        transform: none !important;
    }

    .page-home.home-premium-page .home-hero::after,
    .page-home.home-premium-page .hero-overlay::after,
    .page-home.home-premium-page .home-premium-section::before,
    .page-home.home-premium-page .home-premium-card::after {
        display: none !important;
    }

    .page-home.home-premium-page .home-premium-card {
        opacity: 1 !important;
    }
}

@keyframes flyRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(500%); /* Fly well past the container */
        opacity: 0;
    }
}

.plane-animation {
    position: absolute;
    top: 60%; /* Adjusted to user preference */
    left: 0;
    z-index: 10;
    animation: flyRight 20s linear infinite; /* Much slower speed */
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.saudi-plane-img {
    width: 250px; /* Adjust size for a real plane look */
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); /* Realistic shadow */
    transform: rotate(0deg); /* Level flight */
}

.hover-text-white:hover {
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-surface);
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }
    
    /* Fix for headers with inline styles in About/Contact/etc */
    header.position-relative {
        min-height: auto !important;
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-section {
        min-height: 50vh !important;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 100% !important;
    }
    
    .hero-slide-stage {
        padding: 16px;
    }

    .hero-section .carousel-item img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: calc(100% - 32px) !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    
    /* About Page Floating Card Mobile Fix */
    .col-lg-6 .position-relative .glass-card.position-absolute {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin: 1rem auto !important;
        max-width: 100% !important;
        transform: none !important;
        animation: none !important;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .plane-animation {
        display: none;
    }
    
    .position-absolute.top-50.start-0.translate-middle {
        display: none !important; /* Hide floating decorative elements that might overflow */
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
    }
    
    .hero-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .glass-card {
        margin-bottom: 1rem;
    }
    
    .hero-section {
        min-height: 42vh !important;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .hero-overlay {
        backdrop-filter: blur(0.5px);
        -webkit-backdrop-filter: blur(0.5px);
    }
    
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 100% !important;
    }
    
    .hero-slide-stage {
        padding: 12px;
    }

    .hero-section .carousel-item img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: calc(100% - 24px) !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    
    /* CV Packages Sidebar */
    .sticky-top {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    /* Stats Section */
    section.py-5.mt-n5 {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
    
    /* Footer */
    footer .col-lg-4, footer .col-lg-2, footer .col-lg-3 {
        text-align: center;
    }
    
    footer .d-flex.gap-3 {
        justify-content: center;
    }
    
    /* Adjust margins for stacked columns */
    .col-md-4, .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Login Page Adjustments */
    .login-container {
        padding: 1rem;
    }
    
    /* Mobile Brand Name Fix */
    .navbar-brand {
        white-space: normal !important; /* Allow wrapping */
        font-size: 1rem;
        max-width: 75%; /* Ensure it doesn't overlap toggler too much */
        display: flex !important;
        align-items: center;
    }

    .brand-text {
        display: block;
        font-size: 0.85rem;
        line-height: 1.2;
        font-weight: 700;
        margin-left: 0.5rem;
    }
    
    .navbar-brand img {
        height: 40px; 
        width: auto;
        margin-right: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .sticky-lg-top-custom {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        margin-bottom: 1.25rem;
    }
    .glass-card {
        padding: 1rem !important;
    }
    .display-4 {
        font-size: 2rem !important;
    }
    .display-5 {
        font-size: 1.6rem !important;
    }
    .service-icon-wrapper {
        width: 72px !important;
        height: 72px !important;
    }
    .stats-section .display-4 {
        font-size: 1.8rem !important;
    }
    .gif-box {
        height: 240px !important;
    }
}

@media (max-width: 575.98px) {
    .display-2 {
        font-size: 2rem !important;
    }
    .lead.fs-4 {
        font-size: 1rem !important;
    }
    .hero-content .badge {
        padding: 0.5rem 1rem !important;
    }
    .gif-box {
        height: 220px !important;
    }
}

/* Compact page headers on mobile (CV Packages, About, Contact) */
@media (max-width: 767.98px){
    header.mini-hero{
        min-height: 3.5vh !important; /* ultra compact */
        padding-top: 0.5rem !important;
        padding-bottom: 0.4rem !important;
    }
    header.mini-hero h1,
    header.mini-hero .display-3{
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
        margin-bottom: .2rem !important;
    }
    header.mini-hero .breadcrumb{
        padding: .12rem .5rem !important;
        font-size: .68rem !important;
    }
}

/* Shared Editorial / SEO Sections */
.mohsen-section {
    position: relative;
    overflow: hidden;
}

.mohsen-section .container {
    position: relative;
    z-index: 1;
}

.mohsen-section-soft {
    background:
        radial-gradient(circle at top left, rgba(0, 102, 204, 0.08), transparent 32%),
        radial-gradient(circle at bottom right, rgba(179, 0, 0, 0.08), transparent 30%),
        var(--bg-body);
}

.mohsen-section-light {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98)),
        var(--bg-surface);
}

[data-theme="dark"] .mohsen-section-light {
    background:
        linear-gradient(180deg, rgba(30,41,59,0.96), rgba(30,41,59,0.98)),
        var(--bg-surface);
}

.section-shell {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.section-shell-soft {
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cv-packages-intro-shell {
    background:
        radial-gradient(circle at top right, rgba(255, 228, 138, 0.45), transparent 34%),
        radial-gradient(circle at bottom left, rgba(196, 138, 30, 0.20), transparent 36%),
        linear-gradient(145deg, rgba(255, 250, 233, 0.98), rgba(255, 239, 191, 0.94));
    border-color: rgba(184, 134, 11, 0.28);
    box-shadow: 0 22px 44px rgba(151, 106, 0, 0.14);
    position: relative;
    overflow: hidden;
}

.cv-packages-intro-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.52), transparent 45%, rgba(183, 137, 18, 0.08));
    pointer-events: none;
}

.cv-packages-intro-shell .section-badge {
    background: linear-gradient(135deg, rgba(255, 215, 64, 0.22), rgba(184, 134, 11, 0.14));
    color: #8a5a00;
    border-color: rgba(184, 134, 11, 0.26);
}

.cv-packages-intro-shell .section-badge i,
.cv-packages-intro-shell .section-title {
    color: #8a5a00;
}

.cv-packages-intro-shell .section-subtitle {
    color: #6f5a2a;
}

[data-theme="dark"] .section-shell-soft {
    background: linear-gradient(145deg, rgba(30,41,59,0.92), rgba(15,23,42,0.88));
}

[data-theme="dark"] .cv-packages-intro-shell {
    background:
        radial-gradient(circle at top right, rgba(245, 194, 66, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(120, 84, 10, 0.22), transparent 36%),
        linear-gradient(145deg, rgba(58, 44, 14, 0.96), rgba(35, 27, 9, 0.94));
    border-color: rgba(245, 194, 66, 0.24);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .cv-packages-intro-shell .section-badge,
[data-theme="dark"] .cv-packages-intro-shell .section-badge i,
[data-theme="dark"] .cv-packages-intro-shell .section-title {
    color: #ffd76a;
}

[data-theme="dark"] .cv-packages-intro-shell .section-subtitle {
    color: rgba(255, 239, 202, 0.82);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header.centered {
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: rgba(0, 51, 102, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.section-badge i {
    font-size: 0.95rem;
}

.section-title {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.8rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 760px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 0;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 92px;
    height: 4px;
    border-radius: 999px;
    background: var(--gradient-primary);
    margin-top: 1.15rem;
}

.section-header.centered .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.feature-panel {
    height: 100%;
    border-radius: 24px;
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-panel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 204, 0.22);
}

.feature-panel-highlight {
    background:
        linear-gradient(180deg, rgba(0, 51, 102, 0.03), transparent 35%),
        var(--bg-surface);
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(0, 51, 102, 0.035);
    border: 1px solid rgba(0, 51, 102, 0.08);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(0, 51, 102, 0.055);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .feature-item {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.feature-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.18);
}

.feature-item h3,
.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.feature-item p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.mohsen-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.mohsen-faq {
    display: grid;
    gap: 1rem;
}

.mohsen-faq .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 22px !important;
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mohsen-faq .accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 204, 0.2);
}

.mohsen-faq .accordion-button {
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
    padding: 1.25rem 1.4rem;
    font-size: 1rem;
    line-height: 1.6;
}

.mohsen-faq .accordion-button:not(.collapsed) {
    background: rgba(0, 51, 102, 0.04);
    color: var(--primary-color);
}

.mohsen-faq .accordion-button:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 102, 204, 0.18);
}

.mohsen-faq .accordion-body {
    padding: 0 1.4rem 1.35rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.mohsen-faq .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.info-card-grid {
    display: grid;
    gap: 1.25rem;
}

.info-card {
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.info-card-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: rgba(0, 51, 102, 0.08);
    color: var(--primary-color);
    font-size: 1.35rem;
}

.requirements-shell {
    background:
        radial-gradient(circle at top left, rgba(0, 102, 204, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84));
}

[data-theme="dark"] .requirements-shell {
    background:
        radial-gradient(circle at top left, rgba(77,166,255,0.12), transparent 28%),
        linear-gradient(145deg, rgba(30,41,59,0.95), rgba(15,23,42,0.88));
}

.requirements-toggle {
    display: inline-flex;
    gap: 0.65rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(0, 51, 102, 0.06);
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.requirements-toggle .nav-link {
    border-radius: 999px;
    border: none;
    color: var(--text-main);
    font-weight: 700;
    padding: 0.8rem 1.35rem;
}

.requirements-toggle .nav-link.active {
    background: var(--gradient-primary);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.22);
}

.requirements-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
}

.requirements-media img {
    display: block;
    width: 100%;
    height: auto;
}

.requirements-list {
    display: grid;
    gap: 1rem;
}

.requirements-step {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: rgba(0, 51, 102, 0.04);
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-radius: 18px;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.requirements-step:hover {
    transform: translateY(-3px);
    background: rgba(0, 51, 102, 0.06);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .requirements-step {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.07);
}

.requirements-step-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 51, 102, 0.1);
    color: var(--primary-color);
}

.requirements-step strong {
    line-height: 1.6;
}

.section-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .feature-panel,
    .feature-item,
    .mohsen-faq .accordion-item,
    .info-card,
    .requirements-step,
    .section-reveal {
        transition: none !important;
    }
}

@media (max-width: 991.98px) {
    .section-shell {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }
}

@media (max-width: 767.98px) {
    .section-shell {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .section-badge {
        font-size: 0.78rem;
        padding: 0.6rem 1rem;
    }

    .mohsen-actions {
        flex-direction: column;
    }

    .mohsen-actions .btn {
        width: 100%;
    }

    .requirements-toggle {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 22px;
    }

    .requirements-toggle .nav-link {
        width: 100%;
    }
}

/* Shared mobile resilience */
html {
    scroll-padding-top: 90px;
}

img,
svg,
iframe,
video {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.service-card,
.candidate-card,
.feature-panel,
.info-card,
.glass-card,
.section-shell,
.mohsen-faq .accordion-item,
.card {
    min-width: 0;
}

.mohsen-faq .accordion-button,
.feature-item,
.requirements-step,
.info-card,
.section-subtitle,
.text-muted,
.footer-contact-inline,
.footer-contact-stack {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-contact-list li {
    min-width: 0;
}

.contact-map-frame {
    display: block;
    width: 100%;
    border: 0;
}

.modal-dialog {
    margin: 1rem auto;
}

.modal-body iframe,
.modal-body img {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .navbar > .container {
        gap: 0.75rem;
    }

    .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .navbar-toggler {
        flex-shrink: 0;
    }

    .navbar-collapse {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .navbar-action-list {
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .navbar-action-list > .nav-item {
        width: 100%;
    }

    .navbar-action-list .btn,
    .navbar-action-list .theme-switch,
    .navbar-action-list a.theme-switch {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .hero-section .display-2 {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .hero-content {
        padding-block: 1rem;
    }

    .hero-content .lead,
    .hero-content .fs-4 {
        font-size: 1rem !important;
    }

    .hero-content .badge {
        max-width: 100%;
        white-space: normal;
    }

    .stats-section .glass-card {
        padding: 1.25rem !important;
    }

    .contact-form-card {
        padding: 1.5rem !important;
    }

    .contact-map-frame {
        min-height: 300px !important;
    }

    .footer-contact-list li {
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .footer-contact-inline {
        row-gap: 0.4rem !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        max-width: calc(100% - 64px);
    }

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

    .hero-section {
        min-height: auto !important;
    }

    .hero-content .badge {
        padding: 0.9rem 1.1rem !important;
    }

    .hero-content .stars {
        font-size: 1rem !important;
    }

    .breadcrumb {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        justify-content: center;
    }

    .contact-form-card {
        padding: 1.25rem !important;
    }

    .contact-map-frame {
        min-height: 280px !important;
    }

    .gif-box {
        height: 220px !important;
    }

    .speech-bubble {
        top: 16px !important;
        left: 16px !important;
        max-width: calc(100% - 32px) !important;
    }

    [dir="rtl"] .speech-bubble {
        left: auto !important;
        right: 16px !important;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .pagination .page-link {
        border-radius: 999px;
    }

    .footer-social-links,
    .footer-payment-row {
        justify-content: center;
    }

    .footer-contact-inline {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .footer-separator {
        display: none;
    }

    #backToTop {
        width: 48px !important;
        height: 48px !important;
        right: 14px !important;
        bottom: 84px !important;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        min-height: calc(3.2rem + 2px);
        font-size: 16px;
    }

    .form-floating > textarea.form-control {
        min-height: 130px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .display-5 {
        font-size: 1.45rem !important;
    }

    .service-card,
    .feature-panel,
    .info-card,
    .section-shell,
    .glass-card {
        border-radius: 18px;
    }

    .footer-contact-stack,
    .footer-contact-inline {
        font-size: 0.95rem;
    }
}

/* Service Navigation and Detail Pages */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
}

[data-theme="dark"] .navbar .dropdown-menu {
    background: rgba(30, 41, 59, 0.98);
}

.navbar .dropdown-item {
    color: var(--text-main);
    padding: 0.7rem 0.9rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(0, 51, 102, 0.08);
    color: var(--primary-color);
}

.service-nav-card {
    height: 100%;
    border-radius: 24px;
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.service-media-card {
    position: relative;
    padding: 1rem;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 196, 83, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.2), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,0.98), rgba(244,248,255,0.95));
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.12),
        0 10px 24px rgba(0, 51, 102, 0.08);
    transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.service-media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.24), transparent 45%),
        radial-gradient(circle at top right, rgba(255,255,255,0.88), transparent 34%);
    pointer-events: none;
}

.service-media-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.16),
        0 16px 36px rgba(0, 51, 102, 0.12);
    filter: saturate(1.05);
}

.service-media-card .requirements-media {
    position: relative;
    z-index: 1;
    border-radius: 22px;
}

aside.feature-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 199, 95, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,0.98), rgba(246,249,255,0.95));
    border-color: rgba(76, 124, 255, 0.14);
    box-shadow:
        0 20px 42px rgba(15, 23, 42, 0.09),
        0 8px 20px rgba(0, 51, 102, 0.06);
}

aside.feature-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.24), transparent 52%),
        radial-gradient(circle at top right, rgba(255,255,255,0.8), transparent 34%);
    pointer-events: none;
}

aside.feature-panel > * {
    position: relative;
    z-index: 1;
}

aside.feature-panel:hover {
    border-color: rgba(255, 170, 0, 0.32);
    box-shadow:
        0 26px 52px rgba(15, 23, 42, 0.13),
        0 14px 28px rgba(255, 170, 0, 0.12);
}

.service-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.service-stat-card {
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(248,250,255,0.94));
    border: 1px solid rgba(255,255,255,0.92);
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.42);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease, border-color 0.28s ease;
}

.service-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.92), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.18), transparent 52%);
    pointer-events: none;
}

.service-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 28px 46px rgba(15, 23, 42, 0.18);
    filter: saturate(1.16);
}

.service-stat-grid .service-stat-card:nth-child(1) {
    background:
        radial-gradient(circle at top right, rgba(255, 241, 166, 0.95), transparent 33%),
        radial-gradient(circle at bottom left, rgba(255, 179, 0, 0.24), transparent 42%),
        linear-gradient(160deg, rgba(255, 232, 154, 0.96), rgba(255, 251, 234, 0.98));
    border-color: rgba(255, 179, 0, 0.45);
    box-shadow:
        0 20px 36px rgba(217, 119, 6, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.46);
}

.service-stat-grid .service-stat-card:nth-child(2) {
    background:
        radial-gradient(circle at top right, rgba(147, 197, 253, 0.96), transparent 33%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.22), transparent 42%),
        linear-gradient(160deg, rgba(190, 226, 255, 0.98), rgba(239, 246, 255, 0.98));
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow:
        0 20px 36px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.44);
}

.service-stat-grid .service-stat-card:nth-child(3) {
    background:
        radial-gradient(circle at top right, rgba(134, 239, 172, 0.96), transparent 33%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.2), transparent 42%),
        linear-gradient(160deg, rgba(187, 247, 208, 0.98), rgba(240, 253, 244, 0.98));
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow:
        0 20px 36px rgba(22, 163, 74, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.44);
}

.service-stat-card strong {
    display: block;
    font-size: 1.22rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.service-stat-card span {
    display: block;
    color: #344054;
    margin-top: 0.28rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.service-stat-grid .service-stat-card:nth-child(1) strong {
    color: #9a6700;
}

.service-stat-grid .service-stat-card:nth-child(2) strong {
    color: #0d56b8;
}

.service-stat-grid .service-stat-card:nth-child(3) strong {
    color: #157347;
}

.service-use-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-use-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(0, 51, 102, 0.04);
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.service-use-index,
.service-process-number {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
}

.service-process-timeline {
    display: grid;
    gap: 1rem;
}

.service-process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(0, 51, 102, 0.04);
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.service-cta-band {
    background: linear-gradient(135deg, #003366, #001122);
    color: #fff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.service-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 32%);
    pointer-events: none;
}

.service-cta-band > * {
    position: relative;
    z-index: 1;
}

.service-cta-band .section-badge {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.28), rgba(255, 94, 98, 0.24));
    color: #fff5d6;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 12px 28px rgba(255, 122, 24, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.country-profile-card {
    height: 100%;
    border-radius: 24px;
    padding: 1.6rem;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.98), rgba(248,250,255,0.96));
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow:
        0 18px 38px rgba(9, 30, 66, 0.08),
        0 8px 18px rgba(9, 30, 66, 0.05);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.38s ease,
        filter 0.38s ease;
}

.country-profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.85), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.18), transparent 55%);
    pointer-events: none;
}

.country-profile-card::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.25));
    opacity: 0.75;
    pointer-events: none;
}

.country-profile-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow:
        0 26px 52px rgba(9, 30, 66, 0.16),
        0 12px 30px rgba(9, 30, 66, 0.1);
    filter: saturate(1.04);
}

.country-comparison-grid > div:nth-child(1) .country-profile-card {
    background:
        radial-gradient(circle at top right, rgba(255, 236, 153, 0.9), transparent 34%),
        linear-gradient(160deg, rgba(255, 244, 200, 1), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, rgba(255, 191, 0, 0.32), rgba(255, 122, 24, 0.1));
    border-color: rgba(255, 191, 0, 0.4);
}

.country-comparison-grid > div:nth-child(1) .country-profile-card:hover {
    box-shadow:
        0 28px 58px rgba(184, 134, 11, 0.24),
        0 14px 34px rgba(0, 51, 102, 0.14);
}

.country-comparison-grid > div:nth-child(2) .country-profile-card {
    background:
        radial-gradient(circle at top right, rgba(147, 197, 253, 0.88), transparent 34%),
        linear-gradient(160deg, rgba(223, 239, 255, 1), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(14, 116, 144, 0.08));
    border-color: rgba(59, 130, 246, 0.36);
}

.country-comparison-grid > div:nth-child(2) .country-profile-card:hover {
    box-shadow:
        0 28px 58px rgba(30, 107, 255, 0.2),
        0 14px 34px rgba(0, 51, 102, 0.12);
}

.country-comparison-grid > div:nth-child(3) .country-profile-card {
    background:
        radial-gradient(circle at top right, rgba(134, 239, 172, 0.86), transparent 34%),
        linear-gradient(160deg, rgba(233, 255, 240, 1), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(16, 185, 129, 0.08));
    border-color: rgba(34, 197, 94, 0.32);
}

.country-comparison-grid > div:nth-child(3) .country-profile-card:hover {
    box-shadow:
        0 28px 58px rgba(34, 197, 94, 0.18),
        0 14px 34px rgba(9, 30, 66, 0.12);
}

.country-comparison-grid > div:nth-child(4) .country-profile-card {
    background:
        radial-gradient(circle at top right, rgba(252, 165, 165, 0.86), transparent 34%),
        linear-gradient(160deg, rgba(255, 236, 236, 1), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(220, 38, 38, 0.08));
    border-color: rgba(239, 68, 68, 0.34);
}

.country-comparison-grid > div:nth-child(4) .country-profile-card:hover {
    box-shadow:
        0 28px 58px rgba(239, 68, 68, 0.18),
        0 14px 34px rgba(9, 30, 66, 0.12);
}

.country-profile-card > * {
    position: relative;
    z-index: 1;
}

.country-profile-card .section-badge {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    font-size: 0.78rem;
}

.country-comparison-grid > div:nth-child(1) .section-badge {
    background: linear-gradient(135deg, rgba(255, 210, 74, 0.36), rgba(255, 140, 0, 0.22));
    color: #8f5500;
}

.country-comparison-grid > div:nth-child(2) .section-badge {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.34), rgba(29, 78, 216, 0.2));
    color: #0d56b8;
}

.country-comparison-grid > div:nth-child(3) .section-badge {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.32), rgba(21, 128, 61, 0.18));
    color: #157347;
}

.country-comparison-grid > div:nth-child(4) .section-badge {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.34), rgba(220, 38, 38, 0.2));
    color: #b3261e;
}

.country-rating-badge {
    min-width: 96px;
    text-align: center;
    border-radius: 22px;
    padding: 1rem 0.9rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.75);
    color: var(--primary-color);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.country-comparison-grid > div:nth-child(1) .country-rating-badge {
    color: #8f5500;
    background: linear-gradient(135deg, rgba(255, 220, 120, 0.95), rgba(255, 173, 51, 0.88));
    border-color: rgba(255, 191, 0, 0.45);
}

.country-comparison-grid > div:nth-child(2) .country-rating-badge {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(29, 78, 216, 0.92));
    border-color: rgba(147, 197, 253, 0.42);
}

.country-comparison-grid > div:nth-child(3) .country-rating-badge {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.96), rgba(21, 128, 61, 0.92));
    border-color: rgba(134, 239, 172, 0.42);
}

.country-comparison-grid > div:nth-child(4) .country-rating-badge {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(185, 28, 28, 0.92));
    border-color: rgba(252, 165, 165, 0.42);
}

.country-rating-badge strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.country-rating-badge span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.9;
}

.country-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.country-meta-item {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.country-profile-card:hover .country-meta-item {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.65),
        0 10px 20px rgba(15, 23, 42, 0.05);
}

.country-meta-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
}

.country-list-box {
    border-radius: 18px;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-profile-card:hover .country-list-box {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.country-list-box-soft {
    background: rgba(255, 255, 255, 0.48);
}

.country-point-list {
    padding-left: 1.2rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.45rem;
}

[dir="rtl"] .country-point-list {
    padding-left: 0;
    padding-right: 1.2rem;
}

.comparison-note {
    margin-top: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: var(--text-main);
}

.comparison-note i {
    margin-top: 0.1rem;
    color: #d48a00;
}

[data-theme="dark"] .country-profile-card {
    background:
        linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .country-rating-badge,
[data-theme="dark"] .country-meta-item,
[data-theme="dark"] .country-list-box {
    background: rgba(15, 23, 42, 0.48);
    border-color: rgba(255,255,255,0.08);
}

@media (max-width: 991.98px) {
    .service-use-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .navbar .dropdown-menu {
        min-width: 100%;
    }

    .service-nav-card,
    .service-cta-band {
        border-radius: 22px;
    }

    .service-stat-grid {
        grid-template-columns: 1fr;
    }

    .country-meta-grid {
        grid-template-columns: 1fr;
    }

    .service-mini-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .service-detail-toggle {
        width: 100%;
    }

    .service-detail-toggle .nav-link {
        width: 100%;
    }
}
