/* =========================================================
   MBOSE AFFILIATION CARD
   ========================================================= */

.mbosе-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(30, 70, 110, 0.12);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    transition: all 0.35s ease;
}

.mbosе-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}


/* Left Content */

.affiliation-content {
    padding: 10px;
}

.affiliation-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #123c69,
        #1d628f
    );

    color: #ffffff;

    font-size: 30px;

    box-shadow:
        0 8px 20px rgba(18, 60, 105, 0.25);
}

.affiliation-name {
    margin: 0;

    font-size: 1.8rem;
    font-weight: 800;

    letter-spacing: 1px;

    color: #123c69;
}

.affiliation-sub {
    margin-top: 5px;
    margin-bottom: 15px;

    font-size: 0.82rem;
    font-weight: 600;

    letter-spacing: 0.7px;

    color: #6c757d;
}

.affiliation-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 13px;

    border-radius: 50px;

    background: #eef7f1;
    color: #21864b;

    font-size: 0.78rem;
    font-weight: 600;
}

.affiliation-description {
    margin: 18px auto;

    max-width: 380px;

    color: #667085;

    font-size: 0.9rem;
    line-height: 1.7;
}


/* Certificate Button */

.certificate-btn {
    border: none;

    padding: 10px 19px;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #123c69,
        #1c658f
    );

    color: #ffffff;

    font-size: 0.88rem;
    font-weight: 600;

    box-shadow: 0 6px 15px rgba(18, 60, 105, 0.2);

    transition: all 0.3s ease;
}

.certificate-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(18, 60, 105, 0.3);

    color: #ffffff;
}

.certificate-btn i {
    margin-right: 6px;
}


/* =========================================================
   CERTIFICATE PREVIEW
   ========================================================= */

.certificate-preview {
    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 14px;

    transition: all 0.3s ease;
}

.certificate-preview:hover {
    border-color: #b7c9dc;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.08);
}


/* Certificate heading */

.certificate-label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 11px;

    color: #123c69;

    font-size: 0.85rem;
    font-weight: 700;
}

.certificate-label i {
    color: #c49a3a;
}


/* Image */

.certificate-image-wrapper {
    overflow: hidden;

    border-radius: 8px;

    background: #ffffff;

    border: 1px solid #d9dee5;

    cursor: zoom-in;
}

.certificate-image {
    display: block;

    width: 100%;
    height: auto;

    transition:
        transform 0.5s ease,
        filter 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.025);

    filter: brightness(1.02);
}


/* Certificate footer */

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 2px 2px;

    color: #7b8794;

    font-size: 0.72rem;
}

.certificate-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.certificate-footer i {
    color: #123c69;
}


/* =========================================================
   CERTIFICATE MODAL
   ========================================================= */

.certificate-modal {
    overflow: hidden;

    border: none;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3);
}

.certificate-modal .modal-header {
    padding: 16px 22px;

    border-bottom: 1px solid #e5e7eb;
}

.certificate-modal .modal-title {
    margin: 0;

    color: #123c69;

    font-size: 1.1rem;
    font-weight: 700;
}

.certificate-modal .modal-title i {
    color: #c49a3a;
    margin-right: 6px;
}

.certificate-modal .modal-header small {
    color: #7b8794;
}

.certificate-modal .modal-body {
    padding: 18px;

    background: #f2f4f7;
}

.certificate-full {
    padding: 10px;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.08);
}

.certificate-full img {
    display: block;

    width: 100%;
    height: auto;

    margin: auto;
}

.certificate-modal-info {
    margin-right: auto;

    color: #21864b;

    font-size: 0.82rem;
    font-weight: 600;
}

.certificate-modal-info i {
    margin-right: 5px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .mbosе-card {
        padding: 18px;
    }

    .affiliation-content {
        padding-bottom: 5px;
    }

    .certificate-preview {
        margin-top: 5px;
    }

    .certificate-footer {
        font-size: 0.65rem;
    }

    .certificate-modal .modal-body {
        padding: 8px;
    }

}