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

/* ── Section utilities ───────────────────── */
.section-header { text-align: center; margin-bottom: 44px; }
.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #31429C;
    margin-bottom: 14px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #001353;
    margin: 0 0 14px;
    line-height: 1.15;
}
.section-subtitle {
    font-size: 15px;
    color: #5C7189;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Consistent inner widths ─────────────── */
.section-inner {
    max-width: 1040px;
    margin: 0 auto;
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: #FDED22;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
}
.btn-primary:hover { background: #FAE445; }

.btn-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }

/* ============================================
   Hero — Left-aligned
   ============================================ */
.careers-hero {
    position: relative;
    background: linear-gradient(135deg, #0D1282 0%, #31429C 50%, #001353 100%);
    color: #fff;
    padding: 120px 0 100px;
    overflow: hidden;
}
.careers-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 40px 40px;
}
/* Decorative glow on right side */
.careers-hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253,237,34,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.careers-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
.careers-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
@media (min-width: 640px) {
    .careers-hero-container { padding: 0 24px; }
}
@media (min-width: 1024px) {
    .careers-hero-container { padding: 0 32px; }
}
.careers-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FDED22;
    margin-bottom: 20px;
}
.careers-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 24px;
}
.careers-hero-accent { color: #FDED22; }
.careers-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 0 40px;
}
.careers-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================
   Stats Bar
   ============================================ */
.careers-stats {
    background: #001353;
    color: #fff;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.careers-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}
.careers-stat {
    position: relative;
    padding: 0 20px;
}
/* Dividers between stats */
.careers-stat + .careers-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,0.12);
}
.careers-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FDED22;
    line-height: 1;
}
.careers-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ============================================
   Perks & Benefits
   ============================================ */
