/*
 * home.css
 * Styles for the front-page hero section.
 */


/* ─── Home Hero ──────────────────────────────────────────────── */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding-top: 88px; /* offset for fixed header */
    padding-bottom: 4rem;
    overflow: hidden;
}


/* ─── Overlay ────────────────────────────────────────────────── */

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.28);
}


/* ─── Background Video ───────────────────────────────────────── */

.home-hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ─── Inner wrapper ──────────────────────────────────────────── */

.home-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-block: 3.5rem 0;
}


/* ─── Headline ───────────────────────────────────────────────── */

.home-hero__headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.home-hero__headline-line1 {
    display: block;
    color: var(--color-accent);
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.55),
        0 1px 4px  rgba(0, 0, 0, 0.40);
}

.home-hero__headline-line2 {
    display: block;
    color: #ffffff;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.60),
        0 1px 4px  rgba(0, 0, 0, 0.45);
}


/* ─── Supporting Text ────────────────────────────────────────── */

.home-hero__desc {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: 2rem;
}


/* ─── CTA Button ─────────────────────────────────────────────── */

.home-hero__cta {
    display: inline-flex;
    align-items: center;
}


/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .home-hero__headline {
        font-size: clamp(2rem, 4.5vw, 3rem);
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 0;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .home-hero__inner {
        padding-block: 2rem 0;
    }

    .home-hero__headline {
        font-size: clamp(1.625rem, 6.5vw, 2.25rem);
        white-space: normal;
        letter-spacing: -0.01em;
    }

    .home-hero__desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding-bottom: 2rem;
    }

    .home-hero__headline {
        font-size: clamp(1.5rem, 7vw, 1.875rem);
    }
}


/* ─── Why Work With Us ───────────────────────────────────────── */

.home-why {
    background-color: #ffffff;
}

.home-why__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
}

.home-why__heading {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 1px 6px rgba(31, 42, 107, 0.10);
}

.home-why__desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    max-width: 56ch;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Grid */

.home-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

/* Item */

.home-why__item {
    text-align: center;
}

.home-why__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.home-why__item-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(60%) sepia(60%) saturate(500%) hue-rotate(163deg) brightness(105%);
}

.home-why__item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.home-why__item-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    max-width: 100%;
}

/* Responsive */

@media (max-width: 1024px) {
    .home-why__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .home-why__item-text {
        max-width: 32ch;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .home-why__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-why__item-text {
        max-width: 28ch;
    }
}


/* ─── Featured Jobs ──────────────────────────────────────────── */

.home-featured-jobs {
    background-color: var(--color-bg-light);
}

.home-featured-jobs__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3rem;
}

.home-featured-jobs__heading {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-featured-jobs__desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    max-width: 56ch;
    margin-inline: auto;
    margin-bottom: 0;
}

/* CTA below grid */

.home-featured-jobs__cta-wrap {
    text-align: center;
    margin-top: 3rem;
}

.home-featured-jobs__cta {
    display: inline-flex;
    align-items: center;
}

/* Slider — all breakpoints */

.featured-jobs-slider {
    display: flex;
    align-items: center;
    position: relative;
}

.featured-jobs-slider__track-wrap {
    flex: 1;
    overflow: hidden;
    margin-inline: 0.75rem;
}

.featured-jobs-slider__track {
    display: flex;
    gap: 1.5rem;
}

.featured-jobs-slider .job-card {
    flex-shrink: 0;
}

/* Arrow buttons — visible on all breakpoints */

.featured-jobs-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.featured-jobs-slider__arrow:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.featured-jobs-slider__arrow--prev span,
.featured-jobs-slider__arrow--next span {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.featured-jobs-slider__arrow--prev span {
    transform: rotate(-135deg) translate(-1px, 1px);
}

.featured-jobs-slider__arrow--next span {
    transform: rotate(45deg) translate(-1px, 1px);
}

@media (max-width: 480px) {
    .featured-jobs-slider__arrow {
        width: 36px;
        height: 36px;
    }
}


/* ─── Home Testimonials ──────────────────────────────────────── */

.home-testimonials {
    background-color: var(--color-primary);
    padding-block: 5rem 5.5rem;
}

/* Header */

.home-testimonials__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
}

