/* RELATED AGENCIES SECTION */
.related-agencies-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.related-agencies-section .container-custom {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

.agencies-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a5a96;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 3rem 0;
}

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(5, 2fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.agency-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.agency-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #1a5a96;
}

.agency-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.agency-item:hover .agency-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .agencies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .agencies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .agencies-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .related-agencies-section {
        padding: 3rem 0;
    }
    
    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .agency-item {
        padding: 1rem;
    }
    
    .agency-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .agencies-title {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .agency-item {
        padding: 0.75rem;
    }
    
    .agency-logo {
        max-height: 50px;
    }
}
