/* ================================================================
   PREMIUM EFFECTS & OPTIMIZATIONS — IBREU Global Talent
   ================================================================ */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    opacity: 1;
}

.page-loader.loader-hidden {
    opacity: 0;
    pointer-events: none;
    filter: blur(10px);
    transform: scale(1.05);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: loaderPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-logo {
    color: #D4AF37;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: spin 1s linear infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* ================================================================
   SIDEBAR ENHANCEMENT
   ================================================================ */
.sidebar {
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(212, 175, 55, 0.12);
}

.sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ================================================================
   CARDS — GLASSMORPHISM & HOVER
   ================================================================ */
.country-card, .service-card, .value-card, .stat-card, .premium-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ================================================================
   RESPONSIVE GRID UTILITIES
   ================================================================ */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.split-layout.align-start {
    align-items: flex-start;
}

/* Visibility Utilities */
.mobile-hide { display: block; }
.mobile-show { display: none; }

@media (max-width: 992px) {
    .grid-2-col, .grid-3-col, .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr !important;
        gap: 35px;
    }
    
    .mobile-hide {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 24px;
        overflow: hidden; /* Prevent horizontal scroll from inner elements */
    }

    /* Fix for grid cards on tablet */
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Text Stability Utility */
.force-dark-text p, .force-dark-text li, .force-dark-text h4 {
    color: #333333 !important;
}

.force-white-text p, .force-white-text li, .force-white-text h4 {
    color: rgba(255,255,255,0.9) !important;
}


.glass-dark {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.glass-light {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.country-card:hover, .service-card:hover, .value-card:hover, .stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 50px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-card-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.1);
}

.section-dark .service-card:hover, .section-dark .country-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(212, 175, 55, 0.25);
}

.glass-dark::after, .glass-light::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    opacity: 0.5;
}


/* ================================================================
   BUTTONS — GLOW EFFECTS
   ================================================================ */
.btn-cta, .btn-primary {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-cta::after, .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: 0.5s ease;
    opacity: 0;
}

.btn-cta:hover::after, .btn-primary:hover::after {
    transform: rotate(30deg) translate(50%, 50%);
    opacity: 1;
}

.btn-cta:hover, .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}


/* ================================================================
   SMOOTH RENDERING
   ================================================================ */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
   FLOATING WA — BOUNCE & GLOW
   ================================================================ */
.floating-wa {
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    animation: floatWa 3s ease-in-out infinite;
}

.floating-wa:hover {
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6), 0 0 40px rgba(37, 211, 102, 0.4);
    transform: translateY(-8px) scale(1.1);
}

@keyframes floatWa {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* ================================================================
   HERO BACKGROUND IMAGE
   ================================================================ */
.hero {
    background-image: 
        linear-gradient(173deg, rgba(8, 8, 8, 0.85) 0%, rgba(15, 15, 15, 0.5) 50%, rgba(8, 8, 8, 0.9) 100%),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Standardize Premium Text Color */
section p, .hero-sub, .section-header p {
    color: var(--text-premium);
    line-height: 1.7;
}

.section-dark p {
    color: rgba(255,255,255,0.65);
}

.section-offwhite p {
    color: #555555;
}


/* ================================================================
   COUNTRY FEATURE CARDS — PREMIUM REDESIGN
   ================================================================ */
.country-feature-box {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    background: linear-gradient(135deg, rgba(35, 30, 22, 0.6) 0%, rgba(25, 22, 18, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.country-feature-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--grad-gold);
    opacity: 0.6;
    transition: var(--transition);
}

.country-feature-box::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.country-feature-box:hover {
    background: linear-gradient(135deg, rgba(45, 38, 25, 0.75) 0%, rgba(30, 26, 20, 0.9) 100%);
    transform: translateX(8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212, 175, 55, 0.08);
}

.country-feature-box:hover::before {
    opacity: 1;
    width: 6px;
}

.country-flag-wrap {
    font-size: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.country-content h3 {
    color: var(--white) !important;
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.license-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-body);
    margin-bottom: 18px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    letter-spacing: 0.5px;
}
.license-tag i, .license-tag svg {
    width: 12px; height: 12px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-body);
}
.benefits-list li i, .benefits-list li svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .country-feature-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 24px;
        text-align: center;
    }
    .country-flag-wrap {
        justify-content: center;
    }
    .country-feature-box:hover {
        transform: translateY(-5px);
    }
}


