:root {
    --site-max-width: 1700px;
    --site-gutter: clamp(20px, 3.5vw, 40px);
    --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --brand-teal-dark: #08394a;
    --brand-teal-deep: #05242f;
    --brand-teal-mid: #0d5568;
    --brand-copper: #b5562b;
    --brand-copper-hover: #cf6735;
    --brand-dark-text: #1e293b;
    --brand-white: #ffffff;
}

.custom-home-wrapper {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    font-family: var(--font-body);
    color: var(--brand-dark-text);
}

.custom-home-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    width: 100%;
    box-sizing: border-box;
}

.home-section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}
/* ============================================================
   ATOM TECH SERVICES: CUSTOM HOME STYLES
   Used by Home/custom-home.php and its section templates
   ============================================================ */

/* ============================================================
   TRANSPARENT OVERLAY HEADER OVER SECTION 1
   ============================================================ */
body.custom-home-page .header-custom {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 9999 !important;
}

/* Hide header's own background panels so the split backgrounds shine through */
body.custom-home-page .header-custom::before,
body.custom-home-page .header-custom::after {
    display: none !important;
}

/* Keep transparent header below WordPress admin bar when logged in */
body.custom-home-page.admin-bar .header-custom {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.custom-home-page.admin-bar .header-custom {
        top: 46px !important;
    }
}

/* ============================================================
   SECTION 1: 50/50 SPLIT-SCREEN INDEPENDENT CONTAINERS
   ============================================================ */
.home-hero-split {
    position: relative;
    width: 100%;
    min-height: 904px;
    display: flex;
    overflow: hidden;
}

/* --- Left Independent Container (50% Width) --- */
.hero-side-left {
    flex: 1 1 50%;
    width: 50%;
    position: relative;
    background-color: var(--brand-teal-dark);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='200' viewBox='0 0 280 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M0 40h70l20 20h80'/%3E%3Cpath d='M0 140h100l25-25h90l15 15h50'/%3E%3Cpath d='M170 0v50l30 30v120'/%3E%3Cpath d='M230 0v70h50'/%3E%3Cpath d='M110 200V150'/%3E%3Ccircle cx='170' cy='60' r='4' fill='%23ffffff' fill-opacity='0.12'/%3E%3Ccircle cx='215' cy='115' r='4' fill='%23ffffff' fill-opacity='0.12'/%3E%3Ccircle cx='110' cy='140' r='3' fill='%23ffffff' fill-opacity='0.12'/%3E%3Crect x='30' y='70' width='16' height='16' rx='2' stroke='%23ffffff' stroke-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal-dark) 45%, var(--brand-teal-mid) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 280px 200px, cover;
    background-position: center center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: calc(var(--hc-height, 90px) + 20px);
    padding-bottom: 50px;
    box-sizing: border-box;
    z-index: 1;
}

.hero-side-left .hero-side-inner {
    width: 100%;
    max-width: calc(var(--site-max-width) / 2);
    padding-left: var(--site-gutter);
    padding-right: 70px;
    box-sizing: border-box;
}

.hero-col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title-left {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 70px;
    font-weight: 500;
    line-height: 74px;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
}

.hero-line-white {
    display: block;
    font-family: var(--font-heading);
    color: #ffffff;
}

.hero-line-copper {
    font-style: italic;
    display: block;
    font-family: 'Lora', Georgia, serif !important;
    color: var(--brand-copper);
    font-weight: 500;
}

.hero-line-practical .hero-line-copper {
    display: inline;
}

.hero-line-training {
    display: inline;
    font-family: var(--font-heading);
    color: #ffffff;
    font-style: normal;
}

.hero-desc-left {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 490px;
    margin: 0 0 32px 0;
}

.hero-btn-copper {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brand-copper);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 30px;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(181, 86, 43, 0.28);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hero-btn-copper:hover {
    background-color: var(--brand-copper-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 86, 43, 0.38);
    color: #ffffff;
}

.hero-btn-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.hero-btn-copper:hover .hero-btn-arrow {
    transform: translate(2px, -2px);
}

/* --- Right Independent Container (50% Width) --- */
.hero-side-right {
    flex: 1 1 50%;
    width: 50%;
    position: relative;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='0.025' stroke-width='5'%3E%3Cpath d='M30 -20c60 50 30 110 90 180'/%3E%3Cpath d='M90 -20c75 60 15 110 105 180'/%3E%3Cpath d='M220 -20c-40 65 60 100 15 180'/%3E%3Cpath d='M310 -20c60 40-15 120 60 180'/%3E%3Cpath d='M390 -20c-35 55 65 90 30 180'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 200px;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    z-index: 1;
}

.hero-side-right .hero-side-inner {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 0 var(--site-gutter);
    box-sizing: border-box;
}

.hero-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brand-copper);
    margin-bottom: 0;
}

.hero-title-right {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    margin: 0;
    text-align: center;
}

.hero-title-right,
.hero-title-right span {
    font-family: 'Archivo', var(--font-heading), sans-serif !important;
}

.hero-title-dark {
    font-size: 36px;
    display: block;
    color: var(--brand-dark-text);
}

.hero-title-copper {
    display: block;
    color: var(--brand-copper);
    font-size: 108px;
    font-weight: 800;
    /*     line-height: 0.9; */
}

.hero-title-right .hero-title-dark:last-child {
    font-size: 62px;
    line-height: 1;
}

.hero-link-arrow {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-link-arrow:hover {
    color: var(--brand-copper);
    transform: translateX(2px);
}

.hero-col-right .hero-link-wrap {
    display: flex;
    justify-content: flex-end;
    width: 60%;
    margin-top: 80px;
    margin-left: auto;
}

.hero-link-icon {
    width: 14px;
    height: 14px;
    color: var(--brand-copper);
    transition: transform 0.2s ease;
}

.hero-link-arrow:hover .hero-link-icon {
    transform: translate(2px, -2px);
}

/* --- Center Person Anchor (Overlapping 50/50 Split Seam) --- */
.hero-person-anchor {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-person-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 746px;
}

.hero-person-img {
    display: block;
    width: auto;
    max-width: 746px;
    max-height: 756px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.22));
}

/* Responsive (Tablet & Mobile Hero) */
@media (max-width: 991px) {
    .home-hero-split {
        flex-direction: column;
        min-height: auto;
    }

    .hero-side-left {
        width: 100%;
        flex: auto;
        justify-content: center;
        padding-top: calc(var(--hc-height, 80px) + 30px);
        padding-bottom: 40px;
    }

    .hero-side-left .hero-side-inner {
        max-width: 100%;
        padding-left: var(--site-gutter);
        padding-right: var(--site-gutter);
        text-align: center;
    }

    .hero-col-left {
        align-items: center;
        text-align: center;
    }

    .hero-desc-left {
        text-align: center;
    }

    .hero-person-anchor {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 20px 0;
        z-index: 2;
    }

    .hero-person-img {
        max-height: 400px;
    }

    .hero-side-right {
        width: 100%;
        flex: auto;
        justify-content: center;
        padding: 40px 0 60px;
    }

    .hero-side-right .hero-side-inner {
        max-width: 100%;
        padding-left: var(--site-gutter);
        padding-right: var(--site-gutter);
        text-align: center;
    }

    .hero-col-right {
        align-items: center;
        text-align: center;
    }

    .hero-link-wrap {
        justify-content: center;
    }
}

