/* Tablet Responsive Styles for Careers Page */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    :root {
        --container-width: calc(100% - 48px); /* 24px on each side for small tablets */
        --space-md: 0.75rem;

            /* Body Text & Content */
    --mobile-text-large: clamp(0.9rem, 2.8vw, 1rem);           /* Large body text */
    --mobile-text-base: clamp(0.8rem, 2.4vw, 0.9rem);          /* Standard body text */
    --mobile-text-small: clamp(0.7rem, 2.1vw, 0.8rem);         /* Small text, captions */
    --mobile-subtitle: clamp(1rem, 3.5vw, 1.3rem);             /* Section subtitles */
    }

    /* Hero Section */
    .careers-hero {
        padding: 2.5rem 0 3rem;
    }

    .careers-hero__container {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .careers-hero__left {
        flex: 1 1 45% !important;
        width: auto !important;
        padding-top: 20px;
        text-align: left !important;
        align-items: flex-start !important;
        margin-bottom: 0 !important;
    }

    .careers-hero__right {
        flex: 1 1 50% !important;
        width: auto !important;
        align-items: flex-start !important;
    }

    .careers-hero__title {
        font-size: calc(1.8rem + 0.8vw);
        margin-top: 16px;
        margin-bottom: 16px;
        text-align: left !important;
    }

    .careers-hero__tagline {
        font-size: 0.9rem;
        text-align: left !important;
        margin-bottom: 8px;
    }

    .careers-hero__subtitle {
        font-size: var(--mobile-text-base) !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
    }

    .careers-hero__divider {
        justify-content: flex-start !important;
        margin-bottom: 20px;
    }

    .careers-hero__form-card {
        padding: calc(1rem + 0.3vw) calc(0.7rem + 0.2vw);
        max-width: 100%;
        margin: 0 !important;
    }

    .careers-hero__form-title {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: left !important;
    }

    .careers-hero__form {
        gap: 16px;
        margin-top: 16px;
    }

    .careers-hero__form input,
    .careers-hero__form textarea,
    .careers-hero__form select,
    .careers-hero__form .form__input--file {
        padding: 8px 10px;
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .careers-hero__form textarea {
        min-height: 40px;
    }

    /* Form Success View */
    .careers-hero__success-title {
        font-size: 16px;
    }

    .careers-hero__success-desc {
        font-size: 0.7rem;
    }

    /* Form Corner Decorations */
    .careers-hero__form-corner {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .careers-hero__form-corner-arrow {
        width: 30px;
        height: 30px;
    }

    .careers-hero__form-inner-corner {
        width: 25px;
        height: 25px;
        top: 15px !important;
        right: 12px !important;
    }
    .expertise {
        background-color: #282828 !important;
        padding: clamp(3rem, 5vw, 4.5rem) 0 !important;
        color: #fff !important;
      }
      
      .expertise__container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: clamp(0.8rem, 1.5vw, 1.2rem) !important;
        flex-wrap: nowrap !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
      }
      
      .expertise__content {
        flex: 1 1 62% !important;
        min-width: 0 !important;
        order: 1 !important;
        text-align: left !important;
      }
      
      .expertise__title {
        font-size: clamp(1.2rem, 2.4vw, 1.7rem) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #fff !important;
        margin: 0 !important;
        text-align: left !important;
      }
      
      .expertise__image {
        flex: 0 0 33% !important;
        max-width: 33% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        order: 2 !important;
      }
      
      .expertise__svg {
        width: 100% !important;
        max-width: clamp(280px, 25vw, 400px) !important;
        height: auto !important;
        object-fit: contain !important;
      }

      .work-with-us__stats-text {
        font-size: var(--mobile-text-base) !important;
      }
}

@media screen and (min-width: 768px) and (max-width: 900px) {
    .expertise__content {
        flex: 1 1 64% !important;
        order: 1 !important;
      }
      
      .expertise__image {
        flex: 0 0 31% !important;
        max-width: 31% !important;
        order: 2 !important;
      }
      
      .expertise__container {
        flex-direction: row !important;
        gap: clamp(0.6rem, 1.2vw, 1rem) !important;
      }
}

/* Medium Tablets (900px - 1024px) */
@media screen and (min-width: 900px) and (max-width: 1024px) {
    :root {
        --container-width: calc(100% - 64px); /* 32px on each side for medium tablets */
        --space-md: 1rem;
    }

    .careers-hero {
        padding: 3rem 0 3.5rem;
    }

}

/* Large Tablets (1024px - 1200px) */
@media screen and (min-width: 1024px) and (max-width: 1200px) {
    :root {
        --container-width: calc(100% - 80px); /* 40px on each side for large tablets */
        --space-md: 1.25rem;
    }

    .careers-hero {
        padding: 3.5rem 0 4rem;
    }

    .careers-hero__container {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 2rem;
        padding: 0 0.75rem;
    }

    .careers-hero__left {
        flex: 1 1 45% !important;
        width: auto !important;
        padding-top: 25px;
        text-align: left !important;
        align-items: flex-start !important;
        margin-bottom: 0 !important;
    }

    .careers-hero__right {
        flex: 1 1 50% !important;
        width: auto !important;
        align-items: flex-start !important;
    }

    .careers-hero__title {
        font-size: calc(2rem + 0.8vw);
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: left !important;
    }

    .careers-hero__tagline {
        font-size: 0.95rem;
        text-align: left !important;
        margin-bottom: 12px;
    }

    .careers-hero__subtitle {
        font-size: var(--mobile-text-base) !important;
        margin-bottom: 1.25rem !important;
        text-align: left !important;
    }

    .careers-hero__divider {
        justify-content: flex-start !important;
        margin-bottom: 25px;
    }

    .careers-hero__form-card {
        padding: calc(1.2rem + 0.3vw) calc(0.8rem + 0.2vw);
        margin: 0 !important;
    }
}
