/* =========================================================
   CAREERS MOBILE STYLES (Max-Width: 991px)
   ========================================================= */
@media only screen and (max-width: 991px) {

    /* Global Overrides */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* 1. CINEMATIC SPLIT HERO - STACKED DESIGN */
    .editorial-hero {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        background: #fff !important;
    }

    /* Visual Side on TOP for Mobile Impact */
    .editorial-hero .hero-visual-side {
        width: 100% !important;
        height: 400px !important;
        /* Increased height for better cinematic impact */
        order: 1 !important;
        position: relative !important;
        overflow: hidden !important;
        background: var(--cr-forest) !important;
    }

    .collage-main {
        clip-path: none !important;
        transform: none !important;
        filter: brightness(0.8) contrast(1.1) !important;
        /* Slightly brighter for mobile */
        animation: subtleZoom 15s linear infinite !important;
        background-position: center 20% !important;
        /* Ensure focus is on the factory/people */
    }

    .visual-collage {
        overflow: visible !important;
        /* Allow badge and shadows to breathe */
    }

    .collage-badge {
        width: 110px !important;
        height: 110px !important;
        font-size: 0.85rem !important;
        top: 130px !important; /* Pushed down significantly to clear navbar */
        right: 20px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255,255,255,0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b) !important;
        backdrop-filter: blur(5px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 100 !important;
    }

    .collage-badge span {
        line-height: 1.2 !important;
        font-weight: 900 !important;
        display: block !important;
    }

    /* Content Side on BOTTOM */
    .editorial-hero .hero-content-side {
        width: 100% !important;
        padding: 60px 20px !important;
        text-align: center !important;
        order: 2 !important;
        background: #fff !important;
    }

    .editorial-tag {
        font-size: 0.75rem !important;
        letter-spacing: 3px !important;
        margin-bottom: 15px !important;
    }

    .editorial-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        letter-spacing: -1px !important;
        margin-bottom: 15px !important;
    }

    .editorial-lead {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
        max-width: 100% !important;
    }

    .btn-editorial-dark {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding: 16px !important;
        font-size: 1rem !important;
        justify-content: center !important;
    }

    /* 2. OPPORTUNITIES GRID */
    .positions-section {
        padding: 60px 15px !important;
        background: #f8fafc !important;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .job-card-next {
        border-radius: 25px !important;
        padding: 35px 20px !important;
        margin-bottom: 25px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }

    .card-top-badges {
        margin-bottom: 20px !important;
    }

    .card-content h3 {
        font-size: 1.4rem !important;
    }

    .card-snippet {
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
    }

    .btn-apply-next {
        width: 100% !important;
        padding: 15px !important;
        border-radius: 12px !important;
        justify-content: center !important;
    }

    /* 3. MODAL MOBILE */
    .next-modal .modal-visual-side {
        display: none !important;
    }

    .empty-box-next {
        padding: 50px 20px !important;
        border-radius: 20px !important;
    }

    /* 5. APPLICATION PAGE (Apply.cshtml) */
    .apply-hero-v5 {
        padding: 80px 20px 120px !important;
    }

    .apply-hero-v5 h1 {
        font-size: 2.22rem !important;
    }

    .mt-n100 {
        margin-top: -60px !important;
    }

    .elite-apply-card {
        border-radius: 30px !important;
        margin: 0 10px !important;
    }

    .apply-info-panel {
        padding: 40px 20px !important;
        text-align: center !important;
    }

    .job-meta-v5 {
        align-items: center !important;
        text-align: center !important;
    }

    .meta-item {
        justify-content: center !important;
    }

    .apply-form-panel {
        padding: 0 !important;
    }

    .apply-form-panel .p-5 {
        padding: 35px 20px !important;
    }

    .apply-form-panel h3 {
        font-size: 1.6rem !important;
        margin-bottom: 5px !important;
    }

    .elite-group {
        margin-bottom: 20px !important;
    }

    .next-input {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }

    .elite-group label {
        font-size: 0.85rem !important;
        padding-top: 10px !important;
    }

    /* Target resume link specific info text */
    .apply-form-panel .small.text-muted {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        display: block !important;
        margin-bottom: 10px !important;
    }

    .btn-apply-v5 {
        padding: 16px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        background: var(--cr-forest) !important;
        color: white !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        transition: 0.3s !important;
    }
}

/* 4. EXTRA SMALL DEVICES (PHONES) */
@media only screen and (max-width: 480px) {
    .editorial-title {
        font-size: 1.8rem !important;
    }

    .editorial-tag {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
    }

    .collage-badge {
        width: 95px !important;
        height: 95px !important;
        font-size: 0.75rem !important;
        top: 110px !important; /* Safe top margin for small phones */
        right: 15px !important;
        animation: badgePulse 2.5s ease-in-out infinite, badgeFloatMobile 4s ease-in-out infinite !important;
    }

    @keyframes badgeFloatMobile {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-10px);
        }

        /* Reduced float for small screens */
    }

    .editorial-hero .hero-visual-side {
        height: 350px !important;
        /* Slightly more room */
    }

    /* Apply Page Specifics for small phones */
    .apply-hero-v5 {
        padding: 60px 15px 100px !important;
    }

    .apply-hero-v5 h1 {
        font-size: 1.8rem !important;
    }

    .elite-apply-card {
        margin: 0 !important;
        border-radius: 20px !important;
    }

    .apply-form-panel .p-5 {
        padding: 25px 15px !important;
    }

    .apply-form-panel h3 {
        font-size: 1.35rem !important;
        text-align: center !important;
    }

    .elite-group label {
        font-size: 0.8rem !important;
    }

    .next-input {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }
}
