/**
 * HireCaro - Vibrant, Modern, Colorful Light Design System
 * 100% Mobile-Friendly & Responsive Across All Devices
 */

:root {
    --hc-primary: #2563eb;
    --hc-primary-hover: #1d4ed8;
    --hc-primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --hc-accent-violet: #8b5cf6;
    --hc-accent-emerald: #10b981;
    --hc-accent-amber: #f59e0b;
    --hc-accent-rose: #f43f5e;
    --hc-accent-cyan: #06b6d4;
    
    --hc-dark: #0f172a;
    --hc-dark-muted: #334155;
    --hc-body: #475569;
    --hc-light-bg: #f8fafc;
    --hc-border: #e2e8f0;
    --hc-border-hover: #cbd5e1;
    
    --hc-card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --hc-card-hover-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.14), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--hc-body);
    background-color: var(--hc-light-bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preloader Styles */
#hirecaro-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#hirecaro-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-box {
    text-align: center;
    position: relative;
}

.preloader-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2563eb;
    border-right-color: #7c3aed;
    border-bottom-color: #ec4899;
    animation: preloaderSpin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    animation: preloaderPulse 1s ease-in-out infinite alternate;
}

.preloader-logo-img {
    height: 44px;
    margin-bottom: 1rem;
    animation: preloaderBounce 2s ease-in-out infinite;
}

.preloader-progress-bar {
    width: 160px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 0.75rem;
}

.preloader-progress-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    border-radius: 2px;
    animation: progressSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

@keyframes preloaderBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes progressSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Vibrant Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--hc-dark);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 70%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    z-index: 1040;
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 35%, #ec4899 70%, #10b981 100%);
    z-index: 1041;
}

.site-logo {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-logo:hover {
    transform: scale(1.03);
}

.navbar .nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .nav-link:hover {
    color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.navbar .nav-link.active {
    color: #1d4ed8 !important;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.1) 100%) !important;
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}

/* Specific Nav Icons Colorful Tint */
.nav-icon-home { color: #2563eb; }
.nav-icon-jobs { color: #7c3aed; }
.nav-icon-companies { color: #059669; }
.nav-icon-about { color: #d97706; }
.nav-icon-contact { color: #e11d48; }

/* Header Helpline Pill */
.header-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.05rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.header-phone-pill:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

/* Pulsing Live Dot */
.live-dot-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.live-dot-ping {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: livePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes livePing {
    0% { transform: scale(0.6); opacity: 0.9; }
    80%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Vivid Buttons */
.btn-primary {
    background: var(--hc-primary-gradient);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline-primary {
    color: var(--hc-primary);
    border: 1.5px solid #bfdbfe;
    font-weight: 600;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background-color: #eff6ff;
    border-color: var(--hc-primary);
    color: var(--hc-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* Colorful Hero Banner */
.hero-banner {
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

/* Colorful Hero Search Card */
.hero-search-card {
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 5px 15px -2px rgba(37, 99, 235, 0.06);
}

.search-field {
    position: relative;
}

.search-field .field-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
}

.search-field .form-control,
.search-field .form-select {
    padding-left: 2.85rem;
    height: 3.35rem;
    border-radius: 0.85rem;
    border: 1.5px solid #e2e8f0;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.search-field .form-control:focus,
.search-field .form-select:focus {
    background-color: #ffffff;
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* Hero Floating Visual Card */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    width: 100%;
    text-align: center;
}

.hero-main-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    min-height: 380px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 35px rgba(37, 99, 235, 0.16));
    animation: floatSlow 4.5s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-stat-badge {
    position: absolute;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 12px 28px -5px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.floating-stat-badge.badge-top-left {
    top: 5%;
    left: -10px;
}

.floating-stat-badge.badge-bottom-right {
    bottom: 8%;
    right: -10px;
    animation-delay: 2s;
}

@keyframes badgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* Colorful Category Cards */
.category-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: 1.4rem;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 1.15rem;
    box-shadow: var(--hc-card-shadow);
    position: relative;
    overflow: hidden;
}

.category-card-top {
    display: flex;
    align-items: center;
}

.cat-count-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--hc-primary-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: var(--hc-card-hover-shadow);
}

.category-card:hover::before {
    opacity: 1;
}

.cat-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.category-card:hover .cat-icon-box {
    transform: scale(1.08) rotate(3deg);
}

/* Category Color Variations */
.cat-color-1 { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; }
.cat-color-2 { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); color: #7c3aed; }
.cat-color-3 { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #059669; }
.cat-color-4 { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #d97706; }
.cat-color-5 { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #16a34a; }
.cat-color-6 { background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%); color: #c026d3; }
.cat-color-7 { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); color: #0891b2; }
.cat-color-8 { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); color: #e11d48; }

/* Job Cards with Colorful Elements */
.job-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--hc-card-shadow);
    position: relative;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: var(--hc-card-hover-shadow);
}

.company-logo-box {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.company-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.company-avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--hc-primary);
}

/* Badges & Tags */
.badge-soft {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-soft-primary {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.badge-soft-success {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.badge-soft-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-soft-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Colorful Company Cards */
.company-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.28s ease;
    box-shadow: var(--hc-card-shadow);
    text-decoration: none;
    display: block;
}

.company-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: var(--hc-card-hover-shadow);
}

.company-card-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 1.15rem;
    padding: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.company-card:hover .company-card-logo {
    transform: scale(1.08);
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.16);
}

.company-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Feature & Step Cards */
.step-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--hc-card-shadow);
    transition: all 0.25s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: var(--hc-card-hover-shadow);
}

.step-number-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hc-primary-gradient);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-img {
    height: 110px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--hc-card-shadow);
    height: 100%;
}

.user-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.star-rating {
    color: #f59e0b;
    font-size: 0.85rem;
}

/* Colorful CTA Banner */
.cta-banner-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.4);
}

.cta-banner-card::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

/* Mobile Friendly Sticky Apply Bar for Job Details */
.mobile-sticky-apply-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
    z-index: 1030;
}

/* 100% Mobile Responsiveness Enhancements */
@media (max-width: 991.98px) {
    .hero-banner {
        padding: 3rem 0 2.5rem;
    }
    .hero-main-img {
        max-width: 80%;
        margin-top: 2rem;
    }
    .floating-stat-badge {
        display: none !important;
    }
    .hero-search-card {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.95rem;
    }
    h1.display-4 {
        font-size: 2.15rem;
        line-height: 1.25;
    }
    h2 {
        font-size: 1.6rem;
    }
    .search-field .form-control,
    .search-field .form-select {
        height: 3.15rem;
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }
    .job-card {
        padding: 1.15rem;
    }
    .company-logo-box {
        width: 48px;
        height: 48px;
    }
    .cta-banner-card {
        padding: 2.25rem 1.5rem;
        text-align: center;
    }
    .mobile-sticky-apply-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .site-footer {
        padding-bottom: 5rem; /* leaves room for mobile sticky bar */
    }
}

/* ============================================================
   Footer Social Media Links & Modern Badges
   ============================================================ */
.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-icon-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.18);
}

.social-icon-btn.social-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-icon-btn.social-twitter:hover {
    background: #000000;
    border-color: #000000;
}

.social-icon-btn.social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon-btn.social-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: #d6249f;
}

.social-icon-btn.social-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* ============================================================
   Enhanced Apply Modal Form (100% Mobile Responsive & Elegant)
   ============================================================ */
#quickApplyModal .modal-dialog-scrollable {
    max-height: calc(100% - 2rem);
}

