/* Partner page — timeline showcase */

section#page-title.partner-page-title {
    margin-top: 80px;
    text-align: center;
    padding: 0 1.5rem;
}

section#page-title.partner-page-title h2 {
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 36px);
}

section#page-title.partner-page-title p {
    font-size: 1.05rem;
    max-width: 620px;
    line-height: 1.6;
}

.partners-showcase {
    background: linear-gradient(180deg, #ecfdff 0%, #f4f9fb 45%, #ffffff 100%);
    padding: 3rem 2rem 4.5rem;
}

.partners-showcase__inner {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.partners-timeline {
    position: relative;
}

.partners-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 24px;
    bottom: 24px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--light-blue), var(--cyan-bg));
    opacity: 0.35;
}

.partner-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
}

.partner-item:last-child {
    margin-bottom: 0;
}

.partner-item__marker {
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--cyan-bg));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--primary-font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 0 0 8px #ecfdff, 0 6px 20px rgba(6, 174, 212, 0.25);
}

.partner-item__card {
    grid-row: 1;
    width: 100%;
    max-width: none;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #d6ebf2;
    box-shadow: 0 10px 40px rgba(8, 138, 178, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-item__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(8, 138, 178, 0.16);
}

.partner-item--left .partner-item__card {
    grid-column: 1;
    justify-self: stretch;
}

.partner-item--right .partner-item__card {
    grid-column: 3;
    justify-self: stretch;
}

.partner-item__logo {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #f8fcfd 0%, #f0f7fa 100%);
    border-bottom: 1px solid #e4f0f5;
}

.partner-item__logo img {
    display: block;
    max-width: min(320px, 90%);
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.partner-item__body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.partner-item__body h3 {
    font-family: var(--secondary-font);
    font-size: 1.35rem;
    font-weight: 700;
    color: #164c63;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.partner-item__body p {
    font-family: var(--primary-font);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475467;
    margin: 0 0 1.25rem;
}

.partner-item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(6, 174, 212, 0.1);
    color: var(--cyan-bg);
    font-family: var(--primary-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.partner-item__link:hover {
    background: var(--light-blue);
    color: #fff;
    gap: 0.65rem;
}

.partner-item__link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .partners-showcase {
        padding: 2.5rem 1rem 3.5rem;
    }

    .partners-timeline::before {
        left: 26px;
        transform: none;
    }

    .partner-item {
        grid-template-columns: 52px 1fr;
        gap: 0 1rem;
        margin-bottom: 2rem;
    }

    .partner-item__marker {
        grid-column: 1;
        width: 44px;
        height: 44px;
        font-size: 0.75rem;
        box-shadow: 0 0 0 6px #ecfdff, 0 4px 16px rgba(6, 174, 212, 0.2);
    }

    .partner-item--left .partner-item__card,
    .partner-item--right .partner-item__card {
        grid-column: 2;
        justify-self: stretch;
        max-width: none;
    }

    .partner-item__logo {
        height: 110px;
    }

    .partner-item__logo img {
        max-width: 220px;
        max-height: 80px;
    }

    .partner-item__body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .partner-item__body h3 {
        font-size: 1.2rem;
    }
}
