/* =========================================
   Careers Page
   ========================================= */

.careers-hero {
    padding: 160px 0 100px;
    background: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect x='10' y='10' width='80' height='80' rx='20' fill='none' stroke='%23f1f3f9' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.careers-hero .container {
    position: relative;
    z-index: 1;
}

.careers-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-navy);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 16px 0 24px;
}

.careers-hero-sub {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Benefits Section ---- */
.careers-benefits {
    padding: 100px 0;
    background: #f8fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(253, 82, 2, 0.1);
    color: var(--brand-orange);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ---- Jobs Section ---- */
.open-positions {
    padding: 100px 0;
    background: white;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    border: 1.5px solid #eef2f6;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.job-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-apply {
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--text-navy);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-apply:hover {
    background: #1a234a; /* Darker navy */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 43, 93, 0.2);
}

/* ---- Responsive ---- */
/* ---- Modal & Form Styles ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32, 43, 93, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 30px;
    padding: 50px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--brand-orange);
}

.modal-container h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 8px;
}

.modal-container p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* ---- Form ---- */
.job-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-navy);
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea {
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid #eef2f6;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--brand-orange);
    outline: none;
    background: #fffafa;
}

.file-input-wrapper {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.file-input-wrapper:hover {
    border-color: var(--brand-orange);
    background: #fffafa;
}

.file-input-wrapper i {
    font-size: 2rem;
    color: var(--brand-orange);
    margin-bottom: 12px;
    display: block;
}

.file-input-wrapper input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-submit {
    margin-top: 10px;
    padding: 18px;
    border-radius: 14px;
    background: var(--brand-orange);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 82, 2, 0.2);
}

/* ---- Talent Section ---- */
.talent-section {
    padding: 80px 0;
    border-top: 1px solid #eef2f6;
    text-align: center;
}

.talent-box {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 60px;
    border-radius: 40px;
    border: 1px solid #eef2f6;
}

.talent-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 16px;
}

.talent-box p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.btn-send-resume {
    background: transparent;
    color: var(--brand-orange);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--brand-orange);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-send-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(253, 82, 2, 0.1);
    background: var(--brand-orange);
    color: white;
}

.talent-actions {
    display: flex;
    justify-content: center;
}

/* ---- Responsive ---- */

/* laptop (≤ 1024px) */
@media (max-width: 1024px) {
    .careers-hero-title { font-size: 3.5rem; }
    .benefits-grid { gap: 20px; }
    .section-header h2 { font-size: 2.5rem !important; }
}

/* tablet (≤ 768px) */
@media (max-width: 768px) {
    .careers-hero { padding: 120px 0 60px; }
    .careers-hero-title { font-size: 2.4rem; }
    .careers-hero-sub { font-size: 1.1rem; }

    .careers-benefits { padding: 60px 0; }
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
    .benefit-card { padding: 30px; }

    .open-positions { padding: 60px 0; }
    .jobs-grid { margin-top: 40px; }
    .job-card { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 24px;
        gap: 20px;
    }
    .btn-apply { width: 100%; text-align: center; }
    .job-info h3 { font-size: 1.3rem; }
    .job-meta { flex-wrap: wrap; gap: 10px 15px; }

    .talent-box { padding: 40px 24px; border-radius: 24px; }
    .talent-box h2 { font-size: 2rem; }
    .section-header h2 { font-size: 2.22rem !important; }
}

/* mobile (≤ 480px) */
@media (max-width: 480px) {
    .careers-hero-title { font-size: 2rem; }
    .careers-hero-sub { font-size: 1rem; }
    .modal-container { padding: 30px 20px; }
    .modal-container h2 { font-size: 1.8rem; }
    
    .form-row { grid-template-columns: 1fr; }
    .talent-box h2 { font-size: 1.8rem; }
    .talent-box p { font-size: 1rem; }
    .btn-send-resume { width: 100%; justify-content: center; }
    
    .file-input-wrapper { padding: 20px; }
}

/* mobile-small (≤ 375px) */
@media (max-width: 375px) {
    .careers-hero-title { font-size: 1.95rem; }
    .section-header h2 { font-size: 1.8rem !important; }
    .benefit-card h3 { font-size: 1.2rem; }
    .job-info h3 { font-size: 1.15rem; }
}
