/*======================================================================================
   certificate.css — Certificate Page Styles
======================================================================================*/
.certificate-section {
    padding: 80px 0 100px;
    background-color: #f5f6f4;
}
.cert-section-top {
    text-align: center;
    margin-bottom: 50px;
}
.cert-section-top .sub-badge {
    display: inline-block;
    background: rgba(17,162,27,0.1);
    color: #11A21B;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cert-section-top h2 {
    font-size: 38px;
    font-weight: 700;
    color: #2F2F2F;
    margin-bottom: 14px;
}
.cert-section-top p {
    color: #50624A;
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 28px;
}

/* Card */
.cert-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    cursor: pointer;
}
.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.cert-img-wrap {
    position: relative;
    overflow: hidden;
}
.cert-img-wrap img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cert-card:hover .cert-img-wrap img {
    transform: scale(1.05);
}
.cert-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 60px;
    height: 60px;
    background: rgba(17,162,27,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: all 0.3s ease;
}
.cert-card:hover .cert-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.cert-body {
    padding: 20px 22px 24px;
}
.cert-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2F2F2F;
    margin-bottom: 8px;
}
.cert-body p {
    font-size: 14px;
    color: #50624A;
    margin: 0;
    line-height: 22px;
}
.cert-badge {
    display: inline-block;
    margin-top: 12px;
    background: rgba(17,162,27,0.1);
    color: #11A21B;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ===== LIGHTBOX ===== */
#certLightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.93);
    z-index: 99999999;
    justify-content: center;
    align-items: center;
}
#certLightbox.open {
    display: flex;
}
#certLightbox .lb-img-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 85vw;
    max-height: 85vh;
}
#certLightbox .lb-img-box img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.7);
    display: block;
    animation: lbZoom .3s ease;
}
@keyframes lbZoom {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
#certLightbox .lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .25s;
    z-index: 10;
}
#certLightbox .lb-close:hover {
    background: #11A21B;
    transform: rotate(90deg);
}
#certLightbox .lb-prev,
#certLightbox .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s;
    z-index: 10;
}
#certLightbox .lb-prev { left: 18px; }
#certLightbox .lb-next { right: 18px; }
#certLightbox .lb-prev:hover,
#certLightbox .lb-next:hover {
    background: #11A21B;
    border-color: #11A21B;
}
#certLightbox .lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 5px 20px;
    border-radius: 20px;
    z-index: 10;
}

@media (max-width: 767px) {
    .cert-img-wrap img { height: 230px; }
    .cert-section-top h2 { font-size: 26px; }
    #certLightbox .lb-img-box img { max-width: 92vw; max-height: 80vh; }
}
@media (max-width: 575px) {
    .cert-img-wrap img { height: 190px; }
    .certificate-section { padding: 50px 0 60px; }
    #certLightbox .lb-prev { left: 6px; }
    #certLightbox .lb-next { right: 6px; }
}
