.our-partners-hero {
    padding: 150px 0 120px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.our-partners-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: var(--hero-banner-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.18;
    transform: scale(1);
    animation: ourPartnersHeroZoom 20s infinite alternate;
    z-index: 0;
}

.our-partners-hero .container {
    position: relative;
    z-index: 2;
}

.our-partners-hero .section-gradient,
.our-partners-hero .floating-shape {
    z-index: 1;
}

.our-partners-hero__banner-card {
    position: relative;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.our-partners-hero__banner-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

.our-partners-hero .hero-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.our-partners-hero h1 {
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.our-partners-hero .lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
}

@keyframes ourPartnersHeroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.our-partners-page {
    background: #f8fafc;
}

.our-partner-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.our-partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.our-partner-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
}

.our-partner-media-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.our-partner-media-trigger:hover {
    transform: scale(1.02);
}

.our-partner-image-trigger {
    position: relative;
}

.our-partner-video-trigger {
    position: relative;
    width: 100%;
}

.our-partner-video-trigger .our-partner-video {
    pointer-events: none;
}

.our-partner-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.our-partner-video-trigger:hover .our-partner-video-play {
    background: rgba(15, 23, 42, 0.5);
}

.our-partner-image {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.our-partner-video {
    width: 100%;
    max-height: 180px;
    border-radius: 12px;
    background: #000;
}

.our-partner-pdf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
}

.our-partner-pdf-link i {
    font-size: 3rem;
}

.our-partner-pdf-link:hover {
    color: #bb2d3b;
}

.our-partner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    color: #94a3b8;
    font-size: 2.5rem;
}

.our-partner-body {
    padding: 20px 22px 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.our-partner-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.our-partner-description {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.our-partner-read-more {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 1rem;
}

.our-partner-modal-dialog {
    max-width: 640px;
}

.our-partner-modal-dialog.our-partner-modal-dialog--pdf {
    max-width: 820px;
}

.our-partner-modal {
    position: relative;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.our-partner-modal__accent {
    height: 5px;
    background: var(--gradient-secondary, linear-gradient(135deg, #8CC73E 0%, #3BB2E6 100%));
}

.our-partner-modal__header {
    padding: 1.35rem 1.5rem 0.75rem;
    border-bottom: none;
    align-items: flex-start;
}

.our-partner-modal__header-text {
    padding-inline-end: 1rem;
}

.our-partner-modal__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.our-partner-modal__body {
    padding: 0.75rem 1.5rem 1.5rem;
}

.our-partner-modal__layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.our-partner-modal__media-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.our-partner-modal__field-label {
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.our-partner-modal-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    min-height: 180px;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.our-partner-modal-preview:has(.our-partner-modal-video),
.our-partner-modal-preview--pdf {
    max-width: 100%;
    min-height: auto;
    padding: 0;
    overflow: hidden;
}

.our-partner-modal-preview__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.our-partner-modal-image {
    display: block;
    max-height: 280px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}

.our-partner-modal-video {
    width: 100%;
    max-height: 280px;
    border-radius: 12px;
    background: #000;
}

.our-partner-modal-preview__inner--pdf {
    width: 100%;
}

.our-partner-modal-pdf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 180px;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.08);
    color: #b42318;
    text-align: center;
}

.our-partner-modal-pdf-card--link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.our-partner-modal-pdf-card--link:hover {
    color: #b42318;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(220, 53, 69, 0.12);
}

.our-partner-modal-pdf-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.our-partner-modal-pdf-card--link:hover .our-partner-modal-pdf-card__action {
    color: #fff;
    background: #bb2d3b;
}

.our-partner-modal-pdf-card i {
    font-size: 3.2rem;
}

.our-partner-modal-pdf-card strong {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #0f172a;
    font-weight: 600;
}

.our-partner-modal__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.our-partner-modal__field {
    padding: 1rem 1.05rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.our-partner-modal__field-value {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.75;
}

.our-partner-modal-description {
    color: #475569;
}

.our-partner-modal-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .our-partners-hero {
        padding: 110px 0 80px !important;
    }

    .our-partners-hero h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .our-partners-hero .lead {
        font-size: 1.05rem !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    .our-partner-media {
        min-height: 150px;
        padding: 18px;
    }

    .our-partner-modal-dialog {
        max-width: calc(100% - 1.5rem);
    }

    .our-partner-modal__header,
    .our-partner-modal__body {
        padding-inline: 1.1rem;
    }

    .our-partner-modal__title {
        font-size: 1.25rem;
    }

    .our-partner-modal-pdf-frame {
        min-height: 280px;
        height: min(60vh, 420px);
    }

    .our-partner-modal-image,
    .our-partner-modal-video {
        max-height: 220px;
    }
}
