﻿/* =============================================
   PARTNERS PAGE - CẢNG ĐÔNG XUYÊN
   Professional & Modern Design 2026
   ============================================= */

.partners-page {
    background: #f8fafd;
    padding: 80px 0 100px;
    min-height: 80vh;
}

.partners-header {
    text-align: center;
    margin-bottom: 70px;
}

.header-content {
    max-width: 820px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: #f1c40f;
    color: #003087;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #035B8F;
    line-height: 1.15;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.partner-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

    .partner-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 45px rgba(0, 48, 135, 0.15);
    }

    .partner-card a {
        display: block;
        height: 100%;
        text-decoration: none;
        color: inherit;
        padding: 35px 25px;
        text-align: center;
    }

.partner-logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.4s;
}

.partner-card:hover .partner-logo {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(241, 196, 15, 0.3) inset;
}

.logo-img {
    max-height: 110px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(85%);
    transition: all 0.4s ease;
}

.partner-card:hover .logo-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #035b8f;
    margin: 0;
    line-height: 1.4;
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

    .pagination-wrapper a,
    .pagination-wrapper span {
        display: inline-block;
        min-width: 42px;
        height: 42px;
        line-height: 42px;
        margin: 0 5px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #ddd;
        color: #003087;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }

        .pagination-wrapper a:hover,
        .pagination-wrapper .current {
            background: #003087;
            color: #fff;
            border-color: #003087;
        }

/* ====================== RESPONSIVE ====================== */

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .partners-page {
        padding: 17px 0 32px;
    }

    .main-title {
        font-size: 2.3rem;
    }

    .partner-card a {
        padding: 28px 20px;
    }

    .partner-logo {
        height: 120px;
    }

    .logo-img {
        max-height: 95px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
        gap: 10px;
    }

    .partner-card a {
        padding: 12px 9px;
    }

    .partner-info h3 {
        min-height: 100%;
        font-size: 1rem;
    }

    .main-title {
        font-size: 1.1rem;
        line-height: 150%;
    }

    .partners-header {
        margin-bottom: 29px;
    }

    .subtitle {
        font-size: 1.05rem;
        text-align: justify;
    }
}