/*
 Theme Name: Carely Digital Theme 2
 Author: Jan Kuralt
 Description: A simple WordPress theme with shared header and footer.
 Version: 2.0
 Text Domain: carely_digital_theme_2
*/

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
    --fira-sans: "Fira Sans", sans-serif;
    --logo-manrope: "Manrope", sans-serif;
    --primaryColor: #3346F4;
    --whiteColor: #fff;
    --blackColor: #000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fira-sans);
    font-size: 18px;
    font-weight: 400;
    background: #f3f7ff;
    color: #3C3C44;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    color: #030931;
}

p,
figure,
label {
    margin: 0;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

small {
    font-size: inherit;
}

a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: 0.2s all ease;
    -webkit-transition: 0.2s all ease;
}

a:hover,
a:active,
a:visited,
a:focus {
    text-decoration: none;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

input,
button {
    background-color: transparent;
    border: 1px solid transparent;
    outline: none;
    transition: 0.2s all ease;
    -webkit-transition: 0.2s all ease;
}

input[type=number] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}

select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(images/select-input-arrow.png);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position: calc(100% - 15px) 50%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

::selection {
    color: var(--whiteColor);
    background: var(--primaryColor);
}

::-webkit-selection {
    color: var(--whiteColor);
    background: var(--primaryColor);
}

::-moz-selection {
    color: var(--whiteColor);
    background: var(--primaryColor);
}

.scrolltotop {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--primaryColor);
    text-align: center;
    font-size: 22px;
    color: #ffffff;
    position: fixed;
    right: 30px;
    bottom: 25px;
    display: none;
    animation: lab_top_up 5s linear infinite;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1;
}

.scrolltotop i {
    color: var(--whiteColor);
}

@keyframes lab_top_up {
    0% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

.pluse,
.pluse2 {
    position: relative;
    top: 10px;
    left: -8px;
    z-index: -1;
}

.pluse::before,
.pluse2::before {
    width: 40px;
    height: 40px;
}

.pluse::after,
.pluse::before,
.pluse2::after,
.pluse2::before {
    background: var(--primaryColor);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    display: block;
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
}

.pluse::after,
.pluse2::after {
    width: 30px;
    height: 30px;
    background: transparent;
    margin-left: -15px;
    margin-top: -15px;
}

.pluse::before {
    -webkit-animation: pluse_animate 2.5s infinite linear;
    animation: pluse_animate 2.5s infinite linear;
}

.pluse2::before {
    -webkit-animation: pluse_animate 3s infinite linear;
    animation: pluse_animate 3s infinite linear;
}

@keyframes pluse_animate {
    0% {
        opacity: 1;
        -webkit-transform: translate(-50%, -50%) scale(0.3);
        transform: translate(-50%, -50%) scale(0.3);
    }

    100% {
        opacity: 0;
        -webkit-transform: translate(-50%, -50%) scale(2);
        transform: translate(-50%, -50%) scale(2);
    }
}

/*======= header-area design =======*/
.header-inner {
    background-image: url(images/hero-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-bottom: 56px;
}

.logo-box a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--logo-manrope);
    font-weight: 700;
    color: #000;
    font-size: 22px;
}

.logo-box img {
    width: 40px;
    height: 40px;
}

.logo-box a span {
    padding-top: 2px;
    display: inline-block;
}

.header-nav {
    padding: 20px 0;
}

.main-menu ul {
    display: flex;
    gap: 28px;
}

.main-menu ul li a {
    color: #030931;
    font-size: 16px;
    position: relative;
}

.main-menu ul li a:after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primaryColor);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.main-menu ul li a:hover:after,
.main-menu ul li a.active:after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu ul li a:hover,
.main-menu ul li a.active {
    color: var(--primaryColor);
}

.menu-right-comp {
    display: flex;
    align-items: center;
    gap: 35px;
}

.bordered-btn a {
    padding: 12px 25px;
    border: 1px solid var(--primaryColor);
    font-size: 16px;
    font-weight: 500;
    /*! text-transform: uppercase; */
    border-radius: 9px;
    color: #1A56DB;
}

.bordered-btn a:hover {
    background-color: var(--primaryColor);
    color: var(--whiteColor);
}

.humberger-menu {
    cursor: pointer;
}

