* {
    font-family: var(--font-sans) !important;
}

@media (min-width: 1024px) {
    .industrySwiper .swiper-slide {
        width: 158px;
        transition: width 0.5s ease, opacity 0.5s ease;
        opacity: 0.5;
        overflow: hidden;
        position: relative;
    }

    .industrySwiper .swiper-slide-active {
        width: 426px !important;
        opacity: 1;
    }

    /* Fix for low quality images: Keep image at full width and center it */
    .industrySwiper .swiper-slide img {
        width: 426px !important;
        max-width: none !important;
        height: 100% !important;
        object-fit: cover;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%) translateZ(0);
        /* translateZ for GPU acceleration */
        backface-visibility: hidden;
    }
}

@media (max-width: 1023px) {
    .industrySwiper .swiper-slide {
        width: 85%;
    }
}

.industrySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.swiper-pagination-bullet-custom {
    background: #666666;
    opacity: 0.6;
    width: 24px;
    height: 4px;
    margin: 0 4px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.swiper-pagination-bullet-custom.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}


/* Target the specific scrollable container */
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
    /* matches your width: 10px */
}

/* The Track (Background) */
.custom-scrollbar::-webkit-scrollbar-track {
    background: #F5F5F5;
    /* matches your --Foundation-Neutrals-Grey-cards */
    border-radius: 10px;
}

/* The Thumb (Handle) */
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #BFBFBF;
    /* matches your --Foundation-Neutrals-N50 */
    border-radius: 13px;
    /* matches your thumb border-radius */
    height: 32px;
    /* Note: browsers usually calculate height dynamically, but this sets the minimum */
}

/* Handle on hover */
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #A3A3A3;
}

/* Global Layout Constraint */
/* body,
header {
    max-width: 1440px;
    margin: 0 auto;
} */


/* Custom animation for the content fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Optional: Smooth transition for the details opening */
details[open] summary~* {
    animation: fadeIn 0.4s ease-out;
}

.button-hover {
    box-sizing: border-box;
    /* Ensures border is included in the 48px height */
    transition: all 0.3s ease;
}

.button-hover:hover {
    color: #1A3B1B;
    /* Using your Main Green hex */
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(to right, #30442C, #F4C300) border-box;
    border: 2px solid transparent;
    /* Required for the border-box gradient to show */
}

.btn-gradient-hover {
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
}

.btn-gradient-hover:hover {
    color: #1A3B1B;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(to right, #30442C, #F4C300) border-box;
    border: 2px solid transparent;
}

/* Hover Effect for Stats Section */
/* When hovering the container, dim all children */
.text-cursor-hover-effect:hover>div {
    opacity: 0.3;
    filter: blur(0.5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When hovering a specific child, bring it back to full opacity and scale slightly */
.text-cursor-hover-effect:hover>div:hover {
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

@keyframes revealColorCircle {
    0% {
        background-size: 0% 0%, 100% 100%;
    }

    100% {
        background-size: 250% 250%, 100% 100%;
    }
}

/* When hovering a specific child, apply rounded circular reveal from top */
.text-cursor-hover-effect:hover>div:hover h3 {
    /* Layer 1: Radial expanding circle (Primary Color) */
    /* Layer 2: Solid White base */
    background-image:
        radial-gradient(circle at top, var(--color-primary) 50%, transparent 51%),
        linear-gradient(to bottom, #FFFFFF, #FFFFFF);

    background-size: 0% 0%, 100% 100%;
    background-position: top center, top center;
    background-repeat: no-repeat;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    width: fit-content;
    animation: revealColorCircle 0.8s ease-out forwards;
}

/* Optional: Transition for the children */
.text-cursor-hover-effect>div {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Continuous Scroll for Logo/Brand Swiper */
.logoSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}


/* Normal focus style (clean blue) */
form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--main-green);
    /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: white;
}

/* ─────────────────────────────────────── */
/* Error State Class - Applied via JS */
.input-error {
    border-color: #ef4444 !important;
}

/* Success State Class (Removed) */
/* .input-success {
    border-color: #22c55e !important;
} */

/* Error Message Text */
.error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}


.button-hover-horizontal:hover {
    color: var(--main-green);
    transition: all 0.3s ease;
    /* Increase border slightly to make the effect visible */
    border: 2px solid transparent;
    /* The white padding-box keeps the inside of the button solid */
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(to right, #30442C 50%, #F4C300 50%) border-box;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button-hover-vertical:hover {
    color: var(--main-green);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(to bottom, #F4C300, #1A3B1B) border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}




/* Blog */
#dynamic-blog-content h1,
#dynamic-blog-content h2,
#dynamic-blog-content h3,
#dynamic-blog-content h4,
#dynamic-blog-content h5,
#dynamic-blog-content h6 {
    font-family: 'Helvetica', sans-serif !important;
    font-weight: 700 !important;
    color: #44403c !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 0.24px;
    text-transform: capitalize;
    margin-bottom: 4px !important;
}

#dynamic-blog-content p {
    font-family: 'Helvetica', sans-serif !important;
    font-weight: 400 !important;
    color: #78716c !important;
    line-height: 1.5rem !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 1rem 0 !important;
    /* margin-bottom: 1rem !important; */
    text-align: justify;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.24px;
}

#dynamic-blog-content p:empty {
    display: none;
}

#dynamic-blog-content strong {
    color: #3B3B3B !important;
    font-weight: 700 !important;
}

#dynamic-blog-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}

#dynamic-blog-content li {
    color: #3B3B3B !important;
    margin-bottom: 10px !important;
}


