/*
 Theme Name: North Star - Tablet Styles
 Description: Tablet responsive styles for North Star theme.
*/

@media (max-width: 1024px) {
    .case-study-hero-section {
        padding: 100px 40px;
    }

    .case-study-hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .case-study-hero-header-line {
        display: none;
    }

    .case-study-hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .case-study-hero-client {
        font-size: 20px;
    }

    .case-study-hero-banner-wrap {
        height: 380px;
        border-radius: 0;
        margin: 30px 0;
    }

    .case-study-hero-counters {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding-bottom: 30px;
    }

    .case-study-counter-val {
        font-size: 36px;
    }

    .case-study-content-section {
        padding: 20px 40px 80px 40px;
    }
}

@media (max-width: 1024px) {
    .case-study-awards-section {
        padding: 80px 40px;
    }

    .case-study-awards-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 48px;
    }

    .case-study-awards-main-title {
        font-size: 36px;
        line-height: 44px;
    }

    .case-study-awards-subtitle {
        font-size: 18px;
        line-height: 26px;
        max-width: 100%;
    }

    .case-study-award-item {
        width: 340px;
        height: 280px;
        padding: 32px;
        border-radius: 12px;
    }

    .case-study-award-num {
        font-size: 36px;
    }

    .case-study-award-title {
        font-size: 18px;
        line-height: 24px;
    }

    .case-study-award-desc {
        font-size: 14px;
        line-height: 20px;
    }

    .awards-controls-row {
        margin-top: 48px;
    }

    .awards-progress-track {
        width: 180px;
    }
}