.home-testimonials__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 1.25rem;
}

.home-testimonials__star {
    font-size: 1.625rem;
    color: #f59e0b;
    line-height: 1;
}

.home-testimonials__heading {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-testimonials__desc {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    max-width: 56ch;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Slider layout — active on all breakpoints */

.home-testimonials__slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-testimonials__track-wrap {
    flex: 1;
    overflow: hidden;
}

.home-testimonials__track {
    display: flex;
    gap: 1.5rem;
    /* transform / transition set by JS */
}

.home-testimonials__track .voice-card {
    flex-shrink: 0;
    /* flex-basis set by JS */
}

/* Arrows — premium, dark-theme style */

.home-testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-testimonials__arrow:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.60);
}

.home-testimonials__arrow--prev span,
.home-testimonials__arrow--next span {
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.home-testimonials__arrow--prev span {
    transform: rotate(-135deg) translate(-1px, 1px);
}

.home-testimonials__arrow--next span {
    transform: rotate(45deg) translate(-1px, 1px);
}

/* Dots — hidden by default, shown on mobile only */

.home-testimonials__dots {
    display: none;
}

/* Tablet: 2-card view */

@media (max-width: 1024px) {
    .home-testimonials__slider {
        gap: 0.75rem;
    }

    .home-testimonials__arrow {
        width: 40px;
        height: 40px;
    }
}

/* Mobile: 1-card view, arrows hidden, dots shown */

@media (max-width: 480px) {

    .home-testimonials {
        padding-block: 4rem 4.5rem;
    }

    .home-testimonials__slider {
        gap: 0;
    }

    .home-testimonials__arrow {
        display: none;
    }

    .home-testimonials__dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.75rem;
    }

    .home-testimonials__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background-color: rgba(255, 255, 255, 0.28);
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .home-testimonials__dot.is-active {
        background-color: #f59e0b;
        transform: scale(1.35);
    }

}

/* ─── Home Testimonials — image card with bottom overlay ─────── */

.home-testimonials .voice-card {
    position: relative;
    aspect-ratio: 3 / 4;
}

.home-testimonials .voice-card__media {
    position: absolute;
    inset: 0;
    aspect-ratio: unset;
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    overflow: hidden;
}

.home-testimonials .voice-card__media img {
    object-fit: contain;
    object-position: center top;
    transform: scale(1.06);
    transform-origin: center top;
}

.home-testimonials .voice-card:hover .voice-card__media img {
    transform: scale(1.10);
}

.home-testimonials .voice-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.65) 45%, transparent 100%);
    align-items: flex-end;
}

.home-testimonials .voice-card__name {
    color: var(--color-primary);
}

.home-testimonials .voice-card__role {
    color: #555555;
}

@media (min-width: 1025px) {
    .home-testimonials .voice-card {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    .home-testimonials .voice-card__media img {
        object-fit: cover;
        object-position: center top;
        transform: none;
    }
}


/* ─── Career Journey ──────────────────────────────────────────── */

.career-journey {
    background-color: #ffffff;
}

.career-journey__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 4rem;
}

.career-journey__heading {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.career-journey__desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    max-width: 56ch;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Steps grid */

.career-journey__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Individual step */

.career-journey__step {
    position: relative;
    text-align: center;
}

/* Connecting line: each step (except last) draws a segment to the next step's center */

.career-journey__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.75rem;              /* half of the 3.5rem number, vertically centered */
    left: 50%;
    width: calc(100% + 2rem); /* step column width + grid gap */
    height: 1px;
    background-color: rgba(31, 42, 107, 0.13);
    z-index: 0;
}

/* Number */

.career-journey__step-num {
    display: inline-block;
    position: relative;
    z-index: 1;
    background-color: #ffffff; /* masks the connecting line where the number sits */
    padding-inline: 0.625rem;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

/* Title */

.career-journey__step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

/* Text */

.career-journey__step-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    max-width: 22ch;
    margin-inline: auto;
}

/* Tablet — maintain 4 columns, tighten spacing */

@media (max-width: 1024px) {
    .career-journey__steps {
        gap: 1.5rem;
    }

    .career-journey__step:not(:last-child)::after {
        top: 1.375rem;               /* half of 2.75rem tablet number */
        width: calc(100% + 1.5rem); /* step + tablet gap */
    }

    .career-journey__step-num {
        font-size: 2.75rem;
    }

    .career-journey__step-text {
        max-width: 100%;
    }
}

