/* ── MAIN SECTION ── */
.career-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* ── CONTROLS ── */
.controls {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.search-wrap {
    flex: 1;
    min-width: 200px;
    max-width: 449px;
    position: relative;
}

.search-wrap svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-500);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--color-300);
    border-radius: var(--radius-full);
    background: var(--color-white);
    padding: 0 20px 0 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-500);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* ── LOCATION Dropdwon ── */
.location-wrap {
    position: relative;
    flex-shrink: 0;
}

.location-btn {
    height: 52px;
    padding: 16px 24px;
    border: 1px solid var(--color-300);
    border-radius: var(--radius-full);
    background: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 162px;
    user-select: none;
}

.location-btn:hover,
.location-btn.open {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.location-btn svg {
    color: var(--color-500);
    flex-shrink: 0;
}

.location-btn .btn-label {
    flex: 1;
}

.location-btn .chevron {
    transition: transform 0.22s;
    color: var(--color-500);
}

.location-btn.open .chevron {
    transform: rotate(180deg);
}

.location-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-300);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
}

.location-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.location-option {
    padding: 14px 24px;
    font-size: 15px;
    color: var(--color-500);
    cursor: pointer;
    transition: background 0.14s;
    text-align: center;
}

.location-option:hover {
    background: var(--primary-pale);
}

.location-option.active {
    color: var(--primary);
    font-weight: 600;
}

/* ── CONTENT GRID ── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .company-photo {
        order: -1;
    }
}

/* ── JOB LIST ── */
.job-list {
    display: flex;
    flex-direction: column;
}

.job-item {
    display: inline-block;
    align-items: center;
    justify-content: start;
    padding: 16px 0;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary);
    font-family: inherit;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 32px;
    letter-spacing: -1.5%;
    gap: 8px;
    transition: color 0.15s;
    animation: fadeIn 0.3s ease both;
}

.job-title {
    position: relative;
}

.job-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.job-item:hover .job-title::after {
    transform: scaleX(1);
}

.arrow-icon {
    flex-shrink: 0;
    transition: transform 0.2s;
    font-size: 24px;
    line-height: 1;
}

.arrow-icon::after {
    content: "↗";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.job-item:hover .arrow-icon::after {
    transform: translate(2px, -2px);
}

.no-results {
    padding: 32px 0;
    color: var(--color-500);
    font-size: 15px;
}

/* ── COMPANY PHOTO ── */
.company-photo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: var(--primary-mid);
}

.company-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    padding: 24px;
}

/* ── RESULT COUNT ── */
.result-meta {
    font-size: 13px;
    color: var(--color-500);
    margin-bottom: 4px;
    min-height: 20px;
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--color-300);
    border-radius: 50px;
    background: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    user-select: none;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.page-ellipsis {
    font-size: 14px;
    color: var(--color-500);
    padding: 0 4px;
    line-height: 38px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── ── CAREER DETAIL ── ── */

/* ── BREADCRUMB ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.breadcrumb a,
.breadcrumb span {
    font-size: 14px;
    color: var(--color-500);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    font-size: 12px;
    color: #ccc;
}

.breadcrumb .current {
    color: var(--color-500);
    font-weight: 500;
}

/* ── CONTENT ── */
.page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.job-title-label {
    text-align: center;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
}

.job-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 56px;
}

.job-body p {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.8;
    color: #333;
}

/* ── CTA BUTTON ── */
.cta-wrap {
    display: flex;
    justify-content: center;
}

.job-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 1.5px solid var(--color-200);
    border-radius: 50px;
    background: var(--color-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-500);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
}

.job-link-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 18px rgba(46, 125, 50, 0.12);
    transform: translateY(-1px);
}

.job-link-btn svg {
    transition: transform 0.2s;
}

.job-link-btn:hover svg {
    transform: translate(2px, -2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }

    .location-btn {
        min-width: unset;
        width: 100%;
        justify-content: space-between;
    }

    .career-section {
        padding: 40px 16px 60px;
    }


    .page-wrap {
        padding: 36px 16px 60px;
    }


    .job-body {
        gap: 16px;
    }

    .job-title-label {
        margin-bottom: 28px;
    }
}

@media (max-width: 400px) {
    .job-list {
        width: 90%;
    }
}