/**
 * Manex Logo Showcase CSS
 */

/* Logo grid container */
.manex-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin: 20px 0;
}

/* Individual logo item */
.manex-logo-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-basis: calc(25% - 20px);
    max-width: calc(25% - 20px);
    min-width: 200px;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
    .manex-logo-item {
        flex-basis: calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .manex-logo-item {
        flex-basis: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .manex-logo-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* Logo image container */
.manex-logo-image {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
}

/* Logo image */
.manex-logo-image img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

/* Hover effect for logo */
.manex-logo-item:hover .manex-logo-image img {
    transform: scale(1.1);
}

/* Overlay container */
.manex-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(73, 88, 121, 0.9);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* Show overlay on hover */
.manex-logo-item:hover .manex-logo-overlay {
    opacity: 1;
}

/* Overlay title */
.manex-logo-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #fff;
}

/* Overlay description */
.manex-logo-description {
    font-size: 14px;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    transition-delay: 0.1s;
    color: #fff;
}

/* Link button */
.manex-logo-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    color: #495879;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: 0.2s;
}

.manex-logo-link:hover {
    background-color: #f0f0f0;
}

/* Animate overlay elements on hover */
.manex-logo-item:hover .manex-logo-title,
.manex-logo-item:hover .manex-logo-description,
.manex-logo-item:hover .manex-logo-link {
    transform: translateY(0);
}

/* Grid columns configuration */
.manex-logo-grid.columns-2 .manex-logo-item {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.manex-logo-grid.columns-3 .manex-logo-item {
    flex-basis: calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
}

.manex-logo-grid.columns-4 .manex-logo-item {
    flex-basis: calc(25% - 20px);
    max-width: calc(25% - 20px);
}

.manex-logo-grid.columns-5 .manex-logo-item {
    flex-basis: calc(20% - 20px);
    max-width: calc(20% - 20px);
}

.manex-logo-grid.columns-6 .manex-logo-item {
    flex-basis: calc(16.66% - 20px);
    max-width: calc(16.66% - 20px);
}

/* Additional animation for box shadow on hover */
.manex-logo-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
