
.career-page {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Common Container for Max Width */
.container {
    width: 100%;
    max-width: 1268px; /* 1220 + 24*2 padding to ensure 1220px content width */
    padding: 0 24px;
    margin: 0 auto;
}

/* Section Spacing */
.section {
    padding-top: 54px;
    padding-bottom: 80px;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 48px;
    color: #27201F;
}

/* Intro Section */
.intro-wrapper {
    padding-top: 54px;
    height: auto;
    box-sizing: border-box; /* Identify height includes padding? Design usually implies total space. */
    position: relative;
    z-index: 0;
}

.intro-wrapper {
    background-color: #F7F7F7;
    box-shadow: 0 0 0 100vw #F7F7F7;
    clip-path: inset(0 -100vw);
}

/*.intro-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #F7F7F7;
    z-index: -1;
}*/
/*.intro-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    
    left: calc(50% - 50vw);
    width: 100vw;
    
    height: 100%;
    background-color: #F7F7F7;
    z-index: -1;
}*/

.intro-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 1.2;
    color: #27201F;
}

.intro-section {
    display: flex;
    align-items: center;
    gap: 80px; /* 1220 - 640 - 500 = 80px gap */
    width: 100%;
    margin-bottom: 80px
    /* max-width is handled by container 1220px */
    /* height: 256px; Removed fixed height for responsiveness */
}

.intro-text {
    flex: 1; /* Allow to shrink/grow */
    /* width: 640px; Removed fixed width */
    /* height: 256px; Removed fixed height */
    font-weight: 400;
}

/* Removed specific h1 style inside intro-text as it's now .intro-title */

.intro-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-gray);
    margin-bottom: 24px;
}

.intro-image {
    width: 500px;
    height: 256px;
    flex: none; /* Disable flex-grow/shrink to fix width */
    display: flex;
    justify-content: center;
    align-items: center; /* Center image if smaller, or stretch */
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or cover, depending on SVG aspect ratio */
}

/* Key Functions Section */
.key-functions {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.function-row {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 300px;
}

/* Image on Right (default row) or Left (reverse) */
.function-row.reverse {
    flex-direction: row-reverse;
}

.function-info {
    flex: 1;
}

.function-info h3 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 40px;
}

.function-info p {
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: 0%;
    color: #27201F;
}

.function-img {
    height: 300px;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.function-img img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    display: block;
}



/* Working at OOCL */
.working-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    height: 332px;
}

.culture-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0;
    background: #F5F5F5; /* Making an assumption for visibility, consistent with light-bg */
    border-radius: 8px; /* Slight radius */
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.culture-img-wrapper {
    width: 100%;
    height: 192px;
    overflow: hidden;
}

.culture-img-wrapper img {
    width: 100%;
    height: 192px;
    object-fit: cover;
}

.culture-content {
    height: 140px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.culture-content h3 {
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    color: #000000;
    margin: 0;
}

.culture-content p {
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    color: #666666;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .intro-wrapper {
        padding-top: 40px;
    }
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .intro-section {
        flex-direction: column;
        height: auto;
        gap: 40px;
    }

    .intro-wrapper {
        height: auto;
        padding-bottom: 60px;
    }
    
    .intro-text, .intro-image {
        width: 100%;
        height: auto;
    }
    
    .intro-image img {
        height: auto;
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }
    
    .function-row {
        height: auto;
        gap: 32px;
    }
    
    .function-img {
        height: 250px;
    }
    
    .function-img img {
        height: 100%;
    }

    .working-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto; /* Reset fixed height */
    }
    
    .culture-card {
        height: auto;
        min-height: 380px;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section-title, .intro-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .intro-title {
        text-align: left;
    }
    
    .intro-text p, .function-info p, .culture-content p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Stack Functions: Image Top, Text Bottom */
    .function-row, .function-row.reverse {
        flex-direction: column;
        height: auto;
    }
    
    .function-info {
        order: 2;
    }

    .function-img {
        width: 100%;
        height: 200px;
        order: 1; /* Always image first */
    }
    
    .function-img img {
        height: 100%;
    }

    .working-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .culture-card {
        min-height: auto;
    }

    .function-info h3 {
        font-weight: 600;
        font-size: 20px;
    }
}
