.hero-section .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.tb-services-page .tb-services-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(0.9rem, 2vw, 1.5rem);
    align-items: center;
}

.tb-services-page .tb-services-hero-copy {
    display: grid;
    gap: 0.52rem;
    max-width: 39rem;
}

.tb-services-page .tb-services-hero-copy .hero-heading {
    margin: 0;
    max-width: 34rem;
}

.tb-services-page .tb-services-actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tb-services-page .tb-services-hero-art {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.tb-services-page .tb-services-hero-art .hero-section-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-section {
    /* padding-top: 6em; */
}

.hero-heading span {
    font-size: var(--tb-fs-36);
}

.hero-section .content {
    margin-bottom: 1em;
    /* margin-bottom: 9em; */
}

.secondary-feature-card-item-name {
    font-size: 14px;
    font-weight: 400;
    margin: 0%;
    padding: 0%;
}

.secondary-feature-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    max-width: 1024px;
    margin: auto;
}

.secondary-feature-section {
    padding: 2em;
    background: radial-gradient(74.52% 74.52% at 50% 25.48%, rgba(233, 240, 255, 0.52) 0%, rgba(255, 255, 255, 0.52) 100%);
    padding-top: 72px;
}

.secondary-feature-card {
    border: 1px solid #E6E9EF;
    border-radius: 12px;
    padding: 1em;
    margin: 0%;
    background: white;
    border: 1px solid #E6E9EF;
    box-shadow: 0 4px 4px 0 rgba(232, 242, 254, 0.45);
}

.secondary-feature-card-caption {
    margin-top: 1em;
}


.secondary-feature-card-icon-wrapper {
    padding: 9px;
    background: #EFF6FF;
    width: fit-content;
    border-radius: 9px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-feature-card-icon-wrapper svg {
    height: 22px;
    width: auto;
}

.note-wrapper {
    background: rgb(239, 246, 255);
    border-radius: 6px;
    padding: 9px;
    margin: 2em auto auto;
    max-width: 1024px;
}

.note {
    color: #286FED;
    font-size: 14px;
    text-align: center;
    padding: 0%;
    margin: 0%;

}

.primary-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    max-width: 1024px;
    max-width: 1200px;
    margin: auto;
}


.primary-service-card-head-item-heading {
    font-size: 22px;
    color: rgb(0, 38, 114);
    line-height: 1.5;
    font-weight: 600;
}

.primary-service-card-head-item-subheading {
    color: #475569;
    line-height: 1.5;
    min-height: 68px;
    margin-bottom: 0% !important;
}

.point-list-item {
    color: #475569;
}

.primary-point-list {
    list-style-type: none;
    padding: 0%;
    margin: 0%;
    display: grid;
    gap: 9px;
}

.point-list-item {
    background: #FDFDFD;
    border: 1px solid #F6F7F7;
    padding: 9px;
    border-radius: 9px;
    font-size: 16px;

}

.point-list-title {
    color: #002672;
    font-size: 14px;
    font-weight: 600;
    margin: 0% 0 1em 0;
}

.primary-service-card {
    border: 1px solid #E6E9EF;
    border-radius: 9px;
}



.primary-service-card .primary-service-card-icon-wrapper {
    padding: 9px;
    background: #EFF6FF;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
}

.primary-service-card .primary-service-card-icon-wrapper svg {
    width: auto;
    height: 24px;
}

.primary-service-card-footer .point-list-item {
    padding: 0%;
    border: none;
    font-size: 14px;
    background: transparent;
}

.primary-service-card-footer .primary-point-list {
    display: grid;
    grid-template-columns: 1fr 1fr;

}

.primary-service-card-footer {
    padding: 1em;
    background: #F7F9FF;
}


.primary-service-card-head,
.primary-service-card-body,
.primary-service-card-footer {
    padding: 2em;
}

.primary-service-card-body {
    padding-top: 0%;
}

.primary-service-card-head {
    padding-bottom: 1em;
    border-radius: 16px;
}

.primary-service-card-footer {
    border-top: 1px solid #286FED;
    border-radius: 16px;
}

.primary-service-card-footer .point-list-item::before {
    content: " ";
    display: block;
    height: 6px;
    width: 6px;
    background: #286FED;
    clip-path: circle();
}

/* .tb-hero-main>.col-lg-6:first-child {
    margin: auto;
} */

.primary-service-card-footer .point-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.leadership-tab-buttom {
    font-size: 14px;
}

.leadership-tab-button-wrapper {
    margin-bottom: 2em;
}

.secondary-feature-card-item-description {
    font-size: 14px;
    color: #475569;
}

.secondary-feature-card-item-name {
    color: #002672;
    font-weight: 500;
}

.primary-service-section {
    padding-top: 2px;
}

