/* ========================================
   AFFILIATION SECTION STYLES - WEBSITE INTEGRATED
   ======================================== */

/* Affiliation Section - Integrated with Website Design */
.affiliation-section {
    background: var(--gray-50);
    padding: var(--spacing-5xl) 0;
    font-family: var(--font-family-base, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}

/* main card container - matching website card styles */
.marquee-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-3xl);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

/* title section - matching website typography */
.title-section {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.title-section h2 {
    font-weight: var(--font-bold);
    font-size: var(--font-4xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.title-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.title-section p {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--font-lg);
}

/* MARQUEE WRAPPER - matching website containers */
.logo-marquee-wrapper {
    width: 100%;
    overflow-x: hidden;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl) 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

/* The scrolling track - website consistent animation */
.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--spacing-3xl);
    will-change: transform;
    animation: scrollRightToLeft 32s linear infinite;
    width: max-content;
}

/* keyframes - smooth website animation */
@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* pause on hover - website UX consistency */
.logo-marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* each logo item - website card styling */
.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 120px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    padding: var(--spacing-md);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--gray-100);
}

/* image tag styling - website consistent */
.marquee-track .logo-img {
    max-width: 100%;
    max-height: 100%;  /* Increased from 80px to allow full logo display */
    width: auto;
    height: auto;
    object-fit: scale-down;  /* Changed from contain to scale-down */
    display: block;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

/* hover effect - website hover states */
.logo-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

/* Logo placeholder for missing logos */
.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-align: center;
    padding: var(--spacing-sm);
    transition: var(--transition-base);
}

.logo-placeholder i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.logo-placeholder span {
    font-weight: var(--font-medium);
    line-height: 1.2;
}

.logo-item:hover .logo-placeholder {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.logo-item:hover .logo-placeholder i {
    color: var(--white);
}

/* attribution footer - website button styling */
.attribution {
    text-align: center;
    margin-top: var(--spacing-3xl);
}

.attribution a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--primary-gradient);
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--font-base);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.attribution a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.attribution a i {
    margin-right: var(--spacing-sm);
}

/* responsive adjustments - website responsive */
@media (max-width: 1200px) {
    .marquee-card {
        padding: var(--spacing-2xl);
    }
    .logo-item {
        width: 160px;
        height: 100px;
    }
    .logo-img {
        max-height: 100%;  /* Increased from 70px */
    }
}

@media (max-width: 768px) {
    .affiliation-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .marquee-card {
        padding: var(--spacing-xl);
    }
    
    .title-section {
        margin-bottom: var(--spacing-2xl);
    }
    
    .title-section h2 {
        font-size: var(--font-3xl);
    }
    
    .title-section p {
        font-size: var(--font-base);
    }
    
    .logo-item {
        width: 140px;
        height: 90px;
    }
    
    .logo-img {
        max-height: 100%;  /* Increased from 60px */
    }
    
    .marquee-track {
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 576px) {
    .affiliation-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .marquee-card {
        padding: var(--spacing-lg);
    }
    
    .logo-item {
        width: 120px;
        height: 80px;
    }
    
    .logo-img {
        max-height: 100%;  /* Increased from 50px */
    }
    
    .marquee-track {
        gap: var(--spacing-xl);
    }
    
    .title-section h2 {
        font-size: var(--font-2xl);
    }
}

/* reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
    
    .logo-item:hover {
        transform: none;
    }
    
    .logo-item:hover .logo-img {
        transform: none;
    }
}
