/********** Template CSS **********/


/* ✅ Force btn-outline-primary to use your color */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: var(--secondary) !important;
}

/* ✅ Force text-primary to use your color */
.text-primary {
    color: var(--primary) !important;
}

/* ✅ Force bg-dark to use heading/dark color */
.bg-dark {
    background-color: var(--dark) !important;
}

.footer.bg-dark {
    background-color: var(--dark) !important;
}

/* ✅ Force text-secondary */
.text-secondary {
    color: var(--secondary) !important;
}

.quck-links a :hover{
    color: var(--primary) !important;
}

/* ══════════════════════════════════════
   BUTTONS — btn-primary
══════════════════════════════════════ */
.btn-primary {
    background-color: var(--primary) !important;
    border-color:     var(--primary) !important;
    color:            var(--text) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--dark) !important;
    border-color:     var(--dark) !important;
    color:            var(--secondary) !important;
}

/* ══════════════════════════════════════
   BUTTONS — btn-outline-primary
══════════════════════════════════════ */
.btn-outline-primary {
    color:        var(--primary) !important;
    border-color: var(--primary) !important;
    background:   transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary) !important;
    color:            var(--secondary) !important;
}

/* ══════════════════════════════════════
   BADGE
══════════════════════════════════════ */
.badge.bg-primary {
    background-color: var(--primary) !important;
    color:            var(--text) !important;
}


/* ══════════════════════════════════════
   SPINNER
══════════════════════════════════════ */
.spinner-grow.text-primary {
    color: var(--primary) !important;
}

/* ══════════════════════════════════════
   BREADCRUMB active item
══════════════════════════════════════ */
body.cms-active-template-templateA .ta-page-header .breadcrumb-item.text-primary.active,
body.cms-active-template-templateA .ta-page-header .breadcrumb-item.active {
    color: var(--text) !important;
}

/* ══════════════════════════════════════
   ABOUT — border-start accent
══════════════════════════════════════ */
.border-start.border-primary {
    border-color: var(--primary) !important;
}

/* ══════════════════════════════════════
   TESTIMONIAL accent bar
══════════════════════════════════════ */
.bg-primary[style*="width: 60px"] {
    background-color: var(--primary) !important;
}



/* ══════════════════════════════════════
   NAV PILLS (Menu tabs)
══════════════════════════════════════ */
.nav-pills .nav-link.active {
    background-color: var(--primary) !important;
    color:            var(--text) !important;
}
.nav-pills .nav-link:not(.active) {
    color: var(--text) !important;
}
.nav-pills .nav-link:hover {
    background-color: var(--dark) !important;
    border-color:     var(--dark) !important;
    color:            var(--secondary) !important;
}



/* ══════════════════════════════════════
   CONTACT form inputs — always white
══════════════════════════════════════ */
.ta-contact-field,
.form-control.ta-contact-field,
.ta-contact-form .form-control {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
    border: 1px solid var(--dark) !important;
}

.ta-contact-field:focus,
.ta-contact-form .form-control:focus {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
    border-color: var(--dark) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary) 35%, transparent);
}

.ta-contact-form .form-floating > label {
    color: color-mix(in srgb, var(--text) 75%, var(--dark));
}

.ta-contact-form .form-floating > .ta-contact-field:focus ~ label,
.ta-contact-form .form-floating > .ta-contact-field:not(:placeholder-shown) ~ label,
.ta-contact-form .form-floating > .form-control:focus ~ label,
.ta-contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--dark);
}

.ta-contact-form .form-floating > .ta-contact-field::placeholder {
    color: transparent;
}

/* ══════════════════════════════════════
   TEAM member designation color
══════════════════════════════════════ */
.team-item .team-text span {
    color: var(--primary) !important;
}

/* ══════════════════════════════════════
   READ MORE links
══════════════════════════════════════ */
.service-text a.small,
.service-item a.small {
    color: var(--primary) !important;
}
.service-text a.small:hover,
.service-item a.small:hover {
    color: var(--dark) !important;
}

.bg-primary{
    background-color: var(--primary) !important;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: var(--text);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .dropdown-toggle {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .dropdown-toggle:hover,
.navbar .navbar-nav .dropdown-toggle:focus {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 25px;
        border-top: 1px solid var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background: var(--light);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        border-width: 12px;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}


/*** Facts ***/
.ta-fact-card {
    min-height: 300px;
}

.ta-fact-card-bg {
    min-height: 300px;
    width: 100%;
}

.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--light);
}