/* ================================================================
   BODY — PREMIUM DARK GRADIENT
   ================================================================ */
body {
    background-color: #0C0C0C;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.06), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(192, 57, 43, 0.04), transparent 40%);
    background-attachment: fixed;
}


/* ================================================================
   TYPOGRAPHY — PREMIUM REFINEMENTS
   ================================================================ */
h1, h2, h3 {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    margin-bottom: 28px;
}

.section-label {
    letter-spacing: 0.25em;
    font-weight: 700;
}


/* ================================================================
   SECTION DIVIDERS
   ================================================================ */
.section-divider {
    position: relative;
    height: 100px;
    background: var(--black);
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-divider.dark-to-offwhite::after {
    background: var(--offwhite);
}


/* ================================================================
   TIMELINE / EMPLOYER PROCESS
   ================================================================ */
/* ================================================================
   FOOTER POLISH
   ================================================================ */
.footer {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
}


/* ================================================================
   SCROLL REVEAL & CONTENT VISIBILITY FIX
   ================================================================ */
.reveal, .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform, opacity;
}

/* Fallback: If JS is not running or hasn't loaded, show content */
body:not(.js-active) .reveal,
body:not(.js-active) .fade-up {
    opacity: 1 !important;
    transform: none !important;
}

.reveal.active, .fade-up.active, .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ================================================================
   PROCESS GRID (JOURNEY) REFINEMENT
   ================================================================ */
/* Roadmap Layout */
.roadmap-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

/* Central vertical line */
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 21px; /* Center of 44px circle */
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
                transparent 0%, 
                var(--gold) 15%, 
                var(--gold) 85%, 
                transparent 100%);
    opacity: 0.3;
}

.roadmap-step {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-slow);
    color: white;
    text-decoration: none;
    animation: bounceIn 0.8s ease backwards 1s, waPulse 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.15) rotate(10deg);
    background: #1EBE5D;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37,211,102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}

.roadmap-num {
    width: 44px;
    height: 44px;
    background: var(--grad-gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    border: 3px solid #000;
    font-size: 1.1rem;
}

.section-offwhite .roadmap-num {
    border-color: #fff;
}

.roadmap-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    flex: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.section-dark .roadmap-content {
    background: rgba(30, 30, 30, 0.4);
    border-color: rgba(212, 175, 55, 0.1);
}

.section-offwhite .roadmap-content {
    background: #fff;
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.roadmap-step:hover .roadmap-content {
    transform: translateX(12px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.05);
}

.section-offwhite .roadmap-step:hover .roadmap-content {
    background: #fff;
}

.roadmap-content h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.section-offwhite .roadmap-content h4 { color: var(--black) !important; }
.section-dark .roadmap-content h4 { color: var(--gold) !important; }

.roadmap-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-body);
}

/* Significant contrast improvement for readability */
.section-offwhite .roadmap-content p { color: #222 !important; font-weight: 500; }
.section-dark .roadmap-content p { color: rgba(255,255,255,0.95) !important; }

@media (max-width: 768px) {
    .roadmap-container {
        padding-left: 10px;
    }
    .roadmap-step {
        gap: 20px;
    }
    .roadmap-content {
        padding: 20px;
    }
    .roadmap-content h4 {
        font-size: 1.15rem;
    }
    .roadmap-content p {
        font-size: 0.95rem;
    }
}



/* ================================================================
   SPLIT SECTION IMAGE
   ================================================================ */
.candidate-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

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

.candidate-img-wrap:hover img {
    transform: scale(1.05);
}


/* ================================================================
   NEW PREMIUM EFFECTS & REVEALS
   ================================================================ */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ================================================================
   NEW PREMIUM EFFECTS
   ================================================================ */

/* Hero Animation */
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    background-size: 200% 200%;
    animation: heroGradient 15s ease infinite;
}

/* Glassmorphism Refinement */
.glass-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Hover Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.hover-shine:hover::after {
    transform: rotate(45deg) translate(20%, 20%);
}

/* Count Animation Helper */
.counting {
    transition: color 0.3s ease;
}

.counting.active {
    color: var(--gold);
}

/* Section Reveal Down */
.reveal-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal-down.active {
    opacity: 1;
    transform: translateY(0);
}


