/* The Big Job - Modern Professional Job Board Theme */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1754;
    --secondary: #ff6f00;
    --secondary-dark: #e65100;
    --accent: #ffa726;
    --dark: #2c3e50;
    --gray-dark: #455a64;
    --gray: #90a4ae;
    --gray-light: #ffffff;
    --light: #ffffff;
    --white: #ffffff;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #03a9f4;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6f00 0%, #ffa726 100%);
    --gradient-accent: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 100px;
    --transition: all 0.3s ease;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* Base & Typography */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark);
    background-color: #ffffff !important;
    position: relative;
}

/* CRITICAL FIX: Force homepage hero text visibility */
.hero-section {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.hero-section * {
    background-color: transparent !important;
}

.hero-section h1,
.hero-section .site-title {
    color: #000000 !important;
}

.hero-section .edition-date {
    color: #666666 !important;
}

.hero-section .tagline-text {
    color: #444444 !important;
}

.hero-section .divider {
    color: #999999 !important;
}

.hero-section .lead-headline,
.hero-section .lead-headline a,
.hero-section .headline-link {
    color: #000000 !important;
}

.hero-section .lead-excerpt,
.hero-section .secondary-excerpt {
    color: #333333 !important;
}

.hero-section .article-meta,
.hero-section .meta-category {
    background-color: #f0f0f0 !important;
    color: #333333 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.lead {
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Navigation & Header */
.navbar {
    transition: var(--transition);
    padding: 20px 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.navbar-dark .navbar-brand {
    color: var(--white);
}

.navbar-dark .navbar-brand span {
    color: var(--secondary);
}

/* Simple, Clean Logo Styling */
.text-logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 2.4rem;
    position: relative;
    display: inline-block;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.text-logo-accent {
    color: var(--secondary);
    font-weight: 800;
}

.logo-image {
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-image {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Legacy logo styles kept for compatibility */
.brand-text {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.brand-accent {
    color: var(--secondary);
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--white);
}

.navbar-expand-lg .navbar-nav .nav-link {
    position: relative;
}

.navbar-expand-lg .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
    opacity: 0;
}

/* Premium Categories Navigation */
.premium-nav {
    background: #1a237e;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.premium-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.premium-nav .nav-link:hover {
    color: #ffa726;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.premium-link {
    color: rgba(255,255,255,0.9);
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.premium-link:hover {
    color: #ffa726;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    text-decoration: none;
}

.navbar-expand-lg .navbar-nav .nav-link:hover::after,
.navbar-expand-lg .navbar-nav .nav-link.active::after {
    width: 20px;
    opacity: 1;
}

/* Buttons */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
}

@media (max-width: 767.98px) {
    .btn {
        padding: 0.5rem 1.2rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Prevent button animation causing issues on mobile */
    .pulse-animation {
        animation: none;
    }
}

.btn-sm {
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(88, 138, 140, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: var(--white);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--secondary-dark);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: var(--white);
}

.btn-accent:hover, .btn-accent:focus {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    border: none;
    color: var(--primary);
}

.btn-light:hover, .btn-light:focus {
    background: var(--gray-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
}

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

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon.btn-sm {
    width: 38px;
    height: 38px;
}

.btn-icon.btn-lg {
    width: 58px;
    height: 58px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: #ffffff !important;
    overflow: hidden;
}

.hero-section::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: 85vh;
        display: flex;
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem !important;
    }
    
    .mobile-hero-subtitle {
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        font-weight: 500;
        background-color: rgba(0,0,0,0.2);
        padding: 8px;
        border-radius: 8px;
        margin-bottom: 1rem !important;
        font-size: 0.95rem;
    }
    
    .mobile-feature-badge {
        background-color: rgba(0,0,0,0.25);
        padding: 8px 12px;
        border-radius: 6px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .search-box h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .search-box h2:after {
        bottom: -8px;
        width: 60px;
        height: 3px;
    }
}

.hero-section::before {
    display: none !important;
    content: none !important;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Enhanced Hero Premium Styles for Better Contrast */
.hero-premium {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-premium .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-premium .bg-gradient-primary {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(44, 62, 80, 0.95) 100%);
}

.hero-premium .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.hero-premium .text-accent {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-premium .text-gradient-gold {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-premium .hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-premium .hero-description strong {
    color: #ffd700;
    font-weight: 700;
}

.hero-premium .value-props {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-premium .value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hero-premium .value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 12px;
    color: #1a2332;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-premium .value-content {
    color: #f0f0f0;
    font-size: 1rem;
}

.hero-premium .value-content strong {
    color: #ffd700;
    font-weight: 700;
}

.hero-premium .btn-hero-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a2332;
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-premium .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.hero-premium .btn-hero-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-premium .btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-premium .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Particle Animation */
.hero-premium .particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-premium .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.hero-premium .particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.hero-premium .particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 20s; }
.hero-premium .particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 30s; }
.hero-premium .particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 22s; }
.hero-premium .particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 28s; }
.hero-premium .particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 24s; }
.hero-premium .particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 26s; }
.hero-premium .particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 23s; }
.hero-premium .particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 27s; }
.hero-premium .particle:nth-child(10) { left: 95%; animation-delay: 18s; animation-duration: 21s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Badge pulse animation */
.hero-premium .badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-premium .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-premium .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-premium .value-props {
        gap: 0.75rem;
    }
    
    .hero-premium .value-item {
        padding: 0.75rem;
    }
    
    .hero-premium .value-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-premium .value-content {
        font-size: 0.9rem;
    }
    
    .hero-premium .btn-hero-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-element {
    position: absolute;
    opacity: 0.2;
    z-index: 1;
}

.hero-element-1 {
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary);
    animation: float 6s ease-in-out infinite;
}