.humberger-menu .line {
    width: 33px;
    height: 3px;
    background-color: #000;
    display: block;
    margin: 7px 0;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.offcanvas-header {
    border-bottom: 1px solid #ddd;
}

.offcanvas-body {
    padding: 1rem 0rem !important;
}

.offcanvas {
    max-width: 350px;
    border-right: 2px solid var(--primaryColor) !important;
}

.offcanvas-header {
    border-bottom: 1px solid #ddd;
}

.offcanvas-body {
    padding: 25px 0 !important;
}

.offcanvas-body ul li a {
    padding: 8px 15px;
    font-size: 16px;
    display: block;
    width: 100%;
    border-left: 2px solid transparent;
}

.offcanvas-header img {
    max-width: 180px;
}

.offcanvas-body ul li a:hover {
    background-color: #efefef;
    padding-left: 17px;
    border-color: var(--primaryColor);
}

.header-content {
    padding-top: 72px;
    text-align: center;
}

.head-cnt-top {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.head-cnt-top h4 {
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 4%;
    text-transform: uppercase;
}

.head-cnt-top h1 {
    font-weight: 500;
    font-size: 64px;
    line-height: 100%;
    padding-top: 22px;
    padding-bottom: 38px;
}

.head-cnt-top h1 span {
    color: var(--primaryColor);
}

.bg-btn-primary * {
    padding: 12px 48px;
    border-radius: 8px;
    background: #3346F4;
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    /* 24px */
}

.bg-btn-primary *:hover {
    background: #2537d4;
}

.head-cnt-top h5 {
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 3%;
    text-transform: uppercase;
    color: #7FB4FF;
    padding-top: 64px;
}

.head-cnt-top ul {
    padding-top: 24px;
}

.head-cnt-bottom {
    padding-top: 72px;
}

.head-cnt-bottom .image-holder {
    display: inline-block;
    width: 90%;
}

.head-cnt-bottom h4 {
    font-weight: 400;
    font-size: 24px;
    text-align: center;
    padding-top: 56px;
    padding-bottom: 18px;
}

.head-cnt-bottom h2 {
    font-weight: 600;
    font-size: 36px;
    text-align: center;
}

.head-cnt-bottom h2 span {
    color: var(--primaryColor);
}

.head-cnt-bottom .bott-cnt {
    max-width: 1024px;
    display: inline-block;
}

.dark-area {
    padding: 120px 60px 120px 60px;
    background-color: #030931;
    background-image: url(images/contact-overlay.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.dark-area .pain-text {
    color: white;
    font-weight: 500;
    font-size: 36px;
    line-height: 56px;
    text-align: center;
}

.dark-area .pain-text span {
    color: #3346F4;
}

/* step-area */
.step-area {
    padding-top: 100px;
}

.single-step-row {
    padding-bottom: 120px;
}

.step-left {
    padding-right: 50px;
}

.step-left span {
    color: #F49E4C;
    font-weight: 500;
    font-size: 56px;
    line-height: 100%;
    letter-spacing: 3%;
    display: block;
}

.step-left h3 {
    font-weight: 500;
    font-size: 36px;
    line-height: 110%;
    padding: 15px 0;
}

.step-right {
    padding-left: 50px;
}

.step-reverse .step-right {
    padding-left: 0;
    padding-right: 50px;
}

.step-reverse .step-left {
    padding-right: 0;
    padding-left: 50px;
}

/* support-area */
.support-area {
    padding-top: 80px;
    padding-bottom: 100px;
}

.support-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.support-inner .heading {
    flex: 0 0 820px;
    width: 820px;
}

.support-inner .heading h2 {
    font-size: 43px;
    font-weight: 500;
}

/* slider-area */

.swiper-wrapper {
    padding-bottom: 100px;
}

.hp-slider-area .swiper {
    margin-left: calc((100vw - 1270px) / 2);
}

.hp-slider-area .swiper-slide {
    background: #D2E9FF;
    padding: 24px;
    border-radius: 8px;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
}

.hp-slider-area .slide-card span {
    font-weight: 500;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 3%;
    color: var(--primaryColor);
}

.hp-slider-area .slide-card h3 {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;
    padding: 15px 0;
}

.swiper-controler div {
    position: absolute;
    transform: translateY(178px);
    left: 0px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    padding: 8px;
    color: #fff;
    background-color: var(--primaryColor);
}

.swiper-controler div.swiper-button-next {
    left: 50px;
}

.swiper-controler div:after {
    display: none;
}

.swiper-controler div:hover {
    background-color: #1248be;
}

/* grow-helthcare  */
.grow-helthcare {
    background-color: #030931;
    margin-top: 70px;
    background-image: url(images/contact-overlay.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 88px 0;
}

.grow-hc-inner {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: #F3F7FF;

}

.grow-hc-inner h2 {
    font-weight: 500;
    font-size: 36px;
    color: #D2E9FF;
    padding: 0 20px;
    text-align: center;
    padding-bottom: 24px;
}

.grow-hc-inner p {
    padding-bottom: 24px;
}

.grow-hc-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grow-hc-form label {
    padding-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: left;
}

.grow-hc-form input,
.grow-hc-form select {
    width: 100%;
    display: block;
    background-color: #F9FAFB;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--primaryColor);
    color: #6B7280;
}

.grow-hc-form input::placeholder {
    color: #6B7280;
}

#success-message {
    padding: 145px 0;
}

/* .footer-area  */
.footer-area {
    background-color: #030931;
    padding-top: 120px;
    padding-bottom: 125px;
}

.footer-logo .logo-box span {
    font-weight: 700;
    font-size: 26.88px;
    color: #fff;
    line-height: 100%;
}

.footer-logo p {
    color: #F3F7FF;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -2%;
    padding-top: 20px;
}

.footer-links h4,
.footer-social h4 {
    color: #B2C6FF;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: -2%;
    padding-bottom: 30px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-links ul li a {
    line-height: 150%;
    letter-spacing: -2%;
    color: #F3F7FF;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: var(--primaryColor);
}

.footer-social ul {
    display: flex;
    gap: 15px;
    color: #F3F7FF;
    font-size: 25px;
}

/* product page design  */
.product-header .header-inner {
    background-image: none;
}

.product-hero {
    padding-bottom: 90px;
}

.product-hero span {
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 3%;
    text-transform: uppercase;
    display: block;
    color: var(--primaryColor);
}

.product-hero h3 {
    font-weight: 500;
    font-size: 64px;
    line-height: 100%;
    padding-top: 16px;
}

.skltbs-tab-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0px 1px 2px 0px #00000014;
}

.skltbs-tab-group li {
    text-align: center;
}

.skltbs-tab-group li button {
    background: #FFFFFF;
    padding: 16px;
    width: 100%;
    height: 100%;
    color: #6B7280;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    border-right: 2px solid #f3f7ff;
}

.skltbs-tab-group li:first-child button {
    border-radius: 7px 0 0 7px;
}

.skltbs-tab-group li:last-child button {
    border-radius: 0 7px 7px 0;
    border: 0;
}

.skltbs-tab-group button.skltbs-active {
    background: #E7F3FF;
    color: var(--primaryColor);
}

#product-tab-cont .step-left span {
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 3%;
    text-transform: uppercase;
    color: var(--primaryColor);
}

#product-tab-cont .step-left h3 {
    font-weight: 500;
    font-size: 48px;
    line-height: 100%;
    color: var(--primaryColor);
    padding: 22px 0;
}

.skltbs-panel .container {
    padding: 0;
}

/*= About Page Strat Here =*/

.about-header-inner {
    background-image: initial;
    padding-bottom: 0;
}

.sa-about-section {
    padding-top: 90px;
}

.sa-about-inner1 p {
    font-size: 18px;
    font-weight: 500;
    color: var(--primaryColor);
    text-transform: uppercase;
}

.sa-about-inner1 h1 {
    padding-top: 12px;
    font-size: 64px;
    font-weight: 500;
    color: #030931;
}

.sa-about-inner2 {
    padding-top: 90px;
}

.sa-about-inner2 h2 {
    font-size: 58px;
    font-weight: 400;
    color: var(--primaryColor);
}

.sa-about-inner2 h2 span {
    font-weight: 600;
}

.sa-about-inner2 img {
    padding-top: 55px;
}

/* Founding Section */

.sa-founding-section {
    padding-top: 70px;
}

.sa-founding-items {
    padding-top: 90px;
    max-width: 510px;
}

.sa-founding-items h6 {
    font-size: 18px;
    font-weight: 500;
    color: #2554FF;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sa-founding-items h2 {
    padding-top: 18px;
    font-size: 48px;
    font-weight: 500;
    color: var(--primaryColor);
}

.sa-founding-items-inner1 {
    max-width: 410px;
}

.sa-founding-items p {
    padding-top: 16px;
    font-size: 18px;
    color: #3C3C44;
}

.sa-miha-section {
    padding-top: 75px;
}

.sa-miha-items {
    padding-top: 50px;
}

.sa-miha-items p {
    padding-top: 16px;
    font-size: 18px;
    color: #3C3C44;
}

/* Team section */

.sa-team-section {
    padding-top: 110px;
    padding-bottom: 70px;
}

.sa-team-inner1 h6 {
    font-size: 18px;
    font-weight: 500;
    color: #2554FF;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sa-team-inner1 h2 {
    padding-top: 18px;
    font-size: 48px;
    font-weight: 500;
    color: var(--primaryColor);
}

.sa-team-inner1 p {
    padding-top: 16px;
    font-size: 18px;
    color: #3C3C44;
}

.sa-team-inner2 {
    padding-top: 60px;
}

.sa-team-items {
    padding-top: 60px;
}

.sa-team-items-img {
    height: 170px;
    width: 170px;
    line-height: 170px;
    border-radius: 50%;
    background: #E7F3FF;
    text-align: center;
    overflow: hidden;
}

.sa-team-items-text h6 {
    padding-top: 35px;
    font-size: 18px;
    font-weight: 500;
    color: #3C3C44;
}

.sa-team-items-text p {
    padding-top: 7px;
    font-size: 18px;
    font-weight: 400;
    color: #3C3C44;
}

article {
    position: relative;
    padding-bottom: 30px;
}

.overflow-hide {
    position: absolute;
    left: 0px;
    bottom: 80px;
    width: 100%;
    height: 180px;
    background: linear-gradient(transparent, #f3f7ff);
}


/*
 * Platform Page - Custom Tab Styling
 * -------------------------------------------------- */

.platform-tabs-header-container h1 {
    font-weight: 600;
    margin-bottom: 20px;
}

.platform-tabs-header-container {
    padding: 2rem;
}

.platform-content-area {
    background-image: url(images/hero-bg.png);
    background-size: cover;
    background-position: center;
    background-color: #fff;
    /* Fallback color */
    padding: 1rem;
    margin-bottom: -70px
}


.platform-tabs-container h2 {
    font-weight: 500;
    margin-bottom: 20px;
}

.platform-tabs-container h5 {
    margin-bottom: 0.5rem;
}

.platform-tabs-container {
    padding-bottom: 6rem;
}

.platform-tabs-container .tab-content {
    padding: 1rem;
}

@media (min-width: 700px) {
    .platform-tabs-container .tab-content {
        padding: 2rem;
    }
}

/* Wrapper for the tab container */
.platform-tabs-wrapper {
    background-color: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    margin-bottom: 60px;
}

.platform-tabs-wrapper .nav-item {
    display: flex;
    align-items: stretch;
}

.platform-tabs-wrapper .nav-tabs.nav-fill .nav-link {
    border: none;
    border-radius: 8px;
    color: #6B7280;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1rem;

    flex-grow: 1;
    /* This forces the button to take up all space in the li */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Style for the active tab button */
.platform-tabs-wrapper .nav-tabs.nav-fill .nav-link.active {
    background-color: #eef0ff;
    /* Light blue background */
    color: var(--primaryColor);
    font-weight: 600;
}

/* Remove the default bottom border from the tab list */
.platform-tabs-wrapper .nav-tabs {
    border-bottom: none;
}

.platform-banner-inner {
    background-image: url(images/apply-background.png);
    background-size: cover;
    background-color: #eef0ff;
    /* Light blue background */
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 1000px) {
    .single-step-row .row {
        row-gap: 45px;
    }
}

.tab-pane .step-area .step-left h2 {
    color: var(--primaryColor);
}

.tab-pane,
.tab-pane * h5 {
    color: #3C3C44;
}

.tab-pane {
  overflow: hidden;
  pointer-events: none;
}


/*
 * Benefits Page - Custom Styling
 * -------------------------------------------------- */
/* --- Section Defaults --- */
.journey-section,
.roles-section {
    padding-top: 50px;
    margin-top: 0px;
    margin-bottom: -70px;
}

.section-title {
    margin-bottom: 2rem;
    font-weight: 600;
    color: #3C3C44;
}

#journey-intro-text {
    padding-left: 20px;
}

.journey-img {
    padding-bottom: 75px;
}


@media screen and (min-width: 1000px) {
    .journey-img {
        margin-top: -200px;
    }

    .journey-section,
    .roles-section {
        padding-top: 50px;
        margin-top: 25px;
        margin-bottom: -70px;
    }
}

.journey-section h1 {
    font-weight: 600;
    line-height: 1.3;
}

.journey-section .lead {
    color: #3C3C44;
}

/* --- Roles & Benefits Section --- */
.roles-section {
    background-color: #FDEED7;
    background-image:
        url('images/journey-bg-vec.svg'),
        linear-gradient(transparent, #f0b88b);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: all 2s ease-in-out;
}

/* Tab Navigation Styling */
.roles-tab-grid {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.nav-link-grid {
    /* Make the button fill the entire column */
    width: 100%;

    /* Prevent text from wrapping inside the button */
    white-space: nowrap;

    /* Re-apply styling from previous version */
    background-color: var(--whiteColor);
    color: #6B7280;
    border: 1px solid #dee2e6;
    border-radius: 20px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.nav-link-grid.active,
.nav-link-grid:hover {
    background-color: #381BB7;
    color: var(--whiteColor);
    border-color: #381BB7;
}

.roles-section .nav-pills .nav-link.active,
.roles-section .nav-pills .nav-link:hover {
    background-color: #381BB7;
    color: var(--whiteColor);
    border-color: #381BB7;
}

/* Tab Content Styling */
.roles-section .tab-content {
    padding-top: 1rem;
    min-height: 650px;
}

.roles-section .tab-content h3 {
    color: var(--primaryColor);
    font-weight: 600;
    margin-bottom: 1rem;
}

.roles-section .tab-content p {
    line-height: 1.7;
}

.testimonial-image {
    max-width: 360px;
    width: 100%;
    height: auto;
    padding: 20px;
}

.testimonial-image-logo {
    max-width: 125px;
    margin-bottom: 15px;
}

/* Testimonial Block */
.testimonial .quote {
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
}

.testimonial .author,
.testimonial .author-title {
    line-height: 1.2;
    font-style: normal;
}

.testimonial .author {
    font-weight: 700;
}

.testimonial .author-title {
    font-size: 16px;
}

/* Stats Container - FIXED FOR MOBILE */
.stats-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: nowrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    color: var(--primaryColor);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 0px;
    /* Allows flex items to shrink below their content size */
    max-width: 200px;
}

.stat-item .stat-number {
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
}

.stat-item .stat-label {
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
}

/* CRITICAL: Prevent horizontal scrolling on mobile */
* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile Responsive Fixes */
@media screen and (max-width: 768px) {

    .stat-item {
        padding: 15px;
        text-align: center;
    }

    .testimonial .quote {
        font-size: 18px;
    }

    .testimonial-image {
        padding: 10px;
    }

    .roles-section .tab-content {
        min-height: auto;
    }

    .nav-link-grid {
        white-space: normal;
        /* Allow text wrapping on mobile */
        text-align: center;
    }


    #journey-intro-text {
        padding-left: 10px;
    }
}

@media screen and (max-width: 576px) {
    .stats-container {
        gap: 0.75rem;
    }

    .stat-item {
        padding: 12px;
    }

    .testimonial .quote {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .journey-section,
    .roles-section {
        padding: 4rem 0;
    }

    #journey-intro-text {
        padding-left: 5px;
    }

    /* Ensure Bootstrap columns don't overflow */
    .col-md-10,
    .col-lg-7,
    .col-lg-5,
    .col-lg-6,
    .col-sm-6,
    .col-lg-3,
    .col-12 {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix button with "Discover your Journey" */
    .bg-btn-primary {
        max-width: 100%;
        overflow: hidden;
    }

    /* Prevent text from forcing width */
    .nav-link-grid {
        font-size: 14px;
        padding: 8px 12px !important;
    }
}