/* =======================
   Collaborators Section
======================= */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
    justify-items: center;
}

.partner-card {
    width: 180px;
    height: 180px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.partner-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 15px;
    box-sizing: border-box;
}

.card-front img {
    width: 65%;
    height: auto;
}

.card-back {
    background: #0a2540;
    color: white;
    transform: rotateY(180deg);
    border: 2px solid #76c0ff;
    text-align: center;
}

.card-back h3 {
    font-size: 1em;
    margin: 0;
}

.workflow-img {
    max-width: 100%;
    display: block;
    margin: 25px auto;
    border-radius: 10px;
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.img-modal-content-wrapper {
    position: relative;
}

.img-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    display: block;
    border-radius: 14px;
    transition: transform .15s linear;
    transform-origin: center center;
}

.img-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    user-select: none;
}