.hero-element-2 {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--accent);
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(8deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Search Section */
.search-section {
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.search-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.search-box:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(-5px);
}

/* Mobile app-like search */
@media (max-width: 767.98px) {
    .search-section {
        margin-top: -50px;
        position: relative;
        z-index: 10;
    }
    
    .search-box {
        border-radius: var(--radius-lg);
        padding: 20px 15px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-search-tabs {
        display: flex;
        overflow-x: auto;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 5px;
    }
    
    .mobile-search-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .mobile-search-tab {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
        background-color: var(--white);
        border-radius: var(--radius-full);
        white-space: nowrap;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-dark);
        transition: var(--transition);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-search-tab.active {
        background-color: var(--primary);
        color: var(--white);
        box-shadow: 0 3px 8px rgba(88, 138, 140, 0.2);
    }
    
    .mobile-nav-indicator {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }
    
    .mobile-nav-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #d1d1d1;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-dot.active {
        width: 12px;
        border-radius: 3px;
        background-color: var(--primary);
    }
}

.search-box h2 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    text-align: center;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
}

.search-box h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.search-box .form-control,
.search-box .form-select {
    border: 1px solid rgba(88, 138, 140, 0.2);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(88, 138, 140, 0.15);
    transform: translateY(-2px);
}

.search-box .input-group-text {
    background-color: var(--white);
    border: 1px solid rgba(88, 138, 140, 0.2);
    border-right: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    padding-left: 1.5rem;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-box .input-group .form-control {
    border-left: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding-left: 0.5rem;
}

/* Job Cards */
.job-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
}

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

/* Mobile app-like cards */
@media (max-width: 767.98px) {
    .job-card {
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .job-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .job-list-container {
        padding: 0 10px;
    }
    
    .mobile-card-swipe {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 10px;
        margin: 0 -15px;
        padding-left: 15px;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .mobile-card-swipe::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .mobile-card-swipe .job-card {
        flex: 0 0 280px;
        margin-right: 15px;
    }
    
    .mobile-pull-to-refresh {
        text-align: center;
        padding: 10px;
        color: var(--gray);
        font-size: 0.8rem;
    }
}

.job-card .card-header {
    background: var(--white);
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-light);
}

.job-card .company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--light);
    padding: 8px;
    border: 1px solid var(--gray-light);
}

.job-card .card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.job-card .company-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.job-card .card-body {
    padding: 1.25rem;
}

.job-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.8em;
    border-radius: var(--radius-full);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.badge-full-time {
    background-color: rgba(88, 138, 140, 0.1);
    color: var(--primary);
}

