/* --- CAREER HERO (Listing Page) --- */
.career-hero {
    padding: 140px 0 60px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}
.career-hero h1 { font-size: 3rem; margin-bottom: 15px; }
.career-hero p { color: var(--text-gray); max-width: 600px; margin: 0 auto; }

/* Disclaimer & Grid (Same as before) */
.disclaimer-box {
    background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 30px; border-radius: 12px; text-align: center; margin-bottom: 60px;
    max-width: 900px; margin-left: auto; margin-right: auto;
}
.disclaimer-title { color: #ef4444; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; text-transform: uppercase; }
.disclaimer-text { color: #fca5a5; font-size: 0.9rem; line-height: 1.6; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding-bottom: 100px; }
.job-card { 
    background: var(--bg-card); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 16px; 
    overflow: hidden; 
    transition: 0.3s; 
    position: relative; 
    text-decoration: none; /* লিংক আন্ডারলাইন রিমুভ */
    color: inherit; /* টেক্সট কালার যেন সাদা/গ্রে থাকে */
    cursor: pointer; /* মাউস নিলে হাত আইকন আসবে */
    display: flex; 
    flex-direction: column;
 }

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

.job-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.card-thumb { height: 180px; width: 100%; object-fit: cover; }
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.job-status { position: absolute; top: 15px; right: 15px; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(5px); }
.status-open { background: rgba(16, 185, 129, 0.9); color: white; }
.status-closed { background: rgba(239, 68, 68, 0.9); color: white; }
.job-title { font-size: 1.25rem; margin-bottom: 10px; color: var(--text-white); }
.job-meta { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 20px; display: flex; gap: 15px; }


/* =========================================
   🔥 NEW JOB DETAILS STYLES (Fixed Layout)
   ========================================= */

/* 1. Navbar Overlap Fix */
.job-details-container {
    padding-top: 140px; /* Safe space for navbar */
    padding-bottom: 100px;
}

/* 2. Top Header Area */
.job-header-area {
    margin-bottom: 40px;
}
.job-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}
.job-tags {
    display: flex;
    gap: 15px;
    align-items: center;
}
.tag-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 3. Grid Layout (Reference Image Style) */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% - 33% Split */
    gap: 40px;
}
@media (max-width: 991px) { .details-grid { grid-template-columns: 1fr; } }

/* Left Column */
.cover-img-large {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.content-section h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.content-section p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 30px;
}
.content-bullets {
    list-style: none;
    margin-bottom: 30px;
}
.content-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #94a3b8;
    line-height: 1.6;
}
.content-bullets li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: -5px;
}

/* Right Column (Sidebar Widget) */
.overview-card {
    background: #1e293b; /* Darker card */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 120px; /* Sticky below navbar */
}

.overview-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}

.overview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.ov-label { color: #94a3b8; }
.ov-value { color: white; font-weight: 500; text-align: right; }

.apply-btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    background: var(--accent-gradient); /* Uses your global gradient */
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.apply-btn-full:hover {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   🔥 APPLICATION MODAL & FORM DESIGN
   ========================================= */

/* 1. Modal Overlay (Background) */
.apply-modal {
    display: none; /* JS will toggle this */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker backdrop */
    backdrop-filter: blur(8px); /* Blur effect behind modal */
    
    /* Center Content */
    align-items: center;
    justify-content: center;
}

.apply-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

/* 2. Modal Box (The Card) */
.modal-content {
    background: #1e293b; /* Solid Dark Blue (matches theme) */
    /* Alternative: background: var(--bg-card); if variables work */
    
    width: 90%;
    max-width: 500px;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto; /* Scroll if height is too small */
}

/* Close Button (Top Right) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.close-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* 3. Form Input Groups */
.input-group {
    background: rgba(15, 23, 42, 0.6); /* Darker inner background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

/* Focus Effect */
.input-group:focus-within {
    border-color: var(--primary); /* Blue border on click */
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Icons inside Input */
.input-group i {
    color: #64748b; /* Muted gray icon */
    font-size: 1.1rem;
    transition: 0.3s;
}
.input-group:focus-within i {
    color: var(--primary); /* Blue icon on focus */
}

/* Actual Input Fields */
.input-group input, 
.input-group textarea {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #64748b; /* Placeholder color */
}

/* 4. File Upload Box */
.file-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.file-upload-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.file-upload-box p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 5. Submit Button */
#submitBtn {
    margin-top: 25px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 12px;
    /* Uses global btn-primary style if available, else fallback */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.success-message { text-align: center; padding: 40px 20px; display: none; }
.success-icon { font-size: 4rem; color: #10b981; margin-bottom: 20px; }