/* ===== Careers page ===== */

/* Hero */
.careers-hero {
    position: relative;
    background-color: var(--primary-color, #1C3E60);
    padding: 100px 0;
    text-align: center;
    color: white;
}

.careers-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-hero .section-label {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.careers-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.15;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.careers-hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    line-height: 1.6;
}

/* Intro / Values */
.careers-intro {
    padding: 80px 0 40px;
    background: #fff;
}

.careers-intro-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.careers-intro h2 {
    font-size: 2rem;
    color: var(--primary-color, #1C3E60);
    font-weight: 600;
    margin-bottom: 24px;
}

.careers-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
}

/* Open positions section */
.careers-positions {
    padding: 40px 0 100px;
    background: #fff;
}

.careers-positions-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-positions-header {
    text-align: center;
    margin-bottom: 56px;
}

.careers-positions-header .section-label {
    color: var(--primary-color, #1C3E60);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.careers-positions-header h2 {
    font-size: 2.4rem;
    color: var(--primary-color, #1C3E60);
    font-weight: 700;
    margin: 0;
}

/* Job posting card (accordion) */
.job-posting {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(28, 62, 96, 0.04);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.job-posting:hover {
    box-shadow: 0 6px 24px rgba(28, 62, 96, 0.08);
}

/* Header is now a button that toggles the body */
.job-posting-header {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 32px 48px;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    transition: background 0.2s ease;
}

.job-posting-header:hover {
    background: rgba(28, 62, 96, 0.03);
}

.job-posting-header:focus-visible {
    outline: 2px solid var(--primary-color, #1C3E60);
    outline-offset: -2px;
}

.job-posting-header-text {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

/* Plus / minus toggle indicator */
.job-posting-toggle {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--primary-color, #1C3E60);
    position: relative;
    transition: background 0.2s ease, transform 0.3s ease;
}

.job-posting-toggle::before,
.job-posting-toggle::after {
    content: "";
    position: absolute;
    background: var(--primary-color, #1C3E60);
    transition: transform 0.3s ease, background 0.2s ease;
    top: 50%;
    left: 50%;
}
.job-posting-toggle::before {
    /* horizontal bar */
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.job-posting-toggle::after {
    /* vertical bar (becomes hidden when open) */
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.job-posting.is-open .job-posting-toggle {
    background: var(--primary-color, #1C3E60);
}
.job-posting.is-open .job-posting-toggle::before,
.job-posting.is-open .job-posting-toggle::after {
    background: #fff;
}
.job-posting.is-open .job-posting-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Body — hidden by default, expands when .is-open */
.job-posting-body {
    display: none;
    padding: 0 48px 40px;
    border-top: 2px solid var(--primary-color, #1C3E60);
    padding-top: 28px;
    animation: jobBodyFade 0.25s ease;
}

.job-posting.is-open .job-posting-body {
    display: block;
}

@keyframes jobBodyFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.job-posting-title {
    font-size: 1.8rem;
    color: var(--primary-color, #1C3E60);
    font-weight: 700;
    margin: 0;
    transition: color 0.2s ease;
}

.job-posting-header:hover .job-posting-title {
    color: #15314c;
}

.job-posting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

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

.job-posting-meta span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color, #1C3E60);
    opacity: 0.5;
}

.job-posting-meta span:first-child::before {
    display: none;
}

.job-posting-summary {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 32px;
}

.job-posting-section {
    margin-bottom: 28px;
}

.job-posting-section h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color, #1C3E60);
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
}

.job-posting-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-posting-section ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.97rem;
    line-height: 1.7;
    color: #444;
}

.job-posting-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 1px;
    background: var(--primary-color, #1C3E60);
    opacity: 0.6;
}

/* Apply CTA */
.job-posting-apply {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #ececec;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.job-posting-apply-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.job-apply-button {
    display: inline-block;
    background: var(--primary-color, #1C3E60);
    color: #fff;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.job-apply-button:hover {
    background: #15314c;
    transform: translateY(-1px);
    color: #fff;
}

/* General callout */
.careers-general {
    background: #f7f8fa;
    padding: 64px 20px;
    text-align: center;
}

.careers-general-inner {
    max-width: 720px;
    margin: 0 auto;
}

.careers-general h2 {
    font-size: 1.6rem;
    color: var(--primary-color, #1C3E60);
    font-weight: 600;
    margin-bottom: 16px;
}

.careers-general p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .careers-hero {
        padding: 72px 0;
    }
    .careers-hero h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }
    .careers-hero p {
        font-size: 1rem;
    }
    .careers-intro {
        padding: 56px 0 24px;
    }
    .careers-intro h2 {
        font-size: 1.55rem;
    }
    .careers-intro p {
        font-size: 0.97rem;
    }
    .careers-positions {
        padding: 24px 0 64px;
    }
    .careers-positions-header {
        margin-bottom: 36px;
    }
    .careers-positions-header h2 {
        font-size: 1.7rem;
    }
    .job-posting {
        margin-bottom: 18px;
    }
    .job-posting-header {
        padding: 22px 20px;
        gap: 14px;
    }
    .job-posting-header-text {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    .job-posting-body {
        padding: 22px 20px 28px;
    }
    .job-posting-title {
        font-size: 1.3rem;
    }
    .job-posting-meta {
        font-size: 0.74rem;
        gap: 10px;
    }
    .job-posting-toggle {
        width: 30px;
        height: 30px;
    }
    .job-posting-toggle::before { width: 12px; }
    .job-posting-toggle::after { height: 12px; }
    .job-posting-summary {
        font-size: 0.97rem;
    }
    .job-posting-section h3 {
        font-size: 0.95rem;
    }
    .job-posting-section ul li {
        font-size: 0.93rem;
    }
    .job-posting-apply {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .job-apply-button {
        width: 100%;
        text-align: center;
    }
    .careers-general {
        padding: 48px 20px;
    }
    .careers-general h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .careers-hero {
        padding: 64px 0;
    }
    .careers-hero h1 {
        font-size: 1.55rem;
    }
}