.leadership-section {
    padding-top: 72px;
}

@media (max-width: 991.98px) {
    .tb-services-page .tb-services-hero {
        padding: clamp(1rem, 2.4vw, 1.7rem) 0;
    }



    .tb-services-page .tb-services-hero-copy {
        text-align: left;
    }

    .tb-services-page .tb-services-actions {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .tb-services-page .tb-services-hero-art .hero-section-img {
        width: min(100%, 22rem);
        margin: 0 auto;
        display: block;
    }

    .tb-services-page .tb-services-hero-copy .hero-heading,
    .tb-services-page .tb-services-hero-copy .hero-heading span {
        font-size: var(--tb-heading-size-xl);
        line-height: 1.13;
        font-weight: 700;
    }

    .tb-services-page .tb-services-hero-copy .content,
    .tb-services-page .tb-services-hero-copy {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .legacy-navbar nav {
        display: none;
    }

    .navbar {
        border-radius: 12px;
        margin: 1em 1em;
        padding: 1em 1em;
        position: fixed;
        z-index: 9999;
        left: 0%;
        right: 0%;
        top: 0px;
        background: white;
    }



    .hero-section .content-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tb-services-page .tb-services-hero-card {
        gap: clamp(0.9rem, 2vw, 1.5rem);
    }

    .hero-section .img-wrapper {
        order: -1;
        width: 100%;
    }

    .hero-section-img {
        width: min(100%, 33rem);
        margin: 0 auto;
        display: block;
    }

    .primary-service-grid {
        grid-template-columns: 1fr;
    }

    .leadership-tab-button-wrapper {
        flex-direction: column;
    }

    .leadership-card {
        display: flex;
        gap: 2em;
        align-items: center;
        padding: 2em;
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
    }

    .footer-menu-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-brand img {
        width: auto;
        height: 28px;
    }

    .footer-copyright-wrapper {
        flex-direction: column;
    }

    .hero-section-cta-wrapper .cta-btn {
        padding: var(--tb-btn-pad-y) var(--tb-btn-pad-x);
    }

    .tb-services-page .hero-section-cta-wrapper {
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.65rem;
        justify-content: space-between;
    }

    .tb-services-page .hero-section-cta-wrapper .cta-btn {
        flex: 0 0 45%;
        width: 45%;
        max-width: 45%;
        margin: 0;
    }

    .section-header .section-header-title {
        font-size: 24px;
    }

    .section-header .section-header-title br {
        display: none;
    }

    .secondary-feature-section {
        padding: 2em 1em;
    }

    .note {
        line-height: 1.5;
    }

    .primary-service-section {
        padding: 2em 0em;
    }

    .leadership-section {
        padding: 2em 1em;
        background: #FFFFFF;
    }

    .cta-title {
        font-size: 18px;
    }


}

@media (max-width: 575.98px) {

    .tb-services-page .tb-services-hero-copy .hero-heading,
    .tb-services-page .tb-services-hero-copy .hero-heading span {
        font-size: 24px;
        line-height: 1.13;
        text-align: left;
    }
}

.section-header .section-header-title {
    font-family: var(--ff-primary);
    font-size: 28px;
    color: var(--clr-primary);
    text-align: center;
    margin-bottom: 16px;
    color: #0C1B56;
    font-weight: 600;
}

.secondary-feature-card-item-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0%;
    padding: 0%;
}

@media (min-width: 992px) {
    .hero-heading {
        font-size: var(--tb-fs-36);
        line-height: 1.13;
        color: var(--tb-blue-dark);
        text-align: left;
        margin-bottom: 1rem;
    }

    .hero-heading span {
        display: block;
        font-size: var(--tb-fs-36);
        line-height: 1.1;
        color: var(--tb-blue);
    }

    .section-header .section-header-title {
        font-size: 28px;
        line-height: 1.13;
        color: var(--tb-heading-color);
        text-align: center;
        font-weight: 700;
    }

    .section-description,
    .note,
    .primary-service-card-head-item-subheading,
    .secondary-feature-card-item-description,
    .point-list-item {
        font-size: clamp(var(--tb-fs-16), 1.2vw, var(--tb-fs-18));
        line-height: 1.55;
        color: #667486;
        font-size: var(--tb-fs-16) !important;
    }

    .primary-service-card-head-item-heading {
        font-size: 22px;
        line-height: 1.25;
        color: var(--tb-heading-color);
        font-weight: 600;
    }

    .secondary-feature-card .secondary-feature-card-item-name,
    .point-list-title {
        color: var(--tb-heading-color);
    }

    .secondary-feature-card .secondary-feature-card-item-name {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
    }

    .point-list-title {
        font-size: var(--tb-fs-16);
    }

    .note {
        color: var(--tb-blue);
    }

    .secondary-feature-card,
    .primary-service-card {
        border-color: var(--tb-border);
        border-radius: var(--tb-radius-lg);
        box-shadow: var(--tb-shadow-soft);
    }

    .primary-service-card-footer {
        border-top-color: var(--tb-blue);
        background: #f7f9ff;
    }

    .primary-service-card-footer .point-list-item::before {
        background: var(--tb-blue);
    }
}


.hero-section-img {
    width: 82%;
    height: auto;
}

.section-header .section-header-title {
    font-size: 28px;
    line-height: 1.3;
}

.section-description {
    font-size: 14px;
    color: var(--clr-secondary);
    font-family: var(--ff-primary);
    line-height: 1.5;
    margin: 1em auto;
    text-align: center;
}

.section-header {
    margin-bottom: 2em;
}

.leadership-card-caption h4 {
    font-family: var(--ff-primary);
    font-size: 14px;
    margin: 0% 0 6px 0;
    font-weight: 600;
}

.primary-service-card {
    position: relative;
}

.primary-service-card-head {
    position: sticky;
    top: 68px;
    z-index: 1;
    background: white;

}



.leadership-card .social-media-icon {
    position: absolute;
    top: 12px;
    right: 12px;
}

.leadership-card .social-media-icon svg {
    color: white;
}

.leadership-card .social-media-link img {
    height: 32px;
    width: auto;
}

.leadership-card::before {
    content: "";
    position: absolute;
    height: auto;
    width: auto;
    top: 0;
    right: -0;
    /* background-color: #1A2E4F; */
    transform: rotate(90deg);
    border-radius: 12px;
}

.cta-title {
    font-size: 28px;
    margin: 0 0 18px 0;
    color: #002672;
    font-weight: 500;
}

/* Services typography consistency with home page (desktop + mobile) */
.tb-services-page .hero-heading,
.tb-services-page .hero-heading span {
    font-size: var(--tb-fs-36);
    line-height: 1.13;
    font-weight: 700;
    color: var(--tb-blue-dark);
}

.tb-services-page .section-header .section-header-title,
.tb-services-page .cta-title {
    /* font-size: var(--tb-heading-size-xl); */
    line-height: 1.13;
    font-weight: 600;
    color: var(--tb-heading-color);
}

.tb-services-page .primary-service-card-head-item-heading {
    font-size: var(--tb-heading-size-md);
    line-height: 1.25;
    font-weight: 600;
    color: var(--tb-heading-color);
}

.tb-services-page .secondary-feature-card-item-name,
.tb-services-page .point-list-title,
.tb-services-page .leadership-card-caption h4 {
    font-size: var(--tb-fs-16);
    line-height: 1.35;
    font-weight: 600;
    color: var(--tb-heading-color);
}

.tb-services-page .section-description,
.tb-services-page .note,
.tb-services-page .primary-service-card-head-item-subheading,
.tb-services-page .secondary-feature-card-item-description,
.tb-services-page .point-list-item,
.tb-services-page .leadership-tab-buttom {
    font-size: clamp(var(--tb-fs-16), 1.2vw, var(--tb-fs-18));
    line-height: 1.55;
    font-weight: 400;
    color: #667486;
}

.tb-services-page .tb-services-tabs-shell {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    justify-content: center;
}

.tb-services-page .leadership-tab-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.44rem;
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
    margin-bottom: 30px;
}