/* Ensure consistent paragraph colors across white/dark sections */
.section-offwhite p {
    color: #333333 !important;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Service Card Text Polishing */
.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.section-dark .service-card h3 {
    color: var(--white) !important;
}

.section-offwhite .service-card h3 {
    color: var(--black) !important;
}

/* ================================================================
   NEW DROPDOWN NAVIGATION
   ================================================================ */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-trigger .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger .chevron {
    transform: rotate(180deg);
    color: var(--gold) !important;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Invisible bridge to prevent closing on gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 20px !important;
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--gold) !important;
    padding-left: 25px !important;
}

.dropdown-content a i, .dropdown-content a svg {
    width: 18px;
    height: 18px;
}

/* mobile handling for dropdown in main js if needed, but for now simple hover */
@media (max-width: 1024px) {
    .nav-dropdown .dropdown-content {
        position: static;
        width: 100%;
        background: rgba(255,255,255,0.03);
        border: none;
        box-shadow: none;
        padding-left: 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block; /* always visible in mobile sidebar for simplicity */
        margin-top: 5px;
    }
    .dropdown-trigger .chevron {
        display: none;
    }
}

/* ================================================================
   STATISTICS GRAPH (BAR CHATS)
   ================================================================ */
.stat-graph {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    width: 100%;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.stat-value {
    color: var(--gold);
    font-weight: 800;
}

.stat-bar-bg {
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Gold gradient divider line */
.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: 3px;
  margin: 16px auto 20px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.stat-bar-fill {
    height: 100%;
    background: var(--grad-gold);
    border-radius: 6px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.reveal.active .stat-bar-fill {
    width: var(--percent);
}

.stat-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    font-style: italic;
}

/* ================================================================
   PREMIUM FORMS — MODERN & AIRY
   ================================================================ */
.apply-form-wrap {
    background: #FFFFFF;
    border: 1px solid #E5E1D8;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    color: var(--black);
    text-align: left;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.form-subtitle {
    margin-bottom: 35px;
    color: #666;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; gap: 20px; }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: #F9F8F6;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--black);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: #FFF;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.mobile-input-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
}

.form-submit {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    margin-top: 15px;
    justify-content: center;
}

/* ================================================================
   FAQ ACCORDION 
   ================================================================ */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.section-dark .faq-item {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}
.faq-item.active {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    transition: var(--transition);
}
.section-dark .faq-question {
    color: var(--white);
}
.faq-question:hover {
    color: var(--gold);
}
.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--gold);
    color: var(--black);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 24px 24px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}
.section-dark .faq-answer-inner {
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================================
   SWIPER CAROUSEL (TESTIMONIALS)
   ================================================================ */
.swiper-pagination-bullet {
    background: #bbb !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
    width: 10px !important;
    height: 10px !important;
}
.swiper-pagination-bullet-active {
    background: var(--gold) !important;
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 5px !important;
}
.testimonial-swiper-wrap {
    padding-bottom: 50px; /* space for pagination */
    overflow: hidden;
}

/* CHART TOGGLE BUTTONS */
.chart-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 24px;
}

.chart-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.chart-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}

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

.chart-tab-btn svg {
    transition: all var(--transition-fast);
}

.chart-tab-btn.active svg {
    stroke: var(--gold);
}

/* ================================================================
   ANNOUNCEMENT RIBBON
   ================================================================ */
.announcement-ribbon {
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.95), rgba(35, 30, 20, 0.98));
    border-bottom: 2px solid rgba(212, 175, 55, 0.25);
    padding: 10px 0;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.ribbon-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-new {
    background: var(--grad-gold);
    color: var(--black);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseGold 2s infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.ribbon-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.ribbon-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ribbon-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
    border-color: var(--gold);
}

@keyframes pulseGold {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ================================================================
   JOBS DIRECTORY MODAL
   ================================================================ */
.jobs-modal-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jobs-modal-container.active {
    visibility: visible;
    opacity: 1;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 40px;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
}

.jobs-modal-container.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 1.5rem; cursor: pointer; transition: color 0.3s;
}

.modal-close:hover { color: var(--gold); }

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 16px;
}

.modal-job-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-job-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(10px);
}

.modal-job-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-job-icon {
    width: 40px; height: 40px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-job-text h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

.modal-job-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.modal-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.modal-job-item:hover .modal-arrow {
    color: var(--gold);
    transform: translateX(5px);
}

/* ================================================================
   PREMIUM CARD BEAUTIFICATION
   ================================================================ */

/* Destination Card Redesign */
.destination-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.theme-card-light {
    background: #fff !important;
    border-color: rgba(0,0,0,0.06) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
}

.theme-card-light:hover {
     box-shadow: 0 30px 60px rgba(0,0,0,0.1) !important;
     border-color: var(--gold) !important;
}

/* Country Feature Box Polish */
.premium-feature-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.premium-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.15);
}

