/* === CERTIFICATION SECTION === */
.section-title-container {
    border-bottom: unset !important;
}
.cert-section-wrap {
    position: relative;
    width: 100%;
    padding: 5rem 0;
    overflow: hidden;
}

/* Full-width Background Image */
.cert-section-wrap .cert-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cert-section-wrap .cert-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.cert-section-wrap .cert-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.10);
}

/* Content Layer */
.cert-section-wrap .cert-content {
    position: relative;
    z-index: 10;
}

/* Section Title */
.cert-section-wrap .cert-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .cert-section-wrap .cert-title {
        font-size: 3rem;
    }
}

/* === GALLERY CAROUSEL === */
.cert-section-wrap .cert-gallery {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.cert-section-wrap .cert-cards {
    position: absolute;
    width: 14rem;
    height: 18rem;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-section-wrap .cert-cards li {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 14rem;
    height: 18rem;
    text-align: center;
    line-height: 18rem;
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0.8rem;
    overflow: hidden;
}

.cert-section-wrap .cert-cards li img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Hiển thị ngay lập tức */
    cursor: pointer;
}

/* === NAVIGATION BUTTONS === */
.cert-section-wrap .cert-actions {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    pointer-events: none;
}

.cert-section-wrap .cert-actions button {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    outline: none;
    padding: 0;
    background: #ffffff;
    border: none;
    color: #000000;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-section-wrap .cert-actions button:hover {
    background: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: #cc0000;
}

/* === LIGHTBOX === */
.cert-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-lightbox-overlay.cert-lb-flex {
    display: flex;
}

.cert-lightbox-overlay.cert-lb-active {
    opacity: 1;
}

.cert-lightbox-overlay .cert-lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.cert-lightbox-overlay .cert-lb-close:hover {
    color: #cc0000;
}

.cert-lightbox-overlay .cert-lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .cert-section-wrap .cert-gallery {
        height: 500px;
    }

    .cert-section-wrap .cert-actions {
        top: auto;
        bottom: 20px;
        transform: none;
        padding: 0 30%;
    }

    .cert-section-wrap .cert-cards {
        width: 12rem;
        height: 15rem;
    }

    .cert-section-wrap .cert-cards li {
        width: 12rem;
        height: 15rem;
    }
}

@media screen and (max-width: 480px) {
    .cert-section-wrap .cert-gallery {
        height: 450px;
    }

    .cert-section-wrap .cert-cards {
        width: 10rem;
        height: 13rem;
    }

    .cert-section-wrap .cert-cards li {
        width: 10rem;
        height: 13rem;
    }
}