/* Partnership Grid Layout */
.partnership-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(416px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
    /* padding: 20px; */
}

/* Partnership Card */
.partnership-item {
    flex: 1 1 30% !important;
    max-width: 416px;
    max-height: 416px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #057A99;
    background-color: #FFFFFF;
    padding: 25px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* Partnership Logo - Allow Default Size */
.partnership-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.partnership-logo img {
    width: auto;
    height: auto;
    max-width: 100%; /* Ensure it doesn’t exceed container */
    max-height: 120px; /* Prevent too-tall logos */
    object-fit: contain; /* Ensures aspect ratio is preserved */
}

/* Partnership Name */
.partnership-name {
    font-size: 18px; /* Standard size */
    font-weight: 500;
    color: #057A99; /* Match Figma */
    margin-top: 10px;
}

/* Initially hide extra items */
.hidden-partnership {
    display: none;
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Keep button visible but disable interaction */
.partnership-load-more.disabled-btn {
    background: #ccc;
    cursor: not-allowed;
    color: #666;
}

@media screen and (max-width: 1300px) and (min-width: 861px) {
    .partnership-block {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 860px) and (min-width: 769px) {
    .partnership-block {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .wp-container-core-post-template-is-layout-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 768px) and (min-width: 501px) {
    .partnership-block {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .wp-container-core-post-template-is-layout-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .partnership-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .partnership-block {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .wp-container-core-post-template-is-layout-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    .partnership-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}