/* Default hidden state */
#quadra-info-card {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

/* Top Diamond Hovered -> Card moves to Top Right */
#quadra-info-card.pos-top {
    /* top: 10%;
    right: 5%;
    left: auto;
    bottom: auto; */
    bottom: 90%;
    right: 0;
    left: auto;
    top: auto;
    opacity: 1;
    transform: translateY(0);
}

/* Left Diamond Hovered -> Card moves to Top Left */
#quadra-info-card.pos-left {
    /* top: 10%;
    left: 5%;
    right: auto;
    bottom: auto; */
    bottom: 0;
    right: 0;
    left: auto;
    top: auto;
    opacity: 1;
    transform: translateY(0);
}

/* Right Diamond Hovered -> Card moves to Bottom Right */
#quadra-info-card.pos-right {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    opacity: 1;
    transform: translateY(0);
}

/* Bottom Diamond Hovered -> Card moves to Bottom Left */
#quadra-info-card.pos-bottom {
    bottom: 0;
    left: 0;
    right: auto;
    top: auto;
    opacity: 1;
    transform: translateY(0);
}



/* Smooth opacity transition for the internal content */
.our-history-swiper .swiper-slide {
    opacity: 0 !important;
    pointer-events: none;
}

/* Only the active slide is visible and clickable */
.our-history-swiper .swiper-slide-active {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Fix for cross-fade positioning */
.our-history-swiper.swiper-fade .swiper-slide {
    pointer-events: none;
}

.our-history-swiper.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}














/* MOBILE VIEW ONLY */
@media (max-width: 768px) {

    #quadra-info-card.pos-top,
    #quadra-info-card.pos-left,
    #quadra-info-card.pos-right,
    #quadra-info-card.pos-bottom {
        bottom: 0;
        left: 0;
        right: auto;
        top: auto;
        opacity: 1;
        transform: translateY(0);
        width: 100%;
    }

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
        overflow-x: auto;
    }

    #pagination-container .flex>button:nth-child(n+3):nth-child(-n+6) {
        display: none;
    }
}

.smooth-hover-transition {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.smooth-transform-transition {
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.custom-product-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.custom-product-list li {
    display: flex;
    align-items: flex-start;
}

.custom-product-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    /* Top margin centers it relative to line-height ~24px, Side margins 12px */
    margin: 10px 12px 0 12px;
    flex-shrink: 0;
}

.industry-image-slide {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease;
}

/* Contact Us Sticky Button */
.mosil-contact-sticky {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: rgba(0, 0, 0, 0.2) -4px 4px 15px;
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-align: center;
    line-height: 1.5;
    text-transform: uppercase;
    background: var(--color-primary);
    /* Replaced var(--yellow) with theme primary color */
    padding: 15px 10px;
    border-radius: 8px 0px 0px 8px;
    transition: transform 0.3s, background 0.3s;
}

.mosil-contact-sticky:hover {
    background: #1A3B1B;
    /* Darker green on hover for interaction feedback */
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background-color: #25D366;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.1;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* Remove pulse on hover to focus on interaction */
}

.whatsapp-float:hover::before {
    animation: none;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    transition: transform 0.5s ease;
}


/* Chatbase Tooltip */
.chatbase-tooltip {
    position: fixed;
    bottom: 90px;
    /* Adjust based on chatbase icon height */
    right: 20px;
    background-color: #000000;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    z-index: 10000;
    pointer-events: none;
    animation: tooltip-bounce 2s infinite;
    white-space: nowrap;
}

.chatbase-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000000;
}

@keyframes tooltip-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}