/* ===================================================================
   JOBS PAGE — Premium Redesign (Red/White Theme)
   =================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────── */
.jobs-hero {
    position: relative;
    overflow: hidden;
    /* Reddish gradient restored inline in moments.php and jobs.php */
}

/* Very soft glowing mesh effect for hero */
.jobs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(184, 74, 90, 0.08) 0%, rgba(253, 253, 253, 0) 50%);
    z-index: 1;
    pointer-events: none;
    animation: slowPulse 15s ease-in-out infinite alternate;
}

.jobs-hero .display-4 {
    letter-spacing: -1.5px;
    color: #ffffff;
    text-shadow: none; /* No muddy shadows */
}

.jobs-hero p.lead {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* ── Jobs Section ─────────────────────────────────────────────────── */
.jobs-section-bg {
    background: #fdfdfd; /* Ultra-light red-tinted white */
}

/* ── Premium Job Cards ────────────────────────────────────────────── */
.premium-job-card {
    background: #ffffff;
    border: 1px solid rgba(184, 74, 90, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(100, 32, 39, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 420px; /* slightly taller for better padding */
    width: 100%;
}

.premium-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(100, 32, 39, 0.1);
    border: 1px solid rgba(184, 74, 90, 0.15);
}

.premium-job-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    height: 100%;
    position: relative;
    z-index: 3;
}

.premium-job-card .card-content {
    flex-grow: 1;
}

.premium-job-card .card-action {
    margin-top: auto;
}

.premium-job-title {
    color: #642027;
    font-weight: 700;
    letter-spacing: -0.5px;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
}

.premium-job-desc {
    color: #8a3b45 !important;
    font-weight: 400;
    line-height: 1.5;
    height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.premium-job-badge {
    background-color: rgba(184, 74, 90, 0.1);
    color: #b84a5a;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(184, 74, 90, 0.2);
    font-size: 0.85rem;
    display: inline-block;
}

.premium-btn-apply {
    background: transparent;
    color: #b84a5a;
    border: 1px solid #b84a5a;
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
}

.premium-btn-apply:hover {
    background: #b84a5a;
    color: #fff;
    transform: scale(1.02);
}

.premium-btn-applied {
    background: #e2f0e6; /* Soft green tint */
    color: #28a745;
    border: 1px solid rgba(40,167,69,0.3);
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: not-allowed;
}

/* Background overlays */
.job-card-bg {
    border-radius: 1.5rem;
    /* Inline styles apply background image */
}

.job-card-overlay {
    border-radius: 1.5rem;
    background: linear-gradient(120deg, rgba(100,32,39,0.08) 60%, rgba(184,74,90,0.08) 100%);
}

.animate-job-card {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: fadeInUp 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
