/* --- Overall Section Styling --- */
.strategic-partners-section {
    background-color: #F8F9FB;
    padding: 80px 20px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    text-align: center;
    overflow: hidden; /* Crucial to hide overflowing marquee content */
    border-bottom: 1px solid #e0e0e0;
}

.strategic-partners-section .strategic-partners-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #6CBE45;
    margin-bottom: 50px;
}

/* --- Partners Marquee --- */
.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap; /* Ensures all content stays on a single line */
    position: relative;
    padding: 20px 0;
}

/* IMPORTANT: For this to work seamlessly, you must have the logo content duplicated in your HTML file. */
.partners-marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite; /* Adjust '30s' for speed. Shorter = faster. */
}

/* Pause animation on hover */
.partners-marquee-container:hover .partners-marquee-content {
    animation-play-state: paused;
}

/* Marquee Animation */
@keyframes marquee-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Moves content half its width to loop. */
}

.partner-logo-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 40px;
    height: 80px;
    vertical-align: middle;
    position: relative;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.partner-logo-item img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Tooltip Styling */
.partner-tooltip {
    position: absolute;
    bottom: -30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 20;
}

.partner-logo-item:hover .partner-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
/* Tablet and Smaller Laptops (up to 1024px) */
@media (max-width: 1024px) {
    .strategic-partners-section .strategic-partners-title { 
        font-size: 2.2em; 
        margin-bottom: 40px; 
    }
    .partner-logo-item { 
        margin: 0 30px; 
        height: 70px; 
    }
    .partner-logo-item img { 
        max-width: 100px; 
    }
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    .strategic-partners-section { 
        padding: 60px 15px; 
    }
    .strategic-partners-section .strategic-partners-title { 
        font-size: 1.8em; 
        margin-bottom: 30px; 
    }
    .partner-logo-item { 
        margin: 0 20px; 
        height: 60px; 
    }
    .partner-logo-item img { 
        max-width: 80px; 
    }
    .partner-tooltip { 
        font-size: 0.7em; 
        bottom: -25px; 
    }
    /* Adjust marquee speed for smaller screens */
    .partners-marquee-content {
        animation-duration: 25s; 
    }
}

