/* Base & Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
}

/* Utilities */
.text-primary {
    color: #4f46e5 !important;
}
.bg-primary {
    background-color: #4f46e5 !important;
}
.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}
.section-title {
    font-weight: 700;
    color: #1e293b;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #4f46e5;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Slider */
.hero-wrapper {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.hero-wrapper .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}
.hero-wrapper .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.5));
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

/* Search Box Overlay */
.search-job-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-50%);
    z-index: 10;
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}
.form-control:focus, .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Job Cards */
.job-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.job-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: #cbd5e1;
}
.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f1f5f9;
    padding: 5px;
}
.job-type-badge {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-weight: 600;
}

/* Categories */
.category-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.category-card:hover {
    background-color: #4f46e5;
    color: white !important;
    border-color: #4f46e5;
    transform: translateY(-5px);
}
.category-card:hover .category-icon {
    color: white;
}
.category-icon {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* Companies */
.company-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.company-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Pricing Plans */
.pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px 100px 30px; /* Increased bottom padding to 100px to accommodate absolute button accurately */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}
.pricing-card.popular {
    border-color: #4f46e5;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
}
.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #4f46e5;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
}
.pricing-features li {
    margin-bottom: 12px;
    color: #475569;
}
.pricing-features i {
    color: #10b981;
    margin-right: 10px;
}

/* Footer fixes */
.footer-link {
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Responsive & UI/UX Hardening */
@media (max-width: 768px) {
    /* Touch Target Enhancements (Minimum 48px for accessibility) */
    .btn, .form-control, .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    }
    .page-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Typography & Spacing Scaling */
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-wrapper, .hero-wrapper .carousel-item {
        height: 500px;
    }
    .search-job-form {
        margin: 0 15px;
        transform: translateY(-20px);
        padding: 15px;
    }
    .category-card {
        padding: 20px 15px;
    }
    .pricing-card {
        padding: 30px 20px;
    }
    .pricing-price {
        font-size: 2.5rem;
    }

    /* Modal padding adjustments */
    .modal-body {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
