/* =========================================================
   KB7 SHARED LAYOUT SYSTEM
   Bootstrap provides the grid; this layer keeps every page
   on the same horizontal rhythm and responsive spacing.
========================================================= */

html {
    overflow-x: hidden;
}

:root {
    --kb7-body-font: Georgia;
    --kb7-display-font: Georgia;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--kb7-body-font);
}

body,
button,
input,
textarea,
select,
.navbar,
.kb7-main-navbar,
.kb7-footer {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.kb7-businesses-content h1,
.kb7-portfolio-header h1,
.kb7-contact-content h1,
.kb7-cta-title,
.kb7-carousel-title,
.kb7-fullscreen-text h2 {
    font-family: var(--kb7-display-font) !important;
}

/* Keep every page and component on the same requested font stack. */
/* body *:not(.bi):not([class^="bi-"]):not([class*=" bi-"]):not(p):not(.kb7-nav-link):not(.kb7-btn-primary):not(.kb7-btn-secondary) {
    font-family: Georgia !important;
} */

/* Match the reference typography for readable copy and actions. */
body button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body a[class*="button"] {
    font-family:"Inter", "Segoe UI", Arial, sans-serif !important;
}

body p {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

body .kb7-hero-eyebrow {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

body .kb7-hero-meta-item {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.club-home .kb7-hero-description {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.club-home .kb7-group-description {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.8;
}

.club-home .kb7-btn-primary,
.club-home .kb7-btn-secondary {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.kb7-main-navbar .kb7-nav-link {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.club-portfolio .kb7-fullscreen-text h2 {
    font-size: clamp(44px, 5vw, 78px) !important;
}

.club-portfolio .kb7-fullscreen-number {
    font-size: clamp(11px, .85vw, 15px);
}

.club-portfolio .kb7-feature-list {
    font-size: clamp(10px, .8vw, 14px);
}

body button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body a[class*="button"] {
    font-weight: 700;
}

/* Use the exact same horizontal axis as every page section. */
.kb7-main-navbar .kb7-navbar-container {
    padding-right: var(--kb7-page-gutter);
    padding-left: var(--kb7-page-gutter);
}

/* Keep the shared navbar fixed while preserving the page content offset. */
.kb7-main-navbar,
.club-portfolio .kb7-main-navbar {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
}

/* Fixed positioning no longer occupies space in the document flow. */
.club-home main,
.club-about main,
.club-portfolio main {
    padding-top: 82px;
}

.club-home .kb7-hero {
    height: calc(100vh - 82px);
}

.club-portfolio main {
    padding-top: 82px !important;
}

main {
    width: 100%;
    overflow-x: clip;
}

/* Match every page section to the navbar and footer gutters. */
.club-home main > section > .container,
.club-about main > section > .container,
.club-portfolio main > section > .container,
.club-home main > section > .container-fluid,
.club-about main > section > .container-fluid,
.club-portfolio main > section > .container-fluid {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.club-home main > section > .container,
.club-about main > section > .container,
.club-portfolio main > section > .container {
    padding-right: var(--kb7-page-gutter);
    padding-left: var(--kb7-page-gutter);
}

/* Keep Bootstrap rows from introducing a different outer alignment. */
.club-home main > section > .container > .row,
.club-about main > section > .container > .row,
.club-portfolio main > section > .container > .row {
    --bs-gutter-x: clamp(1.5rem, 3vw, 4.375rem);
}

/* Home sections with custom containers use the same page rhythm. */
.club-home .kb7-group-container,
.club-home .kb7-connect-container {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--kb7-page-gutter);
    padding-left: var(--kb7-page-gutter);
}

/* The homepage portfolio viewer supplies its own centered card width. */
.club-home .kb7-portfolio > .container {
    padding-right: 0;
    padding-left: 0;
}

.club-home .kb7-portfolio-heading {
    display: block;
    flex: 0 0 auto;
    margin-right: var(--kb7-page-gutter);
    margin-bottom: 24px;
    margin-left: var(--kb7-page-gutter);
}

.club-home .kb7-portfolio-heading h2 {
    margin-bottom: 0;
    color: #ffffff;
}

/* Leave room for the fixed navbar without adding excess heading space. */
.club-home .kb7-portfolio {
    padding-top: 88px;
}

.club-home .kb7-portfolio-heading {
    margin-bottom: 16px;
}

.club-home .kb7-portfolio-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-home .kb7-carousel-frame {
    margin: 4px auto 0;
}

/* Give the desktop homepage portfolio card more visual presence. */
@media (min-width: 992px) {
    .club-home .kb7-carousel-frame {
        width: min(calc(100% - 48px), 2000px);
        height: clamp(420px, 68vh, 620px);
    }
}

/* Laptop view: keep the portfolio heading and split carousel inside the viewport. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .club-home .kb7-portfolio {
        padding-top: 54px;
        padding-bottom: 72px;
    }

    .club-home .kb7-portfolio-heading h2 {
        font-size: clamp(42px, 4.5vw, 58px);
    }

    .club-home .kb7-carousel-frame {
        width: min(calc(100% - 60px), 1180px);
        height: clamp(390px, 56vh, 500px);
    }

    .club-home .kb7-carousel-details {
        padding: 34px 30px 26px;
    }

    .club-home .kb7-carousel-title {
        margin-top: 12px;
        margin-bottom: 16px;
        font-size: clamp(28px, 3vw, 42px);
    }

    .club-home .kb7-carousel-description {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .club-home .kb7-carousel-services {
        gap: 7px;
    }

    .club-home .kb7-carousel-explore {
        margin-top: 18px;
    }
}

/* Responsive carousel frame: keep the card inside the viewport at every size. */
.club-home {
    overflow-x: hidden;
}

.club-home .kb7-portfolio-carousel {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 22px;
}

.club-home .kb7-carousel-frame {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 2000px);
    max-width: 2000px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .club-home .kb7-portfolio > .container {
        width: 100%;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .club-home .kb7-carousel-frame {
        width: 100%;
        min-height: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }

    .club-home .kb7-carousel-details {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        height: auto;
        min-height: 420px;
        padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 64px) 36px;
        box-sizing: border-box;
    }

    .club-home .kb7-carousel-image {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: clamp(280px, 52vw, 480px);
        object-fit: cover;
    }

    .club-home .kb7-carousel-shade {
        display: none;
    }

    .club-home .kb7-carousel-controls {
        position: relative;
        inset: auto;
        order: 3;
        width: 100%;
        min-height: 58px;
        padding: 0 24px;
        box-sizing: border-box;
    }
}

@media (max-width: 575.98px) {
    .club-home .kb7-portfolio > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .club-home .kb7-carousel-frame {
        width: 100%;
    }

    .club-home .kb7-carousel-title {
        max-width: 100%;
        font-size: clamp(32px, 10vw, 48px);
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-description,
    .club-home .kb7-carousel-summary {
        max-width: 100%;
    }

    .club-home .kb7-carousel-services {
        grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 8px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        border-right: 1px solid rgba(255, 255, 255, .25) !important;
        border-bottom: 0 !important;
        gap: 7px !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-right: 0 !important;
    }

    .club-home .kb7-carousel-image {
        height: clamp(230px, 62vw, 340px);
    }

    .club-home .kb7-carousel-controls {
        display: flex !important;
        position: relative !important;
        inset: auto !important;
        order: 3;
        width: 100%;
        min-height: 48px;
        margin-top: 8px;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .club-home .kb7-carousel-pagination {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        order: 4;
        width: 100%;
        margin-top: 14px;
        justify-content: center;
    }

    .club-home .kb7-carousel-explore {
        margin-top: 18px !important;
    }
}

/* Final mobile homepage carousel reset. */
@media (max-width: 767.98px) {
    /* Homepage keeps its service icons in a horizontal row. */
    .club-home .kb7-carousel-services,
    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 8px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        border-right: 1px solid rgba(255, 255, 255, .25) !important;
        border-bottom: 0 !important;
        gap: 7px !important;
        text-align: left !important;
        font-size: 8px !important;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-right: 0 !important;
    }

    .club-home .kb7-carousel-details {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 390px !important;
        padding: 30px 24px 28px !important;
        transform: none !important;
        text-align: left !important;
        order: 1;
    }

    .club-home .kb7-carousel-counter {
        top: 14px !important;
        left: 24px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 18px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-image {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        order: 2;
        width: 100% !important;
        height: clamp(230px, 62vw, 340px) !important;
        object-fit: cover;
    }

    .club-home .kb7-carousel-shade {
        display: none !important;
    }
}

/* Final mobile homepage carousel reset. */
@media (max-width: 767.98px) {
    .club-home .kb7-carousel-details {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 390px !important;
        padding: 30px 24px 28px !important;
        transform: none !important;
        text-align: left !important;
        order: 1;
    }

    .club-home .kb7-carousel-counter {
        top: 14px !important;
        left: 24px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 18px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-image {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        order: 2;
        width: 100% !important;
        height: clamp(230px, 62vw, 340px) !important;
        object-fit: cover;
    }

    .club-home .kb7-carousel-shade {
        display: none !important;
    }
}

/* Final mobile homepage carousel reset. */
@media (max-width: 767.98px) {
    .club-home .kb7-carousel-details {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 390px !important;
        padding: 30px 24px 28px !important;
        transform: none !important;
        text-align: left !important;
        order: 1;
    }

    .club-home .kb7-carousel-counter {
        top: 14px !important;
        left: 24px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 18px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-image {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        order: 2;
        width: 100% !important;
        height: clamp(230px, 62vw, 340px) !important;
        object-fit: cover;
    }

    .club-home .kb7-carousel-shade {
        display: none !important;
    }
}

/* Final mobile service layout: compact equal blocks stacked vertically. */
@media (max-width: 767.98px) {
    .club-home .kb7-carousel-services,
    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        width: 54px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 4px 2px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .25) !important;
        gap: 2px !important;
        text-align: center !important;
        font-size: 7px !important;
        line-height: 1.1 !important;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-bottom: 0 !important;
    }

    /* Restore the mobile homepage carousel flow after centered desktop rules. */
    .club-home .kb7-carousel-details {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 390px;
        padding: 30px 24px 28px;
        transform: none;
        text-align: left;
        order: 1;
        box-sizing: border-box;
    }

    .club-home .kb7-carousel-counter {
        top: 14px;
        left: 24px;
        transform: none;
    }

    .club-home .kb7-carousel-title {
        width: 100%;
        max-width: 100%;
        margin: 12px 0 18px;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-services {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .club-home .kb7-carousel-image {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: clamp(230px, 62vw, 340px);
        object-fit: cover;
    }

    .club-home .kb7-carousel-shade {
        display: none;
    }
}

/* Final mobile service layout for all carousel slides. */
@media (max-width: 767.98px) {
    .club-home .kb7-carousel-services,
    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        width: 54px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 4px 2px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .25) !important;
        gap: 2px !important;
        text-align: center !important;
        font-size: 7px !important;
        line-height: 1.1 !important;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-bottom: 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* Home override: keep services horizontal; vertical treatment belongs to portfolio. */
    .club-home .kb7-carousel-services,
    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 8px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        border-right: 1px solid rgba(255, 255, 255, .25) !important;
        border-bottom: 0 !important;
        gap: 7px !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-right: 0 !important;
    }
}

/* Keep service/icon spacing consistent across every business slide. */
.club-home .kb7-carousel-services {
    display: grid !important;
    grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
    width: min(100%, 410px);
    gap: 0 !important;
}

.club-home .kb7-carousel-services span {
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, .25);
    flex-direction: column !important;
    align-items: flex-start;
    gap: 7px;
}

.club-home .kb7-carousel-services span:last-child {
    border-right: 0;
}

@media (max-width: 575.98px) {
    .club-home .kb7-carousel-services {
        width: min(100%, 410px) !important;
        grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-services span {
        width: 54px !important;
        min-height: 38px;
        padding: 4px 2px;
        flex-direction: column !important;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .25);
        gap: 2px;
        text-align: center;
        font-size: 7px;
        line-height: 1.1;
    }

    .club-home .kb7-carousel-services i {
        font-size: 15px;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-bottom: 0;
    }
}

/* Keep carousel pagination visible in the strip below the picture. */
.club-home .kb7-carousel-frame {
    overflow: visible;
}


.club-home .kb7-carousel-pagination {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    bottom: -48px !important;
    z-index: 20;
}

.club-home .kb7-carousel-page.active {
    color: #d5a447 !important;
}

/* Automotive slide: match the full-bleed dark reference treatment. */
.club-home .kb7-carousel-automotive .kb7-carousel-frame {
    background: #061b33;
}

.club-home .kb7-carousel-automotive .kb7-carousel-image {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-home .kb7-carousel-automotive .kb7-carousel-shade {
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 18, 33, .92) 0%, rgba(3, 18, 33, .72) 48%, rgba(3, 18, 33, .36) 100%);
}

.club-home .kb7-carousel-automotive .kb7-carousel-details {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 18px 18px 32px;
    background: transparent;
    color: #fff;
}

.club-home .kb7-carousel-automotive .kb7-carousel-label,
.club-home .kb7-carousel-automotive .kb7-carousel-description,
.club-home .kb7-carousel-automotive .kb7-carousel-explore {
    display: none;
}

.club-home .kb7-carousel-automotive .kb7-carousel-counter {
    top: 18px;
    left: 18px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    font-weight: 600;
}

.club-home .kb7-carousel-automotive .kb7-carousel-current {
    color: #d5a447;
}

.club-home .kb7-carousel-automotive .kb7-carousel-title {
    max-width: 600px;
    margin: 57px 0 18px;
    color: #fff;
    font-size: clamp(36px, 4vw, 56px);
    line-height: .98;
}

.club-home .kb7-carousel-automotive .kb7-carousel-services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0;
    width: min(100%, 328px);
    color: #fff;
    font-size: 10px;
}

.club-home .kb7-carousel-automotive .kb7-carousel-services span {
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin-right: 0;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, .25);
    flex-direction: column !important;
    align-items: flex-start;
    gap: 7px;
    font-weight: 600;
    text-align: left;
}

.club-home .kb7-carousel-automotive .kb7-carousel-services span:last-child {
    border-right: 0;
}

.club-home .kb7-carousel-automotive .kb7-carousel-services i {
    font-size: 21px;
}

.club-home .kb7-carousel-automotive .kb7-carousel-controls {
    display: none;
}

/* Keep Automotive consistent with the other homepage business cards. */
.club-home .kb7-carousel-automotive .kb7-carousel-image {
    top: 30px !important;
    right: -7% !important;
    bottom: auto !important;
    left: 36% !important;
    width: auto !important;
    height: 490px !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-shade {
    top: 30px !important;
    right: -7% !important;
    bottom: auto !important;
    left: 36% !important;
    width: auto !important;
    height: 490px !important;
    background: linear-gradient(180deg, transparent 42%, rgba(4, 17, 29, .82)) !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-details {
    top: 30px !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    width: 36% !important;
    height: 490px !important;
    padding: 58px 40px 35px !important;
    background: #f7f5ef !important;
    color: #08233d !important;
    transform: none !important;
    text-align: left !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-label,
.club-home .kb7-carousel-automotive .kb7-carousel-description,
.club-home .kb7-carousel-automotive .kb7-carousel-explore {
    display: inline-flex !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-counter {
    top: 18px !important;
    left: 40px !important;
    transform: none !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-title {
    max-width: 330px !important;
    width: auto !important;
    margin: 16px 0 22px !important;
    color: #08233d !important;
    white-space: normal !important;
    font-size: clamp(31px, 3.2vw, 48px) !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-description {
    max-width: 340px !important;
    color: #234c74 !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-services {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: auto !important;
    color: #234c74 !important;
    text-align: left !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-controls {
    display: flex !important;
}

.club-home .kb7-carousel-automotive .kb7-carousel-details {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(86%, 760px) !important;
    height: auto !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    text-align: center;
}

.club-home .kb7-carousel-automotive .kb7-carousel-counter {
    top: -52px !important;
    left: 50% !important;
    transform: translateX(-50%);
}

.club-home .kb7-carousel-automotive .kb7-carousel-title,
.club-home .kb7-carousel-automotive .kb7-carousel-services {
    margin-right: auto;
    margin-left: auto;
}

.club-home .kb7-carousel-automotive .kb7-carousel-services {
    justify-content: center;
}

@media (min-width: 768px) {
    .club-home .kb7-carousel-title {
    max-width: none;
    width: max-content;
    white-space: nowrap !important;
    font-size: clamp(26px, 3.8vw, 56px);
    letter-spacing: -2px;
    }

/* Center the slideshow hero content within the card. */
.club-home .kb7-carousel-details {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(86%, 760px);
    height: auto;
    padding: 0;
    transform: translate(-50%, -50%);
    text-align: center;
}

.club-home .kb7-carousel-counter {
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.club-home .kb7-carousel-title {
    margin-right: auto;
    margin-left: auto;
}

.club-home .kb7-carousel-services {
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
}
}

@media (max-width: 575.98px) {
    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-details {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 390px !important;
        padding: 30px 24px 28px !important;
        background: #f7f5ef !important;
        color: #08233d !important;
        transform: none !important;
        text-align: left !important;
        order: 1;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-counter {
        top: 14px !important;
        left: 24px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 18px !important;
        color: #08233d !important;
        font-size: clamp(32px, 10vw, 48px) !important;
        white-space: normal !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-description {
        display: block !important;
        max-width: 100% !important;
        color: #234c74 !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-explore {
        display: inline-flex !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-image {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: clamp(230px, 62vw, 340px) !important;
        order: 2;
        object-fit: cover;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-shade {
        display: none !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        width: 54px !important;
        min-height: 38px;
        margin: 0 !important;
        padding: 4px 2px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .25);
        gap: 2px;
        text-align: center;
        font-size: 7px;
        line-height: 1.1;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-services i {
        font-size: 15px;
    }
}

/* Desktop portfolio split layout: panel on the left, image on the right. */
@media (min-width: 992px) {
    .club-home .kb7-carousel-frame {
        position: relative !important;
        display: block !important;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        height: clamp(420px, 62vh, 620px) !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .club-home .kb7-carousel-image,
    .club-home .kb7-carousel-shade,
    .club-home .kb7-carousel-automotive .kb7-carousel-image,
    .club-home .kb7-carousel-automotive .kb7-carousel-shade {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 39% !important;
        width: 61% !important;
        height: 100% !important;
    }

    .club-home .kb7-carousel-image {
        object-fit: cover !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-image {
        object-fit: cover !important;
    }

    .club-home .kb7-carousel-details,
    .club-home .kb7-carousel-automotive .kb7-carousel-details {
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        width: 39% !important;
        height: 100% !important;
        padding: 44px 36px 34px !important;
        background: #f7f5ef !important;
        color: #08233d !important;
        transform: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .club-home .kb7-carousel-counter,
    .club-home .kb7-carousel-automotive .kb7-carousel-counter {
        top: 14px !important;
        left: 36px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-title,
    .club-home .kb7-carousel-automotive .kb7-carousel-title {
        width: auto !important;
        max-width: 100% !important;
        margin: 16px 0 20px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        font-size: clamp(32px, 3.3vw, 50px) !important;
        line-height: 1.08 !important;
    }

    .club-home .kb7-carousel-description,
    .club-home .kb7-carousel-automotive .kb7-carousel-description {
        max-width: 100% !important;
        margin-bottom: 25px !important;
    }

    .club-home .kb7-carousel-services,
    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: auto !important;
        justify-content: start !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        flex-direction: row !important;
        gap: 8px !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-explore,
    .club-home .kb7-carousel-automotive .kb7-carousel-explore {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .club-home .kb7-carousel-pagination {
        position: absolute !important;
        right: 0 !important;
        bottom: 10px !important;
        left: 39% !important;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
    }
}

/* Keep the portfolio heading on the same left guide as the navbar logo. */
.club-home .kb7-portfolio > .container {
    width: 100%;
    max-width: none;
    padding-right: var(--kb7-page-gutter) !important;
    padding-left: var(--kb7-page-gutter) !important;
}

.club-home .kb7-portfolio-heading {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Match the Our Businesses dark navy navbar over the portfolio section. */
.club-home .kb7-main-navbar.kb7-navbar-dark {
    background-color: transparent !important;
    background-image: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

/* Match the What Connects Us section to the Direction section layout. */
.club-home .kb7-connect-section {
    background: #f7f5f0;
    padding-top: 14px;
    padding-bottom: 30px;
}

.club-home .kb7-connect-heading {
    margin-bottom: 42px;
}

.club-home .kb7-connect-label {
    display: block;
    margin-bottom: 17px;
    color: #c9933b;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.club-home .kb7-connect-heading h2 {
    margin: 0;
    color: #0a1c34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -2px;
}

.club-home .kb7-connect-grid {
    --bs-gutter-x: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3.5vw, 56px);
    margin-right: 0;
    margin-left: 0;
}

.club-home .kb7-connect-grid > [class*="col-"] {
    width: auto;
    padding-right: 0;
    padding-left: 0;
}

.club-home .kb7-connect-item {
    min-height: 112px;
    padding: 14px 14px 13px;
    border-top: 4px solid #d4a447;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(8, 35, 61, 0.08);
}

.club-home .kb7-connect-number {
    display: block;
    margin-bottom: 10px;
    color: #c9933b;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
}

.club-home .kb7-connect-item h3 {
    margin: 0 0 7px;
    color: #061b33;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.club-home .kb7-connect-item p {
    max-width: none;
    margin: 0;
    color: #061b33;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .club-home .kb7-group-container {
        width: 100%;
        max-width: 100%;
        padding: 42px var(--kb7-page-gutter) 48px;
        box-sizing: border-box;
    }

    .club-home .kb7-group-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(38px, 12vw, 54px);
        line-height: .98;
        letter-spacing: -2px;
        overflow-wrap: anywhere;
    }

    .club-home .kb7-connect-section {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .club-home .kb7-connect-heading {
        margin-bottom: 22px;
    }

    .club-home .kb7-connect-grid {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    .club-home .kb7-connect-grid > [class*="col-"] {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .club-home .kb7-connect-item {
        min-height: 0;
        margin-bottom: 28px;
        padding-right: 0;
        padding-left: 0;
    }
}

.club-home .kb7-carousel-explore > span:last-child {
    display: none !important;
}

.club-home .kb7-carousel-explore {
    justify-content: center;
}

/* Align the slideshow edges with the navbar logo/page gutter. */
.club-home .kb7-portfolio > .container {
    width: 100%;
    max-width: none;
    padding-right: var(--kb7-page-gutter);
    padding-left: var(--kb7-page-gutter);
}

.club-home .kb7-carousel-frame {
    width: 100%;
    max-width: none;
    overflow: visible;
}

.club-home .kb7-carousel-pagination {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    right: 0;
    bottom: -30px !important;
    left: 0;
    z-index: 10;
    justify-content: center;
    gap: clamp(10px, 1.2vw, 18px);
}

.club-home .kb7-carousel-page {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, .72) !important;
    font-size: clamp(9px, .7vw, 13px) !important;
    font-family: "Inter", system-ui, sans-serif !important;
}

.club-home .kb7-carousel-details {
    overflow: visible;
}

.club-home .kb7-carousel-counter {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    top: 18px !important;
    left: 36px !important;
    z-index: 5;
    color: #75808b !important;
}

@media (max-width: 575.98px) {
    .club-home .kb7-carousel-counter {
        top: 14px !important;
        left: 24px !important;
    }
}

.club-home .kb7-portfolio-carousel {
    align-items: flex-start;
}

/* Use the active card image as the blurred background for this section. */
.club-home .kb7-carousel-backdrop {
    display: block;
    pointer-events: none;
    filter: blur(12px);
}

.club-home .kb7-portfolio::before {
    display: block;
    opacity: .58;
    pointer-events: none;
    filter: blur(16px);
}

.club-home .kb7-portfolio-heading h2 {
    color: #ffffff !important;
    opacity: 1;
}

/* Keep the portfolio heading above the image/overlay layers. */
.club-home .kb7-portfolio > .container {
    position: relative;
    z-index: 3;
}

.club-home .kb7-portfolio-heading,
.club-home .kb7-portfolio-heading .kb7-eyebrow,
.club-home .kb7-portfolio-heading h2 {
    position: relative;
    z-index: 4;
    opacity: 1 !important;
    visibility: visible;
}

.club-home .kb7-portfolio-heading h2 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

/* Keep this section full-height so the following beige section is not exposed
   while the portfolio is in view. */
.club-home .kb7-portfolio {
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #061525;
}

/* Use the same solid dark navy as the Our Businesses navbar. */
.club-home .kb7-main-navbar.kb7-navbar-dark {
    background: #061b33 !important;
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
}

/* Portfolio card grid remains intentionally full bleed. */
.club-portfolio .kb7-business-grid {
    margin-right: 0;
    margin-left: 0;
}

/* Keep the businesses hero compact so the portfolio cards appear sooner. */
.club-portfolio .kb7-businesses-hero {
    height: clamp(460px, 62vh, 680px);
    min-height: clamp(460px, 62vh, 680px);
}

/* Compact portfolio grid: supports a balanced 4+3 layout for seven businesses. */
.club-portfolio .kb7-business-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 36px);
}

.club-portfolio .kb7-business-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.club-portfolio .kb7-business-card {
    height: clamp(290px, 24vw, 360px);
}

/* Keep the Businesses hero header focused on the title and navigation. */
.club-portfolio .kb7-fullscreen-text > p {
    display: none;
}

/* Give the card grid a small breathing space before the next section. */
.club-portfolio .kb7-portfolio {
    padding-bottom: clamp(18px, 2vw, 30px);
}

/* Replace legacy mojibake arrow text with reliable Unicode arrows. */
.club-portfolio .kb7-card-arrow,
.club-home .kb7-card-arrow {
    font-size: 0;
}

.club-portfolio .kb7-card-arrow::before,
.club-home .kb7-card-arrow::before {
    content: "↗";
    font-size: 18px;
}

.club-portfolio .kb7-card-link span {
    font-size: 0;
}

.club-portfolio .kb7-card-link span::after {
    content: "→";
    font-size: 16px;
}

/* Shared vertical rhythm for page content. */
.club-about .kb7-story-section,
.club-about .kb7-direction-section,
.club-home .kb7-group-section,
.club-home .kb7-connect-section,
.club-contact .kb7-contact-section,
.club-portfolio .kb7-portfolio {
    scroll-margin-top: 82px;
}

/* Contact currently shares the home body class for legacy reasons. */
.club-home .kb7-contact-hero,
.club-home .kb7-contact-section {
    width: 100%;
}

/* Keep the About CTA panel on the same left/right axis as the content above. */
.club-about .kb7-cta-section > .container {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: var(--kb7-page-gutter) !important;
    padding-left: var(--kb7-page-gutter) !important;
    box-sizing: border-box;
}

.club-about .kb7-cta-box {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Use the navbar logo axis for the homepage CTA as well. */
.club-home .kb7-cta-section > .container {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: var(--kb7-page-gutter) !important;
    padding-left: var(--kb7-page-gutter) !important;
    box-sizing: border-box;
}

.club-home .kb7-cta-box {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Homepage portfolio CTA button matching the larger reference treatment. */
.club-home .kb7-carousel-explore {
    width: 140px;
    min-height: 34px;
    margin-top: 22px;
    padding: 0 16px;
    background: #d4a447;
    color: #000000;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0;
}

.club-home .kb7-carousel-explore > span:last-child {
    width: 10px;
    height: 10px;
    background: transparent;
    color: #000000;
    font-size: 0;
    line-height: 1;
}

.club-home .kb7-carousel-explore > span:last-child::after {
    content: "→";
    font-size: 16px;
}

/* Preserve the existing portfolio card title scale. */
.club-home .kb7-carousel-title {
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.08;
}

.club-home .kb7-carousel-summary {
    max-width: 360px;
    margin: 14px 0 0;
    color: #6f7883;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .club-home .kb7-carousel-title {
        font-size: 30px;
    }
}

/* Give the Our Businesses CTA the same layered background treatment as the
   homepage and About CTA sections. */
.club-portfolio .kb7-cta-section {
    position: relative;
    overflow: hidden;
    background: #071b31;
}

.club-portfolio .kb7-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            110deg,
            rgba(7, 27, 49, .82) 0%,
            rgba(18, 34, 55, .5) 42%,
            rgba(54, 67, 91, .34) 100%
        ),
        radial-gradient(
            ellipse at 74% 45%,
            rgba(174, 187, 207, .56) 0%,
            rgba(28, 45, 68, 0) 58%
        ),
        linear-gradient(
            108deg,
            rgba(30, 44, 65, .52) 0 25%,
            rgba(173, 181, 195, .32) 25.3% 41%,
            rgba(12, 30, 51, .2) 41.3% 100%
        );
    pointer-events: none;
}

.club-portfolio .kb7-cta-section::after {
    content: "7";
    position: absolute;
    top: 50%;
    right: 7%;
    z-index: 1;
    color: rgba(255, 255, 255, .055);
    font-family: Georgia;
    font-size: clamp(180px, 28vw, 520px);
    line-height: .8;
    transform: translateY(-50%);
    pointer-events: none;
}

.club-portfolio .kb7-cta-box {
    position: relative;
    z-index: 2;
    background: rgba(7, 27, 49, .88);
}

/* Keep the footer on exactly the same left/right axis as the pages. */
.kb7-footer-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-right: var(--kb7-page-gutter) !important;
    padding-left: var(--kb7-page-gutter) !important;
    padding-top: clamp(28px, 3vw, 44px) !important;
}

/* Keep the footer columns evenly distributed and aligned to the viewport. */
.kb7-footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(150px, .75fr) minmax(190px, .9fr);
    gap: clamp(28px, 5vw, 96px);
    margin-right: 0;
    margin-left: 0;
}

.kb7-footer-top > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.kb7-form-feedback {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-left: 3px solid #d4a447;
    background: rgba(212, 164, 71, .12);
}

.kb7-form-feedback p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.kb7-form-feedback-error {
    color: #a33b31;
}

.kb7-form-feedback-success {
    color: #27633f;
}

@media (max-width: 991.98px) {
    .club-home main,
    .club-about main,
    .club-portfolio main {
        padding-top: 72px;
    }

    .club-home .kb7-hero {
        height: calc(100vh - 72px);
    }

    .club-portfolio main {
        padding-top: 72px !important;
    }

    .club-home .kb7-portfolio {
        padding-top: 74px;
    }

    .club-about main > section > .container,
    .club-home main > section > .container,
    .club-portfolio main > section > .container,
    .club-home .kb7-group-container,
    .club-home .kb7-connect-container,
    .kb7-footer-container {
        padding-right: 30px !important;
        padding-left: 30px !important;
        padding-top: 36px !important;
    }

    .kb7-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 40px;
    }

    .club-home .kb7-portfolio-heading {
        margin-right: 0;
        margin-left: 0;
    }

    .club-home .kb7-carousel-frame {
        width: 100%;
        height: 460px;
    }

    .club-home .kb7-carousel-summary {
        margin-top: 8px;
        font-size: 10px;
    }

    .club-home .kb7-carousel-pagination {
        bottom: -18px;
    }

    .club-about .kb7-cta-section > .container {
        padding-right: 30px !important;
        padding-left: 30px !important;
    }

    .club-home .kb7-cta-section > .container {
        padding-right: 30px !important;
        padding-left: 30px !important;
    }

    .club-portfolio .kb7-business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-portfolio .kb7-portfolio {
        padding-bottom: 20px;
    }

    .club-portfolio .kb7-businesses-hero {
        height: clamp(420px, 68vh, 560px);
        min-height: clamp(420px, 68vh, 560px);
    }

    .club-about .kb7-story-section,
    .club-about .kb7-direction-section,
    .club-home .kb7-group-section,
    .club-home .kb7-connect-section,
    .club-home .kb7-contact-section,
    .club-portfolio .kb7-portfolio {
        scroll-margin-top: 72px;
    }
}

@media (max-width: 575.98px) {
    .club-home .kb7-portfolio {
        height: auto;
        min-height: calc(100vh + 24px);
        padding-bottom: 24px !important;
    }

    /* Keep both mobile navbar themes opaque while preserving adaptive colors. */
    .club-portfolio .kb7-main-navbar {
        background: #f8f8f8 !important;
        background-image: none !important;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    }

    .club-portfolio .kb7-main-navbar.kb7-navbar-dark {
        background: #061b33 !important;
        background-image: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
    }

    /* Let the mobile menu reach the navbar edges like the other pages. */
    .club-portfolio .kb7-main-navbar .kb7-navbar-container {
        padding-right: 0 !important;
        padding-left: 0 !important;
        min-height: 52px;
        flex-wrap: wrap;
        align-items: center;
    }

    .club-portfolio .kb7-main-navbar .kb7-brand {
        margin-right: 12px;
        margin-left: 12px;
        flex: 0 0 auto;
    }

    .club-portfolio .kb7-main-navbar .navbar-toggler {
        margin-right: 12px;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .club-portfolio .kb7-main-navbar .navbar-collapse {
        background: #f8f8f8 !important;
        border-top: 1px solid rgba(255, 255, 255, .08);
        width: 100%;
        flex-basis: 100%;
        flex-grow: 0;
    }

    .club-portfolio .kb7-main-navbar.kb7-navbar-dark .navbar-collapse {
        background: #061b33 !important;
    }

    .club-portfolio .kb7-main-navbar .kb7-nav-list {
        padding: 8px 12px 12px;
    }

    .club-portfolio .kb7-main-navbar .kb7-nav-link,
    .club-portfolio .kb7-main-navbar.kb7-navbar-dark .kb7-nav-link {
        color: #061b33 !important;
        padding: 10px 0 !important;
    }

    .club-portfolio .kb7-main-navbar.kb7-navbar-dark .kb7-nav-link {
        color: #ffffff !important;
    }

    .club-portfolio .kb7-main-navbar .kb7-nav-link.active,
    .club-portfolio .kb7-main-navbar .kb7-nav-link:hover {
        color: #d39b3f !important;
    }

    /* Match the compact three-card mobile treatment used on About. */
    .club-home .kb7-connect-container {
        padding: 18px 16px 36px !important;
    }

    .club-home .kb7-connect-heading {
        margin-bottom: 22px;
    }

    .club-home .kb7-connect-label {
        margin-bottom: 9px;
        font-size: 8px;
        letter-spacing: 2px;
    }

    .club-home .kb7-connect-heading h2 {
        max-width: 250px;
        font-size: 22px;
        line-height: 1.03;
        letter-spacing: -.6px;
    }

    .club-home .kb7-connect-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .club-home .kb7-connect-item {
        min-height: 118px;
        padding: 10px 8px 9px;
        border-top-width: 3px;
    }

    .club-home .kb7-connect-item h3 {
        margin-bottom: 7px;
        font-size: 9px;
        line-height: 1.2;
    }

    .club-home .kb7-connect-item p {
        font-size: 8px;
        line-height: 1.45;
    }

    .club-about main > section > .container,
    .club-home main > section > .container,
    .club-portfolio main > section > .container,
    .club-home .kb7-group-container,
    .club-home .kb7-connect-container,
    .kb7-footer-container {
        padding-right: 20px !important;
        padding-left: 20px !important;
        padding-top: 32px !important;
    }

    .kb7-footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .club-home main > section > .container > .row,
    .club-about main > section > .container > .row,
    .club-portfolio main > section > .container > .row {
        --bs-gutter-x: 1.5rem;
    }

    .club-home .kb7-portfolio > .container {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .club-home .kb7-portfolio-heading h2 {
        max-width: 100%;
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-frame {
        width: calc(100% - 24px) !important;
        height: 540px !important;
        margin-bottom: 14px;
    }

    .club-home .kb7-carousel-details {
        width: 100%;
        height: 48%;
        padding: 30px 16px 14px;
        overflow: hidden;
    }

    .club-home .kb7-carousel-image,
    .club-home .kb7-carousel-shade {
        top: 48%;
        height: 52%;
    }

    .club-home .kb7-carousel-counter {
        top: 12px;
        left: 16px;
        font-size: 8px;
    }

    .club-home .kb7-carousel-title {
        max-width: 100%;
        margin: 8px 0 10px;
        font-size: 26px;
        line-height: 1.05;
    }

    .club-home .kb7-carousel-description {
        max-width: 100%;
        margin-bottom: 10px;
        font-size: 9px;
        line-height: 1.4;
    }

    .club-home .kb7-carousel-services {
        gap: 4px 8px;
        font-size: 8px;
    }

    .club-home .kb7-carousel-explore {
        margin-top: 12px;
        min-height: 30px;
        font-size: 8px;
    }

    .club-home .kb7-carousel-summary {
        display: none;
    }

    .club-about .kb7-cta-section > .container {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .club-home .kb7-cta-section > .container {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .club-home .kb7-cta-section {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .club-home .kb7-cta-box {
        width: 100%;
        padding: 24px 18px;
    }

    .club-home .kb7-cta-box .row > [class*="col-"] {
        width: 100%;
    }

    .club-home .kb7-cta-title {
        max-width: 260px;
        font-size: 24px;
        line-height: 1.08;
        letter-spacing: -.8px;
    }

    .club-home .kb7-cta-action {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .club-home .kb7-cta-button {
        min-height: 38px;
        padding: 0 16px;
        font-size: 9px;
    }

    .club-portfolio .kb7-business-grid {
        grid-template-columns: 1fr;
    }

    .club-portfolio .kb7-portfolio {
        padding-bottom: 16px;
    }
}

/* Let the portfolio section grow with its content so bottom spacing is visible
   at every viewport size. Bootstrap supplies mb-5; these values refine it by
   breakpoint for the split carousel layout. */
.club-home .kb7-portfolio {
    height: auto !important;
    min-height: calc(100vh - 82px);
    padding-bottom: clamp(56px, 7vw, 96px) !important;
}

.club-home .kb7-portfolio-carousel {
    margin-bottom: clamp(48px, 6vw, 80px) !important;
}

@media (max-width: 991.98px) {
    .club-home .kb7-portfolio {
        min-height: calc(100vh - 72px);
        padding-bottom: clamp(48px, 9vw, 72px) !important;
    }

    .club-home .kb7-portfolio-carousel {
        margin-bottom: clamp(40px, 8vw, 64px) !important;
    }
}

@media (max-width: 575.98px) {
    .club-home .kb7-portfolio {
        min-height: auto;
        padding-bottom: 48px !important;
    }

    .club-home .kb7-portfolio-carousel {
        margin-bottom: 32px !important;
    }
}

/* Wide desktop/laptop carousel proportions matching the reference frame. */
@media (min-width: 992px) {
    .club-home .kb7-carousel-frame {
        width: min(calc(100% - 48px), 2000px);
        height: auto;
        min-height: 0;
        aspect-ratio: 2.44 / 1;
    }

    .club-home .kb7-carousel-image,
    .club-home .kb7-carousel-shade {
        left: 39%;
    }

    .club-home .kb7-carousel-details {
        width: 39%;
        padding: clamp(36px, 4vw, 80px) clamp(32px, 3.5vw, 72px);
    }

    .club-home .kb7-carousel-label {
        font-size: clamp(9px, .7vw, 13px);
        letter-spacing: clamp(2px, .25vw, 5px);
    }

    .club-home .kb7-carousel-title {
        max-width: 92%;
        margin: clamp(16px, 1.5vw, 28px) 0 clamp(18px, 1.8vw, 32px);
        font-size: clamp(36px, 3.3vw, 68px);
        line-height: 1.02;
    }

    .club-home .kb7-carousel-description {
        display: block;
        max-width: 92%;
        margin-bottom: clamp(20px, 2vw, 34px);
        font-size: clamp(12px, .9vw, 18px);
        font-weight: 400;
        line-height: 1.55;
    }

    .club-home .kb7-carousel-services {
        gap: clamp(8px, .7vw, 14px);
        font-size: clamp(10px, .7vw, 14px);
    }

    .club-home .kb7-carousel-explore {
        width: clamp(145px, 10vw, 210px);
        min-height: clamp(38px, 3vw, 54px);
        margin-top: clamp(18px, 1.8vw, 32px);
        padding: 0 clamp(14px, 1.2vw, 24px);
        font-size: clamp(9px, .65vw, 13px);
    }

    .club-home .kb7-carousel-summary {
        max-width: 92%;
        margin-top: clamp(18px, 1.8vw, 32px);
        font-size: clamp(10px, .7vw, 14px);
        line-height: 1.5;
    }
}

/* Laptop slideshow sizing: keep the card wide while fitting it in the viewport. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .club-home .kb7-carousel-frame {
        width: calc(100% - (2 * var(--kb7-page-gutter)));
        max-width: none;
        height: clamp(420px, 60vh, 520px);
        aspect-ratio: auto;
        margin-right: var(--kb7-page-gutter);
        margin-left: var(--kb7-page-gutter);
    }
}

/* Final responsive carousel alignment overrides. */
.club-home {
    overflow-x: hidden;
}

.club-home .kb7-portfolio-carousel {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.club-home .kb7-carousel-frame {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 2000px);
    max-width: 2000px;
    margin-right: auto;
    margin-left: auto;
    overflow: visible;
}

.club-home .kb7-carousel-pagination {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    bottom: -48px !important;
    z-index: 20;
}

@media (max-width: 991.98px) {
    .club-home .kb7-portfolio > .container {
        width: 100%;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .club-home .kb7-carousel-frame {
        width: 100%;
        min-height: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }

    .club-home .kb7-carousel-details {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        height: auto;
        min-height: 420px;
        padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 64px) 36px;
        box-sizing: border-box;
    }

    .club-home .kb7-carousel-image {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: clamp(280px, 52vw, 480px);
        object-fit: cover;
    }

    .club-home .kb7-carousel-shade {
        display: none;
    }

    .club-home .kb7-carousel-controls {
        position: relative;
        inset: auto;
        order: 3;
        width: 100%;
        min-height: 58px;
        padding: 0 24px;
        box-sizing: border-box;
    }
}

@media (max-width: 575.98px) {
    .club-home .kb7-portfolio > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .club-home .kb7-carousel-frame {
        width: 100%;
    }

    .club-home .kb7-carousel-details {
        min-height: 390px;
        padding: 30px 24px 28px;
    }

    .club-home .kb7-carousel-title {
        max-width: 100%;
        font-size: clamp(32px, 10vw, 48px);
        overflow-wrap: anywhere;
    }

    .club-home .kb7-carousel-description,
    .club-home .kb7-carousel-summary {
        max-width: 100%;
    }

    .club-home .kb7-carousel-services {
        grid-template-columns: repeat(var(--kb7-service-count, 4), minmax(0, 1fr)) !important;
        width: min(100%, 410px) !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 8px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        border-right: 1px solid rgba(255, 255, 255, .25) !important;
        border-bottom: 0 !important;
        gap: 7px !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-services span:last-child {
        border-right: 0 !important;
    }

    .club-home .kb7-carousel-image {
        height: clamp(230px, 62vw, 340px);
    }

    .club-home .kb7-carousel-pagination {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        order: 4;
        width: 100%;
        margin-top: 14px;
        justify-content: center;
    }

    .club-home .kb7-main-navbar.kb7-navbar-dark {
        background: #061b33 !important;
        background-color: #061b33 !important;
        background-image: none !important;
        border-bottom-color: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

/* Compact the homepage portfolio card on small mobile screens. */
@media (max-width: 575.98px) {
    .club-home .kb7-carousel-details {
        min-height: 240px !important;
        padding: 22px 18px 16px !important;
    }

    .club-home .kb7-carousel-controls {
        display: none !important;
    }
}

/* Keep desktop portfolio titles inside the detail panel only. */
@media (min-width: 768px) {
    .club-home .kb7-carousel-title {
        width: 100%;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: break-word;
    }
}

/* Final desktop portfolio split layout. */
@media (min-width: 992px) {
    .club-home .kb7-carousel-frame {
        position: relative !important;
        display: block !important;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        height: clamp(420px, 62vh, 620px) !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .club-home .kb7-carousel-image,
    .club-home .kb7-carousel-shade {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 39% !important;
        width: 61% !important;
        height: 100% !important;
    }

    .club-home .kb7-carousel-image {
        object-fit: cover !important;
    }

    .club-home .kb7-carousel-details {
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        width: 39% !important;
        height: 100% !important;
        padding: 44px 36px 34px !important;
        background: #f7f5ef !important;
        color: #08233d !important;
        transform: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .club-home .kb7-carousel-counter {
        top: 14px !important;
        left: 36px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-title {
        width: auto !important;
        max-width: 100% !important;
        margin: 16px 0 20px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        font-size: clamp(32px, 3.3vw, 50px) !important;
        line-height: 1.08 !important;
    }

    .club-home .kb7-carousel-description {
        max-width: 100% !important;
        margin-bottom: 25px !important;
    }

    .club-home .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: auto !important;
        justify-content: start !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-explore,
    .club-home .kb7-carousel-automotive .kb7-carousel-explore {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .club-home .kb7-carousel-pagination {
        position: absolute !important;
        right: 0 !important;
        bottom: 10px !important;
        left: 39% !important;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
    }
}

/* Apply the same desktop split to the Automotive slide override. */
/* Final mobile Automotive alignment. */
@media (max-width: 575.98px) {
    .club-home .kb7-carousel-automotive .kb7-carousel-details {
        position: relative !important;
        inset: auto !important;
        order: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 240px !important;
        padding: 22px 18px 16px !important;
        background: #f7f5ef !important;
        color: #08233d !important;
        transform: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-image {
        position: relative !important;
        inset: auto !important;
        order: 2 !important;
        width: 100% !important;
        height: clamp(230px, 62vw, 340px) !important;
        object-fit: cover !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 14px !important;
        color: #08233d !important;
        font-size: clamp(30px, 10vw, 44px) !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-description {
        display: block !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
        color: #234c74 !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 6px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        border: 0 !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-explore {
        display: inline-flex !important;
        margin-top: 16px !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-controls {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .club-home .kb7-carousel-frame {
        overflow: visible !important;
    }

    .club-home .kb7-carousel-controls,
    .club-home .kb7-carousel-automotive .kb7-carousel-controls {
        display: none !important;
    }

    .club-home .kb7-carousel-explore,
    .club-home .kb7-carousel-automotive .kb7-carousel-explore {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .club-home .kb7-carousel-pagination {
        position: absolute !important;
        right: 0 !important;
        bottom: -34px !important;
        left: 39% !important;
        width: 61% !important;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-image,
    .club-home .kb7-carousel-automotive .kb7-carousel-shade {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 39% !important;
        width: 61% !important;
        height: 100% !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-details {
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        width: 39% !important;
        height: 100% !important;
        padding: 44px 36px 34px !important;
        transform: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-counter {
        top: 14px !important;
        left: 36px !important;
        transform: none !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-title {
        width: auto !important;
        max-width: 100% !important;
        margin: 16px 0 20px !important;
        white-space: normal !important;
        font-size: clamp(32px, 3.3vw, 50px) !important;
        line-height: 1.08 !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-description {
        max-width: 100% !important;
        margin-bottom: 25px !important;
    }

    .club-home .kb7-carousel-automotive .kb7-carousel-services {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: auto !important;
        gap: 9px !important;
        justify-content: start !important;
        text-align: left !important;
    }

    .club-home .kb7-carousel-services span,
    .club-home .kb7-carousel-automotive .kb7-carousel-services span {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        flex-direction: row !important;
        gap: 8px !important;
        text-align: left !important;
    }
}
