/* ---------------------------------------------------- */
/* Custom application-specific styles (Tailwind additions) */
/* ---------------------------------------------------- */

/* Ensure the body and html take full height for proper layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Base Body Style */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

/* Main Content takes up remaining space */
main {
    flex-grow: 1;
}

/* Active link styling - uses Tailwind colors defined in HTML config */
.nav-link.active {
    border-bottom: 3px solid #FCD34D; /* Secondary yellow highlight */
    color: #10B981; /* Primary green text */
    font-weight: 600;
}

/* Mobile Active Link Styling */
.mobile-nav-link.active {
    border-left: 4px solid #10B981 !important; /* Primary green highlight */
    background-color: #F3F4F6; /* bg-gray-100 */
    color: #10B981 !important;
    font-weight: 600;
}

/* Ensure slide images fill their containers */
.slide img {
    transition: transform 0.5s ease-in-out;
}

/* ---------------------------------------------------- */
/* Client Logo Carousel Styles and Animation */
/* ---------------------------------------------------- */

/* Hides the content outside the track container to create a clean slider boundary */
.logo-carousel-track-container {
    max-width: 100%;
    /* Add horizontal padding to make it look nicer */
    padding: 0 1rem; 
}

/* The track must be wide enough to hold both the original and the duplicated set */
.logo-carousel-track {
    /* The track will be twice the width of the viewport/container to hold two sets */
    width: 200%; 
    animation: scroll-left 40s linear infinite;
    /* Pause animation on hover */
    will-change: transform;
}

.logo-carousel-track-container:hover .logo-carousel-track {
    animation-play-state: paused;
}

/* Keyframe for the continuous scrolling animation */
@keyframes scroll-left {
    from {
        /* Start position: 0% */
        transform: translateX(0);
    }
    to {
        /* End position: Move left by 50% of its width, making the duplicated set visible */
        transform: translateX(-50%);
    }
}

/* Ensure individual logos are aligned and spaced */
.logo-group {
    /* Important: This ensures the duplicated set is immediately next to the original set */
    flex-shrink: 0; 
    /* The width should be the width of the content it holds */
    width: 100%; 
}

/* Logo image styling */
.logo-item img {
    opacity: 0.7;
}

.logo-item img:hover {
    opacity: 1;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; /* নিচের থেকে দূরত্ব */
    right: 40px; /* ডানদিক থেকে দূরত্ব */
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* অন্য কন্টেন্টের উপরে রাখতে */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: blink-pulse 2s infinite; /* ব্লিংকিং অ্যানিমেশন চালু */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Blinking/Pulse Animation */
@keyframes blink-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
}

/* Optional: Make it slightly smaller on mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}