/* Mobile — vertical timeline, centered */

@media (max-width: 640px) {
    .career-journey__steps {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 0;
        border-left: none;
        position: relative; /* anchors the centered vertical line */
    }

    /* Suppress horizontal connectors */
    .career-journey__step:not(:last-child)::after {
        display: none;
    }

    .career-journey__step {
        text-align: center;
        padding-left: 0;
        padding-bottom: 2.75rem;
    }

    .career-journey__step:last-child {
        padding-bottom: 0;
    }

    /* inline-block so the white background only covers the number text,
       letting the vertical line show above and below each number */
    .career-journey__step-num {
        display: inline-block;
        font-size: 2.5rem;
        background-color: #ffffff;
        padding-inline: 0.625rem;
        margin-bottom: 0.5rem;
    }

    .career-journey__step-text {
        max-width: 100%;
        margin-inline: auto;
    }
}


/* ─── Jobs CTA (pre-footer) ──────────────────────────────────── */

.jobs-cta {
    background-color: var(--color-bg-light);
    padding-block: 4rem 5rem;
}

.jobs-cta__banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 5rem;
    padding-inline: 1.5rem;
}

.jobs-cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.jobs-cta__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.jobs-cta__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 16, 40, 0.72);
    z-index: 1;
}

.jobs-cta__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.jobs-cta__heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.jobs-cta__desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: 2.25rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.jobs-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    padding-inline: 2.25rem;
}

.jobs-cta__btn:hover,
.jobs-cta__btn:focus-visible {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .jobs-cta {
        padding-block: 3rem 4rem;
    }

    .jobs-cta__banner {
        padding-block: 4rem;
        min-height: 340px;
    }
}


/* ─── Job Card ───────────────────────────────────────────────── */

.job-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
    border-color: rgba(30, 110, 187, 0.35);
}

.job-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-bg-light);
    flex-shrink: 0;
}

.job-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.job-card:hover .job-card__image img {
    transform: scale(1.04);
}

.job-card__content {
    padding: 1.375rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.job-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
    margin: 0 0 0.875rem;
}

.job-card__meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.job-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

.job-card__meta-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.job-card__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
    margin: 0 0 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card__footer {
    margin-top: auto;
    padding-top: 1.125rem;
    border-top: 1px solid var(--color-border);
}

.job-card__btn {
    font-size: 0.875rem;
    padding-block: 0.5625rem;
    padding-inline: 1.375rem;
}


/* ─── Job Details Modal ──────────────────────────────────────── */

.job-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.job-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.job-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 40, 0.64);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.job-modal__panel {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(10, 16, 40, 0.22),
        0 6px 18px rgba(10, 16, 40, 0.10);
    transform: translateY(18px) scale(0.985);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.job-modal.is-open .job-modal__panel {
    transform: translateY(0) scale(1);
}

.job-modal__close {
    position: absolute;
    top: 1.125rem;
    right: 1.125rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #777;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.job-modal__close:hover,
.job-modal__close:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    outline: none;
}

.job-modal__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.job-modal__header {
    padding: 2rem 2.5rem 1.625rem;
    border-bottom: 1px solid var(--color-border);
}

.job-modal__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
    margin: 0 0 1.125rem;
    padding-right: 2.25rem;
}

.job-modal__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.job-modal__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.4;
}

.job-modal__meta-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.job-modal__content {
    padding: 1.875rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    color: #444;
}

.job-modal__section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-modal__section-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.085em;
    color: var(--color-accent);
    margin: 0;
    padding-left: 0.75rem;
    border-left: 2.5px solid var(--color-accent);
    line-height: 1.4;
}

.job-modal__desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #444;
    margin: 0;
}

.job-modal__content p,
.job-modal__content li {
    color: #444;
}

.job-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5625rem;
}

.job-modal__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #444;
}

.job-modal__list li::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-accent);
    margin-top: 0.575em;
}

.job-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.875rem;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    flex-shrink: 0;
}

.job-modal__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: none;
    color: #555;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.job-modal__dismiss:hover,