.badge-part-time {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.badge-remote {
    background-color: rgba(139, 195, 74, 0.1);
    color: var(--accent);
}

.badge-contract {
    background-color: rgba(3, 169, 244, 0.1);
    color: var(--info);
}

.badge-featured {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--secondary);
}

.featured-job {
    border-top: 3px solid var(--secondary);
}

.featured-job-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25em 0.8em;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.5rem;
}

/* Categories Section */
.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

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

.category-card .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(88, 138, 140, 0.1);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.category-card h5 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-card .job-count {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f1f4f9 0%, #d7e0ed 100%);
    padding: 5rem 0;
    position: relative;
}

.stats-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(88, 138, 140, 0.1);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.stats-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-section {
    padding: 5rem 0;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border-top: 3px solid var(--primary);
}

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

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(88, 138, 140, 0.1);
}

.testimonial-content {
    font-size: 1.05rem;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary);
}

.testimonial-author-info h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-logo-text {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.footer-logo-accent {
    color: var(--secondary);
}

.footer h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

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

.footer p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    margin-right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}

.footer-contact li:hover i {
    background: var(--secondary);
    color: var(--white);
}

.footer-social {
    list-style: none;
    padding-left: 0;
    display: flex;
    margin-top: 1.5rem;
}

.footer-social li {
    margin-right: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    padding-bottom: 120px; /* Extra padding for cookie bar */
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Company Logo Placeholders */
.company-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-header);
}

.company-profile-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--font-header);
    margin: 0 auto 1rem;
}

.small-company-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-header);
}

.company-profile-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--light);
    padding: 10px;
    margin: 0 auto 1rem;
}

.small-company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Job Details */
.job-details {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.job-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 2rem;
}

.job-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--light);
    padding: 15px;
    border: 1px solid var(--gray-light);
    margin-right: 2rem;
}

.job-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.job-company {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-full);
}

.job-meta-item i {
    margin-right: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

.job-meta-text {
    word-break: break-word;
}

.job-description {
    line-height: 1.8;
}

.job-description h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.job-description ul {
    padding-left: 1.5rem;
}

.job-description ul li {
    margin-bottom: 0.8rem;
}

.job-apply-box {
    background: linear-gradient(135deg, #f1f4f9 0%, #d7e0ed 100%);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.job-apply-box h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.job-apply-deadline {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.job-apply-deadline i {
    width: 40px;
    height: 40px;
    background: rgba(88, 138, 140, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 1rem;
}

.job-apply-deadline strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.job-apply-deadline span {
    font-size: 1.1rem;
    color: var(--dark);
}

/* Companies Page */
.company-grid-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid var(--gray-light);
}

.company-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
}

.company-grid-card .company-banner {
    height: 100px;
    background: linear-gradient(135deg, #f1f4f9 0%, #d7e0ed 100%);
    position: relative;
    overflow: hidden;
}

.company-grid-card .company-banner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm10 17.5c4.142 0 7.5-3.358 7.5-7.5S14.142 2.5 10 2.5 2.5 5.858 2.5 10s3.358 7.5 7.5 7.5zM20 20v20h20V20H20zm10 17.5c-4.142 0-7.5-3.358-7.5-7.5s3.358-7.5 7.5-7.5 7.5 3.358 7.5 7.5-3.358 7.5-7.5 7.5z' fill='%23FFFFFF' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.company-grid-card .company-logo-wrapper {
    margin-top: -50px;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.company-grid-card .company-logo {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: contain;
    background: var(--white);
    padding: 12px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.company-grid-card:hover .company-logo {
    transform: scale(1.05);
}

.company-grid-card .company-body {
    padding: 0 1.5rem 1.8rem;
}

.company-grid-card .company-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    transition: color 0.2s ease;
}

.company-grid-card:hover .company-name {
    color: var(--primary);
}

.company-grid-card .company-location {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-grid-card .company-location i {
    margin-right: 5px;
    font-size: 0.8rem;
    color: var(--primary);
}

.company-grid-card .company-industry {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background-color: var(--light);
    border-radius: var(--radius-full);
}

.company-grid-card .company-job-count {
    background: rgba(88, 138, 140, 0.1);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.2rem;
    transition: background 0.2s ease;
}

.company-grid-card:hover .company-job-count {
    background: rgba(88, 138, 140, 0.2);
}

.company-grid-card .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.company-grid-card:hover .btn-outline-primary {
    background-color: var(--primary);
    color: var(--white);
}

/* Filter bar for companies page */
.companies-filter-bar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid var(--gray-light);
}

.companies-filter-bar .filter-label {
    font-weight: 600;
    color: var(--gray-dark);
    margin-right: 0.5rem;
}

.companies-search {
    flex-grow: 1;
}

.companies-search .input-group {
    max-width: 300px;
}

.companies-search .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border: 1px solid var(--gray-light);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.companies-search .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding: 0.5rem 1rem;
}

/* Enhanced company card for companies page */
.company-card-enhanced {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card-enhanced:hover {
    transform: translateY(-5px);
}

.company-profile-logo-enhanced {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--light);
    padding: 15px;
    margin: 0 auto 1.2rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.company-card-enhanced:hover .company-profile-logo-enhanced {
    transform: scale(1.05);
}

/* Enhanced job listings */
.job-card-enhanced {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.job-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
}

.job-card-enhanced .card-body {
    padding: 1.5rem;
}

.job-card-enhanced .job-logo-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.job-card-enhanced:hover .job-logo-wrapper {
    transform: scale(1.05);
}

.job-card-enhanced .job-company-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background-color: var(--light);
    padding: 10px;
    border: 3px solid var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.job-card-enhanced .job-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--dark);
    transition: color 0.2s ease;
}

