/**
 * Careers page — mobile & tablet only (max-width: 991.98px)
 * Desktop styles (992px+) are not modified here.
 */

@media (max-width: 991.98px) {
    .page-careers .careers-hero {
        min-height: auto !important;
        height: auto !important;
        align-items: flex-start !important;
        padding: 104px 16px 36px !important;
        background: linear-gradient(180deg, rgba(6, 12, 24, 0.99) 0%, rgba(6, 12, 24, 0.95) 48%, rgba(6, 12, 24, 0.9) 100%) !important;
    }

    .page-careers .careers-hero-grid {
        width: 100%;
    }

    .page-careers .careers-hero-content {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }

    .page-careers .careers-hero-media {
        opacity: 0.34 !important;
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.72) 45%,
            rgba(0, 0, 0, 0.95) 100%
        ) !important;
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.72) 45%,
            rgba(0, 0, 0, 0.95) 100%
        ) !important;
    }

    .page-careers .careers-hero-text {
        justify-content: center !important;
        text-align: center !important;
        color: #ffffff !important;
        text-shadow: 0 6px 22px rgba(3, 7, 17, 0.95) !important;
        font-size: clamp(2rem, 7.2vw, 2.85rem) !important;
    }

    .page-careers .careers-hero p {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        padding: 0 4px;
        color: rgba(248, 251, 255, 0.96) !important;
        text-shadow: 0 2px 8px rgba(3, 7, 17, 0.6) !important;
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .page-careers .careers-actions {
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .page-careers .careers-hero {
        padding: 96px 16px 28px !important;
    }

    .page-careers .careers-kicker {
        font-size: 0.62rem !important;
        letter-spacing: 0.12em !important;
        padding: 8px 14px !important;
        max-width: 100%;
        justify-content: center;
        color: #ffffff !important;
    }

    .page-careers .careers-hero-text {
        font-size: clamp(1.75rem, 8.5vw, 2.35rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 18px !important;
        color: #ffffff !important;
    }

    .page-careers .careers-hero p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        padding: 0 8px;
    }

    .page-careers .careers-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 22px !important;
    }

    .page-careers .careers-btn,
    .page-careers .careers-btn-alt {
        width: 100% !important;
        max-width: 300px !important;
        min-width: 0 !important;
    }

    .page-careers .careers-hero-media {
        opacity: 0.48 !important;
    }
}
