/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.horizontal-scroll-section * {
    backface-visibility: hidden;
}

/* ========== BASE ========== */
html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #fff;
    color: #000;
}

strong { font-weight: bold; }
em { font-style: italic; }

/* ========== ANIMATIONS ========== */
.animate-item {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.fade-up {
    transform: translateY(50px);
}

.fade-right {
    transform: translateX(-50px);
}

.animate-item.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========== LAYOUT ========== */
.careers-page-main-wrapper {
    width: 100%;
    background-color: #ffffff;
}

.panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.black {
    background-color: #000;
    color: #fff;
}

.white {
    background-color: #fff;
    color: #000;
}

/* ========== CONTENT ========== */
h1.fullscreen {
    font-size: clamp(3rem, 8vw, 8rem);
    margin: 0;
    letter-spacing: 5px;
    font-weight: bold;
    line-height: 1.1;
}

.content {
    max-width: 800px;
    font-size: clamp(1rem, 1.2rem, 1.4rem);
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.centered {
    text-align: center;
}

.content p {
    margin-bottom: 20px;
}

.content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.content li {
    margin-bottom: 12px;
    text-align: left;
}

/* ========== HORIZONTAL SCROLL ========== */
.horizontal-scroll-section {
    height: 300vh;
    width: 100%;
    position: relative;
}

.pin-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.pinned-text {
    white-space: nowrap;
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: 5px;
    font-weight: bold;
    will-change: transform;
    transform: translateX(100vw);
    transition: transform 0.1s ease-out;
}

.black .pinned-text { color: #fff; }

/* ========== LOGOS ========== */
.first-section-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.first-section-logo.fade-out {
    opacity: 0;
}

.first-section-logo img {
    width: clamp(180px, 20vw, 320px);
    height: auto;
    object-fit: contain;
    filter: invert(1);
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.logo-container.visible {
    opacity: 1;
}

.logo-container img {
    width: clamp(500px, 55vw, 900px);
    height: auto;
    object-fit: contain;
}

/* ========== WHITE INTRO ========== */
.white-intro {
    background-color: #fff;
}

.white-intro .pinned-text {
    color: #000;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 100;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-text {
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 3px;
    height: 40px;
    position: relative;
    animation: scrollBounce 2.5s infinite;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 25px;
    background: currentColor;
    transform: translateX(-50%);
    border-radius: 2px;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: center;
    border-radius: 0 2px 0 0;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(-12px); opacity: 0.7; }
    60% { transform: translateY(-6px); opacity: 0.9; }
}

.black .scroll-indicator { color: white; }
.white .scroll-indicator { color: black; }
.first-section .scroll-indicator { bottom: 60px; }
.first-section .scroll-text {
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 300;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #ffffff;
    border-top: none;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 60px; width: auto; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: #000; }

/* ========== JOBS CONTAINER ========== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    background-color: #ffffff;
}

.header {
    padding: 80px 0 100px 0;
    margin-bottom: 60px;
    text-align: center;
}

.header-logo {
    width: 320px;
    height: auto;
    margin-bottom: 30px;
}

.header p {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 1.5px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== SEARCH SECTION ========== */
.search-section {
    margin-bottom: 80px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 0;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.search-input-container {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 250px;
    border-radius: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #000;
}

.search-box {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: 'Jost', sans-serif;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 18px 40px 18px 25px;
    border: 1px solid #000;
    background: white;
    font-size: 0.95rem;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    outline: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
}

.filter-select:hover { border-color: #555; }

.filter-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.filter-container::after {
    content: '';
    position: absolute;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #000;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filter-container.open::after { transform: rotate(180deg); }

#cityFilterContainer { display: none; }

/* ========== JOB CARDS ========== */
.jobs-grid {
    display: grid;
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid #ccc;
}

.job-card {
    background-color: #fff;
    padding: 40px 60px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    width: 100%;
    transition: background-color 0.3s ease;
}

.job-card:hover { background-color: #f8f8f8; }

.job-card-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-left { flex: 1; }
.job-right { flex-shrink: 0; margin-left: 40px; }

.published-date-card {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.job-details {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: #000;
    flex-wrap: wrap;
}

.job-details span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-details span svg { width: 16px; height: 16px; }

/* ========== APPLY BUTTON ========== */
.apply-btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    padding: 12px 25px;
    font-size: 0.75rem;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 120px 0;
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .search-container { flex-direction: column; align-items: stretch; }
}

@media (max-width: 768px) {
    .panel { padding: 20px 15px; }
    .container { padding: 0 15px; }
    .job-card-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .job-right { margin-left: 0; width: 100%; }
    .apply-btn { width: 100%; text-align: center; }
}