@media (max-width: 1024px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-container {
        padding: 0 40px;
    }

    .contact-responsive-title {
        display: block;
        margin-bottom: 64px;
        /* Title to Form spacing */
    }

    .contact-section .section-title {
        color: var(--Text-Color-Black, #1D1D1D);
        font-family: var(--Title-Family, Metropolis);
        font-size: var(--Title-T2, 32px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--Title-Line-height-2, 64px);
        /* 200% */
        letter-spacing: -2px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-col {
        display: none;
    }

    .contact-desktop-title {
        display: none;
    }

    .contact-details-desktop {
        display: none;
    }

    .contact-details-responsive {
        display: flex;
        justify-content: flex-start;
        gap: 80px;
        margin-top: 64px;
        /* Button to Details spacing */
    }

    .contact-counter-section {
        padding: 80px 0;
        /* Top padding: 80px, Bottom padding: 80px */
    }

    .counter-image-wrap {
        margin-bottom: 64px;
        /* Image to Counter grid spacer: 64px */
    }

    .counter-main-image {
        height: 500px;
    }

    .counter-col-item {
        padding: 0 32px;
    }

    .counter-col-title {
        font-size: 24px;
    }

    .case-study-slider-section {
        height: 600px;
    }

    .case-study-slide-inner {
        padding: 60px 60px;
    }

    .case-study-slide-phase {
        font-size: 18px;
    }

    .case-study-slide-month {
        font-size: 36px;
    }

    .case-study-slide-title {
        font-size: 36px;
    }

    .case-study-slide-description {
        font-size: 16px;
        line-height: 24px;
    }

    .case-study-slider-pagination {
        left: 60px;
        bottom: 200px;
    }

    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }

    .case-study-challenges-section {
        padding: 80px 40px;
    }

    .case-study-challenges-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "leftcol"
            "accordion";
        gap: 60px;
    }

    .case-study-challenges-left {
        grid-area: leftcol;
        display: flex;
        gap: 0;
    }

    .case-study-challenges-progress-wrap {
        display: none;
    }

    .case-study-challenges-slides-wrap {
        width: 100%;
        min-height: 380px;
    }

    .case-study-delivery-section {
        padding: 80px 40px;
    }

    .case-study-delivery-header {
        text-align: center;
    }

    .case-study-delivery-main-title {
        font-size: 32px;
        line-height: 40px;
    }

    .case-study-delivery-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .case-study-delivery-grid {
        display: block;
        /* Stack container */
    }

    .case-study-delivery-right {
        display: none;
        /* Hide desktop column */
    }

    .case-study-delivery-accordion-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 40px;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        /* Hide default scrollbars */
        -ms-overflow-style: none;
    }

    .case-study-delivery-accordion-list::-webkit-scrollbar {
        display: none;
        /* Hide scrollbars in webkit browsers */
    }

    .case-study-delivery-acc-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        border-bottom: none;
        padding: 0;
    }

    .case-study-delivery-acc-header {
        cursor: default;
    }

    .case-study-delivery-acc-title {
        color: #00224D !important;
        font-weight: 600 !important;
        font-size: 20px;
        line-height: 28px;
    }

    .case-study-delivery-acc-arrow {
        display: none;
        /* Hide arrows in slider */
    }

    .case-study-delivery-acc-content {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-top: 16px !important;
    }

    .case-study-delivery-acc-mobile-image {
        display: block;
        margin-top: 40px;
        width: 100%;
        height: 380px;
        border-radius: 24px;
        overflow: hidden;
    }

    .case-study-delivery-acc-mobile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .case-study-delivery-indicator-wrap {
        justify-content: center;
        margin-top: 40px;
    }

    .template-case-study-listing .hero-section {
        padding: 120px 0 80px 0;
        min-height: 550px;
    }

    .hero-category-pill {
        margin-bottom: 30px;
    }

    .case-study-hero-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .template-case-study-listing .hero-title {
        font-size: 56px;
        line-height: 64px;
    }

    .template-case-study-listing .hero-subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    .hero-arrow-btn {
        width: 64px;
        height: 64px;
    }


    .case-study-listing-section {
        padding: 80px 40px;
    }

    .more-case-studies-header {
        margin-bottom: 36px;
    }

    .more-case-studies-title {
        font-size: 32px;
        line-height: 40px;
    }

    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }



    .card-category-pill {
        top: 16px;
        left: 16px;
        padding: 6px 12px;
        font-size: 11px;
    }


    .case-study-grid-title {
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0;
    }

    .case-study-grid-card-link {
        font-size: 16px;
        margin-top: 22px;
    }



    .results-section-title {
        font-size: 48px;
        line-height: 56px;
        margin-bottom: 60px;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }

    .results-card-stat {
        font-size: 80px;
        margin-bottom: 20px;
    }

    .results-card-subtitle {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 12px;
    }

    .service-explorer-section {
        padding: 80px 40px;
        /* Top/bottom 80, left/right 40 */
    }

    .news-view-all-btn {
        font-size: 20px;
        padding: 20px;
        line-height: 20px;
    }

    .explorer-container {
        display: block;
        width: 100%;
    }

    .explorer-title {
        font-size: 32px;
        line-height: 64px;
        text-box-edge: cap alphabetic;
        text-box-trim: trim-both;
    }



    .explorer-pills-wrapper {
        margin-bottom: 60px;
        /* Gap between Pills and Image is 60 */
    }

    .explorer-left-col {
        width: 100%;
        margin-bottom: 40px;
        /* Gap between Image and Accordion is 40 */
        padding-left: 0;
    }

    .explorer-image-viewport {
        aspect-ratio: 16 / 9.42;
        min-height: auto;
    }

    .explorer-slide-indicator {
        display: none;
        /* Hide on mobile/tablet */
    }

    .hero-title {
        font-size: 60px;
        width: 100%;
    }

    .hero-subtitle {
        width: 100%;
    }

    .hero-text-wrap {
        flex-direction: column;
        gap: 24px;
    }

    .hero-content {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .page-template-template-case-study-listing .hero-content,
    .page-template-template-blog-listing .hero-content,
    .archive .hero-content,
    .post-type-archive-case_study .hero-content {
        padding-bottom: 0px !important;
    }

    .people-section {
        padding: 80px 40px;
    }

    .people-header {
        margin-bottom: 40px;
    }

    .people-section-title {
        font-size: 48px;
        line-height: 56px;
    }

    .people-section-subtext {
        font-size: 20px;
        line-height: 28px;
    }

    .people-filters-wrapper {
        margin-bottom: 40px;
    }

    .people-slider-wrapper {
        overflow: hidden;
        width: 605.2px;
        max-width: 100%;
        margin: 0 auto;
        /* Swipe/Drag supports overflowing, no arrows needed */
    }

    .people-nav-btn {
        display: none;
        /* Hide arrows on touch screens */
    }

    .people-card {
        width: 262px;
    }

    .people-card-img-wrap {
        width: 262px;
        height: 350px;
        padding-top: 0;
        border-radius: 12px;
    }

    .who-we-become-section {
        padding: 80px 24px;
    }

    .about-header {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 80px;
    }

    .about-section-title {
        width: 100%;
        font-size: 48px;
        line-height: 56px;
    }

    .about-section-subtext {
        width: 100%;
        font-size: 20px;
        line-height: 28px;
    }

    .about-stats-grid {
        flex-direction: row;
        gap: 48px;
    }

    .contractor-mobile-card-text {
        min-height: 167px;
    }

    .handover-tab {
        font-size: 12px !important;
        padding-bottom: 18px !important;
        border-bottom-width: 2px;
        width: 159px !important;
        height: 13px;
    }

    .about-stat-col {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .about-stat-header {
        padding-bottom: 16px;
        justify-content: center !important;
    }

    .not-just-another-section {
        padding: 60px 40px !important;
        min-height: auto;
    }

    .contractor-subtext {
        font-size: 16px;
    }

    .contractor-detail-title {
        font-size: 20px;
    }

    .contractor-detail-desc {
        font-size: 16px;
    }

    .contractor-title {
        font-size: 32px;

    }

    #not-just-another-section .about-container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .contractor-desktop-layout {
        display: none !important;
    }

    .contractor-mobile-layout {
        display: block !important;
        width: 100%;
    }

    .contractor-mobile-layout .contractor-info-header {
        padding: 0 24px;
        margin-bottom: 40px;
    }

    .contractor-mobile-slider-wrapper {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .contractor-mobile-slider-track {
        display: flex;
        gap: 20px;
        padding-left: 24px;
        width: max-content;
        position: relative;
    }

    .contractor-mobile-card {
        width: 78vw;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 22px;
        box-sizing: border-box;
        opacity: 0.3;
        transition: opacity 0.4s ease;
    }

    .contractor-mobile-card.active {
        opacity: 1;
    }

    .contractor-mobile-card-text {
        display: flex;
        flex-direction: column;
        gap: 22px;
        min-height: 130px;
    }

    .contractor-mobile-card-text .contractor-detail-title {
        color: #00224D;
        font-family: 'Metropolis', sans-serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 28px;
        margin: 0;
    }

    .contractor-mobile-card-text .contractor-detail-desc {
        color: #00224D;
        font-family: 'Metropolis', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        margin: 0;
    }

    .contractor-mobile-card-image {
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        aspect-ratio: 4 / 3;
        height: 350px;
    }

    .contractor-mobile-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
        display: block;
    }

    .contractor-mobile-progress-area {
        display: flex !important;
        align-items: center;
        gap: 16px;
        width: 150px;
        margin-top: 40px;
    }

    .handover-section {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }

    .handover-left {
        position: relative !important;
        width: 100% !important;
        padding: 80px 24px !important;
        height: auto !important;
        left: 0 !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .handover-images-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 400px !important;
        right: 0 !important;
    }

    .handover-title {
        font-size: 40px !important;
        line-height: 48px !important;
        margin-bottom: 40px !important;
    }


    /* --- Responsive styles for Built Sectors Section (Tablet & Mobile) --- */
    .built-sectors-section {
        height: 100vh !important;
        background-color: #00224D;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 40px !important;
        /* Side padding is 0 for edge-to-edge images */
        box-sizing: border-box;
    }

    .built-sectors-container {
        padding: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .built-sectors-title {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        font-size: 40px !important;
        line-height: 48px !important;
        text-align: left !important;
        margin-bottom: 24px !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: calc(100% - 80px);
        /* account for padding */
        padding: 0 0px !important;
        /* Restore side padding */
        word-wrap: break-word;
        flex-shrink: 0;
    }

    .built-sectors-carousel-wrapper {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        margin-top: 0;
        gap: 0;
        /* exact spacing managed via child margins */
        opacity: 1 !important;
        transform: none !important;
        flex-grow: 1;
        justify-content: flex-start;
        padding: 0 !important;
        /* No padding on wrapper */
    }

    .built-sectors-left {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 24px;
        /* Title-to-Image gap is 24px, Image-to-Text gap is 24px */
        flex-shrink: 0;
        padding: 0 !important;
        /* Full width left area */
    }

    .built-sectors-progress-col {
        display: none !important;
    }

    .built-sectors-cards-container {
        width: 100%;
        height: 42vh;
        /* Height fits viewport beautifully on tablet */
        overflow: hidden;
        /* ScrollTrigger handles translation */
        clip-path: none !important;
        border-radius: 0px;
        border: none !important;
        /* No border for full screen layout */
        padding: 0 !important;
        /* No padding for edge-to-edge images */
        box-sizing: border-box;
        box-shadow: none !important;
        position: relative;
    }

    .built-sectors-cards-container::after {
        display: none !important;
        /* Disable border overlay */
    }

    .built-sectors-cards-column {
        width: 100%;
        border: 1px solid var(--Stroke-Color-White-50, rgba(255, 255, 255, 0.50));
        padding: 8px;
    }

    .built-sectors-scroll-continue {
        display: none !important;
    }

    .built-sectors-next-container {
        display: none !important;
    }

    .built-sectors-cards-track {
        position: absolute;
        top: 0 !important;
        left: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100% !important;
        height: max-content !important;
        transform: none;
        transition: none !important;
    }

    .built-sector-image-card {
        width: 100% !important;
        max-width: 100%;
        height: 42vh !important;
        /* Matches container height */
        border-radius: 0px;
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .built-sector-image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.85);
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .built-sector-image-card.active img {
        filter: brightness(0.95);
    }

    .built-sectors-right {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex-grow: 1;
        margin-top: 0;
        padding: 0 0px !important;
        /* Restore side padding for descriptions */
        box-sizing: border-box;
    }

    .built-sectors-details-box {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100px;
        margin-bottom: 24px;
        /* Text-to-Progress-Bar gap is 24px */
        flex-shrink: 0;
    }

    .built-sector-detail-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        transform: none !important;
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        opacity: 0;
    }

    .built-sector-detail-item.active {
        position: relative;
        pointer-events: auto;
        opacity: 1;
        z-index: 5;
    }

    .built-sector-detail-item:not(.active) {
        opacity: 0;
        pointer-events: none;
    }

    .built-sector-icon-glow {
        display: none !important;
    }

    .built-sector-name {
        font-family: 'Metropolis', sans-serif;
        color: #ffffff;
        font-size: 28px !important;
        font-weight: 700;
        line-height: 36px;
        margin: 0 0 12px 0 !important;
        text-align: left !important;
    }

    .built-sector-desc {
        font-family: 'Metropolis', sans-serif;
        color: rgba(255, 255, 255, 0.7);
        font-size: 16px !important;
        line-height: 24px;
        text-align: left !important;
        margin: 0;
    }

    .built-sector-nav-btn,
    .built-sectors-bottom-fade {
        display: none !important;
    }

    /* Mobile progress & scroll continue elements */
    .built-sectors-mobile-progress {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 0;
        margin-bottom: 40px !important;
        /* "Auto" spacer between progress bar and scroll continue */
        flex-shrink: 0;
    }

    .built-sectors-mobile-progress .built-sectors-mobile-counter {
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Metropolis', sans-serif;
        font-size: 14px;
        font-weight: 500;
        min-width: 30px;
        flex-shrink: 0;
    }

    .built-sectors-mobile-progress .built-sectors-mobile-track {
        flex-grow: 1;
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
        position: relative;
        border-radius: 2px;
        overflow: hidden;
    }

    .built-sectors-mobile-progress .built-sectors-mobile-thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 20%;
        background: #FFFFFF;
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .built-sectors-mobile-scroll-continue {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Metropolis', sans-serif;
        font-size: 24px;
        text-transform: none;
        margin-top: 0;
        flex-shrink: 0;
        width: 100%;
    }

    .built-sectors-mobile-scroll-continue svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    .desktop-tablet-services .service-sidebar {
        display: none !important;
    }

    .desktop-tablet-services .service-mobile-tablet-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        /* Reduced padding bottom */
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        scroll-snap-type: x mandatory !important;
    }

    .desktop-tablet-services .service-mobile-tablet-nav::-webkit-scrollbar {
        display: none !important;
    }

    .desktop-tablet-services .mt-service-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 20px 16px !important;
        border-radius: 9px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        scroll-snap-align: start !important;
        transition: all 0.3s ease !important;
        font-size: 20px !important;
        font-weight: 500 !important;
        line-height: 28px !important;
    }

    .desktop-tablet-services .mt-service-btn.active {
        border-radius: 9px;
        border: 1px solid rgba(255, 255, 255, 0.20);
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%);
        color: #ffffff !important;
        font-weight: 600 !important;

    }

    .desktop-tablet-services .go-to-tablet {
        display: flex;
        width: 221px;
        padding: 20px;
        justify-content: space-between;
        align-items: center;
        color: var(--Button-Color-White, #FFF);
        font-family: var(--Button-Family, Metropolis);
        font-size: var(--Button-BU1, 20px);
        font-style: normal;
        font-weight: 600;
        line-height: var(--Button-Line-height, 28px);
        letter-spacing: var(--Button-Letter-spacing, 0);
        border-radius: 8px;
        border: 1px solid var(--Button-Color-White, #FFF);
    }

    .service-layout-grid {
        gap: 40px !important;
        /* Reduced gap from subcategory navigation bar to carousel cards */
        flex-direction: column !important;
    }

    .service-main-area {
        width: 100% !important;
    }

    .service-carousel-track-wrapper {
        height: 480px !important;
    }

    .desktop-tablet-services .service-carousel-card.card-active {
        width: 420px !important;
        /* Accordion behavior: 420px active card width */
        height: 480px !important;
        padding: 40px 24px !important;
    }

    .desktop-tablet-services .service-carousel-card {
        width: 140px !important;
        /* Accordion behavior: 80px inactive card width */
        height: 480px !important;
        padding: 30px 24px !important;
    }

    .desktop-tablet-services .service-carousel-card.card-active .service-card-desc-wrapper {
        grid-template-rows: 1fr !important;
    }

    .desktop-tablet-services .service-carousel-card.card-active .service-card-desc {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        margin-top: 16px !important;
        transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s !important;
    }

    .desktop-tablet-services .carousel-nav-buttons {
        display: flex !important;
        /* Show nav buttons on tablet */
    }

    .desktop-tablet-services .carousel-progress-area {
        width: 405px !important;
        /* Restore width from desktop */
    }

    .desktop-tablet-services .carousel-progress-bar-track {
        background: rgba(255, 255, 255, 0.2) !important;
        /* Premium translucent track */
    }

    .desktop-tablet-services .carousel-progress-bar-fill {
        background: #ffffff !important;
        /* Solid white progress fill */
    }

    .results-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 48px;
        margin-bottom: 64px !important;
    }

    .results-title {
        font-size: 32px !important;
        font-style: normal;
        font-weight: 400;
        line-height: 64px;
        text-align: left;
        width: 100%;
    }

    .results-category-tabs-wrapper {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .results-category-tab {
        font-size: 20px !important;
    }

    .results-title br {
        display: none;
    }

    .industries-title {
        font-size: 40px;
        font-style: normal;
        font-weight: 400;
        line-height: 64px;
        /* 160% */
        width: 100%;
    }

    .industries-subtitle {
        width: 100%;
        font-size: var(--Body-B1, 24px);
        font-style: normal;
        font-weight: 400;
        line-height: 40px;
        /* 166.667% */
    }

    .industry-card,
    .industry-card:hover {
        padding: 40px 24px;
        border-radius: 24px;
        border-radius: 24px;
        border: 1px solid var(--Stroke-Color-White-50, rgba(255, 255, 255, 0.50));
        background: linear-gradient(to bottom, rgba(61, 173, 255, 0.30), #00224D);
        box-shadow: 0 0 44px 0 rgba(255, 255, 255, 0.12);
        gap: 24px;
    }

    .industry-icon-wrapper {
        display: flex;
        width: 48px;
        height: 48px;
    }

    .industry-card-header {
        gap: 24px;
    }

    .industry-title {
        font-size: 28px;
        font-weight: 400;
        list-style: 44px;
    }

    .news-title {
        font-size: 40px;
        font-style: normal;
        font-weight: 400;
        line-height: 64px;
    }

    .news-title br {
        display: none;
    }

    .service-category-tabs,
    .results-category-tabs {
        width: 100%;
    }


    .services-section,
    .results-section,
    .industries-section,
    .news-section {
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .services-header {
        margin-bottom: 64px !important;
        /* Category tabs to subcategory tabs gap: 64px */
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 40px !important;
        /* Title-to-Category tabs gap: 48px */
    }

    .services-title {
        font-size: 40px !important;
        line-height: 48px !important;
        text-align: left !important;
    }

    .service-category-tabs-wrapper {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
    }

    .service-category-tabs {
        width: 100% !important;
    }

    .service-category-tab.active {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .service-category-tab {
        font-size: 14px !important;
        line-height: 20px !important;
        padding: 12px 16px !important;
    }

    .industries-section {
        padding: 80px 40px;
    }

    .industries-header {
        flex-direction: column;
        gap: 24px;
    }

    .industries-subtitle {
        max-width: 100%;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-stats-grid {
        gap: 60px 40px;
    }

    .results-stat-number .counter {
        font-size: 72px;
    }

    .news-section {
        padding: 80px 40px;
    }

    .news-controls {
        display: none;
    }

    .news-carousel-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 20px;
    }

    .news-carousel-track-wrapper::-webkit-scrollbar {
        display: none;
    }

    .news-carousel-track {
        display: flex;
        gap: 24px;
        transform: none !important;
    }

    .news-carousel-card {
        flex: 0 0 536px !important;
        width: 536px;
        height: 500px;
        min-width: 288px;
        scroll-snap-align: start;
        border-radius: 16px;
    }

    .news-card-content {
        height: 100%;
        padding: 24px !important;
        gap: 12px;
        background: linear-gradient(180deg, rgba(0, 34, 77, 0) 0%, rgba(0, 34, 77, 0.9) 70%) !important;
        border-radius: 0 0 16px 16px;
        backdrop-filter: blur(2px);
    }

    .news-card-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
    }

    .news-carousel-card.card-active {
        width: 536px;
        height: 500px;
        flex: 0 0 536px !important;
    }

    .news-card-desc {
        opacity: 1 !important;
        max-height: 200px !important;
        margin-top: 8px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-card-desc p {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.85);
        margin: 0 0 16px 0;
        line-height: 1.5;
    }

    .news-read-btn {
        color: var(--Button-Color-White, #FFF);
        font-family: var(--Button-Family, Metropolis);
        font-size: var(--Button-BU1, 20px);
        font-style: normal;
        font-weight: 600;
        line-height: var(--Button-Line-height, 22px);
        /* 140% */
        letter-spacing: var(--Button-Letter-spacing, 0);
        padding: 20px;
        width: 100%;
    }

    .news-bottom-controls {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-top: 44px;
        width: 100%;
        padding-right: 40px;
        gap: 40px;
    }

    .news-mobile-progress {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 400px;
        margin-top: 0;
    }

    .news-progress-text {
        font-family: Metropolis, sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #1D1D1D;
        min-width: 30px;
        flex-shrink: 0;
    }

    .news-progress-bar-track {
        flex-grow: 1;
        height: 6px;
        background-color: rgba(29, 29, 29, 0.1);
        position: relative;
        border-radius: 100px;
        overflow: hidden;
    }

    .news-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background-color: #00224D;
        width: 16.66%;
        transition: width 0.3s ease;
        border-radius: 100px;
    }

    .client-logos-swiper {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .client-logos-swiper .swiper-slide {
        width: auto;
    }

    .case-studies-section {
        padding: 80px 40px;
    }

    .case-studies-header {
        margin-bottom: 64px;
    }

    .case-studies-title {
        font-size: 48px;
        line-height: 56px;
    }

    .case-studies-carousel-wrapper {
        margin: 0;
        overflow-x: auto;
        scrollbar-width: none;
        /* Firefox */
    }

    .case-studies-carousel-wrapper::-webkit-scrollbar {
        display: none;
        /* Safari / Chrome */
    }

    .case-studies-nav-btn {
        display: none;
    }

    .case-study-card {
        width: 380px;
        height: 500px;
    }

    .case-study-card-num {
        top: 30px;
        left: 30px;
        font-size: 48px;
    }

    .case-study-card-arrow {
        opacity: 1;
        transform: scale(1);
        top: 30px;
        right: 30px;
        bottom: auto;
    }

    .case-study-card-details {
        opacity: 1;
        transform: translateY(0);
        bottom: 30px;
        left: 30px;
        right: 30px;
    }

    .case-studies-footer {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        width: 100%;
        display: none;
    }

    .case-studies-view-all {
        width: 100%;
        justify-content: center;
    }

    .blog-featured-section {
        padding: 80px 40px;
    }

    .blog-featured-header {
        margin-bottom: 40px;
    }

    .blog-featured-title {
        font-size: 48px !important;
        line-height: 56px !important;
    }

    .blog-featured-carousel-wrapper {
        margin: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .blog-featured-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .blog-featured-card {
        width: 376px;
        height: 550px;
        border-radius: 16px;
    }

    .blog-featured-card.active {
        width: 588px !important;
    }

    .blog-featured-card-num {
        top: 30px;
        left: 30px;
        font-size: 48px;
    }

    .blog-featured-card-btn {
        width: 100%;
    }

    .blog-featured-card-details {
        opacity: 1;
        transform: translateY(0);
        bottom: 30px;
        left: 30px;
        right: 30px;
    }

    .blog-featured-footer {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        width: 100%;
    }

    .blog-featured-view-all {
        width: 100%;
        justify-content: center;
    }

    .hero-client-badge span {
        font-size: 14px;
    }

    .case-study-related-section {
        padding: 80px 40px;
    }

    .case-study-related-title {
        font-size: 32px;
    }

    .case-study-related-nav {
        display: none;
    }

    .case-study-related-carousel-wrap {
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .case-study-related-carousel-wrap::-webkit-scrollbar {
        display: none;
    }

    .case-study-related-card {
        flex: 0 0 80% !important;
        /* Standardized card width for mobile/tablet sliding peek */
        height: 420px;
    }

    .case-study-related-progress-wrap {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 32px;
    }

    .related-progress-text {
        font-family: 'Metropolis', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: rgba(0, 26, 63, 0.4);
        min-width: 32px;
    }

    .related-progress-text .related-progress-current {
        color: #001A3F;
    }

    .case-study-related-progress-track {
        flex: 1;
        height: 2px;
        background-color: rgba(0, 26, 63, 0.1);
        position: relative;
        overflow: hidden;
        border-radius: 2px;
    }

    .case-study-related-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        background-color: #001A3F;
        transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .active-service-main-title {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .explorer-title {
        margin-bottom: 40px;
    }

    .explorer-left-col {
        margin-bottom: 8px;
        padding-left: 0;
    }

    .results-section-title {
        margin-bottom: 80px;
        text-box-edge: cap alphabetic;
        text-box-trim: trim-both;
    }

    .explorer-accordion-header {
        padding: 32px 0;
    }

    .explorer-accordion-item.active .explorer-accordion-header {
        padding-bottom: 22px;
    }

    .explorer-accordion-desc {
        padding: 0 0 28px 36px;
        font-size: 16px;
        line-height: 22px;
        font-weight: 400;
    }

    .explorer-accordion-title,
    .explorer-accordion-num {
        font-size: 24px;
        line-height: 28px;
    }

    .results-card-stat {
        font-size: 72px;
        margin-bottom: 24px;
    }

    .results-grid {
        gap: 40px;
    }

    .results-card-divider {
        margin-bottom: 16px;
    }

    .results-card-subtitle {
        margin-bottom: 4px;
        font-weight: 400;
    }

    .results-section {
        padding: 80px 40px !important;
    }

    .explorer-accordion-icon {
        width: 32px;
        height: 32px;
    }

    .explorer-accordion-icon svg {
        width: 32px;
        height: 32px;
    }

    .explorer-pill {
        padding: 11px 24px 12px;
        text-box-edge: cap alphabetic;
        text-box-trim: trim-both;
    }

    .tag-filter-btn {
        padding: 16px 25px;
    }

    .more-case-studies-header {
        gap: 40px;
    }

    .case-study-grid {
        grid-template-columns: 1fr 1fr;
    }

    .more-case-studies-title {
        font-size: 40px;
        line-height: 64px;
    }

    .case-studies-carousel-outer {
        width: calc(100% + 40px);
    }

    .case-studies-title {
        font-size: 48px;
        line-height: 64px;
    }

    .case-study-card {
        width: 63vw;
    }

    .case-study-card-contents {
        height: 100%;
        align-items: flex-end;
        padding: 40px 24px;
    }


    .case-study-card-arrow,
    .case-study-card-num {
        top: 40px;
    }

    .page-template .hero-text-wrap {
        padding: 40px;
        gap: 32px;
    }

    .mobile-svg-logo {
        display: none !important;
    }

    .desktop-logo {
        display: block !important;
    }

    .service-category-tab,
    .service-category-tab.active {
        font-size: 20px !important;
        padding: 22px 7px !important;
    }

    .desktop-tablet-services .service-mobile-tablet-nav {
        grid-template-columns: repeat(4, 310px) !important;
        overflow-x: auto !important;
        width: calc(100% + 80px);
        margin-left: -40px;
        padding-left: 40px;
        white-space: nowrap;
        padding-right: 40px;
        scroll-snap-type: none !important;
    }

    .service-carousel-container {
        width: calc(100% + 80px);
    }

    .desktop-tablet-services .service-carousel-card.card-active {
        width: 420px !important;
    }

    .desktop-tablet-services .service-carousel-card {
        width: 140px !important;
    }

    .service-carousel-card.card-active .service-card-number {
        font-size: var(--Display-D1, 56px);
    }

    .service-card-number {
        font-size: 16px;
    }

    .service-card-title {
        font-size: 16px;
        line-height: 28px;
        ;
    }

    .results-stat-col {
        gap: 24px;
        width: 45%;
    }

    .card-active .service-card-title {
        font-size: 20px;
        line-height: 36px;
    }

    .desktop-tablet-services .service-carousel-card.card-active .service-card-desc-wrapper {
        display: grid !important;
        grid-template-rows: 1fr !important;
    }

    .desktop-tablet-services .service-carousel-card.card-active .service-card-learn-more {
        display: none !important;
    }

    .desktop-tablet-services .carousel-progress-area {
        width: 70% !important;
        flex-direction: row;
        align-items: center;
    }

    .carousel-bottom-controls {
        width: calc(100% - 80px);
    }

    .carousel-progress-bar-track {
        flex: none;
        width: 100%;
        height: 8px;
    }

    .desktop-tablet-services .carousel-nav-buttons {
        display: flex !important;
    }

    .results-title {
        font-size: 40px;
    }

    .results-category-tab {
        padding: 12px 16px;
        font-size: 14px !important;
    }

    .results-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        width: 100%;
        display: flex;
    }

    .results-stat-box {
        gap: 24px;
    }

    .results-stat-number .counter {
        font-size: 72px;
        line-height: 72px;
    }

    .results-stat-desc p {
        font-size: 20px;
    }

    .results-stat-header .title {
        font-size: 16px;
    }

    .built-sectors-title {
        font-size: 48px !important;
        line-height: 56px !important;
        max-width: 50%;
    }

    .built-sector-name {
        font-size: 28px !important;
        line-height: 28px;
        font-weight: 500;
    }

    .built-sector-desc {
        font-size: 20px !important;
        line-height: 28px;
    }

    .built-sectors-mobile-progress .built-sectors-mobile-track {
        height: 6px;
    }

    .news-title {
        font-size: 40px;
        line-height: 64px;
    }

    .news-read-btn {
        justify-content: space-between;
    }

    .page-template-template-about .hero-text-wrap {
        padding: 40px;
        gap: 32px;
    }

    .hero-title {
        font-size: var(--Display-D1, 56px);
        line-height: var(--Display-Line-height, 64px);
    }

    .hero-subtitle {
        font-size: var(--Body-B2, 20px);
        line-height: var(--Body-Line-height-2, 28px);
    }

    .page-template-template-parent-service .hero-subtitle {
        width: 100%;
    }

    .accredited-section {
        height: 211px;
        padding: 40px 0;
        box-sizing: border-box;
    }

    .accredited-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 28px;
        letter-spacing: 0;
        color: var(--Text-Color-Dark-blue, #00224D);
    }

    .accredited-carousel-wrapper::before,
    .accredited-carousel-wrapper::after {
        display: block;
        width: 48px;
    }

    .accredited-carousel-wrapper {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 40px;
    }

    .accredited-carousel-group {
        gap: 106px;
        margin-right: 106px;
    }

    .accredited-logo-item {
        height: 80px;
    }

    .accredited-logo-img {
        height: 80px !important;
    }

    .about-section-title {
        font-size: 32px;
        line-height: 64px;
    }

    .about-section-subtext {
        font-size: 16px;
        line-height: 22px;
    }

    .about-header {
        gap: 22px;
        margin-bottom: 64px;
    }

    .about-stat-header-title {
        font-size: 16px;
        line-height: 28px;
    }

    .about-stat-header {
        padding-bottom: 16px;
        justify-content: flex-start;
    }

    .about-stat-col {
        gap: 16px;
    }

    .about-stat-box {
        gap: 24px;
    }

    .about-stat-number {
        font-size: 48px;
        line-height: 90px;
    }

    .about-stat-desc p,
    .about-stat-subtitle {
        font-size: 16px;
        line-height: 22px;
    }

    .about-stats-grid {
        gap: 48px;
    }

    .contractor-mobile-slider-wrapper {
        width: calc(100% + 40px);
    }

    .contractor-title {
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -2px;
        margin-bottom: 22px;
    }

    .contractor-mobile-card-text {
        min-height: 145px;
    }

    .handover-left {
        padding: 60px 40px !important;
    }

    .handover-title {
        margin-bottom: 40px !important;
    }

    .handover-tabs {
        justify-content: flex-start;
        gap: 20px !important;
        margin-bottom: 40px !important;
    }

    .handover-detail-title {
        font-size: 20px !important;
        line-height: 36px !important;
        margin-bottom: 16px;
    }

    .handover-detail-desc {
        font-size: 16px;
        line-height: 22px;
    }

    .handover-images-wrapper {
        height: 511px !important;
    }

    .people-section-title {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 24px;
    }

    .page-template-template-parent-service .people-section-title {
        font-size: 48px;
    }

    .page-template-template-parent-service .people-section-subtext {
        max-width: 58%;
    }

    .page-template-template-parent-service .people-header {
        margin-bottom: 60px;
    }

    .people-section-subtext {
        font-size: 16px;
        line-height: 22px;
        opacity: 0.5;
        max-width: 55%;
    }

    .people-filter-btn {
        font-size: 14px;
        line-height: 20px;
    }

    .page-template-template-parent-service .people-filter-btn {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        padding: 11px 16px 12px;
        text-box-edge: cap alphabetic;
        text-box-trim: trim-both;
    }

    .custom-contact-form input[type="text"]::placeholder,
    .custom-contact-form input[type="email"]::placeholder,
    .custom-contact-form input[type="tel"]::placeholder {
        color: rgba(0, 34, 77, 0.60);
        font-family: var(--Display-Family, Metropolis);
        font-size: var(--Body-B2, 14px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--Body-Line-height-2, 32px);
        letter-spacing: var(--Body-Letter-spacing, 0);
        text-box: trim-both cap alphabetic;
    }

    .page-template-template-parent-service .people-slider-wrapper {
        width: 100%;
    }

    .page-template-template-parent-service .people-slider-outer {
        width: calc(100% + 40px);
    }

    .people-card-name {
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0px;
    }

    .people-card-role {
        font-size: 16px;
        line-height: 22px;
    }

    .footer-watermark {
        height: 55px !important;
        bottom: 0vw !important;
    }

    .case-studies-header .case-studies-view-all {
        display: none;
    }

    .case-studies-footer {
        display: flex;
        width: max-content;
    }

    .page-template-template-case-study-listing .case-studies-footer {
        display: none;
    }

    .case-studies-footer .case-studies-view-all {
        font-size: 20px;
        border-radius: 8px;
        padding: 21px 24px;
    }

    .page-template-template-parent-service .case-study-card-details {
        bottom: 40px;
        gap: 24px;
    }

    .client-info h3 {
        font-size: var(--Heading-H3, 16px);
    }

    .client-info p {
        font-size: var(--Body-B4, 16px);
    }
}

@media (max-width: 991px) {
    .contact-tabs-wrapper {
        margin-bottom: 36px;
    }

    .contact-category-tab {
        font-size: 16px;
        padding: 12px 18px;
    }

    .custom-apply-form input[type="text"],
    .custom-apply-form input[type="email"],
    .custom-apply-form input[type="tel"],
    .custom-apply-form select,
    .custom-apply-form input[type="text"]::placeholder,
    .custom-apply-form input[type="email"]::placeholder,
    .custom-apply-form input[type="tel"]::placeholder {
        font-size: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .news-mobile-progress {
        display: flex !important;
    }

    .handover-tab {
        position: relative !important;
    }

    .handover-tab.active {
        border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    }

    .handover-tab-fill {
        display: block;
        position: absolute;
        bottom: -2px;
        /* Placed exactly over the border-bottom */
        left: 0;
        height: 2px;
        background-color: #ffffff;
        width: 0%;
        transition: none !important;
    }

    .people-filter-btn {
        padding: 12px 16px;
        font-size: 14px;
        text-box: trim-both cap alphabetic;
    }
}

@media (max-width: 1024px) {
    .explorer-pill {
        flex: 0 0 calc((100% - 36px) / 3.5) !important;
        text-align: center;
        text-overflow: ellipsis;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* --- Featured Case Study Tablet Adjustments --- */
    .featured-case-study-card {
        margin: 0 40px;
        width: calc(100% - 80px);
        height: 480px;
    }

    .featured-case-study-card-arrow {
        top: 24px;
        bottom: auto;
        right: 24px;
    }

    .featured-case-study-card-contents {
        bottom: 32px;
        left: 32px;
        right: 32px;
    }

    .featured-case-study-card-title {
        font-size: 28px;
        line-height: 36px;
    }

    .featured-case-study-card-desc {
        font-size: 16px;
        line-height: 22px;
    }

    .case-studies-header {
        justify-content: center !important;
        text-align: center;
        margin-bottom: 40px !important;
    }

    .case-studies-title {
        font-size: 48px !important;
        line-height: 56px !important;
    }

    /* --- Health & Safety Tablet Styles --- */
    .health-safety-section {
        padding: 80px 0;
    }

    .health-safety-title {
        font-size: 56px;
        line-height: 64px;
        margin-bottom: 40px;
    }

    .health-safety-content {
        gap: 24px;
    }

    .health-safety-content p {
        font-size: 20px;
        line-height: 30px;
    }
}