/* Cartoon/Lively Partners Section */
.partners-section {
    background-color: #f8fbff;
    background-image: radial-gradient(#b8d4ff 2px, transparent 2px);
    background-size: 30px 30px;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

/* Floating Background Elements */
.partners-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: #FF9500;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    animation: floatBubble 10s infinite ease-in-out;
}

.partners-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: #0099ff;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    animation: floatBubble 8s infinite ease-in-out reverse;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.partners-section .container {
    position: relative;
    z-index: 1;
}

.partners-section h2 {
    font-size: 3.5rem;
    color: #001a33;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 4px 4px 0px #8bc4ff;
    display: inline-block;
    position: relative;
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.partners-section h2:hover {
    transform: rotate(2deg) scale(1.05);
}

/* Decorative lines around title */
.partners-section h2::before {
    content: '★';
    position: absolute;
    top: -20px;
    left: -40px;
    font-size: 2rem;
    color: #FF9500;
    animation: spin 3s linear infinite;
}

.partners-section h2::after {
    content: '★';
    position: absolute;
    bottom: -10px;
    right: -40px;
    font-size: 2rem;
    color: #FF9500;
    animation: spin 3s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Marquee Container */
.marquee-wrapper {
    background: #ffffff;
    border-top: 5px solid #001a33;
    border-bottom: 5px solid #001a33;
    padding: 40px 0;
    position: relative;
    transform: rotate(1deg) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    z-index: 2;
}

.marquee-content {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    width: max-content;
    padding-left: 50px;
    /* Initial offset */
}

/* Partner Logo/Badge Styling */
.partner-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #001a33;
    background: #fff;
    padding: 15px 35px;
    border: 4px solid #001a33;
    border-radius: 20px;
    box-shadow: 6px 6px 0px #0099ff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Alternating rotations for a playful look */
.partner-logo:nth-child(3n+1) {
    transform: rotate(3deg);
    background: #fff9f0;
    /* Light orange tint */
    box-shadow: 6px 6px 0px #FF9500;
}

.partner-logo:nth-child(3n+2) {
    transform: rotate(-2deg);
    background: #f0f8ff;
    /* Light blue tint */
    box-shadow: 6px 6px 0px #0099ff;
}

.partner-logo:nth-child(3n+3) {
    transform: rotate(1deg);
    background: #f0fff4;
    /* Light green tint */
    box-shadow: 6px 6px 0px #00cc66;
}

/* Hover Effects */
.partner-logo:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2) !important;
    z-index: 10;
    background: #fff !important;
}

.partner-logo:active {
    transform: scale(0.95) rotate(0deg) !important;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2) !important;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .partners-section h2 {
        font-size: 2.5rem;
    }

    .marquee-wrapper {
        transform: rotate(0deg);
        border-width: 3px;
    }

    .partner-logo {
        font-size: 1.2rem;
        padding: 10px 20px;
        border-width: 3px;
        box-shadow: 4px 4px 0px;
    }
}