/* ==========================================================================
   UPGRADED AFFILIATION SYSTEM (PREMIUM DESIGN)
   ========================================================================== */

.credentials-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-light, #f8fafc);
}

.affiliation-grid {
    display: grid;
    grid-template-columns: repeat(4, 230px);
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.affiliation-card {
    width: 230px;
    height: 150px;
    background: #ffffff;
    border-radius: 22px; /* Smooth rounded corners (18-24px) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(27, 58, 137, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.affiliation-card img {
    height: 80px; /* Logo height (70-90px) */
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Hover lift and blue glow animation */
.affiliation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(27, 58, 137, 0.2); /* Blue glow on hover */
    border-color: rgba(27, 58, 137, 0.3);
}

.affiliation-card:hover img {
    transform: scale(1.06);
}

/* Tablet (3 cards per row) */
@media (max-width: 1080px) {
    .affiliation-grid {
        grid-template-columns: repeat(3, 230px);
        gap: 25px;
    }
}

/* Mobile (3 cards per row) */
@media (max-width: 768px) {
    .affiliation-grid {
        grid-template-columns: repeat(3, 220px);
        gap: 15px;
    }
    
    .affiliation-card {
        width: 220px;
        height: 140px;
    }
    
    .affiliation-card img {
        height: 70px;
    }
}

/* Small Screens Fallback */
@media (max-width: 710px) {
    .affiliation-grid {
        grid-template-columns: repeat(2, 220px);
    }
}

@media (max-width: 480px) {
    .affiliation-grid {
        grid-template-columns: repeat(1, 230px);
    }
}