.tb-services-page .leadership-tab-buttom {
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f6f9ff;
    color: #5d6e86;
    font-size: var(--tb-fs-16);
    line-height: 1;
    font-weight: 500;
    padding: 0.56rem 0.92rem;
    white-space: nowrap;
    box-shadow: none !important;
}

.tb-services-page .leadership-tab-buttom:hover {
    background: #edf3ff;
    color: #1d4f98;
}

.tb-services-page .leadership-tab-buttom.leadership-tab-buttom-active {
    background: #2f6be4;
    border-color: #2f6be4;
    color: #fff;
}

.tb-services-page .tb-services-tabs-nav {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d6e2f4;
    background: #fff;
    color: var(--tb-heading-color);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(12, 31, 73, 0.08);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tb-services-page .tb-services-tabs-nav:hover {
    border-color: #2f6be4;
    color: #2f6be4;
    background: #f5f9ff;
}

.tb-services-page .tb-services-tabs-nav svg {
    width: 16px;
    height: 16px;
    display: block;
}

.tb-services-page .tb-services-tabs-nav[hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {

    .tb-services-page .hero-heading,
    .tb-services-page .hero-heading span,
    .tb-services-page .section-header .section-header-title,
    .tb-services-page .cta-title {
        font-size: 24px;
        line-height: 1.15;
    }

    .tb-services-page .primary-service-card-head-item-heading {
        font-size: var(--tb-fs-24);
    }
}

/* Services Team mobile styling aligned with TruGenie Leadership Team */
@media (max-width: 767.98px) {
    .tb-services-page .leadership-section {
        padding-top: 1.4rem;
        padding-bottom: 1.4rem;
    }

    .tb-services-page .leadership-tab-button-wrapper {
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.44rem;
        margin-top: 0.9rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0;
        width: 100%;
        min-width: 0;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scrollbar-width: none;
    }

    .tb-services-page .leadership-tab-button-wrapper::-webkit-scrollbar {
        display: none;
    }

    .tb-services-page .leadership-tab-buttom {
        flex: 0 0 auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .tb-services-page .tb-services-tabs-shell {
        width: 100%;
        max-width: 100%;
    }

    .tb-services-page .tb-services-tabs-nav {
        display: inline-flex;
    }

    .tb-services-page .leadership-card {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.75rem;
        padding: 0.95rem;
        margin-bottom: 0.75rem;
        border-radius: 12px;
        text-align: left;
    }

    .tb-services-page .leadership-card::before {
        display: none;
    }

    .tb-services-page .leadership-card .img-wrapper {
        width: auto;
        margin: auto;
    }

    .tb-services-page .leadership-card img {
        /* width: 20%; */
        max-width: 100%;
        border-radius: 10px;
        object-fit: cover;
    }

    .tb-services-page .leadership-card-caption h4 {
        font-size: 15px;
        line-height: 1.32;
        margin-bottom: 0.35rem;
    }

    .tb-services-page .leadership-card-caption p {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .tb-services-page .leadership-card .social-media-icon {
        top: 0.75rem;
        right: 0.75rem;
    }

    .tb-services-page .leadership-card .social-media-link img {
        height: 24px;
        width: auto;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card-container,
    .tb-services-page .tb-engagement-section .secondary-feature-card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        align-items: stretch;
        grid-auto-rows: 1fr;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card,
    .tb-services-page .tb-engagement-section .secondary-feature-card {
        padding: 0.75rem;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card-icon-wrapper,
    .tb-services-page .tb-engagement-section .secondary-feature-card-icon-wrapper {
        width: 30px;
        height: 30px;
        padding: 7px;
    }

    .primary-point-list {
        gap: 6px;
    }

    .point-list-item {
        padding: 6px;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card-icon-wrapper svg,
    .tb-services-page .tb-engagement-section .secondary-feature-card-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card-caption,
    .tb-services-page .tb-engagement-section .secondary-feature-card-caption {
        margin-top: 0.65rem;
        flex: 1;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card-item-name,
    .tb-services-page .tb-engagement-section .secondary-feature-card-item-name {
        font-size: 14px;
        line-height: 1.35;
    }

    .tb-services-page .tb-services-hero-art .hero-section-img {
        width: 90%;
    }

    .hero-section-img {
        /* width: 50%; */
    }
}

@media (max-width: 359.98px) {

    .tb-services-page .tb-governance-section .secondary-feature-card-container,
    .tb-services-page .tb-engagement-section .secondary-feature-card-container {
        gap: 0.5rem;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card,
    .tb-services-page .tb-engagement-section .secondary-feature-card {
        padding: 0.65rem;
    }

    .tb-services-page .tb-governance-section .secondary-feature-card-item-name,
    .tb-services-page .tb-engagement-section .secondary-feature-card-item-name {
        font-size: 13px;
    }
}

/* Mobile slider for service team profiles */
@media (max-width: 767.98px) {
    .tb-services-page .leadership-tab {
        display: none;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 20px;
        align-items: stretch;
        padding-bottom: 0;
    }

    .tb-services-page .leadership-tab::-webkit-scrollbar {
        display: none;
    }

    .tb-services-page .leadership-tab:not([hidden]) {
        display: flex;
    }

    .tb-services-page .leadership-tab .leadership-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0;
    }

    .tb-services-page .leadership-section .tb-services-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.42rem;
        margin-top: 1rem;
    }

    .tb-services-page .leadership-section .tb-services-pagination-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #d2dff4;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.2s ease, opacity 0.2s ease;
    }

    .tb-services-page .leadership-section .tb-services-pagination-dot.is-active {
        background: #2f6be4;
        opacity: 1;
    }

    .tb-services-page .tb-services-hero-card {
        grid-template-columns: 1fr;
        padding: 110px 0 0 0;
    }

    .tb-services-page .tb-services-hero-art {
        order: -1;
        width: 100%;
        justify-content: center;
    }

}

@media (min-width: 768px) {
    .tb-services-page .leadership-section .tb-services-pagination {
        display: none;
    }
}