/* ==========================================================================
   Jobs Section
   ========================================================================== */

.jobs-section {
    background-color: #fdf6f4;
    padding: 5rem 4rem;
}

/* ---------- Reusable plus icon ---------- */

.icon-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.icon-plus--coral {
    color: #fc7a62;
}

.icon-plus--blue {
    color: #4875be;
}

.icon-plus--teal {
    color: #36B7C4;
}

/* ---------- Section header ---------- */

.jobs-section__header {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
}

.jobs-section__header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.jobs-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #888;
}

.jobs-section__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.jobs-section__heading-accent {
    color: #fc7a62;
}

.jobs-section__header-right {
    flex: 1;
}

.jobs-section__description {
    font-size: 0.875rem;
    line-height: 1.9;
    color: #444;
    margin: 0;
}

/* ---------- Cards grid ---------- */

.jobs-section__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Individual card ---------- */

.jobs-section__card {
    position: relative;
    padding-top: 1.5rem; /* Space for the badge to overlap */
}

.jobs-section__card-inner {
    background-color: #fff;
    border-radius: 12px;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ---------- Badge (comic bubble) ---------- */

.jobs-section__badge {
    position: absolute;
    top: 20px;
    left: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jobs-section__badge-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 36px;
    border-radius: 18px;
    background-color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border: 2px solid currentColor;
}

/* Triangle arrow pointing down (speech bubble tail) */
.jobs-section__badge-arrow {
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor;
    margin-top: -1px;
}

/* Badge color variants */
.jobs-section__badge--coral {
    color: #fc7a62;
}

.jobs-section__badge--blue {
    color: #4875be;
}

.jobs-section__badge--teal {
    color: #36B7C4;
}

/* ---------- Card illustration ---------- */

.jobs-section__card-illustration {
    width: auto;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jobs-section__card-illustration--pink {
    background-color: #fce4ec;
}

.jobs-section__card-illustration--blue {
    background-color: #e3f2fd;
}

.jobs-section__card-illustration--teal {
    background-color: #e0f2f1;
}

.jobs-section__card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Card content ---------- */

.jobs-section__card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem;
    transition: color 0.2s ease;
}

.jobs-section__card-text {
    font-size: 0.8125rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 1.5rem;
    text-align: left;
}

/* ---------- Card arrow button (square, filled background, white arrow) ---------- */

.jobs-section__card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    color: #fff;
    border: none;
    transition: opacity 0.2s ease;
}

.jobs-section__card-arrow:hover,
.jobs-section__card-arrow:focus {
    opacity: 0.75;
}

.jobs-section__card-arrow span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.jobs-section__card:hover .jobs-section__card-arrow span,
.jobs-section__card:focus-within .jobs-section__card-arrow span {
    transform: translateX(-2px);
}

.jobs-section__card-arrow--coral {
    background-color: #fc7a62;
}

.jobs-section__card-arrow--blue {
    background-color: #4875be;
}

.jobs-section__card-arrow--teal {
    background-color: #36B7C4;
}

.jobs-section__card--coral:hover .jobs-section__card-title,
.jobs-section__card--coral:focus-within .jobs-section__card-title {
    color: #fc7a62;
}

.jobs-section__card--blue:hover .jobs-section__card-title,
.jobs-section__card--blue:focus-within .jobs-section__card-title {
    color: #4875be;
}

.jobs-section__card--teal:hover .jobs-section__card-title,
.jobs-section__card--teal:focus-within .jobs-section__card-title {
    color: #36B7C4;
}

/* ---------- Section CTA ---------- */

.jobs-section__cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.jobs-section__cta-wrap .about-section__cta {
    min-width: 250px;
}

.jobs-section__cta-wrap .about-section__cta-text {
    flex: 1;
    text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .jobs-section {
        padding: 4rem 2rem;
    }

    .jobs-section__header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .jobs-section__cards {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .jobs-section__card-illustration {
        width: 160px;
        height: 160px;
    }
}