.ta-fact-overlay {
    padding: 1.5rem 1.75rem;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.ta-fact-overlay--has-icon {
    justify-content: space-between;
}

.ta-fact-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px;
}

.ta-fact-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ta-fact-index {
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
}

.ta-fact-middle {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    text-align: center;
    padding: 0.5rem 0;
}

.ta-fact-index--footer {
    font-size: clamp(1.1rem, 2.2vw, 1.65rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--primary);
    opacity: 0.8;
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0;
}

.ta-fact-label {
    color: var(--dark);
}

.ta-fact-desc,
.ta-fact-count,
.ta-fact-suffix {
    color: var(--text);
}

.ta-fact-label {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
}

.ta-fact-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-break: normal;
}

.ta-fact-count {
    font-size: 2.5rem;
    line-height: 1.05;
    color: var(--secondary);
}

.ta-fact-suffix {
    font-size: 1.65rem;
    line-height: 1.05;
    color: var(--secondary);
}

.ta-fact-stat {
    justify-content: center;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.ta-fact-middle .ta-fact-label {
    margin-top: 0;
}

.facts-overlay h1:not(.ta-fact-index) {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
    color: var(--primary) !important;
}


/*** Service ***/
body.cms-active-template-templateA .ta-template-a-page .service-item > .service-icon-wrap,
body.cms-active-template-templateA .ta-template-a-page .service-item > img.service-icon {
    text-align: center;
}

body.cms-active-template-templateA .ta-template-a-page .service-item .service-icon-wrap.ta-svc-icon-wrap {
    width: 64px;
    height: 64px;
    max-width: 64px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.cms-active-template-templateA .ta-template-a-page .service-item .service-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

body.cms-active-template-templateA .ta-template-a-page .service-item .service-text > i.fa {
    margin-left: auto;
    margin-right: auto;
}

.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: var(--text) !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--text);
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: var(--secondary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

body.cms-active-template-templateA .footer .btn.btn-link:hover,
body.cms-active-template-templateA .footer .btn.btn-link:hover::before {
    color: var(--light) !important;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--text);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/*** CMS Template A — mobile overflow & media alignment ***/
body.cms-active-template-templateA {
    overflow-x: clip;
}

body.cms-active-template-templateA #app {
    max-width: 100%;
    overflow-x: clip;
}

body.cms-active-template-templateA .ta-template-a-page {
    max-width: 100%;
    overflow-x: clip;
}

body.cms-active-template-templateA img,
body.cms-active-template-templateA video,
body.cms-active-template-templateA iframe {
    max-width: 100%;
}

.ta-about-media {
    min-height: 280px;
}

.ta-about-media-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background-color: #f4f6f8;
}

@media (min-width: 992px) {
    .ta-about-media {
        min-height: 400px;
        padding: 3rem 0 0 3rem;
    }

    .ta-about-media-img {
        position: absolute;
        inset: 0;
        min-height: 0;
    }
}