.careers-perks {
    padding: 100px 0;
    background: #fff;
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.perk-card {
    background: #F8F8F8;
    border-radius: 10px;
    padding: 32px;
    border-left: 3px solid transparent;
    transition: all 0.25s;
}
.perk-card:hover {
    background: #fff;
    border-left-color: #31429C;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.perk-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(49,66,156,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #31429C;
    margin-bottom: 20px;
    transition: background 0.2s;
}
.perk-card:hover .perk-icon { background: rgba(49,66,156,0.14); }
.perk-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #001353;
    margin: 0 0 8px;
}
.perk-card p {
    font-size: 14px;
    color: #5C7189;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Open Positions
   ============================================ */
.careers-positions {
    padding: 100px 0;
    background: #F8F8F8;
}
.careers-positions-container { max-width: 960px; margin: 0 auto; }
.jobs-list { display: flex; flex-direction: column; gap: 24px; }

.job-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #D7DAE8;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.job-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.job-card-strip {
    height: 5px;
    background: linear-gradient(90deg, #31429C, #0D1282);
}
.job-card-body { padding: 32px 36px; }
.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.job-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #001353;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}
.job-card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}
.badge-level { background: rgba(49,66,156,0.1); color: #31429C; }
.badge-location { background: #ecfdf5; color: #047857; }
.badge-type { background: #fffbeb; color: #b45309; }
.badge-mode { background: #f5f3ff; color: #6d28d9; }
.job-apply-btn { flex-shrink: 0; padding: 12px 28px; }
.job-card-description {
    font-size: 15px;
    color: #5C7189;
    line-height: 1.7;
    margin: 0;
}

/* Toggle button */
.job-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #31429C;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    transition: color 0.2s;
}
.job-toggle-btn:hover { color: #0D1282; }
.job-toggle-chevron { transition: transform 0.2s; }
.job-toggle-btn.expanded .job-toggle-chevron { transform: rotate(180deg); }

/* Expandable details */
.job-details {
    display: none;
}
.job-details.expanded {
    display: block;
    margin-top: 28px;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.job-details-col {
    background: #F8F8F8;
    border-radius: 10px;
    padding: 28px;
}
.job-details-col h4, .job-benefits h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #001353;
    margin: 0 0 16px;
}
.job-details-col ul, .job-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-details-col li, .job-benefits li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    color: #5C7189;
    line-height: 1.6;
    margin-bottom: 12px;
}
.job-details-col li:last-child, .job-benefits li:last-child { margin-bottom: 0; }
.job-details-col li::before, .job-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #31429C;
}
.job-benefits {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #D7DAE8;
}

/* Empty state */
.jobs-empty {
    text-align: center;
    padding: 60px 20px;
}
.jobs-empty-icon { font-size: 48px; margin-bottom: 16px; }
.jobs-empty h3 { font-size: 20px; font-weight: 700; color: #001353; margin: 0 0 8px; }
.jobs-empty p { font-size: 15px; color: #5C7189; margin: 0; }

/* ============================================
   Life at Admizz (Testimonials)
   ============================================ */
.careers-testimonials {
    padding: 100px 0;
    background: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #f0f2fa;
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e5f1;
}
.testimonial-quote {
    color: rgba(49,66,156,0.35);
    margin-bottom: 16px;
    flex-shrink: 0;
}
.testimonial-text {
    font-size: 14px;
    color: #444c63;
    line-height: 1.75;
    flex: 1;
    margin: 0 0 24px;
    font-style: italic;
}
.testimonial-author {
    border-top: 1px solid #d2d6e8;
    padding-top: 16px;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: #001353; margin: 0; }
.testimonial-role { font-size: 12px; color: #5C7189; margin: 4px 0 0; }
.testimonial-tenure { font-size: 12px; color: #767676; margin: 4px 0 0; }

/* ============================================
   Hiring Process
   ============================================ */
.careers-process {
    padding: 100px 0;
    background: #F8F8F8;
}
.careers-process-container { max-width: 1040px; margin: 0 auto; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
/* Connector line behind all steps */
.process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(12.5% + 32px);
    right: calc(12.5% + 32px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #D7DAE8 0, #D7DAE8 8px, transparent 8px, transparent 16px);
    z-index: 0;
}
.process-step {
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px 32px;
    text-align: center;
    border: 1px solid #D7DAE8;
    position: relative;
    z-index: 1;
    margin: 0 12px;
}
.process-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #31429C, #0D1282);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(49,66,156,0.25);
}
.process-step h3 { font-size: 16px; font-weight: 700; color: #001353; margin: 0 0 10px; }
.process-step p { font-size: 13px; color: #5C7189; line-height: 1.6; margin: 0; }

/* ============================================
   CTA
   ============================================ */
.careers-cta {
    position: relative;
    background: linear-gradient(135deg, #0D1282 0%, #31429C 50%, #001353 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}
.careers-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.careers-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 20px;
}
.careers-cta > p,
.careers-cta-inner > p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 0 36px;
}
.careers-cta-email {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 20px !important;
}
.careers-cta-email a { color: #FDED22; text-decoration: none; font-weight: 600; }
.careers-cta-email a:hover { text-decoration: underline; }

/* ============================================
   Application Modal
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #D7DAE8;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}
.modal-header h2 { font-size: 22px; font-weight: 700; color: #001353; margin: 0; }
.modal-job-title { font-size: 14px; color: #5C7189; margin: 6px 0 0; }
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    color: #5C7189;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.modal-close:hover { color: #001353; }
.modal-body { padding: 28px 32px 32px; }

/* Form styles */
.form-section { margin-bottom: 32px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #001353;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #D7DAE8;
}
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #292E3E;
    margin-bottom: 8px;
}
.required { color: #e04562; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #eaecf1;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    color: #292E3E;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #31429C;
    box-shadow: 0 0 0 3px rgba(49,66,156,0.1);
}
.form-group input[type="file"] {
    font-size: 14px;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    padding: 10px 0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.form-row:last-child { margin-bottom: 0; }
.form-row .form-group { margin-bottom: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 16px; }
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #292E3E;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #eaecf1;
    border-radius: 8px;
    transition: all 0.2s;
}
.radio-label:hover { border-color: #31429C; }
.radio-label input { accent-color: #31429C; }
.radio-label input:checked + span { color: #31429C; font-weight: 600; }
.form-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 12px;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
    .perks-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .process-step { margin: 0; }

    .careers-hero { padding: 110px 0 90px; }
    .careers-hero-title { font-size: 2.75rem; }
    .careers-hero::after { display: none; }

    .careers-perks,
    .careers-positions,
    .careers-testimonials,
    .careers-process { padding: 80px 0; }

    .careers-cta { padding: 80px 0; }

    .careers-stat + .careers-stat::before { display: none; }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
    .careers-hero { padding: 100px 0 70px; }
    .careers-hero-title { font-size: 2rem; }
    .careers-hero-subtitle { font-size: 1rem; margin-bottom: 32px; }
    .careers-hero-badge { margin-bottom: 16px; }

    .section-title { font-size: 1.75rem; }
    .section-header { margin-bottom: 32px; }

    .careers-stats { padding: 28px 0; }
    .careers-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .careers-stat { padding: 0 12px; }
    .careers-stat-value { font-size: 1.5rem; }

    .careers-perks,
    .careers-positions,
    .careers-testimonials,
    .careers-process { padding: 60px 0; }

    .perks-grid { grid-template-columns: 1fr; gap: 16px; }
    .perk-card { padding: 24px; }

    .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonial-card { padding: 24px; }

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

    .job-card-body { padding: 24px; }
    .job-card-header { flex-direction: column; gap: 16px; }
    .job-card-title { font-size: 20px; }
    .job-apply-btn { width: 100%; text-align: center; }
    .job-details-grid { grid-template-columns: 1fr; }
    .job-details-col { padding: 20px; }

    .careers-cta { padding: 60px 0; }
    .careers-cta h2 { font-size: 1.75rem; }
    .careers-cta-inner > p { font-size: 15px; margin-bottom: 28px; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row .form-group { margin-bottom: 20px; }
    .form-row .form-group:last-child { margin-bottom: 0; }
    .modal { max-width: 100%; border-radius: 12px; }
    .modal-header { padding: 20px 24px 16px; }
    .modal-body { padding: 24px; }
}

/* ============================================
   Responsive — Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .careers-hero { padding: 90px 0 60px; }
    .careers-hero-title { font-size: 1.75rem; }
    .careers-hero-subtitle { font-size: 0.95rem; }

    .section-title { font-size: 1.5rem; }

    .process-grid { grid-template-columns: 1fr; }

    .careers-hero-actions { flex-direction: column; }
    .careers-hero-actions .btn-primary,
    .careers-hero-actions .btn-outline { text-align: center; width: 100%; }

    .careers-stats-grid { gap: 16px; }
    .careers-stat-value { font-size: 1.35rem; }

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

    .modal-header { padding: 16px 20px 12px; }
    .modal-body { padding: 20px; }
}
