.work-culture-section-main .work-culture-image-main,
.work-culture-section-main .work-culture-image-secondary {
    margin-top: -10px;
}

.work-culture-image-main img {
    margin-top: -1px;
}

@media only screen and (min-width:1441px) {
    .our-section-content .about-us-page-top-left{
        max-width: 55%;
    }
}

@media only screen and (max-width:1499px) {
    .footer-top-right-left {
        flex: 1;
    }

    .footer-middle-right {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 50px;
    }
}

@media only screen and (max-width:1299px) {
    .work-with-us-section h4 {
        font-size: 40px;
        line-height: 50px;
    }

    .footer-middle-right {
        gap: 30px;
    }

    .work-with-us-section {
        padding: 50px 24px 100px;
    }

    .vacancies-section-wrapper {
        padding: 100px 25px 150px;
    }

    .vacancies-section-wrapper .accordion-title h2 {
        margin-bottom: 28px;
    }
}

@media only screen and (max-width:1199px) {
    .footer-top-main {
        flex-direction: column;
        height: 100%;
        gap: 28px;
    }

    .footer-top-right-left,
    .footer-top-right-right {
        height: 300px;
    }

    .footer-top-right {
        height: auto;
        width: 100%;
        gap: 20px;
    }

    .footer-top-left {
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    .footer-middle-main {
        flex-direction: column;
    }

    .footer-middle-left,
    .footer-middle-right {
        width: 100%;
    }

    .footer-middle-right {
        justify-content: space-between;
        gap: 10px;
    }

    .footer-middle-left-inner {
        max-width: 100%;
        margin-top: 50px;
    }

    .footer-middle-left {
        margin-bottom: 50px;
    }

    .footer-middle-main {
        padding: 40px 0 100px 0;
    }

    .work-with-us-section h4 {
        font-size: 32px;
        line-height: 40px;
    }

    .work-culture-section-main .work-culture-image-secondary img {
        max-height: 60%;
    }

    .work-with-us-section {
        padding: 50px 24px 80px;
    }

    .vacancies-section-wrapper {
        padding: 70px 25px 100px;
    }

    .vacancies-section-wrapper .single-accordion-item.active .accordion-body {
        padding: 25px 0 50px;
    }

    .work-with-us-section h6 {
        font-size: 22px;
    }

    .vacancies-section-wrapper .accordion-title h2 {
        font-size: 24px;
    }

    .vacancies-section-wrapper .accordion-header p {
        font-size: 16px
    }

    .vacancies-section-wrapper .role-details p,
    .vacancies-section-wrapper .requirements-details-left,
    .vacancies-section-wrapper .requirements-details-right {
        font-size: 13px;
    }
}

@media only screen and (max-width:1023px) {

    .footer-top-right-left,
    .footer-top-right-right {
        height: 250px;
    }

    .footer-top-left h6 {
        font-size: 21px;
    }

    .footer-top-right-left-content h6 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* a.footer-main-email {
        font-size: 24px;
    } */

    .footer-middle-left p {
        margin-bottom: 8px;
    }
}


@media only screen and (max-width:800px) {
    .work-with-us-section h4 {
        font-size: 26px;
        line-height: 30px;
    }

    .work-with-us-section h6 {
        font-size: 20px;
    }

    .work-with-us-section {
        padding: 50px 24px 60px;
    }

    .vacancies-section-wrapper {
        padding: 60px 25px 100px;
    }

    .vacancies-section-wrapper {
        padding: 60px 25px 80px;
    }

    .vacancies-section-wrapper .role-details {
        margin-bottom: 15px;
    }

    .vacancies-section-wrapper .accordion-title h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width:769px) {
    .work-with-us-section .work-with-us-right {
        margin-right: 0;
        margin-top: 10px;
    }

    .work-with-us-section h6 {
        font-size: 19px;
    }

    .work-with-us-section h4 {
        font-size: 28px;
    }

    /* #M07-jobs-image: only hide the legacy two-up secondary slot on mobile.
       The .work-culture-video wrapper holds the single banner asset (image,
       MP4, or Vimeo iframe) and must remain visible — hiding it made the
       Jobs-page office photo disappear on mobile. */
    .work-culture-image-secondary {
        display: none !important;
    }

    .work-culture-section-main .work-culture-image-main img {
        border-radius: 0;
    }

    .work-culture-section-main .work-culture-images.work-culture-bg-image {
        position: unset;
    }

    .work-with-us-section {
        flex-direction: column;
    }

    .vacancies-section-wrapper .accordion-title h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .work-culture-top-text p:nth-child(2),
    .work-culture-top-text p:nth-child(3) {
        display: none;
    }

    .vacancies-section-wrapper .accordion-header p {
        font-size: 19px;
    }

    .vacancies-section-wrapper .role-details p,
    .vacancies-section-wrapper .requirements-details-left,
    .vacancies-section-wrapper .requirements-details-right {
        font-size: 15px;
    }

    .vacancies-section-wrapper .accordion-header p:nth-child(2) {
        display: none;
    }

    .vacancies-section-wrapper .role-details,
    .vacancies-section-wrapper .requirements-details {
        flex-direction: column;
    }

    .vacancies-section-wrapper .accordion-header .role-position,
    .vacancies-section-wrapper .requirements-details-right,
    .vacancies-section-wrapper .role-details p {
        width: 100% !important;
    }

    .vacancies-section-wrapper .role-details {
        margin-bottom: 40px;
    }

    .role-title,
    .requirements-details-left p {
        margin-bottom: 5px;
    }

}

@media only screen and (max-width:768px) {
    
    .work-page-main {
        grid-template-columns: 1fr !important;
        grid-gap: 30px;
        padding: 100px 20px 60px 20px;
    }

    .work-page-main .single-work {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        aspect-ratio: 366 / 458;
    }

    .work-page-main .single-work:nth-child(2n) {
        max-height: none !important;
        aspect-ratio: 366 / 458;
    }

    .work-page-main .single-work:nth-child(odd) .single-work-images {
        height: 100%;
    }
}

@media only screen and (max-width:767px) {

    /* changes */

    /* Work archive - force single column on mobile - override auto-fill */
    .work-page-main {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-auto-flow: row !important;
        grid-gap: 30px !important;
        padding: 100px 20px 60px 20px !important;
        justify-content: stretch !important;
    }

    .work-page-main .single-work {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        aspect-ratio: 366 / 458 !important;
        grid-column: auto !important;
    }

    .work-page-main .single-work:nth-child(2n) {
        max-height: none !important;
        aspect-ratio: 366 / 458 !important;
    }

    .work-page-main .single-work:nth-child(odd) .single-work-images {
        height: 100% !important;
    }

    .work-detail-page-banner {
        margin-bottom: 70px !important;
    }
}

@media only screen and (max-width:480px) {
    /* Extra aggressive override for very small screens */
    .work-page-main {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-columns: 1fr !important;
        grid-auto-flow: row !important;
        width: 100% !important;
    }

    .work-page-main .single-work {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .work-detail-page-product-images-with-captions {
        padding: 0px 20px;
    }

    .work-detail-page-related-project-main {
        margin: 50px 0;
    }

    /* Removed orphaned gap rule - custom.css handles responsive gap values via media queries */
    /* .work-detail-page-product-images-with-captions {
        gap: 50px;
    } */

    .work-detail-page-product-image3, .work-detail-page-product-image4 {
        max-width: 100%;
    }

    .work-detail-page-project-detail-inner-left .work-dt-project-title {
        font-size: 19px;
    }

    .work-detail-page-project-detail-inner-left p {
        display: none;
    }

    .work-detail-page-project-detail-inner {
        gap: 25px;
    }

    .related-project-title-and-all-work-btn {
        margin-bottom: 20px;
    }

    .work-detail-page-related-project-inner-main {
        gap: 50px;
    }

    .work-detail-page-project-detail {
        margin-bottom: 50px !important;
    }

    .vacancies-section-wrapper .requirements-details ul {
        margin: 25px 0 30px;
    }

    .contact-page-top {
        padding: 70px 0px 0px !important;
    }

    .about-us-page-top .about-us-page-top-right-services-social ul li span:first-child {
        display: inline-block !important;
    }

    .about-us-page-top .about-us-page-top-right-services-social>div {
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .about-us-page-top-right-social {
        display: none;
    }

    .about-us-page-top .about-us-page-top-right-services-list li span:last-child {
        text-align: end;
    }

    /* =============== */

    .footer-main {
        padding: 20px 20px 0 20px
    }

    .work-with-us-section {
        padding: 45px 20px 60px;
    }

    /* Removed orphaned rule - this was applying globally and removing padding from .work-culture-section-main */
    /* .work-culture-section-main {
        padding: 0;
    } */

    .work-culture-image-main img {
        border-radius: 0;
    }

    .vacancies-section-wrapper {
        padding: 60px 20px 60px;
    }

    .vacancies-section-wrapper .accordion-header {
        padding: 12px 0;
    }

    .work-with-us-section h4 {
        letter-spacing: -0.03em;
    }

    .requirements-details-right .learn-more-btn {
        margin-left: 0;
    }

    .vacancies-section-wrapper .single-accordion-item.active .accordion-body {
        padding: 25px 0 60px;
    }

    .max-inner {
        padding: 0;
        position: absolute;
        height: 100vh;
    }

    .mox-content {
        padding: 20px 20px 20px 20px;
        height: 100vh;
    }

    .mox-mission {
        margin-top: 15px !important;

    }

    .all-species-welcome-tagline {
        font-size: clamp(30px, 9vw, 150px);
        padding: 0 20px;
        line-height: 100%;
    }

    .footer-global-scroll+.video-popup-overlay {
        z-index: 100000;
    }

    .footer-top-right-left-content h6 {
        font-size: 19px;
        max-width: 80%;
        margin-bottom: 3px;
    }

    .footer-top-main {
        gap: 50px;
    }

    .footer-top-left {
        padding: 30px 20px;
    }

    #newsletter-form {
        margin-top: 76px;
    }

    .footer-middle-main {
        padding: 100px 0 47px 0;
    }

    .footer-middle-main {
        gap: 0;
    }

}

@media only screen and (max-width:575px) {

    .footer-top-right {
        display: flex;
        flex-direction: row;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .footer-top-right-left,
    .footer-top-right-right {
        height: 200px;
        width: 50%;
        flex: none !important;
        max-width: 50%;
        min-width: 0;
        box-sizing: border-box;
    }

    .footer-top-right-left {
        flex: 1;
    }

    .footer-top-right-left-content {
        top: 4px;
        left: 10px;
    }

    .footer-top-right {
        display: flex;
        flex-direction: row;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }




    .footer-mox-logo {
        position: relative;
        bottom: 0px;
    }
}

@media only screen and (max-width:480px) {
    .footer-address {
        max-width: 150px;
    }

    .footer-middle-right {
        flex-wrap: wrap;
        gap: 20px;
        row-gap: 50px;
        align-items: start !important;
    }

    /* Update */
    .footer-middle-left-inner a {
        text-decoration: none;
    }

    .species-section {
        flex-direction: column;
    }

    .species-services-list {
        width: 100%;
    }

    /* ================================= */

    /* .clock-block {
        margin-top: 12px;
    } */

    .footer-bottom-main-inner p,
    .footer-legal a {
        font-size: 10px;
    }

    .footer-middle-left-inner {
        align-items: flex-start;
        gap: 30px;
    }

    .about-us-page-bottom-video video {
        min-height: 548px;
    }

    .about-us-page-top {
        /* row-gap: 60px; */
        row-gap: 47px;
    }

}

/* changes */

.work-detail-page-banner-caption-left {
    /* max-width: 100% !important; */
    max-width: calc(42% + 10px) !important;
    gap: 70%;
}

@media(max-width:1920px) {
    .work-detail-page-banner-caption-left {
        gap: 72%;
        max-width: calc(42% + 8px) !important;
    }
}

@media(max-width:1600px) {
    .work-detail-page-banner-caption-left {
        gap: 72%;
        max-width: 100%;
    }
}

@media(max-width:1200px) {
    .work-detail-page-banner-caption * {
        gap: 0% !important;
        max-width: calc(80% + 8px) !important;
    }

    /* @media(max-width:767px){
    .work-detail-page-banner-caption *{
        gap: 0% !important;
    }    
} */
}

@media(max-width:767px) {
    .related-post-section {
        margin: 0px -20px !important;
    }

    .related-post-slider-controls .swiper-pagination {
        padding: 14px 18px;
    }

    .related-post-slider-controls .swiper-button-prev,
    .related-post-slider-controls .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    .related-post-slider-controls .swiper-button-prev::after,
    .related-post-slider-controls .swiper-button-next::after {
        font-size: 13px;
    }
}

@media(max-width:480px) {
    .related-post-slider-controls {
        gap: 20px;
        /* justify-content: right; */
    }

    .related-post-slider-controls .swiper-button-prev,
    .related-post-slider-controls .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .related-post-slider-controls .swiper-button-prev::after,
    .related-post-slider-controls .swiper-button-next::after {
        font-size: 12px;
    }
}

/* =============================================
   What We Do + Services — Mobile-only section
   ============================================= */

/* Hidden by default on desktop */
.wds-mobile-section {
    display: none;
}

@media only screen and (max-width: 767px) {

    /* Hide desktop equivalents when mobile section takes over */
    .what-we-do-section-main,
    .all-species-welcome-section-main,
    .home-page-partenr-slider-main {
        display: none !important;
    }

    .wds-mobile-section {
        display: block;
        padding: 60px 0 0;
        overflow: hidden;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .wds-mobile-inner {
        padding: 0 20px;
    }

    /* Heading */
    .wds-mobile-heading {
        font-weight: 400;
        font-size: 30px;
        line-height: 34px;
        letter-spacing: -0.03em;
        color: #000;
        margin: 0 0 12px;
    }

    /* Body text */
    .wds-mobile-body p {
        font-weight: 400;
        font-size: 15px;
        line-height: 20px;
        letter-spacing: -0.32px;
        color: #000;
        margin: 0 0 24px;
        text-indent: 2.4em;
    }

    /* Learn more button — inherits global .learn-more-btn styles */
    .wds-mobile-section .learn-more-btn {
        margin-bottom: 40px;
    }

    /* Services block */
    .wds-mobile-services {
        margin-top: 10px;
    }

    .wds-mobile-services-label p {
        font-weight: 400;
        font-size: 15px;
        line-height: 15px;
        letter-spacing: -0.03em;
        color: #000;
        text-transform: uppercase;
        margin: 0 0 14px;
    }

    /* Services list — reuses existing .species-services-list styles */
    .wds-mobile-services .species-services-list {
        max-width: 100%;
        padding-left: 0;
    }

    .wds-mobile-services .species-services-list ul {
        max-width: 100%;
    }

    .wds-mobile-services .species-services-list li a {
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-align-items: center;
        align-items: center;
        padding: 2px 0;
        font-size: 16px;
        line-height: 16px;
    }

    /* Client logo carousel */
    .wds-mobile-clients {
        overflow: hidden;
        margin-top: 40px;
        padding-bottom: 40px;
    }

    .wds-mobile-clients .wdsClientSwiper {
        overflow: visible;
        padding: 0 20px;
    }

    .wds-mobile-clients .wdsClientSwiper .swiper-slide {
        width: 119px;
        flex-shrink: 0;
    }

    .wds-mobile-clients .logo-box {
        background-color: #f6f6f6;
        border-radius: 7px;
        width: 119px;
        height: 119px;
        display: flex;
        display: -webkit-flex;
        justify-content: center;
        -webkit-justify-content: center;
        align-items: center;
        -webkit-align-items: center;
    }

    .wds-mobile-clients .logo-box img {
        max-width: 54px;
        max-height: 54px;
        object-fit: contain;
    }

}