@media (max-width: 991.98px) {
    .ta-about-media-col {
        width: 100%;
    }

    .ta-about-media {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.ta-map-embed {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ta-map-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 280px;
    aspect-ratio: 4 / 3;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 0;
}

body.cms-active-template-templateA .footer .copyright [class*="col-"] {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* ══════════════════════════════════════
   Slide row transition (carousel sections)
══════════════════════════════════════ */
.slide-row {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.slide-row.slide-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════════════
   Hero stage
══════════════════════════════════════ */
body.cms-active-template-templateA .ta-template-a-page .ta-hero-stage {
    min-height: 600px;
}

body.cms-active-template-templateA .ta-template-a-page .ta-hero-shell--cms-synced {
    display: flex;
    flex-direction: column;
}

body.cms-active-template-templateA .ta-template-a-page .ta-hero-shell--cms-synced .ta-hero-stage {
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
}

body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav-prev {
    left: 1rem;
}

body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav-next {
    right: 1rem;
}

/* ══════════════════════════════════════
   CMS Template A — mobile & tablet (no overlap)
══════════════════════════════════════ */
@media (max-width: 991.98px) {
    body.cms-active-template-templateA {
        scroll-padding-top: 5.5rem;
    }

    body.cms-active-template-templateA .ta-template-a-page {
        text-align: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .container-xxl,
    body.cms-active-template-templateA .ta-template-a-page .ta-page-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .container-fluid.p-0.mb-5 {
        padding-left: 0;
        padding-right: 0;
    }

    body.cms-active-template-templateA .ta-template-a-page .display-2 {
        font-size: clamp(1.65rem, 7.5vw, 2.75rem);
    }

    body.cms-active-template-templateA .ta-template-a-page .display-6 {
        font-size: clamp(1.35rem, 5.5vw, 2rem);
    }

    /* Section accent: left bar → top bar, centered */
    body.cms-active-template-templateA .ta-template-a-page .border-start.border-5.border-primary {
        border-left: none !important;
        border-top: 5px solid var(--primary) !important;
        padding-left: 0 !important;
        padding-top: 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    body.cms-active-template-templateA .ta-template-a-page .text-lg-end {
        text-align: center !important;
    }

    body.cms-active-template-templateA .ta-template-a-page .row.g-5.align-items-end.mb-5,
    body.cms-active-template-templateA .ta-template-a-page .row.g-5.align-items-end.mb-5 > [class*="col-"],
    body.cms-active-template-templateA .ta-template-a-page .ta-offer-section--has-bg {
        align-items: flex-start;
        background-size: cover !important;
        background-position: center center !important;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-offer-section .row > [class*="col-"],
    body.cms-active-template-templateA .ta-template-a-page .ta-contact-section .row > .col-lg-5,
    body.cms-active-template-templateA .ta-template-a-page .row.g-5 > .col-lg-5,
    body.cms-active-template-templateA .ta-template-a-page .row.g-5 > .col-lg-6:first-child {
        text-align: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-offer-section .col-lg-7.d-flex,
    body.cms-active-template-templateA .ta-template-a-page .ta-contact-section .d-flex.align-items-start,
    body.cms-active-template-templateA .ta-template-a-page .ta-fact-stat,
    body.cms-active-template-templateA .ta-template-a-page .d-flex.gap-2.mt-4,
    body.cms-active-template-templateA .ta-template-a-page .d-flex.align-items-center.justify-content-center.gap-3 {
        justify-content: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-contact-section .d-flex.align-items-start {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-contact-section .d-flex.align-items-start i {
        margin-top: 0 !important;
        margin-bottom: 0.35rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .col-sm-4.d-flex,
    body.cms-active-template-templateA .ta-template-a-page .col-sm-6.d-flex {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .about-feature-icon,
    body.cms-active-template-templateA .ta-template-a-page .col-sm-4.d-flex > i,
    body.cms-active-template-templateA .ta-template-a-page .col-sm-6.d-flex > i {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    /* Navbar: prevent brand / toggler overlap */
    body.cms-active-template-templateA .navbar.navbar-expand-lg {
        flex-wrap: wrap;
    }

    body.cms-active-template-templateA .navbar .navbar-brand {
        max-width: calc(100% - 3.5rem);
    }

    body.cms-active-template-templateA .navbar .navbar-brand h1,
    body.cms-active-template-templateA .navbar .navbar-brand img {
        max-width: 100%;
    }

    body.cms-active-template-templateA .navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    body.cms-active-template-templateA .ta-template-a-page .row.g-4 {
        justify-content: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .menu-tabs {
        justify-content: center !important;
    }

    body.cms-active-template-templateA .ta-template-a-page .menu-tab-select-wrap,
    body.cms-active-template-templateA .ta-template-a-page .menu-tab-single-label {
        margin-left: auto;
        margin-right: auto;
    }

    body.cms-active-template-templateA .ta-template-a-page .testimonial-item {
        text-align: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .testimonial-item .testimonial-client-img {
        margin-left: auto;
        margin-right: auto;
    }

    body.cms-active-template-templateA .ta-template-a-page .testimonial-item .bg-primary[style*="width: 60px"] {
        margin-left: auto;
        margin-right: auto;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-fact-middle,
    body.cms-active-template-templateA .ta-template-a-page .ta-fact-index {
        text-align: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-fact-icon-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    /* Forms & selects stay readable (left-aligned text inside fields) */
    body.cms-active-template-templateA .ta-template-a-page .ta-contact-form,
    body.cms-active-template-templateA .ta-template-a-page .form-control,
    body.cms-active-template-templateA .ta-template-a-page .form-select,
    body.cms-active-template-templateA .ta-template-a-page .menu-tab-select,
    body.cms-active-template-templateA .ta-template-a-page input,
    body.cms-active-template-templateA .ta-template-a-page textarea,
    body.cms-active-template-templateA .ta-template-a-page select {
        text-align: left;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-stage {
        min-height: min(520px, 85vh);
        align-items: flex-start;
        padding-top: 2.5rem;
        padding-bottom: 4.5rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-shell--cms-synced .ta-hero-stage {
        min-height: 100%;
        align-items: center;
        justify-content: center;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-shell {
        overflow-x: clip;
        max-width: 100%;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-stage-content {
        padding-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-content-stage {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
        min-width: 0;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-slide-panel,
    body.cms-active-template-templateA .ta-template-a-page .ta-hero-slide-panel .display-2,
    body.cms-active-template-templateA .ta-template-a-page .ta-hero-slide-panel .ta-section-kicker,
    body.cms-active-template-templateA .ta-template-a-page .ta-hero-slide-panel .fs-5 {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-cta-row {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 0.75rem !important;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-cta-row .btn {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-cta-spacer {
        display: none !important;
        width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav {
        top: auto;
        bottom: 0.75rem;
        transform: none;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav-prev {
        left: 0.75rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav-next {
        right: 0.75rem;
    }

    /* Team: stack caption below photo (no absolute overlay) */
    body.cms-active-template-templateA .ta-template-a-page .team-item {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    body.cms-active-template-templateA .ta-template-a-page .team-item .team-text {
        position: relative !important;
        width: 100% !important;
        bottom: auto !important;
        left: auto !important;
    }

    body.cms-active-template-templateA .ta-template-a-page .team-item:hover .team-text {
        width: 100% !important;
    }

    /* Facts: prevent large index from spilling */
    body.cms-active-template-templateA .ta-template-a-page .ta-fact-card {
        min-height: 240px;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-fact-index--footer {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        line-height: 1;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-fact-icon-wrap {
        width: 50px;
        height: 50px;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-fact-count {
        font-size: 2.15rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-fact-overlay {
        padding: 1.15rem 1.25rem;
        overflow: hidden;
    }

    /* Section rows: full-width stacked columns with spacing */
    body.cms-active-template-templateA .ta-template-a-page .row.g-5 > [class*="col-"],
    body.cms-active-template-templateA .ta-template-a-page .row.g-4 > [class*="col-"] {
        margin-bottom: 0.25rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-section-heading-row > [class*="col-"] + [class*="col-"],
    body.cms-active-template-templateA .ta-template-a-page .ta-offer-row > [class*="col-"] + [class*="col-"],
    body.cms-active-template-templateA .ta-template-a-page .ta-testimonials-row > [class*="col-"] + [class*="col-"] {
        margin-top: 1.25rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .service-item,
    body.cms-active-template-templateA .ta-template-a-page .team-item {
        margin-bottom: 1rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .testimonial-item {
        margin-bottom: 1rem;
    }

    /* Footer columns */
    body.cms-active-template-templateA .footer .row.g-5 > [class*="col-"] {
        text-align: center;
    }

    body.cms-active-template-templateA .footer .d-flex.pt-2 {
        justify-content: center;
    }

    body.cms-active-template-templateA .footer .btn.btn-link {
        display: inline-block;
    }

    body.cms-active-template-templateA .footer .copyright .row > [class*="col-"] {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    body.cms-active-template-templateA .ta-template-a-page .ta-hero-stage {
        padding-top: 2rem;
        padding-bottom: 5rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav-prev {
        left: 0.5rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav-next {
        right: 0.5rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .col-lg-4.col-md-6,
    body.cms-active-template-templateA .ta-template-a-page .col-xl-3.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    body.cms-active-template-templateA .ta-template-a-page .d-flex.align-items-center.justify-content-center.gap-3.mt-4 {
        flex-direction: column;
        width: 100%;
    }

    body.cms-active-template-templateA .ta-template-a-page .d-flex.align-items-center.justify-content-center.gap-3.mt-4 .btn {
        width: 100%;
        max-width: 280px;
    }

    body.cms-active-template-templateA .ta-template-a-page .team-item img.slide-card-img {
        height: auto;
        max-height: 320px;
    }

    body.cms-active-template-templateA .ta-template-a-page .slide-card-img {
        height: auto;
        max-height: 240px;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-nav {
        padding: 0.35rem 0.55rem;
        font-size: 0.85rem;
    }

    body.cms-active-template-templateA .ta-template-a-page .ta-hero-stage {
        padding-bottom: 4.25rem;
    }
}