/* ================================
   CAREER DETAILS PAGE
================================ */

/* Common */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

h1,
h2,
h3 {
    color: #1f2937;
    font-weight: 400;
}

p {
    color: #383a3e;
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: 450;
}

/* ================================
   HERO
================================ */
.career-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 70px 0;
}

.career-hero .hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 12px;
}

.career-hero .hero-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 12px 0;
}

.career-hero .job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1.2rem;
    opacity: 0.9;
    color: #1e1e27;
}

/* ================================
   JOB DETAILS
================================ */
.job-details {
    padding: 60px 0;
    background: #f9fafb;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Main Content */
.job-main {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
}

.job-section {
    margin-bottom: 35px;
}

.job-section h2 {
    font-size: 28px;
    margin-bottom: 14px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
}

.job-section ul {
    padding-left: 20px;
}

.job-section ul li {
    margin-bottom: 10px;
    list-style: disc;
    font-size: 1.2rem;
    font-weight: 450;
}

/* ================================
   SIDEBAR
================================ */
.job-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.job-summary-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.job-summary-card h3 {
    margin-bottom: 18px;
    font-size: 20px;
}

.job-summary-card ul {
    list-style: none;
    padding: 0;
}

.job-summary-card ul li {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.job-summary-card ul li strong {
    color: #111827;
}

/* Apply Button */
.apply-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #2563eb;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.apply-btn:hover {
    background: #1e40af;
}

/* ================================
   APPLY FORM
================================ */
.apply-section {
    padding: 70px 0;
    background: #fff;
}

.apply-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.apply-section form {
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ================================
   RELATED JOBS
================================ */
.related-jobs {
    padding: 60px 0;
    background: #f9fafb;
}

.related-jobs h2 {
    text-align: center;
    margin-bottom: 30px;
}

.related-jobs .jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-jobs .job-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.related-jobs .job-card:hover {
    transform: translateY(-4px);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .career-hero .hero-title {
        font-size: 28px;
    }

    .job-details-grid {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        position: static;
    }
}
.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.app-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.app-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.app-modal-overlay.active .app-modal-box {
    transform: scale(1) translateY(0);
}
.app-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.app-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #111;
}
.app-modal-sub {
    font-size: 15px;
    color: #555;
    margin: 0 0 1.75rem;
    line-height: 1.6;
}
.app-modal-bar-wrap {
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.app-modal-bar {
    height: 100%;
    background: #43a047;
    border-radius: 4px;
    width: 100%;
    animation: drainBar 4s linear forwards;
}
@keyframes drainBar {
    from { width: 100%; }
    to   { width: 0%; }
}
.app-modal-close {
    background: #43a047;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.75rem;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}
.app-modal-close:hover { opacity: 0.88; }