/* ========================================
   MODERN THEME SYSTEM WITH COLOR SWITCHER
   ======================================== */

:root {
    /* Default Theme - Professional Blue */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #ec4899;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    
    /* Neutral Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Theme Variations */
[data-theme="purple"] {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

[data-theme="green"] {
    --primary-color: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #06b6d4 100%);
}

[data-theme="orange"] {
    --primary-color: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #f97316;
    --gradient-primary: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #0f172a;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

[data-theme="pink"] {
    --primary-color: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f472b6;
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%232563eb"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>'), auto;
}

/* Custom cursor for clickable elements */
a, button, .btn, input[type="submit"], input[type="button"], select {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23f59e0b"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>'), pointer !important;
}

/* ========================================
   NAVBAR MODERN DESIGN
   ======================================== */

.navbar-modern {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    position: sticky;
    top: 0;
    z-index: 1030;
}

[data-theme="dark"] .navbar-modern {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-modern .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-base);
}

.navbar-modern .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-modern .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.navbar-modern .nav-link:hover::after {
    width: 80%;
}

/* Theme Switcher Button */
.theme-switcher-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.theme-switcher-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-option {
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-option:hover {
    background: var(--bg-secondary);
    padding-left: 1.5rem;
}

.theme-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* ========================================
   HERO SECTION - MODERN CAROUSEL
   ======================================== */

.hero-modern {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-modern .carousel-item {
    height: 70vh;
    min-height: 500px;
    position: relative;
}

.hero-modern .carousel-item img,
.hero-modern .carousel-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-modern .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.7) 0%, rgba(124, 58, 237, 0.5) 100%);
    z-index: 1;
}

.hero-modern .carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.hero-modern .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-modern .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-modern .hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    animation: fadeInUp 1.2s ease;
}

.hero-modern .hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTION HEADERS - MODERN STYLE
   ======================================== */