.feature-img-wrap {
    position: relative;
    height: 350px;
}

.feature-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.premium-feature-box:hover .feature-img-wrap img {
    transform: scale(1.08);
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}

.feature-body-premium {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-body-premium h3 {
    font-size: 2rem;
    color: var(--black) !important;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.feature-body-premium p {
    color: #555 !important;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .premium-feature-box {
        grid-template-columns: 1fr;
    }
    .feature-img-wrap {
        height: 250px;
    }
    .feature-body-premium {
        padding: 30px;
    }
}

/* ================================================================
   MOBILE RESPONSIVENESS & SIDEBAR POLISH
   ================================================================ */
@media (max-width: 768px) {
    .announcement-ribbon {
        padding: 12px 0;
        margin-bottom: 0; /* Remove extra gap with hero */
    }

    /* Pull hero content up to reduce empty space under announcement */
    .hero, .page-hero {
        min-height: auto !important;
        padding-top: 15px !important; 
        padding-bottom: 60px !important;
        display: block !important; /* Switch from flex to avoid vertical centering gap */
    }

    .hero-inner, .page-hero .container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .ribbon-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .ribbon-text {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0 10px;
    }

    .badge-new {
        margin-bottom: 5px;
        /* Increase visibility by adding a bit of top margin as requested */
        margin-top: 5px;
    }

    .ribbon-link {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sidebar Details/Summary Styles */
.sidebar-jobs-details {
    width: 100%;
}

.sidebar-jobs-details summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid transparent;
    list-style: none; /* Hide default arrow */
}

.sidebar-jobs-details summary::-webkit-details-marker {
    display: none;
}

.sidebar-jobs-details summary i:first-child {
    width: 18px;
    color: var(--gold);
    opacity: 0.7;
}

.sidebar-jobs-details summary .chevron-icon {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.sidebar-jobs-details[open] summary .chevron-icon {
    transform: rotate(180deg);
}

.sidebar-jobs-details summary:hover {
    color: var(--gold);
    background: rgba(212,175,55,0.04);
}

.sidebar-jobs-list {
    padding: 5px 0 10px 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-jobs-list a {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    border-left: none !important;
    opacity: 0.8;
}

.sidebar-jobs-list a:hover {
    opacity: 1;
    background: none !important;
    color: var(--gold) !important;
}

/* ================================================================
   BADGES & TAGS
   ================================================================ */
.destination-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge-gold {
    background: var(--grad-gold);
    color: #000;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.badge-demand {
    background: rgba(192, 57, 43, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff3e3e;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

/* Red UAE Tag for Navbar */
.nav-uae-tag {
    background: #ff3e3e;
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 62, 62, 0.4);
    vertical-align: middle;
}

/* Force Dark Text Utility */
.force-dark-text, .force-dark-text > p, .force-dark-text > ul > li, .force-dark-text > div > p {
    color: #1a1a1a !important;
}

/* Force Light Text Utility */
.force-light-text, .force-light-text p, .force-light-text li {
    color: #ffffff !important;
}

/* --- Readability Fix: Ensure light text inside dark cards regardless of parent section --- */
.service-card, .country-card, .glass-premium, .glass-dark, .premium-feature-box[style*="background: #111"], .premium-feature-box[style*="background: #1a1a1a"] {
    color: #ffffff !important;
}

.service-card p, .service-card li, .service-card h1, .service-card h2, .service-card h3, .service-card h4,
.country-card.active-uae-card p, .country-card.active-uae-card li, .country-card.active-uae-card h1, .country-card.active-uae-card h2, .country-card.active-uae-card h3, .country-card.active-uae-card h4,
.glass-premium p, .glass-premium li, .glass-premium h1, .glass-premium h2, .glass-premium h3, .glass-premium h4,
.glass-dark p, .glass-dark li, .glass-dark h1, .glass-dark h2, .glass-dark h3, .glass-dark h4 {
    color: #ffffff !important;
}

/* Standardized benefit lists inside dark cards */
.service-card .benefits-list li {
    color: rgba(255, 255, 255, 0.95) !important;
}

.service-card .benefits-list li i, .service-card .benefits-list li svg {
    color: var(--gold) !important;
}