/* =====================================================
   AZAL Airlines - Premium Jobs / Careers Page
   Matches the Services Page design language
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

body {
    background-color: #f4f7fa;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* ========== HERO SECTION ========== */
.jobs-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, #020c24 0%, #0a1f4a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    direction: rtl;
}

.hero-circles {
    position: absolute;
    right: -10%;
    top: -50%;
    width: 60%;
    height: 200%;
    border-radius: 50%;
    border: 1px solid rgba(212, 160, 23, 0.15);
    box-shadow: 0 0 0 40px rgba(212, 160, 23, 0.08),
                0 0 0 80px rgba(212, 160, 23, 0.05),
                0 0 0 120px rgba(212, 160, 23, 0.03);
    z-index: 1;
}

.jobs-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to left, rgba(2, 12, 36, 0.95) 0%, rgba(10, 31, 74, 0.5) 100%);
    z-index: 2;
}

.hero-plane-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-right: 0;
    margin-left: auto;
}

.hero-subtitle {
    color: #d4a017;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

/* ========== JOBS GRID WRAPPER ========== */
.jobs-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding-bottom: 80px;
    direction: rtl;
}

.jobs-container-box {
    background: #ffffff;
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(10, 31, 74, 0.06);
}

.jobs-header {
    text-align: center;
    margin-bottom: 40px;
}

.jobs-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #020c24;
    margin-bottom: 10px;
}

.jobs-header p {
    color: #6c7a9c;
    font-size: 1.1rem;
}

/* ========== JOB CARD ========== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.job-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    background: #ffffff;
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 15px 35px rgba(10, 31, 74, 0.08);
    transform: translateY(-5px);
}

.job-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #020c24;
    margin: 0;
}

.job-department {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d4a017;
    background: rgba(212, 160, 23, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c7a9c;
    font-weight: 600;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: #d4a017;
}

.job-desc {
    color: #6c7a9c;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.job-date {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 600;
}

.btn-gold-outline {
    background: transparent;
    color: #d4a017;
    border: 2px solid #d4a017;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background: #d4a017;
    color: #020c24;
}

/* ========== APPLY FORM ========== */
.apply-container {
    max-width: 800px;
    margin: 0 auto;
}

.apply-job-header {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-job-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0a1f4a;
    margin-bottom: 5px;
}

.apply-job-meta {
    color: #6c7a9c;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-label {
    display: block;
    font-weight: 700;
    color: #0a1f4a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.premium-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    background: #f8fafc;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1rem;
    color: #020c24;
    transition: all 0.3s ease;
}

.premium-input:focus {
    outline: none;
    border-color: #d4a017;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.btn-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px dashed #d4a017;
    border-radius: 12px;
    color: #0a1f4a;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-wrapper:hover .btn-file {
    background: rgba(212, 160, 23, 0.05);
}

.btn-gold {
    background: linear-gradient(90deg, #d4a017, #e6b32b);
    color: #020c24 !important;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 160, 23, 0.4);
}

/* Alert styles */
.alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInDown 0.5s ease forwards;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .jobs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .jobs-hero { height: 45vh; min-height: 320px; }
    .hero-title { font-size: 2rem; line-height: 1.3; }
    .hero-subtitle { font-size: 1rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-content { max-width: 100%; padding: 0 10px; }
    .jobs-container-box { padding: 30px 15px; border-radius: 20px; }
    .jobs-header h2 { font-size: 1.5rem; }
    .job-card { padding: 20px 15px; }
    .job-title { font-size: 1.15rem; }
    .job-desc { font-size: 0.9rem; }
    .apply-job-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-gold { padding: 14px 30px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .jobs-hero { height: 40vh; min-height: 280px; }
    .hero-title { font-size: 1.7rem; }
    .hero-desc { font-size: 0.8rem; }
    .jobs-container-box { padding: 25px 12px; }
    .job-card { padding: 15px 12px; }
    .job-title { font-size: 1.05rem; }
    .premium-input { padding: 12px 15px; font-size: 0.9rem; }
    .btn-gold { padding: 12px 20px; font-size: 0.9rem; }
}
