/* ==========================================================================
   JAD GROUP -- CAREERS PAGE STYLES
   Styles for: careers page, job listings, application form.
   Shared styles (reset, variables, nav, footer, buttons) live in global.css.
   ========================================================================== */


/* ==========================================================================
   1. WHY JAD GRID
   ========================================================================== */

.why-jad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-jad-card {
    text-align: center;
    padding: 40px;
    background: var(--off-white);
    border-radius: 12px;
    transition: all var(--transition);
}

.why-jad-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.why-jad-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.3rem;
}

.why-jad-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.why-jad-card p {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
}


/* ==========================================================================
   2. JOB LISTINGS
   ========================================================================== */

.job-listings {
    max-width: 800px;
    margin: 0 auto;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

/* ---------- Job Card Header ---------- */

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    cursor: pointer;
    gap: 16px;
    user-select: none;
}

.job-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    flex: 1;
}

.job-card-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--grey-dark);
}

.job-card-meta span svg,
.job-card-meta span i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: var(--grey-mid);
}

.job-card-chevron {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-mid);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.job-card.expanded .job-card-chevron {
    transform: rotate(180deg);
}

/* ---------- Job Card Body (Accordion) ---------- */

.job-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card.expanded .job-card-body {
    max-height: 500px;
}

.job-card-body-inner {
    padding: 0 32px 32px;
}

.job-card-body-inner p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.job-card-body-inner h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    margin-top: 20px;
}

.job-card-body-inner ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.job-card-body-inner ul li {
    font-size: 0.85rem;
    color: var(--text-body);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.job-card-body-inner ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.job-card-body-inner .btn {
    margin-top: 8px;
}


/* ==========================================================================
   3. APPLICATION FORM
   ========================================================================== */

.application-form {
    background: var(--navy);
    padding: 48px;
    border-radius: 16px;
}

.application-form h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.application-form > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.application-form .form-grid {
    margin-bottom: 16px;
}

.application-form .file-upload {
    padding: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.application-form .file-upload:hover {
    border-color: var(--gold);
    background: rgba(200, 150, 62, 0.05);
}

.application-form .file-upload .icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.application-form .file-upload p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.application-form .file-upload .formats {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 4px;
}


/* ==========================================================================
   4. BENEFITS GRID
   ========================================================================== */

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

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--off-white);
    border-radius: 12px;
    transition: all var(--transition);
}

.benefit-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.benefit-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(200, 150, 62, 0.1);
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-card-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.benefit-card-content p {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.6;
}


/* ==========================================================================
   5. CULTURE SECTION
   ========================================================================== */

.culture-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.culture-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.culture-gallery img:hover {
    transform: scale(1.05);
}


/* ==========================================================================
   6. RESPONSIVE -- CAREERS PAGE
   ========================================================================== */

/* --- 1024px Breakpoint --- */
@media (max-width: 1024px) {

    .why-jad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 768px Breakpoint --- */
@media (max-width: 768px) {

    .why-jad-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-jad-card {
        padding: 32px;
    }

    .job-card-header {
        flex-wrap: wrap;
        padding: 20px 24px;
        gap: 8px;
    }

    .job-card-meta {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .job-card-body-inner {
        padding: 0 24px 24px;
    }

    .application-form {
        padding: 32px 24px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .culture-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-gallery img {
        height: 160px;
    }
}

/* --- 480px Breakpoint --- */
@media (max-width: 480px) {

    .why-jad-card {
        padding: 24px;
    }

    .why-jad-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .job-card-header {
        padding: 16px 20px;
    }

    .job-card-header h3 {
        font-size: 0.9rem;
    }

    .job-card-meta span {
        font-size: 0.75rem;
    }

    .job-card-body-inner {
        padding: 0 20px 20px;
    }

    .application-form {
        padding: 24px 20px;
    }

    .benefit-card {
        padding: 20px;
    }

    .culture-gallery {
        grid-template-columns: 1fr;
    }

    .culture-gallery img {
        height: 180px;
    }

    .application-form h2 {
        font-size: 1.25rem;
    }
}