.job-card-enhanced:hover .job-title {
    color: var(--primary);
}

.job-card-enhanced .job-company {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.7rem;
    transition: color 0.2s ease;
}

.job-card-enhanced .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.job-card-enhanced .job-meta-item {
    display: flex;
    align-items: center;
    color: var(--gray-dark);
}

.job-card-enhanced .job-meta-item i {
    color: var(--primary);
    margin-right: 5px;
    font-size: 0.9rem;
}

.job-card-enhanced .job-badges {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-card-enhanced .job-badge {
    font-size: 0.7rem;
    padding: 0.35em 0.8em;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.job-card-enhanced .badge-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--warning) 100%);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
    z-index: 1;
}

/* Jobs filter sidebar */
.jobs-filter-sidebar {
    position: sticky;
    top: 2rem;
}

.jobs-filter-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.jobs-filter-card .card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    padding: 1.2rem 1.5rem;
}

.jobs-filter-card .card-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--dark);
}

.jobs-filter-card .card-body {
    padding: 1.5rem;
}

.jobs-filter-card .form-label {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.jobs-filter-card .form-control,
.jobs-filter-card .form-select {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.jobs-filter-card .form-control:focus,
.jobs-filter-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(88, 138, 140, 0.1);
}

/* Mobile filter toggle */
.mobile-filter-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(88, 138, 140, 0.3);
    z-index: 999;
    border: none;
    font-size: 1.2rem;
}