#quickApplyModal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#quickApplyModal .modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-apply-card {
    border-radius: 1.5rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35);
    background: #ffffff;
}

.modal-apply-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #7c3aed 100%);
    color: #ffffff;
    padding: 1.75rem 2rem;
    position: relative;
    border: none;
}

.modal-apply-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.modal-apply-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-apply-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.resume-dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.resume-dropzone:hover, .resume-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.resume-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.6rem;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
}

/* Form floating polish & touch inputs */
.apply-input-group {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1.5px solid #cbd5e1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.apply-input-group .input-group-text {
    background-color: #f8fafc;
    border: none;
    color: #64748b;
    padding-left: 1rem;
    padding-right: 0.85rem;
}

.apply-input-group .form-control {
    border: none;
    height: 46px;
    font-size: 0.95rem;
    padding-right: 1rem;
}

.apply-input-group .form-control:focus {
    box-shadow: none;
}

/* Jobs Page Mobile Refinements */
.jobs-quick-chip {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.jobs-quick-chip:hover, .jobs-quick-chip.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

@media (max-width: 576px) {
    #quickApplyModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        height: calc(100% - 1rem);
    }
    #quickApplyModal .modal-dialog-scrollable {
        max-height: calc(100% - 1rem);
    }
    #quickApplyModal .modal-dialog-scrollable .modal-content {
        max-height: calc(100% - 1rem);
    }
    .modal-apply-card {
        border-radius: 1.25rem !important;
    }
    .modal-apply-header {
        padding: 1.15rem 1.25rem !important;
    }
    .modal-apply-card .modal-body {
        padding: 1.15rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .modal-apply-card .modal-footer {
        padding: 1rem 1.15rem !important;
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
    }
    .modal-apply-card .modal-footer .btn {
        width: 100% !important;
        justify-content: center !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Job cards mobile reflow - 2-line split: Line 1 timestamp, Line 2 Details + Apply */
    .job-card {
        padding: 1.15rem !important;
    }
    .job-card .company-logo-box {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 12px !important;
    }
    .job-card-footer, .job-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }
    .job-card-footer-meta {
        width: 100% !important;
        display: block !important;
        font-size: 0.8rem !important;
    }
    .job-card-footer-buttons, .job-actions-row .job-btn-group {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .job-card-footer-buttons .btn, .job-actions-row .job-btn-group .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.65rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================================
   Popular Sectors / Category Cards Mobile App-Tile Reflow
   ============================================================ */
@media (max-width: 767.98px) {
    .category-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        padding: 0.95rem 0.85rem !important;
        gap: 0.65rem !important;
        border-radius: 1rem !important;
        min-height: 124px !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }
    .category-card-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .cat-icon-box {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        border-radius: 0.75rem !important;
    }
    .category-content {
        width: 100% !important;
    }
    .category-card .cat-title {
        font-size: 0.86rem !important;
        font-weight: 700 !important;
        line-height: 1.32 !important;
        color: #0f172a !important;
        white-space: normal !important;
        text-overflow: clip !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
        min-height: 2.3em !important;
    }
    .category-card:active {
        transform: scale(0.97);
        border-color: #93c5fd;
    }
}

/* Mobile Header Navigation Drawer */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 1.25rem;
        padding: 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
    }
    .site-header .navbar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        border-radius: 0.75rem;
        margin-bottom: 0.25rem;
    }
    .site-header .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.08));
    }
    .site-logo {
        max-height: 40px !important;
    }
}

/* ============================================================
   Admin Panel Micro-Animations & Colorful Enhancements
   ============================================================ */
.admin-card-hover {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.admin-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px -6px rgba(15, 23, 42, 0.08), 0 6px 12px -2px rgba(37, 99, 235, 0.04);
}

.admin-kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pipeline-progress-bar {
    height: 8px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    overflow: hidden;
    display: flex;
}

.pipeline-segment {
    height: 100%;
    transition: width 0.6s ease;
}

