/* ====================================
   APCA Career Section
   Reusable template part for career/recruitment section
   ==================================== */

/* Base Section */
.apca-career-section {
    position: relative;
    background-color: #1C1C1C;
    background-image: url('../../images/background/texture-1.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: clamp(3rem, 6vw, 5rem) 0;
    overflow: hidden;
}

/* Add subtle overlay to ensure text readability */
.apca-career-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.apca-career-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Kicker (Top Label) - Using Hero Subtitle Style */
.apca-career-section .apca-hero-subtitle h6 {
    font-size: 1rem;
    font-family: 'Cabrito Sans', sans-serif;
    font-weight: lighter;
    color: #d0d0d0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #5e5e5e;
    padding-top: 1rem;
    width: fit-content;
}

.apca-career-section .divider {
    width: 100%;
    height: 1px;
    background: #5e5e5e;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Main Title */
.apca-career-title-wrapper {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.apca-career-title {
    font-family: 'Nimbus Sans Extd', sans-serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

/* Content Layout */
.apca-career-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

/* Left: Image Section */
.apca-career-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.apca-career-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
}

.apca-career-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.apca-career-section .apca-decortion-image {
    position: relative;
    margin-left: auto;
    width: clamp(180px, 30%, 280px);
    opacity: 0.9;
}

.apca-career-section .apca-decortion-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Right: Text Section */
.apca-career-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.apca-career-description p {
    font-family: 'Cabrito Sans', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: #e8e8e8;
    margin: 0;
}

.apca-career-cta {
    margin-top: auto;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .apca-career-content {
        gap: 2.5rem;
    }

    .apca-career-image {
        aspect-ratio: 16 / 10;
    }

    .apca-career-description p {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .apca-career-section {
        padding: 2.5rem 0;
    }

    .apca-career-container {
        padding: 0 1rem;
    }

    .apca-career-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .apca-career-section .divider {
        margin-bottom: 1.5rem;
    }

    .apca-career-title-wrapper {
        margin-bottom: 2rem;
    }

    .apca-career-title {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
    }

    /* Image goes first on mobile */
    .apca-career-image-wrapper {
        order: 1;
    }

    .apca-career-text-wrapper {
        order: 2;
    }

    .apca-career-image {
        aspect-ratio: 16 / 11;
    }

    .apca-career-section .apca-decortion-image {
        width: clamp(160px, 35%, 240px);
        margin-left: 10%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .apca-career-section {
        padding: 2rem 0;
    }

    .apca-career-container {
        padding: 0 0.75rem;
    }

    .apca-career-section .apca-hero-subtitle h6 {
        font-size: 0.85rem;
        padding-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .apca-career-section .divider {
        margin-bottom: 1.25rem;
    }

    .apca-career-title {
        font-size: clamp(1.6rem, 10vw, 2.8rem);
        letter-spacing: -0.01em;
    }

    .apca-career-content {
        gap: 1.5rem;
    }

    .apca-career-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .apca-career-section .apca-decortion-image {
        width: clamp(140px, 40%, 200px);
        margin-left: 5%;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .apca-career-section {
        border: 2px solid #fff;
    }

    .apca-career-title,
    .apca-career-description p,
    .apca-career-kicker-text {
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .apca-career-section,
    .apca-career-image img {
        transition: none;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .apca-career-section {
        background: #fff !important;
        color: #000 !important;
    }

    .apca-career-section::before {
        display: none;
    }

    .apca-career-title,
    .apca-career-description p {
        color: #000 !important;
    }

    .apca-career-decoration {
        display: none;
    }
}