.mobile-filter-toggle:hover,
.mobile-filter-toggle:focus {
    background: var(--primary-dark);
    color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section img {
        margin-top: 2rem;
    }
    
    .search-box {
        padding: 30px 20px;
    }
    
    .search-box .btn {
        margin-top: 1rem;
        width: 100%;
    }
    
    .mobile-hero-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        position: relative;
        z-index: 5;
    }
    
    .mobile-hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Mobile app-like section headers */
    .mobile-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding: 0 5px;
    }
    
    .mobile-section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
        font-weight: 700;
    }
    
    .mobile-section-header .view-all {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
    }
}
    
    .job-header {
        flex-direction: column;
        text-align: center;
    }
    
    .job-logo {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .job-apply-box {
        margin-top: 2rem;
        position: static;
    }
    
    /* Better job details layout for iPad/tablets */
    .job-details {
        margin-top: -50px;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 12px 0;
    }
    
    /* Mobile styles for companies page */
    .companies-filter-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Mobile styles for jobs page */
    section.bg-light {
        padding: 1.5rem 0 !important;
    }
    
    section.bg-light h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    section.bg-light .badge {
        margin-top: 0.5rem;
    }
    
    .quick-filter-scroll {
        margin: 0 -15px;
        padding: 8px 15px;
        padding-bottom: 12px;
        display: flex;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
        gap: 8px;
        background: rgba(248, 250, 253, 0.9);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }
    
    .quick-filter-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .quick-filter-scroll .btn {
        flex: 0 0 auto;
        margin-right: 4px;
        border-radius: 30px;
        padding: 8px 16px;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }
    
    .quick-filter-scroll .btn:active {
        transform: scale(0.96);
    }
    
    .quick-filter-scroll .btn-primary {
        box-shadow: 0 3px 10px rgba(88, 138, 140, 0.2);
    }
    
    .quick-filter-scroll .btn-outline-primary {
        background: white;
    }
    
    .mobile-filter-toggle {
        display: flex;
    }
    
    .jobs-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .jobs-filter-sidebar.active {
        transform: translateX(0);
    }
    
    .close-filters {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark);
        cursor: pointer;
    }
    
    .jobs-filter-card {
        margin-bottom: 1rem;
    }
    
    .job-card-enhanced .row {
        flex-direction: column;
    }
    
    .job-card-enhanced .job-logo-wrapper {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .job-card-enhanced .job-company-logo {
        width: 60px;
        height: 60px;
    }
    
    .job-card-enhanced .job-title {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .job-card-enhanced .job-company {
        text-align: center;
    }
    
    .job-card-enhanced .job-badges {
        justify-content: center;
    }
    
    .job-card-enhanced .job-meta {
        justify-content: center;
    }
    
    .job-card-enhanced .job-actions {
        display: flex;
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .job-card-enhanced .job-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .companies-search {
        width: 100%;
    }
    
    .companies-search .input-group {
        max-width: 100%;
    }
    
    .company-grid-card {
        margin-bottom: 1rem;
    }
    
    .company-grid-card .company-banner {
        height: 80px;
    }
    
    .company-grid-card .company-logo {
        width: 80px;
        height: 80px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        border: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        background: var(--white);
        border-radius: 12px;
        margin-top: 10px;
        padding: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-dark .navbar-collapse .nav-link {
        color: var(--dark);
    }
    
    .navbar-dark .navbar-collapse .nav-link:hover {
        color: var(--primary);
    }
    
    .footer-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-text {
        font-size: 1.6rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer {
        padding: 3rem 0 2rem; /* Padding restored to normal */
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    /* Improved job details page for mobile */
    .job-details {
        margin-top: -40px;
        padding: 1.5rem;
    }
    
    .job-meta-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
    
    .job-description h4,
    .job-requirements h4,
    .application-instructions h4 {
        font-size: 1.2rem;
    }
    
    /* Improve button group spacing */
    .job-details .d-flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }
    
    .job-details .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Application form improvements */
    #application-form .form-control, 
    #application-form .form-select {
        font-size: 16px; /* Prevents iOS zoom on input focus */
    }
    
    /* Similar jobs layout improvements */
    .list-group-item .d-flex {
        align-items: center;
    }
}

/* Job action buttons styling */
.job-action-buttons {
    justify-content: space-between;
}

.job-apply-btn {
    font-weight: 700;
}

.action-buttons-secondary {
    display: flex;
    gap: 0.5rem;
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* General mobile app styling */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Jobs page mobile improvements */
    .job-card-mobile {
        margin-bottom: 0.75rem;
    }
    
    .job-card-mobile .card {
        border: none;
        transition: transform 0.15s ease;
    }
    
    .job-card-mobile .card:active {
        transform: scale(0.98);
    }
    
    .job-card-enhanced {
        margin-bottom: 0.75rem;
        border-radius: var(--radius-md);
    }
    
    .job-card-enhanced .card-body {
        padding: 1rem;
    }
    
    .job-card-enhanced .job-company-logo {
        width: 50px;
        height: 50px;
    }
    
    .job-card-enhanced .job-badge {
        font-size: 0.65rem;
    }
    
    .mobile-filter-toggle {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }
    
    .jobs-filter-sidebar {
        padding: 1rem;
    }
    
    .jobs-filter-card {
        border-radius: var(--radius-md);
    }
    
    .jobs-filter-card .card-header {
        padding: 1rem;
    }
    
    .jobs-filter-card .card-body {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 30px 0 100px;
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2.1rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead,
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .search-section {
        margin-top: -60px;
    }
    
    .search-box {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .search-box h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile app-like bottom nav indicators */
    .mobile-nav-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 2.5rem 0 1.5rem;
        z-index: 10;
        position: relative;
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-radius: 30px;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    }
    
    .current-page-info {
        position: absolute;
        top: -24px;
        font-size: 0.75rem;
        color: var(--gray);
        background: white;
        padding: 4px 10px;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        font-weight: 600;
    }
    
    .mobile-nav-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--gray-light);
        margin: 0 6px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        position: relative;
        opacity: 0.7;
    }
    
    /* Increase tap target size */
    .mobile-nav-dot::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
    
    .mobile-nav-dot:hover {
        transform: scale(1.2);
        opacity: 0.9;
    }
    
    .mobile-nav-dot.active {
        background-color: var(--primary);
        width: 26px;
        border-radius: 4px;
        box-shadow: 0 3px 8px rgba(88, 138, 140, 0.3);
        opacity: 1;
    }
    
    /* Add subtle animation for active dot */
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(88, 138, 140, 0.4); }
        70% { box-shadow: 0 0 0 6px rgba(88, 138, 140, 0); }
        100% { box-shadow: 0 0 0 0 rgba(88, 138, 140, 0); }
    }
    
    .mobile-nav-dot.active {
        animation: pulse 2s infinite;
    }
    
    /* Category cards for mobile */
    .category-card {
        padding: 1rem;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .category-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .category-card .job-count {
        font-size: 0.8rem;
    }
    
    /* Job details specific styles */
    .job-details {
        margin-top: -30px;
        padding: 1.25rem;
        border-radius: var(--radius-sm);
    }
    
    .job-header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .job-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .company-profile-logo {
        width: 90px;
        height: 90px;
    }
    
    /* Full width buttons on extra small screens */
    .job-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .job-action-buttons .btn,
    .job-action-buttons button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons-secondary {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-buttons-secondary .btn {
        flex: 1;
        margin-bottom: 0;
    }
    
    /* Make breadcrumb more compact */
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    /* Sidebar cards more compact */
    .card-header h5 {
        font-size: 1.1rem;
    }
    
    /* Make application form more mobile friendly */
    #application-form .card-body {
        padding: 1rem;
    }
    
    /* Improve text readability on small screens */
    .job-description, 
    .job-requirements, 
    .application-instructions {
        font-size: 0.95rem;
    }
}

/* Fix for mobile jobs filter bar */
.quick-filter-scroll {
    width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 8px 0;
    gap: 8px;
}

.quick-filter-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Mobile filter overlay fixes */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 1050;
    overflow-y: auto;
}