.section-modern {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   CARD COMPONENTS - GLASS MORPHISM
   ======================================== */

.card-modern {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-modern-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-modern:hover .card-modern-img {
    transform: scale(1.1);
}

.card-modern-body {
    padding: 1.5rem;
}

.card-modern-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.card-modern-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-modern-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.card-modern-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.card-modern-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   BUTTONS - MODERN STYLES
   ======================================== */

.btn-modern {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-modern-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-modern-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-modern-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modern-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   SPECIAL SECTIONS
   ======================================== */

/* Slogan Box */
.slogan-modern {
    background: var(--gradient-primary);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slogan-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.slogan-modern h4 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.slogan-modern p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Services Section with Background */
.services-modern {
    background: linear-gradient(rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05)),
                url('../img/pattern.svg');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

/* Testimonials Modern */
.testimonial-modern {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.testimonial-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 0;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

/* ========================================
   FOOTER MODERN
   ======================================== */

.footer-modern {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-modern a:hover {
    color: white;
    text-decoration: underline;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ========================================
   UTILITIES
   ======================================== */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-effect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-modern .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-modern .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-modern {
        padding: 3rem 0;
    }
    
    .slogan-modern h4 {
        font-size: 1.5rem;
    }
    
    .slogan-modern p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-modern {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-modern .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-modern .hero-title {
        font-size: 1.75rem;
    }
    
    .card-modern-img {
        height: 200px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in-left {
    animation: slideInLeft 0.6s ease;
}

.animate-in-right {
    animation: slideInRight 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in-up {
    animation: slideInUp 0.8s ease 0.3s both;
}

/* ========================================
   VISA SEARCH BOX
   ======================================== */

.visa-search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.visa-search-form .form-select {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.visa-search-form .form-select:focus {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.visa-search-form .btn-warning {
    background: #fbbf24;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.visa-search-form .btn-warning:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .visa-search-box {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .visa-search-box h5 {
        font-size: 1.1rem;
    }
    
    .visa-search-form .col-md-9,
    .visa-search-form .col-md-3 {
        width: 100%;
    }
}

/* ========================================
   HERO SPLIT LAYOUT WITH VIDEO
   ======================================== */

.hero-split {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    /* Rounded bottom edges by default (mobile/tablet) */
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

/* Remove outer gutters/padding so hero touches screen edges */
.hero-split .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.hero-split .container-fluid > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hero-split .row {
    min-height: 60vh;
}

/* Left Side - Visa Search */
.hero-left {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    padding: 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: slideInLeft 0.6s ease;
}

.hero-title-split {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    animation: slideInLeft 0.8s ease;
}

.text-gradient {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-split {
    font-size: 1rem;
    color: white;
    opacity: 0.95;
    line-height: 1.6;
    animation: slideInLeft 1s ease;
}

.visa-search-form-split {
    animation: slideInUp 1.2s ease;
}

.visa-search-form-split .form-label {
    color: white;
    font-size: 1rem;
}

.visa-search-form-split .form-select {
    background: white;
    border: none;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.visa-search-form-split .form-select:focus {
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.visa-search-form-split .input-group-text {
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
}

.visa-search-form-split .btn-warning {
    background: #fbbf24;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(251,191,36,0.4);
    transition: all 0.3s ease;
}

.visa-search-form-split .btn-warning:hover {
    background: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(251,191,36,0.5);
}

/* Banner overlay using theme gradient */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.7;
    z-index: 1;
}

/* Mobile quick links under stats */
.quick-links-mobile a {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap; /* keep link on one line */
    display: inline-flex;
    align-items: center;
}
.quick-links-mobile a i { font-size: 1rem; }
.quick-links-mobile a:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }

/* Flex rows for perfect left/right alignment on mobile */
.quick-links-mobile .ql-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.quick-links-mobile .ql-left {
    color: #ffffff;
}
.quick-links-mobile .ql-left .stat-number {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1;
}
.quick-links-mobile .ql-left small {
    opacity: 0.9;
    font-size: 0.85rem;
}
.quick-links-mobile .ql-link { /* alias for a */
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 0.45rem 0.6rem;
}

/* Right Side - Video */
.hero-right {
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* ensure no white edges */
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.video-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #2563eb, #7c3aed, #ec4899, #f59e0b);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.video-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="200" cy="150" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="900" cy="600" r="150" fill="rgba(255,255,255,0.08)"/><circle cx="600" cy="400" r="80" fill="rgba(255,255,255,0.12)"/></svg>');
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.25;
    pointer-events: none;
}

/* Floating Cards on Video */
.floating-card {
    position: absolute;
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    font-size: 2rem;
}

.floating-card strong {
    display: block;
    font-size: 1rem;
    color: #1e293b;
}

.floating-card small {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.floating-card-1 {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 42%;
    right: 8%;
    animation-delay: 1s;
    z-index: 4; /* ensure Fast Processing stays above */
}

.floating-card-3 {
    bottom: 16%;
    right: 14%;
    animation-delay: 2s;
    z-index: 3;
}

.floating-card-4 {
    bottom: 8%;
    left: 18%;
    animation-delay: 2.5s;
    z-index: 3;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-split .row {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-left,
    .hero-right {
        min-height: 0; /* remove forced tall height */
        padding: 2rem 1.5rem;
    }
    .hero-right { padding: 0 !important; }
    /* Make video size define its own height on mobile/tablet */
    .video-container { height: auto; aspect-ratio: 16 / 9; }
    .video-container video { width: 100%; height: 100%; display: block; object-fit: cover; }
    
    .hero-title-split {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-split {
        font-size: 1rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-left,
    .hero-right {
        min-height: 0; /* no extra blank space */
        padding: 1.5rem 1rem;
    }
    .hero-right { padding: 0 !important; }
    .video-container { height: auto; aspect-ratio: 16 / 9; }
    .video-container video { width: 100%; height: 100%; display: block; object-fit: cover; }
    
    .hero-title-split {
        font-size: 2rem;
    }
    
    .floating-card {
        display: none;
    }
}

/* Desktop full-screen hero with subtle rounded bottom */
@media (min-width: 992px) {
    .hero-split {
        height: auto; /* follow the video height */
        border-bottom-left-radius: 28px; /* slightly larger round on desktop */
        border-bottom-right-radius: 28px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .hero-split .row {
        min-height: 0; /* no forced height */
        align-items: stretch; /* make columns equal height of tallest (video) */
    }
    .hero-left,
    .hero-right {
        height: auto; /* inherit tallest column height */
    }
    .hero-left {
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .hero-right {
        padding: 0 !important; /* remove gaps around video */
    }
    /* Align left content and keep it readable */
    .hero-content {
        margin: 0;
        max-width: 640px;
    }
    .hero-title-split { margin-bottom: 0.75rem; font-size: 2.6rem; }
    .hero-subtitle-split { margin-bottom: 1rem; font-size: 1.05rem; }
    .visa-search-form-split .form-label { margin-bottom: 0.5rem; font-size: 1rem; }
    .visa-search-form-split .input-group { margin-bottom: 0.9rem; }
    .visa-search-form-split .form-select { padding: 0.85rem 1.1rem; font-size: 1rem; }
    .visa-search-form-split .input-group-text { padding: 0.85rem 1rem; font-size: 1.1rem; }
    .visa-search-form-split .btn-warning { padding: 0.85rem 1.2rem; font-size: 1rem; }
    /* Show quick stats again on desktop */
    .visa-search-form-split .row.mt-4 { display: flex; }
}
