/**
 * Charity Logos Grid Styles
 * Responsive 4-3-2-1 grid layout
 */

.charity-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0;
}

.charity-logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.charity-logo-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.charity-logo-link:hover .charity-logo-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #15364D;
}

.charity-logo-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.charity-logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.charity-logo-link:hover .charity-logo-image {
    filter: grayscale(20%);
}

.charity-logo-name {
    text-align: center;
    color: #15364D;
    font-weight: 400;
    line-height: 1.4;
    font-size: 14px;
}

/* Tablet: 3 columns */
@media screen and (max-width: 1200px) {
    .charity-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

/* Medium tablets: 2 columns */
@media screen and (max-width: 992px) {
    .charity-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .charity-logo-card {
        padding: 1.75rem 1.25rem;
    }

    .charity-logo-wrapper {
        height: 100px;
    }
}

/* Mobile: 1 column */
@media screen and (max-width: 768px) {
    .charity-logos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .charity-logo-card {
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }

    .charity-logo-wrapper {
        height: 80px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .charity-logo-name {
        text-align: left;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .charity-logos-grid {
        gap: 1rem;
    }

    .charity-logo-card {
        padding: 1.25rem;
    }

    .charity-logo-wrapper {
        height: 70px;
    }
}