.mobile-filter-overlay.active {
    display: block;
}

.mobile-filter-content {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Additional mobile job card fixes */
@media (max-width: 767.98px) {
    .job-card-mobile {
        width: 100%;
    }
    
    .job-card-mobile .card {
        box-shadow: var(--shadow-sm);
        transition: transform 0.2s ease;
    }
    
    .job-card-mobile .card:active {
        transform: scale(0.98);
    }
    
    .job-logo-mobile {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
    }
    
    .mobile-nav-indicator {
        margin: 1.5rem 0;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    z-index: 999999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h6 {
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: white;
    text-decoration: none;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner .btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.cookie-banner .btn-accept {
    background: var(--secondary);
    color: white;
}

.cookie-banner .btn-accept:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.cookie-banner .btn-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner .btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-banner .btn-settings {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.cookie-banner .btn-settings:hover {
    background: var(--secondary);
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-overlay.show {
    display: flex;
}

.cookie-settings-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h5 {
    margin: 0;
    color: var(--dark);
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-close:hover {
    color: var(--dark);
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category h6 {
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.cookie-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 13px;
    transition: 0.2s;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--secondary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: #999;
    cursor: not-allowed;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-settings-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .cookie-banner {
        padding: 16px;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        transform: translateY(100%);
    }
    
    .cookie-banner.show {
        transform: translateY(0) !important;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-banner .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-settings-modal {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 16px;
    }
}