.hero-side-left {
    background-image: url('https://atomtechservices.com.au/wp/wp-content/uploads/2026/11/Hero-frame-1-scaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-side-right {
    background-image: url('https://atomtechservices.com.au/wp/wp-content/uploads/2026/11/Hero-frame-2-scaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   SECTION 2: SERVICES / CONSULTING
   ============================================================ */
.home-services-section {
    position: relative;
    width: 100%;
    max-height: 644px;
    background-color: #F9F6F2;
    background-image:
        radial-gradient(ellipse at center, #ffffff 0%, #F9F6F2 80%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='0.02' stroke-width='5'%3E%3Cpath d='M30 -20c60 50 30 110 90 180'/%3E%3Cpath d='M90 -20c75 60 15 110 105 180'/%3E%3Cpath d='M220 -20c-40 65 60 100 15 180'/%3E%3Cpath d='M310 -20c60 40-15 120 60 180'/%3E%3Cpath d='M390 -20c-35 55 65 90 30 180'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 400px 200px;
    background-position: center center, center center;
    padding-top: clamp(80px, 8vw, 90px);
    padding-bottom: clamp(90px, 9vw, 130px);
    box-sizing: border-box;
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Pill Badge: MY SERVICES */
.services-badge-wrap {
    margin-bottom: 22px;
}

.services-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    border-radius: 9999px;
    background-color: #FDF2EE;
    color: #FF7E4C;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(181, 86, 43, 0.08);
}

/* Section Title */
.services-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-dark-text);
    margin: 0 auto clamp(50px, 5.5vw, 80px) auto;
    max-width: 720px;
    text-align: center;
}

/* 3-Column Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4.5vw, 64px);
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Individual Card */
.services-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Icon Container */
.services-card-icon-wrap {
    /*     width: 100%;
    height: 72px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.services-card-icon,
.services-card-icon-img {
    width: auto;
    height: auto;
    max-width: 130px;
    max-height: 107px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.services-card:hover .services-card-icon,
.services-card:hover .services-card-icon-img {
    transform: translateY(-4px);
}

/* Card Heading (One Line Only) */
.services-card-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    color: var(--brand-dark-text);
    margin: 0 0 5px 0;
    white-space: nowrap;
}

/* Card Description (Two Lines Only) */
.services-card-desc {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 24px;
    color: #585858;
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS FOR SECTION 2 (ALL SCREEN SIZES)
   ============================================================ */

/* Laptops & Small Desktops (992px to 1200px) */
@media (max-width: 1200px) {
    .home-services-section {
        max-height: none;
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .services-grid {
        gap: 24px;
        max-width: 1100px;
    }

    .services-title {
        font-size: 38px;
    }

    .services-card-icon-img {
        max-width: 110px;
        max-height: 90px;
    }

    .services-card-title {
        font-size: clamp(17px, 1.7vw, 22px);
        white-space: nowrap;
    }

    .services-card-desc {
        font-size: 15px;
        line-height: 22px;
        max-width: 290px;
        -webkit-line-clamp: 2;
    }
}

/* Tablets Landscape & Portrait (768px to 991px) */
@media (max-width: 991px) {
    .home-services-section {
        max-height: none !important;
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .services-title {
        font-size: 34px;
        margin-bottom: 40px;
    }

    .services-title br {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        max-width: 480px;
    }

    .services-card-icon-wrap {
        margin-bottom: 18px;
    }

    .services-card-icon-img {
        max-width: 105px;
        max-height: 85px;
    }

    .services-card-title {
        font-size: 24px;
        line-height: 30px;
        white-space: nowrap;
    }

    .services-card-desc {
        font-size: 16px;
        line-height: 24px;
        max-width: 330px;
        -webkit-line-clamp: 2;
    }
}

/* Mobile Devices (481px to 767px) */
@media (max-width: 767px) {
    .home-services-section {
        max-height: none !important;
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .services-badge {
        font-size: 14px;
        padding: 5px 16px;
    }

    .services-title {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 36px;
        padding: 0 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        max-width: 100%;
    }

    .services-card {
        padding: 0 15px;
    }

    .services-card-icon-wrap {
        margin-bottom: 16px;
    }

    .services-card-icon-img {
        max-width: 95px;
        max-height: 80px;
    }

    .services-card-title {
        font-size: clamp(18px, 4.8vw, 22px);
        line-height: 28px;
        white-space: nowrap;
    }

    .services-card-desc {
        font-size: 16px;
        line-height: 24px;
        max-width: 320px;
        -webkit-line-clamp: 2;
    }
}

/* Final mobile override after the existing Section 3 breakpoint rules. */
@media (max-width: 767px) {

    .sec3-block-bottom,
    .sec3-block-2 {
        padding-bottom: 36px;
    }

    .sec3-cards-row {
        width: 100%;
        gap: 24px;
        margin-top: clamp(-90px, -12vw, -48px);
    }

    .sec3-card {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 20px;
    }

    .sec3-card-inner {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: clamp(22px, 5vw, 32px);
        overflow: visible;
    }

    .sec3-card-content {
        max-width: none;
    }

    .sec3-card-title {
        font-size: clamp(25px, 6vw, 32px);
    }

    .sec3-card-desc {
        max-width: none;
        font-size: clamp(15px, 3.7vw, 18px);
        line-height: 1.45;
    }

    .sec3-card-link {
        font-size: 16px;
    }

    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media,
    .sec3-media-right,
    .sec3-media-left {
        width: 100%;
        justify-content: center;
        margin: clamp(22px, 5vw, 30px) 0 0;
    }

    .sec3-img-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sec3-card-img {
        order: 0;
        width: 100%;
        max-width: min(100%, 480px);
        max-height: none;
        height: auto;
        border-radius: 14px;
        object-fit: cover;
    }

    .sec3-floating-pill,
    .sec3-pill-left,
    .sec3-pill-right,
    .sec3-pill-extra-1,
    .sec3-pill-extra-2,
    .sec3-card-2 .sec3-pill-extra-1,
    .sec3-card-2 .sec3-pill-extra-2 {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 1;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        padding: 10px 14px;
        gap: 8px;
        transform: none;
        white-space: normal;
    }

    .sec3-pill-icon {
        width: 17px;
        height: 17px;
    }

    .sec3-pill-text {
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.25;
    }

    .sec3-card-1:hover .sec3-pill-left,
    .sec3-card-2:hover .sec3-pill-right {
        transform: none;
    }
}

@media (max-width: 420px) {
    .sec3-card-inner {
        padding: 22px 18px;
    }

    .sec3-card-title {
        font-size: 25px;
    }

    .sec3-floating-pill {
        padding: 9px 12px;
    }
}

/* Small Mobile Screens (320px to 480px) */
@media (max-width: 480px) {
    .home-services-section {
        max-height: none !important;
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .services-badge-wrap {
        margin-bottom: 16px;
    }

    .services-badge {
        font-size: 13px;
        letter-spacing: 1.2px;
        padding: 4px 14px;
    }

    .services-title {
        font-size: 25px;
        line-height: 1.25;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .services-grid {
        gap: 32px;
    }

    .services-card-icon-wrap {
        margin-bottom: 14px;
    }

    .services-card-icon-img {
        max-width: 85px;
        max-height: 70px;
    }

    .services-card-title {
        font-size: clamp(16px, 4.5vw, 19px);
        line-height: 24px;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .services-card-desc {
        font-size: 15px;
        line-height: 22px;
        max-width: 290px;
        -webkit-line-clamp: 2;
    }
}

/* ============================================================
   SECTION 3: TWO VERTICALLY STACKED FULL-WIDTH CONTAINERS
   ============================================================ */
.home-section-3 {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Full-bleed outer wrapper ensuring edge-to-edge background across full screen */
.sec3-block {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Container 1: White Background (min-height: 594px) */
.sec3-block-top,
.sec3-block-1 {
    background: #ffffff;
    min-height: 594px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(60px, 6.5vw, 65px) 0 40px 0;
    box-sizing: border-box;
}

.sec3-container-top,
.sec3-container-1,
.sec3-container-support {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* Container 1 Pill Badge: WHO I SUPPORT */
.sec3-badge-wrap {
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
}

.sec3-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 9999px;
    background-color: #FFF4EF;
    box-shadow: 0 1px 3px rgba(181, 86, 43, 0.06);
}

.sec3-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FF6D39;
    display: inline-block;
    flex-shrink: 0;
}

.sec3-badge-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #161A1D;
    line-height: 1;
}

/* Container 1 Section Title */
.sec3-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.2px;
    color: #161A1D;
    margin: 0;
    text-align: center;
    /*     max-width: 800px; */
}

/* Container 2: #E4E4E4 Background (min-height: 943px) */
.sec3-block-bottom,
.sec3-block-2 {
    background-color: #e4e4e463;
    min-height: 943px;
    width: 100%;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 0 clamp(60px, 6vw, 100px) 0;
    box-sizing: border-box;
}

.sec3-container-bottom,
.sec3-container-2,
.sec3-cards-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.sec3-cards-container {
    flex-direction: column;
}

/* 2 Cards in a Row Layout (Overlapping both containers) */
.sec3-cards-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: -370px;
    /* Overlaps both top and bottom sections for layered layout */
    box-sizing: border-box;
}

/* Section 3 Individual Card (Width: 650px, Height: 750px) */
.sec3-card {
    width: 650px;
    height: 750px;
    flex: 0 0 650px;
    max-width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sec3-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.sec3-card-1 {
    background-color: #EAF0F6;
    background-image: linear-gradient(180deg, #F0F4F8 0%, #E2E8F0 100%);
}

.sec3-card-2 {
    background-color: #F7EFE9;
    background-image: linear-gradient(180deg, #FBF6F2 0%, #EFE5DC 100%);
}

/* Card Inner: Content aligned to top-left end side */
.sec3-card-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 56px;
    border-radius: 30px;
    overflow: visible;
}

/* Card Header Content (Top-Left Block) */
.sec3-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 440px;
    width: 100%;
}

.sec3-card-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #161A1D;
    margin: 0 0 5px 0;
    text-align: left;
}

.sec3-card-desc {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    color: #4B5563;
    margin: 0 0 15px 0;
    text-align: left;
    max-width: 410px;
}

.sec3-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #AA5735;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.sec3-card-link:hover {
    color: #FF5A1F;
}

.sec3-card-link-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    /*     transition: transform 0.25s ease; */
}

/* .sec3-card-link:hover .sec3-card-link-icon,
.sec3-card:hover .sec3-card-link-icon {
    transform: translate(3px, -3px);
} */

/* Card Feature Image Container Below Content */
.sec3-card-media {
    width: 100%;
    display: flex;
    align-items: flex-end;
    margin-top: auto;
    box-sizing: border-box;
}

/* Card Feature Image Wrapper (anchor for floating pill badge) */
.sec3-img-wrap {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    box-sizing: border-box;
}

/* Card 1: Image on Right End Side */
.sec3-card-1 .sec3-card-media,
.sec3-media-right {
    justify-content: flex-end;
    text-align: right;
    margin-right: -56px;
    margin-bottom: -15px;
}

/* Card 2: Image on Left End Side */
.sec3-card-2 .sec3-card-media,
.sec3-media-left {
    justify-content: flex-start;
    text-align: left;
    margin-left: 0px;
    margin-bottom: -15px;
}

/* Card Feature Image */
.sec3-card-img {
    max-width: 420px;
    width: auto;
    max-height: 457px;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Floating Pill Badge Chip */
.sec3-floating-pill {
    position: absolute;
    top: 50%;
    z-index: 50;
    display: inline-flex;
    max-width: 431px;
    width: max-content;
    max-width: min(431px, calc(100vw - 32px));
    box-sizing: border-box;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 20px 26px;
    border-radius: 9999px;
    box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.24), 0 4px 8px -5px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    white-space: normal;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .sec3-floating-pill:hover {
    box-shadow: 0 16px 26px -7px rgba(0, 0, 0, 0.28), 0 5px 10px -4px rgba(0, 0, 0, 0.14);
} */

.sec3-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sec3-pill-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sec3-pill-right .sec3-pill-icon svg path {
    stroke: #0B5558;
}

.sec3-pill-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: #161A1D;
    line-height: 1;
}

/* 1st Image: Positioned at Left End of Image (half overlapping the left edge) */
.sec3-pill-left {
    left: 0;
    transform: translate(-50%, -50%);
}

.sec3-pill-extra-1 {
    top: 50%;
    transform: translate(-60%, calc(-150% - 15px));
}

.sec3-pill-extra-2 {
    top: 50%;
    transform: translate(-60%, calc(50% + 15px));
}


/* 2nd Image: Positioned at Right End of Image (half overlapping the right edge) */
.sec3-pill-right {
    right: 0;
    transform: translate(50%, -50%);
}

.sec3-card-2 .sec3-pill-extra-1 {
    transform: translate(60%, calc(-150% - 15px));
}

.sec3-card-2 .sec3-pill-extra-2 {
    transform: translate(60%, calc(50% + 15px));
}

/* Laptops & Desktops below 1400px: Keep 2 cards in a row, fluidly scaling down */
@media (max-width: 1400px) and (min-width: 992px) {
    .sec3-cards-row {
        margin-top: clamp(-370px, -24vw, -240px);
    }

    .sec3-card {
        width: calc((100% - clamp(24px, 3vw, 40px)) / 2);
        height: clamp(560px, 40vw, 750px);
        flex: 1 1 0;
        min-width: 0;
        max-width: 438px;
    }

    .sec3-card-inner {
        padding: 38px 32px;
    }

    .sec3-card-title {
        font-size: 32px;
    }

    .sec3-card-desc {
        font-size: 15px;
        max-width: 360px;
    }

    .sec3-card-1 .sec3-card-media {
        margin-right: 0;
        margin-bottom: 0;
    }

    .sec3-card-2 .sec3-card-media {
        margin-left: 0;
        margin-bottom: 0;
    }

    .sec3-card-img {
        max-width: 290px;
        width: auto;
        max-height: 457px;
        height: auto;
        object-fit: contain;
        display: block;
        pointer-events: none;
    }

    .sec3-floating-pill {
        position: absolute;
        top: 50%;
        z-index: 50;
        display: inline-flex;
        max-width: min(280px, calc(95vw - 32px));
        width: max-content;
        box-sizing: border-box;
        align-items: center;
        gap: 12px;
        background-color: rgba(255, 255, 255, 0.2);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        padding: 15px 16px;
        border-radius: 9999px;
        box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.24), 0 4px 8px -5px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.55);
        white-space: normal;
        pointer-events: auto;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sec3-pill-text {
        font-family: var(--font-heading);
        font-size: 15px;
        font-weight: 500;
        color: #161A1D;
        line-height: 1;
    }
}

/* Responsive adjustments for Section 3 (Tablets & Mobile) */
@media (max-width: 991px) {

    .sec3-block-top,
    .sec3-block-1,
    .sec3-block-bottom,
    .sec3-block-2 {
        min-height: auto;
        max-height: none;
    }

    .sec3-block-top,
    .sec3-block-1 {
        padding: clamp(48px, 6vw, 68px) 0 30px 0;
    }

    .sec3-title {
        font-size: clamp(26px, 4.2vw, 34px);
    }

    .sec3-block-bottom,
    .sec3-block-2 {
        min-height: auto;
        padding: 0 0 clamp(50px, 7vw, 70px) 0;
    }

    .sec3-cards-row {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        margin-top: -140px;
    }

    .sec3-card {
        width: 100%;
        max-width: 650px;
        height: clamp(550px, 80vw, 750px);
        flex: 0 0 auto;
    }

    .sec3-card-inner {
        padding: 40px 32px;
    }

    .sec3-card-title {
        font-size: 30px;
    }

    .sec3-card-desc {
        font-size: 15px;
        max-width: 440px;
    }

    .sec3-card-1 .sec3-card-media {
        margin-right: -32px;
        margin-bottom: -40px;
    }

    .sec3-card-2 .sec3-card-media {
        margin-left: -32px;
        margin-bottom: -40px;
    }

    .sec3-card-img {
        max-width: 290px;
        max-height: 270px;
    }

    .sec3-floating-pill {
        padding: 10px 20px;
        gap: 10px;
    }

    .sec3-pill-icon {
        width: 18px;
        height: 18px;
    }

    .sec3-pill-text {
        font-size: 13.5px;
    }

    .sec3-pill-left {
        left: 0;
        transform: translate(-50%, -50%);
    }

    .sec3-pill-right {
        right: 0;
        transform: translate(50%, -50%);
    }

    .sec3-card-2:hover .sec3-pill-right:not(.sec3-pill-extra-1):not(.sec3-pill-extra-2) {
        transform: translate(50%, calc(-50% - 2px));
    }
}

@media (max-width: 600px) {

    .sec3-block-top,
    .sec3-block-1 {
        padding: 40px 0 20px 0;
    }

    .sec3-badge-wrap {
        margin-bottom: 16px;
    }

    .sec3-badge {
        padding: 10px 18px;
        gap: 6px;
    }

    .sec3-badge-dot {
        width: 5px;
        height: 5px;
    }

    .sec3-badge-text {
        font-size: 12px;
        letter-spacing: 1.3px;
    }

    .sec3-title {
        font-size: clamp(22px, 5.5vw, 28px);
    }

    .sec3-block-bottom,
    .sec3-block-2 {
        padding: 0 0 40px 0;
    }

    .sec3-cards-row {
        gap: 24px;
        margin-top: -70px;
    }

    .sec3-card {
        border-radius: 16px;
        height: clamp(420px, 115vw, 550px);
    }

    .sec3-card-inner {
        padding: 28px 22px;
    }

    .sec3-card-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .sec3-card-desc {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 18px;
    }

    .sec3-card-link {
        font-size: 15px;
    }

    .sec3-card-1 .sec3-card-media {
        margin-right: -22px;
        margin-bottom: -28px;
    }

    .sec3-card-2 .sec3-card-media {
        margin-left: -22px;
        margin-bottom: -28px;
    }

    .sec3-card-img {
        max-width: 220px;
        max-height: 210px;
    }

    /* Mobile: scale badge slightly and maintain left/right anchor on image */
    .sec3-floating-pill {
        padding: 7px 14px;
        gap: 8px;
    }

    .sec3-pill-icon {
        width: 15px;
        height: 15px;
    }

    .sec3-pill-text {
        font-size: 11.5px;
    }

    .sec3-pill-left {
        left: 0;
        transform: translate(-40%, -50%);
    }

    .sec3-pill-right {
        right: 0;
        transform: translate(40%, -50%);
    }

    .sec3-card-2:hover .sec3-pill-right:not(.sec3-pill-extra-1):not(.sec3-pill-extra-2) {
        transform: translate(40%, calc(-50% - 2px));
    }
}

/* Final small-screen Section 3 layout overrides */
@media (max-width: 767px) {

    .sec3-block-bottom,
    .sec3-block-2 {
        padding-bottom: 36px;
    }

    .sec3-cards-row {
        width: 100%;
        gap: 24px;
        margin-top: clamp(-90px, -12vw, -48px);
    }

    .sec3-card {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 20px;
    }

    .sec3-card-inner {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: clamp(22px, 5vw, 32px);
        overflow: visible;
    }

    .sec3-card-content {
        max-width: none;
    }

    .sec3-card-title {
        font-size: clamp(25px, 6vw, 32px);
    }

    .sec3-card-desc {
        max-width: none;
        font-size: clamp(15px, 3.7vw, 18px);
        line-height: 1.45;
    }

    .sec3-card-link {
        font-size: 16px;
    }

    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media,
    .sec3-media-right,
    .sec3-media-left {
        width: 100%;
        justify-content: center;
        margin: clamp(22px, 5vw, 30px) 0 0;
    }

    .sec3-img-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sec3-card-img {
        order: 0;
        width: 100%;
        max-width: min(100%, 480px);
        max-height: none;
        height: auto;
        border-radius: 14px;
        object-fit: cover;
    }

    .sec3-floating-pill,
    .sec3-pill-left,
    .sec3-pill-right,
    .sec3-pill-extra-1,
    .sec3-pill-extra-2,
    .sec3-card-2 .sec3-pill-extra-1,
    .sec3-card-2 .sec3-pill-extra-2 {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 1;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        padding: 10px 14px;
        gap: 8px;
        transform: none;
        white-space: normal;
    }

    .sec3-pill-icon {
        width: 17px;
        height: 17px;
    }

    .sec3-pill-text {
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.25;
    }

    .sec3-card-1:hover .sec3-pill-left,
    .sec3-card-2:hover .sec3-pill-right {
        transform: none;
    }
}

@media (max-width: 420px) {
    .sec3-card-inner {
        padding: 22px 18px;
    }

    .sec3-card-title {
        font-size: 25px;
    }

    .sec3-floating-pill {
        padding: 9px 12px;
    }
}

/* Small-screen card layout: keep photos inside the cards and place pills below. */
@media (max-width: 767px) {

    .sec3-block-bottom,
    .sec3-block-2 {
        padding-bottom: 36px;
    }

    .sec3-cards-row {
        width: 100%;
        gap: 24px;
        margin-top: clamp(-90px, -12vw, -48px);
    }

    .sec3-card {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 20px;
    }

    .sec3-card-inner {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: clamp(22px, 5vw, 32px);
        overflow: visible;
    }

    .sec3-card-content {
        max-width: none;
    }

    .sec3-card-title {
        font-size: clamp(25px, 6vw, 32px);
    }

    .sec3-card-desc {
        max-width: none;
        font-size: clamp(15px, 3.7vw, 18px);
        line-height: 1.45;
    }

    .sec3-card-link {
        font-size: 16px;
    }

    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media,
    .sec3-media-right,
    .sec3-media-left {
        width: 100%;
        justify-content: center;
        margin: clamp(22px, 5vw, 30px) 0 0;
    }

    .sec3-img-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sec3-card-img {
        order: 0;
        width: 100%;
        max-width: min(100%, 480px);
        max-height: none;
        height: auto;
        border-radius: 14px;
        object-fit: cover;
    }

    .sec3-floating-pill,
    .sec3-pill-left,
    .sec3-pill-right,
    .sec3-pill-extra-1,
    .sec3-pill-extra-2,
    .sec3-card-2 .sec3-pill-extra-1,
    .sec3-card-2 .sec3-pill-extra-2 {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 1;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        padding: 10px 14px;
        gap: 8px;
        transform: none;
        white-space: normal;
    }

    .sec3-pill-icon {
        width: 17px;
        height: 17px;
    }

    .sec3-pill-text {
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.25;
    }

    .sec3-card-1:hover .sec3-pill-left,
    .sec3-card-2:hover .sec3-pill-right {
        transform: none;
    }
}

@media (max-width: 420px) {
    .sec3-card-inner {
        padding: 22px 18px;
    }

    .sec3-card-title {
        font-size: 25px;
    }

    .sec3-floating-pill {
        padding: 9px 12px;
    }
}

/* Feature strip below the two cards */
.sec3-features {
    width: 100vw;
    box-sizing: border-box;
    align-self: center;
    padding: 68px var(--site-gutter) 72px;
}

.sec3-features-title {
    margin: 0 0 60px;
    color: #191d20;
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.45;
}

.sec3-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    width: min(1550px, 100%);
    margin: 0 auto;
}

.sec3-feature {
    min-width: 0;
    border-top: 1px solid #d5d9da;
    padding-top: 23px;
}

.sec3-feature-icon {
    display: flex;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b5562b;
}

.sec3-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sec3-feature h3 {
    margin: 0 0 20px;
    color: #191d20;
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.35vw, 25px);
    font-weight: 600;
    line-height: 1.25;
}

.sec3-feature p {
    margin: 0;
    color: #465451;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 29px;
}

@media (max-width: 900px) {
    .sec3-features {
        padding-block: 56px 60px;
    }

    .sec3-features-title {
        margin-bottom: 42px;
    }

    .sec3-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }
}

@media (max-width: 560px) {
    .sec3-features {
        margin-top: 40px;
        padding: 44px 22px 48px;
    }

    .sec3-features-title {
        margin-bottom: 32px;
        font-size: 28px;
        line-height: 1.3;
    }

    .sec3-features-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .sec3-feature {
        padding-top: 17px;
    }

    .sec3-feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 13px;
    }

    .sec3-feature h3 {
        margin-bottom: 9px;
        font-size: 19px;
    }

    .sec3-feature p {
        font-size: 15px;
        line-height: 1.55;
    }
}

