/**
 * Job Portal Homepage Styles
 * Uses Central Color Controller (_branding-config.css)
 */

/* =========================================
   HERO SECTION
   ========================================= */
.job-portal-wrapper {
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.hero-section {
    background: radial-gradient(circle at 10% 20%, rgb(0, 82, 204) 0%, rgb(0, 41, 102) 90%);
    position: relative;
    padding: 100px 0 120px;
    color: var(--color-white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    opacity: 0.85;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 1.5rem !important;
    /* Force padding override */
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Glassmorphism Search Box - RESTORED */
.hero-signup-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.btn-social-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-social-login--outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.btn-social-login--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   PREMIUM JOBS SECTION
   ========================================= */
/* Fix Input Group Height Alignment */
.hero-signup-box .input-group {
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    /* Left padding for icon area */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    display: flex;
    align-items: center;
}

.hero-signup-box .input-group-text {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 10px;
    color: #94a3b8;
    /* Slate 400 */
}

.hero-search-input {
    border: none;
    padding: 0;
    font-size: 1.05rem;
    height: auto;
    box-shadow: none !important;
    background: transparent;
    color: #334155;
    font-weight: 500;
}

.hero-search-input::placeholder {
    color: #cbd5e1;
}

.hero-search-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    border: none;
    padding: 0.8rem 2.2rem;
    /* Comfortable button padding */
    border-radius: 50px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    height: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.hero-search-btn:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    /* Orange glow */
}

.premium-jobs-section {
    background-color: #f8f9fc;
    /* Slightly blue-tinted gray */
    position: relative;
    z-index: 10;
    /* margin-top: -60px; */
    /* Overlap effect */
    /* border-radius: 40px 40px 0 0; */
    padding-top: 80px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.section-title {
    color: #1e293b;
    /* Slate 800 */
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.filter-pills-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 1rem;
    /* Space for shadow */
}

.filter-pills-container::-webkit-scrollbar {
    display: none;
}

.btn-pill-filter {
    background-color: var(--color-white);
    border: 1px solid #e2e8f0;
    /* Slate 200 */
    color: #64748b;
    /* Slate 500 */
    border-radius: 50px;
    padding: 0.6rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-pill-filter:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-pill-filter.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
    /* Need RGB var or fallback */
}


/* Job Cards */
.premium-job-card {
    width: 340px;
    /* Slightly wider */
    min-width: 340px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: var(--color-white);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.premium-job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: transparent;
}

.badge-hiring {
    background-color: var(--color-success-light) !important;
    color: var(--color-success) !important;
    border: none !important;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-meta-icon {
    color: var(--color-muted);
}

.btn-view-details {
    color: var(--color-primary);
    font-weight: 600;
}

.btn-view-details:hover {
    color: var(--color-primary-dark);
}

.slider-nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-color: var(--color-border) !important;
    transition: all 0.2s ease;
}

.slider-nav-btn:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary) !important;
    color: var(--color-primary);
}

.slider-nav-btn:hover i {
    color: var(--color-primary) !important;
}

.slider-nav-btn:active {
    transform: scale(0.95);
}

/* =========================================
   CALL TO ACTION & STATS
   ========================================= */
.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0;
}

.cta-section {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    color: var(--color-white);
    margin-top: 1.5rem;
    /* Reduced from 2.5rem */
}

.cta-btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
    border: none;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--color-light);
    transform: scale(1.05);
}

/* =========================================
   WP JOB PORTAL OVERRIDES (HOMEPAGE ONLY)
   ========================================= */

/* Hide breadcrumbs and default title on homepage */
.page-template-job-portal .wjportal-page-header {
    display: none !important;
}

/* Hide default search filter on homepage */
.page-template-job-portal .wjportal-filter-search-main-wrp,
.page-template-job-portal .wjportal-filter-aisearch-main-wrp {
    display: none !important;
}

/* Style Job List Wrapper */
.page-template-job-portal .wjportal-jobs-list-wrapper {
    display: grid;
    gap: 1.5rem;
}

/* Style Job List Items to match Premium Cards */
.page-template-job-portal .wjportal-jobs-list {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 0;
    /* Handled by grid gap */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.page-template-job-portal .wjportal-jobs-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Premium hover shadow */
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

/* Inner Layout Fixes */
.page-template-job-portal .wjportal-jobs-list-top-wrp {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Adjust Logo Size */
.page-template-job-portal .wjportal-job-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    padding: 5px;
}

/* Simplify Controls */
.page-template-job-portal .wjportal-job-controls {
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

/* =========================================
   NEW SECTIONS (Trusted, Categories, How-to)
   ========================================= */

/* Trusted Companies Marquee */
.trusted-companies-section {
    position: relative;
    margin-top: -40px;
    /* Floating Overlap Effect */
    margin-bottom: 2rem;
}

.logos-marquee {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    animation: scrollLogos 40s linear infinite;
    width: max-content;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logos-track img {
    height: 30px !important;
    width: auto !important;
    max-width: none;
    /* Prevent standard responsive max-width from interfering */
    margin: 0 40px;
    display: block;
}

.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    opacity: 0.5;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

/* Category Grid */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--color-primary) !important;
}

/* Color Utilities for Icons */
.bg-blue-light {
    background-color: #e0f2fe;
}

.bg-purple-light {
    background-color: #f3e8ff;
}

.bg-green-light {
    background-color: #dcfce7;
}

.bg-orange-light {
    background-color: #ffedd5;
}

.text-purple {
    color: #9333ea;
}

.text-orange {
    color: #ea580c;
}

/* How It Works Steps */
.step-card {
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 1.5rem;
}