:root {
    --primary: #4B008F;
    --primary-light: #edf3f9;
    --text-dark: #222222;
    --text-muted: #666666;
    --white: #ffffff;
    --border: #dfe5eb;
    --background: #f7f9fc;
    --shadow: 0 8px 25px rgba(18, 59, 104, 0.10);
}

.affiliations-section {
    width: 100%;
    padding: 70px 20px;
    background: var(--background);
}

.affiliations-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.affiliations-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.affiliations-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    overflow: hidden;
}

.affiliations-table thead {
    background: var(--primary);
}

.affiliations-table th {
    padding: 18px 20px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.affiliations-table td {
    padding: 18px 20px;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.affiliations-table tbody tr {
    transition: all 0.3s ease;
}

.affiliations-table tbody tr:nth-child(even) {
    background: #f9fbfd;
}

.affiliations-table tbody tr:hover {
    background: var(--primary-light);
}

.affiliations-table td:first-child {
    width: 42%;
    font-weight: 600;
}

.affiliations-table td:last-child {
    width: 58%;
}

.affiliations-table a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliations-table a:hover {
    color: #0a2747;
    text-decoration: underline;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 45px;
}

.certificate-card {
    width: 100%;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(18, 59, 104, 0.15);
}

.certificate-card a {
    display: block;
    width: 100%;
}

.certificate-card img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.certificate-card:hover img {
    transform: scale(1.02);
}

@media (max-width: 991px) {

    .affiliations-section {
        padding: 55px 18px;
    }

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificate-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

}

@media (max-width: 767px) {

    .affiliations-section {
        padding: 45px 15px;
    }

    .affiliations-table-wrapper {
        border-radius: 14px;
    }

    .affiliations-table {
        min-width: 680px;
    }

    .affiliations-table th {
        padding: 15px;
        font-size: 14px;
    }

    .affiliations-table td {
        padding: 15px;
        font-size: 14px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 35px;
    }

    .certificate-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .certificate-card img {
        height: 280px;
    }

}

@media (max-width: 480px) {

    .affiliations-section {
        padding: 35px 12px;
    }

    .affiliations-table {
        min-width: 620px;
    }

    .affiliations-table th {
        padding: 13px;
        font-size: 13px;
    }

    .affiliations-table td {
        padding: 13px;
        font-size: 13px;
    }

    .certificate-card {
        padding: 10px;
        border-radius: 14px;
    }

    .certificate-card img {
        height: 230px;
        border-radius: 9px;
    }

}