.job-modal__dismiss:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
    outline: none;
}

.job-modal__apply {
    font-size: 0.9375rem;
    padding-block: 0.625rem;
    padding-inline: 1.625rem;
}

@media (max-width: 768px) {
    .job-modal {
        padding: 0;
        align-items: flex-end;
    }

    .job-modal__panel {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
    }

    .job-modal__header {
        padding: 1.625rem 1.5rem 1.375rem;
    }

    .job-modal__title {
        font-size: 1.1875rem;
    }

    .job-modal__content {
        padding: 1.5rem 1.5rem 1.75rem;
        gap: 1.5rem;
    }

    .job-modal__footer {
        padding: 1.125rem 1.5rem;
    }
}


/* ─── Voice Card ─────────────────────────────────────────────── */

.voice-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.voice-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

.voice-card__media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.voice-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.voice-card:hover .voice-card__media img {
    transform: scale(1.04);
}

.voice-card__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.voice-card__text {
    min-width: 0;
}

.voice-card__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-card__role {
    font-size: 0.8125rem;
    color: #777;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-card__btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 300;
    line-height: 1;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.voice-card__btn:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .voice-card {
        flex-shrink: 0;
    }
}


/* ─── Testimonial Modal ──────────────────────────────────────── */

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.testimonial-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 16, 40, 0.65);
}

.testimonial-modal__panel {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.testimonial-modal.is-open .testimonial-modal__panel {
    transform: translateY(0);
}

.testimonial-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.testimonial-modal__close:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.testimonial-modal__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1.25rem;
}

.testimonial-modal__star {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1;
}

.testimonial-modal__star.is-filled {
    color: #f59e0b;
}

.testimonial-modal__body {
    margin-bottom: 1.75rem;
}

.testimonial-modal__quote-mark {
    display: block;
    font-size: 4rem;
    line-height: 0.75;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.testimonial-modal__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.testimonial-modal__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.testimonial-modal__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-modal__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

.testimonial-modal__role {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .testimonial-modal__panel {
        padding: 2rem 1.5rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Home Open Positions — Real-Device Mobile Stability + Slider Fix
   Scoped to .home-featured-jobs only.
   Does NOT affect desktop, Job Listings page, or other sections.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

    /* 1. Prevent mobile Safari text-size inflation in this section only */
    .home-featured-jobs {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* 2. SLIDER FIX: Allow JS flex-basis to fully control card width.
          min-width:0 prevents the card's min-content size from overriding
          the JS-calculated flex-basis, which would break the step calculation. */
    .home-featured-jobs .featured-jobs-slider .job-card {
        min-width: 0;
    }

    /* 3. IMAGE FIX + STABILITY: Clear the base aspect-ratio:16/9, then set an
          explicit width and height.
          Without aspect-ratio:auto, iOS Safari derives width = height × (16/9) ≈ 338px.
          That mismatches the JS step value (trackWrap.offsetWidth + gap), causing each
          arrow tap to move by the wrong amount and the slider to appear broken. */
    .home-featured-jobs .job-card__image {
        aspect-ratio: auto;
        width: 100%;
        height: 190px;
    }

    /* 4. Content: reduced padding prevents card from feeling visually heavy */
    .home-featured-jobs .job-card__content {
        padding: 1rem 1.125rem 1.125rem;
    }

    /* 5. Title: cap at 2 lines so long job titles don't inflate card height */
    .home-featured-jobs .job-card__title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.625rem;
    }

    /* 6. Meta: tighter row spacing on small screens */
    .home-featured-jobs .job-card__meta {
        margin-bottom: 0.75rem;
        gap: 0.25rem;
    }

    /* 7. Desc: remove flex:1 so -webkit-line-clamp works reliably on real iOS Safari.
          With flex:1 present, Safari's flex growth overrides the clamp, causing the
          excerpt to expand beyond 3 lines and making the card too tall. */
    .home-featured-jobs .job-card__desc {
        flex: none;
        -webkit-line-clamp: 2;
        line-height: 1.6;
        margin-bottom: 0.875rem;
    }

    /* 8. Footer: slightly tighter top spacing */
    .home-featured-jobs .job-card__footer {
        padding-top: 0.875rem;
    }
}