/* Section 4: Trainer introduction banner */
.home-section-4 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
    box-sizing: border-box;
    color: #fff;
    background-color: #003c43;
    background-image: url('https://atomtechservices.com.au/wp/wp-content/uploads/2026/11/Group-35-scaled.webp');
    background-position: center, center;
    background-size: 100% 100%, contain;
    background-repeat: no-repeat;
}

.section4-inner {
    width: min(1370px, 100%);
    margin-inline: auto;
    padding: 72px 32px;
    box-sizing: border-box;
}

.section4-copy {
    width: min(800px, 100%);
}

.section4-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.section4-eyebrow span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff5a1f;
}

.section4-title {
    margin: 0 0 26px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(36px, 3.2vw, 52px);
    font-weight: 700;
    line-height: 1.15;
}

.section4-description {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.7;
}

.section4-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-top: 24px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section4-person h3 {
    margin: 0 0 5px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
}

.section4-person p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    font-size: 18px;
}

.section4-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.section4-link svg {
    width: 16px;
    height: 16px;
    stroke: #ff5a1f;
    stroke-width: 1.8;
}

.section4-link:hover {
    color: #ffb08f;
}

@media (max-width: 700px) {
    .home-section-4 {
        min-height: 500px;
        background-position: center, 62% center;
    }

    .section4-inner {
        padding: 60px 24px;
    }

    .section4-copy {
        max-width: 600px;
    }

    .section4-title {
        font-size: clamp(34px, 8vw, 44px);
    }

    .section4-description {
        font-size: 17px;
    }

    .section4-meta {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .home-section-4 {
        min-height: 540px;
    }

    .section4-inner {
        padding: 48px 20px;
    }

    .section4-title {
        font-size: 34px;
    }

    .section4-meta {
        flex-direction: column;
        gap: 20px;
    }
}

/* Section 5: Three-step working-together process */
.home-section-5 {
    background: #fcf9f7;
}

.section5-inner {
    max-width: 1700px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 60px 32px 90px;
    box-sizing: border-box;
}

.section5-heading {
    margin: 0 auto;
    padding: 0 0 75px;
    text-align: center;
}

.section5-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 1px solid rgba(11, 85, 88, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #222629;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
}

.section5-eyebrow span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff5a1f;
}

