/* --- Base and Typography --- */
body {
    background-color: #F7F5F2;
    color: #212121;
    overflow-x: hidden;
}

/* --- Custom Color Variables --- */
:root {
    --bcg-green: #00A352;
    --bcg-green-hover: #008f47;
    --bcg-dark-green: #1D3531;
}

/* --- Buttons and Links --- */
.btn-primary {
    background-color: var(--bcg-green);
    color: white;
    padding: 8px 16px;
    /* Smaller padding for mobile */
    font-weight: 500;
    font-size: 0.875rem;
    /* Smaller font size for mobile */
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
    border-radius: 4px;
}

/* Larger button styles for tablets and desktops */
@media (min-width: 640px) {
    .btn-primary {
        padding: 10px 24px;
        font-size: 1rem;
    }
}

.link-arrow {
    color: var(--bcg-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.link-arrow::after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease-in-out;
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

/* --- GSAP Animation Helper Styles --- */
#hero-heading .word-wrapper,
#growth-heading .word-wrapper,
#growth-subheading .word-wrapper,
#subscribe-heading .word-wrapper,
#subscribe-subheading .word-wrapper,
#sales-category .word-wrapper,
#sales-heading .word-wrapper,
#sales-link .word-wrapper,
#data-heading .word-wrapper,
#data-subheading .word-wrapper,
#solutions-heading .word-wrapper,
#about-heading .word-wrapper,
#about-subheading .word-wrapper,
#industries-heading .word-wrapper,
#testimonial-heading .word-wrapper,
#insights-heading .word-wrapper,
#careers-heading .word-wrapper,
#careers-subheading .word-wrapper,
#contact-heading .word-wrapper,
#contact-subheading .word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

#hero-heading .word,
#growth-heading .word,
#growth-subheading .word,
#subscribe-heading .word,
#subscribe-subheading .word,
#sales-category .word,
#sales-heading .word,
#sales-link .word,
#data-heading .word,
#data-subheading .word,
#solutions-heading .word,
#about-heading .word,
#about-subheading .word,
#industries-heading .word,
#testimonial-heading .word,
#insights-heading .word,
#careers-heading .word,
#careers-subheading .word,
#contact-heading .word,
#contact-subheading .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.leadership-bg {
    background-image: url('https://web-assets.bcg.com/dims4/default/3f537ed/2147483647/strip/true/crop/3501x1094+0+184/resize/1920x600!/format/webp/quality/90/?url=http%3A%2F%2Fboston-consulting-group-brightspot.s3.amazonaws.com%2F79%2Fb6%2Ff2d3e73941d0b1572be294e16df8%2Fgroup-18.png');
    background-color: #3d322a;
    background-size: cover;
    background-position: center;
}

.image-overlay-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 500px;
}

.image-overlay-container .overlay-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.image-overlay-container .overlay-content {
    position: relative;
    z-index: 2;
}

/* --- HERO CAROUSEL V2 STYLES --- */
.hero-carousel-v2 {
    height: 450px;
    padding-top: 20px;
    padding-bottom: 50px;
}

@media (min-width: 768px) {
    .hero-carousel-v2 .swiper-slide {
        width: 45%;
    }
}

@media (min-width: 1024px) {
    .hero-carousel-v2 .swiper-slide {
        width: 31%;
    }
}

.hero-carousel-v2 .swiper-slide {
    width: 85%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: scale(0.8);
    position: relative;
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

@media (min-width: 768px) {
    .hero-carousel-v2 .swiper-slide {
        width: 45%;
    }
}

@media (min-width: 1024px) {
    .hero-carousel-v2 .swiper-slide {
        width: 31%;
    }
}

.hero-carousel-v2 .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.hero-carousel-v2 .swiper-slide img {
    width: 100%;
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-v2 .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.518);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.7s ease-out;
}

.hero-carousel-v2 .swiper-slide-active .slide-overlay {
    opacity: 1;
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    /* Adjusted for mobile */
}

@media (min-width: 768px) {
    .hero-nav {
        padding-left: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-nav {
        padding-left: 6.5rem;
    }
}

.hero-nav .swiper-button-prev,
.hero-nav .swiper-button-next {
    position: static;
    height: auto;
    width: auto;
    margin: 0;
    color: #212121;
}

.hero-nav .swiper-button-prev::after,
.hero-nav .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 900;
}

.hero-nav .swiper-pagination-fraction {
    position: static;
    width: auto;
    font-size: 0.875rem;
    color: #212121;
}

/* --- Ribbon Section --- */
.ribbon-section {
    width: 100%;
    font-family: "Bebas Neue", sans-serif;
    background-color: #ffffff00;
    padding: 1rem 0;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.ribbon-animated-wrapper {
    display: flex;
    animation: scroll-left-to-right 10s linear infinite;
    /* Slower scroll */
}

.ribbon-content-block {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
}

.ribbon-text {
    font-weight: 600;
    font-size: 2rem;
    /* Mobile font size */
    color: #00360442;
    margin: 0 1.5rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .ribbon-text {
        font-size: 5rem;
        margin: 0 2rem;
    }
}

.ribbon-separator {
    font-size: 2rem;
    /* Mobile separator size */
    color: #d1d5db;
}

@media (min-width: 768px) {
    .ribbon-separator {
        font-size: 2.875rem;
    }
}

@keyframes scroll-left-to-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* --- General Typography & Layout --- */
.leading-tight {
    line-height: 1.3 !important;
}

.gradient-text-green {
    background: linear-gradient(45deg, #36c76c, #0a7d34);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 300;
}

/* --- Language Toggle Styles --- */
.language-toggle {
    position: relative;
    display: inline-block;
}

.lang-button {
    background-color: var(--bcg-green);
    color: white;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.lang-button:hover {
    background-color: var(--bcg-green-hover);
}

.button_top {
    display: block;
    text-align: center;
    white-space: nowrap;
}

/* Larger button styles for tablets and desktops */
@media (min-width: 640px) {
    .lang-button {
        padding: 10px 24px;
        font-size: 1rem;
    }
}

/*
==============================================
           NEW RESPONSIVE STYLES
==============================================
*/
/* --- HAMBURGER MENU BUTTON STYLES --- */



/* Hamburger animation when active */
#sidebar-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

#sidebar-toggle.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 767px) {

    /* --- HEADER FIXES --- */
    header nav img {
        height: 3rem !important;
        /* Significantly reduces logo size on mobile */
    }

    header nav .flex.items-center.gap-4 {
        gap: 0.5rem;
        /* Tighter spacing between elements on mobile */
    }
    
    .language-toggle {
        margin-right: 0.25rem;
        /* Reduced margin for language toggle */
    }
    
    /* Make CTA button smaller on mobile */
    .btn-primary {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        /* Even smaller for mobile */
    }
    
    /* Adjust language toggle button size */
    .lang-button {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    /* --- TYPOGRAPHY FIXES --- */
    /* Reduce size of major headings on mobile */
    #hero-heading,
    #data-heading,
    #solutions-heading,
    #about-heading,
    #industries-heading,
    #careers-heading,
    #contact-heading {
        font-size: 1.875rem !important;
        /* Equivalent to text-3xl */
        line-height: 2.25rem !important;
    }

    #testimonial-heading,
    #sales-heading {
        font-size: 1.5rem !important;
        /* Equivalent to text-2xl */
        line-height: 2rem !important;
    }

    /* --- LAYOUT FIXES --- */
    /* Force grids to be single-column on mobile, except footer */
    .grid:not(footer .grid) {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    /* Reset column spans that were set for desktop */
    .grid>[class*="col-span-"] {
        grid-column: auto !important;
    }
}