/* Elegant partner styles for AI Deep Economics */

/* Partner card styling */
.partner-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    filter: grayscale(30%);
    opacity: 0.9;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.partner-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.partner-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    color: #1a365d;
}

.partner-card p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.partner-category {
    margin-bottom: 30px;
}

.partner-category .section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #1a365d;
}

.partner-category .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

/* Partners showcase for homepage */
.partners-showcase {
    padding: 25px 0;
    background-color: #f8f9fa;
    margin-top: 20px;
    border-radius: 6px;
}

.partners-showcase h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: #1a365d;
}

.partners-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: none; /* Firefox */
    gap: 30px;
    justify-content: center;
}

.partners-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.partner-slide {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.partner-slide:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.partner-slide img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Partnership benefits section */
.partnership-benefits .card {
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.partnership-benefits .card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.partnership-benefits .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #4a6fa5;
    font-size: 1.2rem;
}

.partnership-benefits h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a365d;
}

.partnership-benefits ul {
    padding-left: 20px;
}

.partnership-benefits li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #4a5568;
}

/* CTA section */
.cta-section .card {
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cta-section h2 {
    font-size: 1.4rem;
    color: #1a365d;
    margin-bottom: 15px;
}

.cta-section .lead {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.cta-section .btn-primary {
    background-color: #1a365d;
    border-color: #1a365d;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
    background-color: #2a4a7f;
    border-color: #2a4a7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-slide {
        width: 120px;
    }
    
    .partner-slide img {
        max-height: 50px;
    }
    
    .partner-card h3 {
        font-size: 1rem;
    }
    
    .partner-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .partners-slider {
        justify-content: flex-start;
    }
    
    .partner-slide {
        width: 100px;
    }
    
    .partner-slide img {
        max-height: 45px;
    }
}