.section5-heading h2 {
    margin: 0;
    color: #202326;
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
}

.section5-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 34px);
    width: min(1520px, 100%);
    margin: 0 auto;
}

.section5-step {
    min-width: 0;
    text-align: center;
}

.section5-image-wrap {
    position: relative;
    width: 485px;
    max-width: 100%;
    aspect-ratio: 485 / 352;
    margin-bottom: 40px;
}

.section5-image-wrap>img:not(.section5-step-marker) {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section5-image-wrap .section5-step-marker {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.section5-step-arch img:not(.section5-step-marker) {
    border-radius: 50% 50% 7px 7px / 78% 78% 7px 7px;
}

.section5-step-round-bottom img:not(.section5-step-marker) {
    border-radius: 8px 8px 50% 50% / 8px 8px 72% 72%;
}

.section5-step-marker {
    position: absolute;
    left: 50%;
    bottom: -30px;
    display: block;
    width: 64px;
    height: 64px;
    transform: translateX(-50%);
    object-fit: contain;
}

.section5-step h3 {
    margin: 0 0 8px;
    color: #202326;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.section5-step p {
    margin: 0 auto;
    color: #59615f;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .section5-inner {
        height: auto;
        padding: 42px 24px 56px;
    }

    .section5-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .section5-image-wrap {
        width: 100%;
        max-width: 485px;
        margin-inline: auto;
        height: auto;
        aspect-ratio: 485 / 352;
    }

    .section5-step h3 {
        font-size: 24px;
    }

    .section5-step p {
        font-size: 16px;
    }

    .section5-heading {
        padding-bottom: 50px;
    }

    .section5-heading h2 {
        font-size: clamp(32px, 4vw, 40px);
    }

}

@media (max-width: 900px) {
    .section5-steps {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 600px) {
    .section5-inner {
        padding: 38px 22px 48px;
    }

    .section5-steps {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 420px;
    }

    .section5-image-wrap {
        width: 100%;
        aspect-ratio: 485 / 352;
    }

    .section5-heading {
        padding-bottom: 40px;
    }

    .section5-step h3 {
        font-size: 22px;
    }

    .section5-step p {
        font-size: 15px;
    }

    .section5-heading h2 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .section5-eyebrow {
        font-size: 12px;
        margin-bottom: 22px;
    }
}

/* Final Section 3 responsive fit and pill placement */
@media (max-width: 991px) {

    .sec3-block-top,
    .sec3-block-1 {
        padding-inline: 20px;
    }

    .sec3-cards-container,
    .sec3-container-bottom,
    .sec3-container-2 {
        padding-inline: 16px;
        padding-top: 50px;
    }

    .sec3-cards-row {
        width: 100%;
        gap: clamp(24px, 5vw, 36px);
        margin-top: clamp(-140px, -16vw, -80px);
    }

    .sec3-card {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: clamp(500px, 76vw, 680px);
        flex: 0 1 auto;
    }

    .sec3-card-inner {
        min-height: inherit;
        padding: clamp(28px, 5vw, 40px);
    }

    .sec3-card-1 .sec3-card-media {
        margin-right: calc(-1 * clamp(28px, 5vw, 40px));
    }

    .sec3-card-2 .sec3-card-media {
        margin-left: calc(-1 * clamp(28px, 5vw, 40px));
    }

    .sec3-card-img {
        width: min(58vw, 290px);
        max-width: 58vw;
        height: auto;
    }

    .sec3-pill-left,
    .sec3-card-1 .sec3-pill-extra-1,
    .sec3-card-1 .sec3-pill-extra-2 {
        transform: translate(-60%, -50%);
    }

    .sec3-card-1 .sec3-pill-extra-1 {
        transform: translate(-60%, calc(-150% - 15px));
    }

    .sec3-card-1 .sec3-pill-extra-2 {
        transform: translate(-60%, calc(50% + 15px));
    }

    .sec3-pill-right {
        transform: translate(60%, -50%);
    }

    .sec3-card-2 .sec3-pill-extra-1 {
        transform: translate(60%, calc(-150% - 15px));
    }

    .sec3-card-2 .sec3-pill-extra-2 {
        transform: translate(60%, calc(50% + 15px));
    }

    .sec3-card-1:hover .sec3-pill-left:not(.sec3-pill-extra-1):not(.sec3-pill-extra-2) {
        transform: translate(-60%, calc(-50% - 2px));
    }

    .sec3-card-2:hover .sec3-pill-right:not(.sec3-pill-extra-1):not(.sec3-pill-extra-2) {
        transform: translate(60%, calc(-50% - 2px));
    }
}

@media (max-width: 600px) {

    .sec3-block-top,
    .sec3-block-1 {
        padding-inline: 16px;
    }

    .sec3-block-top,
    .sec3-block-1 {
        padding-inline: 16px;
    }

    .sec3-cards-container,
    .sec3-container-bottom,
    .sec3-container-2 {
        padding-inline: 16px;
        padding-top: 35px;
    }

    .sec3-title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .sec3-card {
        min-height: clamp(470px, 130vw, 580px);
    }

    .sec3-card-inner {
        padding: 24px 18px;
    }

    .sec3-card-title {
        font-size: clamp(23px, 7vw, 28px);
    }

    .sec3-card-desc {
        font-size: clamp(14px, 4vw, 16px);
    }

    .sec3-card-img {
        width: min(62vw, 230px);
        max-width: 62vw;
        max-height: 220px;
    }

    .sec3-floating-pill {
        max-width: calc(100vw - 24px);
        gap: 7px;
        padding: 9px 12px;
    }

    .sec3-pill-text {
        font-size: clamp(11px, 3.3vw, 13px);
        line-height: 1.1;
    }

    .sec3-pill-icon {
        width: 16px;
        height: 16px;
    }

    .sec3-pill-left,
    .sec3-card-1 .sec3-pill-extra-1,
    .sec3-card-1 .sec3-pill-extra-2 {
        transform: translate(-40%, -50%);
    }

    .sec3-card-1 .sec3-pill-extra-1 {
        transform: translate(-40%, calc(-150% - 15px));
    }

    .sec3-card-1 .sec3-pill-extra-2 {
        transform: translate(-40%, calc(50% + 15px));
    }

    .sec3-pill-right {
        transform: translate(40%, -50%);
    }

    .sec3-card-2 .sec3-pill-extra-1 {
        transform: translate(40%, calc(-150% - 15px));
    }

    .sec3-card-2 .sec3-pill-extra-2 {
        transform: translate(40%, calc(50% + 15px));
    }

    .sec3-card-1:hover .sec3-pill-left:not(.sec3-pill-extra-1):not(.sec3-pill-extra-2) {
        transform: translate(-40%, calc(-50% - 2px));
    }

    .sec3-card-2:hover .sec3-pill-right:not(.sec3-pill-extra-1):not(.sec3-pill-extra-2) {
        transform: translate(40%, calc(-50% - 2px));
    }
}

/* Final Section 3 mobile layout overrides */
@media (max-width: 767px) {

    .sec3-block-bottom,
    .sec3-block-2 {
        padding-bottom: 36px;
    }

    .sec3-cards-row {
        width: 100%;
        gap: 24px;
        margin-top: clamp(-90px, -12vw, -48px);
    }

    .sec3-card {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 20px;
    }

    .sec3-card-inner {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: clamp(22px, 5vw, 32px);
        overflow: visible;
    }

    .sec3-card-content {
        max-width: none;
    }

    .sec3-card-title {
        font-size: clamp(25px, 6vw, 32px);
    }

    .sec3-card-desc {
        max-width: none;
        font-size: clamp(15px, 3.7vw, 18px);
        line-height: 1.45;
    }

    .sec3-card-link {
        font-size: 16px;
    }

    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media,
    .sec3-media-right,
    .sec3-media-left {
        width: 100%;
        justify-content: center;
        margin: clamp(22px, 5vw, 30px) 0 0;
    }

    .sec3-img-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sec3-card-img {
        order: 0;
        width: 100%;
        max-width: min(100%, 480px);
        max-height: none;
        height: auto;
        border-radius: 14px;
        object-fit: cover;
    }

    .sec3-floating-pill,
    .sec3-pill-left,
    .sec3-pill-right,
    .sec3-pill-extra-1,
    .sec3-pill-extra-2,
    .sec3-card-2 .sec3-pill-extra-1,
    .sec3-card-2 .sec3-pill-extra-2 {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 1;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        padding: 10px 14px;
        gap: 8px;
        transform: none;
        white-space: normal;
    }

    .sec3-pill-icon {
        width: 17px;
        height: 17px;
    }

    .sec3-pill-text {
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.25;
    }

    .sec3-card-1:hover .sec3-pill-left,
    .sec3-card-2:hover .sec3-pill-right {
        transform: none;
    }
}

@media (max-width: 420px) {
    .sec3-card-inner {
        padding: 22px 18px;
    }

    .sec3-card-title {
        font-size: 25px;
    }

    .sec3-floating-pill {
        padding: 9px 12px;
    }
}

/* Section 3 tablet and mobile: compact card content flow */
@media (max-width: 991px) {
    .sec3-card {
        width: min(650px, 100%);
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 20px;
    }

    .sec3-card-inner {
        height: auto;
        min-height: 0;
        padding: clamp(24px, 5vw, 36px);
    }

    .sec3-card-media,
    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media,
    .sec3-media-right,
    .sec3-media-left {
        width: 100%;
        justify-content: center;
        margin: 24px 0 0 !important;
    }

    .sec3-img-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sec3-card-img {
        order: 0;
        width: 100%;
        max-width: 480px;
        max-height: none;
        height: auto;
        border-radius: 14px;
        object-fit: cover;
    }

    .sec3-floating-pill,
    .sec3-pill-left,
    .sec3-pill-right,
    .sec3-pill-extra-1,
    .sec3-pill-extra-2,
    .sec3-card-2 .sec3-pill-extra-1,
    .sec3-card-2 .sec3-pill-extra-2 {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        order: 1;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        padding: 10px 14px;
        gap: 8px;
        transform: none !important;
        white-space: normal;
    }
}

@media (max-width: 991px) {
    .sec3-card-img {
        height: clamp(200px, 58vw, 320px) !important;
    }
}

/* Section 1 responsive layout */
@media (max-width: 991px) {
    .home-hero-split {
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .hero-side-left,
    .hero-side-right {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-side-left {
        padding: calc(var(--hc-height, 80px) + 20px) 0 26px;
    }

    .hero-side-right {
        padding: 34px 0 56px;
    }

    .hero-side-left .hero-side-inner,
    .hero-side-right .hero-side-inner {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        padding: 0 clamp(20px, 5vw, 40px);
        box-sizing: border-box;
        text-align: center;
    }

    .hero-col-left,
    .hero-col-right {
        align-items: center;
        text-align: center;
    }

    .hero-title-left {
        font-size: clamp(34px, 5.5vw, 48px);
        margin-bottom: 16px;
    }

    .hero-desc-left {
        max-width: 600px;
        margin-bottom: 22px;
        font-size: clamp(16px, 2vw, 18px);
    }

    .hero-eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .hero-title-right {
        font-size: clamp(32px, 5vw, 44px);
        margin-bottom: 22px;
    }

    .hero-link-wrap {
        justify-content: center;
    }

    .hero-person-anchor {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin: -8px auto 0;
        transform: none;
        z-index: 2;
    }

    .hero-person-wrap {
        justify-content: center;
        width: 100%;
        max-width: 480px;
    }

    .hero-person-img {
        width: min(72vw, 400px);
        max-width: 100%;
        height: auto;
        max-height: clamp(260px, 42vw, 380px);
        object-fit: contain;
    }
}

@media (max-width: 600px) {
    .hero-side-left {
        padding-top: calc(var(--hc-height, 70px) + 18px);
        padding-bottom: 22px;
    }

    .hero-side-right {
        padding: 30px 0 44px;
    }

    .hero-title-left {
        font-size: clamp(31px, 8vw, 38px);
        line-height: 1.12;
    }

    .hero-desc-left {
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-btn-copper {
        padding: 13px 22px;
        font-size: 14px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .hero-title-right {
        font-size: clamp(30px, 7.5vw, 38px);
        line-height: 1.12;
    }

    .hero-person-img {
        width: min(78vw, 340px);
        max-height: 320px;
    }
}

@media (max-width: 380px) {

    .hero-side-left .hero-side-inner,
    .hero-side-right .hero-side-inner {
        padding-inline: 18px;
    }

    .hero-title-left {
        font-size: 30px;
    }

    .hero-title-right {
        font-size: 29px;
    }

    .hero-person-img {
        width: min(82vw, 300px);
    }
}

/* Keep the right hero copy tightly grouped. */
.hero-col-right {
    gap: 3px;
}

.hero-eyebrow,
.hero-title-right {
    margin-bottom: 0;
}

.hero-title-right {
    line-height: 0.8;
}

@media (max-width: 991px) {
    .hero-title-copper {
        font-size: clamp(76px, 14vw, 120px);
    }

    .hero-title-right .hero-title-dark:last-child {
        font-size: clamp(44px, 8vw, 62px);
    }

    .hero-col-right .hero-link-wrap {
        width: 100%;
        margin-top: 36px;
        justify-content: center;
    }
}

/* Scale the updated right hero title and CTA on tablet and mobile. */
@media (min-width: 992px) and (max-width: 1200px) {
    .hero-side-left .hero-side-inner {
        padding-right: clamp(24px, 4vw, 48px);
    }

    .hero-title-left {
        font-size: clamp(44px, 5vw, 60px);
        line-height: 1.08;
    }

    .hero-side-right .hero-side-inner {
        max-width: 540px;
    }

    .hero-title-dark {
        font-size: clamp(24px, 2.8vw, 34px);
    }

    .hero-title-copper {
        font-size: clamp(78px, 9vw, 108px);
    }

    .hero-col-right .hero-link-wrap {
        margin-top: 56px;
    }
}

@media (max-width: 991px) {
    .hero-side-right .hero-side-inner {
        max-width: 620px;
    }

    .hero-col-right {
        width: 100%;
    }

    .hero-eyebrow {
        font-size: 12px;
        letter-spacing: 0.4px;
    }

    .hero-title-dark {
        font-size: clamp(22px, 4vw, 30px);
    }

    .hero-title-copper {
        font-size: clamp(68px, 12vw, 96px);
        line-height: 0.9;
    }

    .hero-title-right .hero-title-dark:last-child {
        font-size: clamp(42px, 7vw, 56px);
        line-height: 0.95;
    }

    .hero-title-right {
        line-height: 0.95;
    }
}

@media (max-width: 600px) {
    .hero-side-right {
        padding: 28px 0 38px;
    }

    .hero-side-right .hero-side-inner {
        max-width: 460px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .hero-title-dark {
        font-size: clamp(20px, 5.5vw, 25px);
    }

    .hero-title-copper {
        font-size: clamp(60px, 17vw, 82px);
    }

    .hero-title-right .hero-title-dark:last-child {
        font-size: clamp(38px, 10vw, 48px);
    }

    .hero-col-right .hero-link-wrap {
        margin-top: 28px;
    }
}

@media (max-width: 380px) {
    .hero-title-copper {
        font-size: 58px;
    }

    .hero-title-right .hero-title-dark:last-child {
        font-size: 36px;
    }
}

/* Stack Section 1 below 1200px; keep copy left and Peter at the bottom of panel two. */
@media (max-width: 1200px) {
    .home-hero-split {
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .hero-side-left,
    .hero-side-right {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .hero-side-left {
        padding: calc(var(--hc-height, 80px) + 24px) 0 40px;
    }

    .hero-side-left .hero-side-inner,
    .hero-side-right .hero-side-inner {
        width: 100%;
        max-width: 760px;
        margin: 0 auto 0 0;
        padding: 0 clamp(20px, 4vw, 40px);
        text-align: left;
        box-sizing: border-box;
    }

    .hero-side-left .hero-side-inner {
        max-width: 760px;
    }

    .hero-side-right {
        position: relative;
        padding: 34px 50px 50px;
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }

    .hero-side-right .hero-side-inner {
        position: relative;
        z-index: 11;
        max-width: 760px;
        margin-left: 0;
    }

    .hero-person-anchor {
        position: absolute;
        left: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        transform: none;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        z-index: 2;
        margin: 0;
    }

    .hero-person-wrap {
        width: clamp(190px, 55vw, 595px);
        max-width: 100%;
        margin-left: auto;
    }

    .hero-person-img {
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
        object-fit: contain;
        object-position: bottom right;
    }

    .hero-col-left,
    .hero-col-right {
        align-items: flex-start;
        text-align: left;
    }

    .hero-title-right {
        text-align: left;
    }

    .hero-col-right .hero-link-wrap {
        width: auto;
        margin: 36px 0 0;
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .hero-side-right {
        padding-top: 30px;
    }
}

@media (max-width: 600px) {
    .hero-side-right .hero-side-inner {
        max-width: 460px;
    }


    .hero-person-wrap {
        width: min(42vw, 230px);
    }
}

@media (max-width: 991px) {
    .hero-side-left .hero-side-inner {
        margin-left: 0;
        margin-right: auto;
        text-align: left !important;
    }

    .hero-col-left {
        width: 100%;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero-title-left {
        line-height: 50px;
    }

    .hero-col-left .hero-title-left,
    .hero-col-left .hero-desc-left,
    .hero-col-left .hero-btn-wrap {
        align-self: flex-start;
        text-align: left !important;
    }
}

@media (max-width: 600px) {
    .hero-side-left .hero-side-inner {
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;
    }

    .hero-col-left {
        align-items: center !important;
        text-align: center !important;
    }

    .hero-col-left .hero-title-left,
    .hero-col-left .hero-desc-left,
    .hero-col-left .hero-btn-wrap {
        align-self: center;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .hero-eyebrow {
        font-size: clamp(8px, 2.3vw, 11px);
        letter-spacing: 0.3px;
    }

    .hero-title-right .hero-title-dark:first-child {
        font-size: clamp(14px, 4.2vw, 24px);
    }

    .hero-title-copper {
        font-size: clamp(44px, 15vw, 84px);
        line-height: 0.9;
    }

    .hero-title-right .hero-title-dark:last-child {
        font-size: clamp(28px, 8.5vw, 46px);
        line-height: 0.95;
    }

    .hero-col-right .hero-link-wrap {
        margin-top: 24px;
    }

    .hero-link-arrow {
        font-size: clamp(11px, 3vw, 13px);
    }

    .hero-link-icon {
        width: 12px;
        height: 12px;
    }

    .hero-person-wrap {
        width: 230px;
    }
}

@media (max-width: 380px) {
    .hero-person-wrap {
        width: 200px;
    }

}

/* Keep Section 3 badges to the left of the image on tablet and mobile */
@media (max-width: 991px) {
    .sec3-img-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        grid-template-rows: repeat(3, minmax(0, auto));
        align-items: center;
        gap: 6px;
    }

    .sec3-img-wrap>.sec3-floating-pill {
        position: relative !important;
        grid-column: 1;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: inline-flex !important;
        justify-self: start;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 0 !important;
        padding: 7px 9px;
        gap: 5px;
        transform: none !important;
        white-space: normal;
    }

    .sec3-img-wrap>.sec3-card-img {
        grid-column: 2;
        grid-row: 1 / 4;
        justify-self: end;
        width: 100%;
        max-width: 100%;
        height: auto !important;
        max-height: 260px;
        object-fit: contain;
    }

    .sec3-img-wrap>.sec3-floating-pill .sec3-pill-text {
        min-width: 0;
        font-size: clamp(9px, 1.5vw, 12px);
        line-height: 1.15;
    }
}

/* Section 3 media groups: separate badge stack and image panel */
@media (max-width: 991px) {

    .sec3-card-media,
    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media {
        height: 100%;
        min-width: 0;
        margin: 0 !important;
    }

    .sec3-img-wrap {
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        gap: 5px;
        width: 100%;
        height: 100%;
        min-width: 0;
    }

    .sec3-badges-container {
        display: flex;
        flex: 0 0 42%;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 5px;
        min-width: 0;
    }

    .sec3-badges-container .sec3-floating-pill {
        display: inline-flex !important;
        position: relative !important;
        inset: auto !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 5px 7px;
        gap: 4px;
        transform: none !important;
        white-space: nowrap;
    }

    .sec3-badges-container .sec3-pill-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(7px, 0.95vw, 10px);
        line-height: 1.05;
    }

    .sec3-image-container {
        display: flex;
        flex: 1 1 58%;
        align-items: stretch;
        min-width: 0;
        height: 100%;
    }

    .sec3-image-container .sec3-card-img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100% !important;
        max-height: none;
        object-fit: cover;
        border-radius: 8px;
    }
}

@media (max-width: 767px) {
    .sec3-card {
        height: auto;
        min-height: 0;
    }

    .sec3-card-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 14px;
    }

    .sec3-card-content {
        width: 100%;
        margin: 0;
    }

    .sec3-card-media,
    .sec3-card-1 .sec3-card-media,
    .sec3-card-2 .sec3-card-media {
        width: 100%;
        height: auto;
    }

    .sec3-img-wrap {
        flex-direction: column;
        align-items: stretch;
        width: calc(100% - 10px);
        height: auto;
        margin-right: 10px;
        gap: 8px;
    }

    .sec3-image-container {
        width: 100%;
        height: clamp(120px, 42vw, 220px);
        flex: 0 0 auto;
    }

    .sec3-badges-container {
        width: 100%;
        flex: 0 0 auto;
        gap: 5px;
    }

    .sec3-badges-container .sec3-floating-pill {
        width: max-content;
        max-width: 100%;
        padding: 6px 9px;
    }

    .sec3-badges-container .sec3-pill-text {
        font-size: clamp(9px, 2.8vw, 12px);
        line-height: 1.1;
    }
}

/* Section 3 media sizing for 480px–991px screens */
@media (min-width: 480px) and (max-width: 991px) {
    .sec3-img-wrap {
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        height: 100%;
        min-width: 0;
    }

    .sec3-badges-container {
        display: flex;
        flex: 0 0 42%;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: stretch;
        gap: 5px;
        min-width: 0;
    }

    .sec3-badges-container .sec3-floating-pill {
        display: inline-flex !important;
        position: relative !important;
        inset: auto !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 15px 7px;
        gap: 4px;
        transform: none !important;
        white-space: nowrap;
    }

    .sec3-badges-container .sec3-pill-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
        line-height: 1.05;
    }

    .sec3-image-container {
        display: flex;
        flex: 1 1 58%;
        align-items: stretch;
        min-width: 0;
        max-width: 330px;
        height: 200px;
    }
}

/* Section 3 stacked image and badges below 768px */
@media (max-width: 767px) {
    .sec3-img-wrap {
        display: flex !important;
        flex-direction: column-reverse;
        align-items: center;
        gap: 10px;
        width: 80%;
        height: 100%;
        min-width: 0;
    }

    .sec3-image-container {
        display: flex;
        flex: 1 1 58%;
        align-items: stretch;
        min-width: 0;
        max-width: 100%;
    }

    .sec3-image-container .sec3-card-img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100% !important;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* Place the first Section 3 card in the top block on tablet and mobile */
@media (max-width: 991px) {

    .sec3-block-top,
    .sec3-block-1 {
        padding-bottom: clamp(28px, 5vw, 48px);
    }

    .sec3-card-1 {
        margin: clamp(18px, 4vw, 30px) auto 0;
    }

    .sec3-cards-row {
        margin-top: 0;
        gap: 0;
    }

    .sec3-block-bottom,
    .sec3-block-2 {
        padding-top: 0;
    }
}
/* Match Section 3 card gutters across both blocks below 992px */
@media (max-width: 991px) {
    .sec3-block-top,
    .sec3-block-1,
    .sec3-block-bottom,
    .sec3-block-2 {
        padding-left: 0;
        padding-right: 0;
    }
}
