/* Simple Lightbox Fallback */
.simple-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.simple-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.simple-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.simple-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Modern Certificates Module Styles */
.modern-certificates-module {
    width: 100%;
    padding: 40px 0;
}

.certificates-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

.certificates-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Certificate Item */
.certificate-item {
    background: #FCF9F7;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.certificate-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
}

/* Certificate Image */
.certificate-image {
    flex: 0 0 250px;
    /* background: #f0ede8; */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.certificate-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.certificate-item:hover .certificate-image img {
    transform: scale(1.05);
}

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

/* Certificate Content */
.certificate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.certificate-title {
    font-family: 'Urbanist', 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.certificate-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #C09D5C;
    margin-bottom: 5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C09D5C;
    display: inline-block;
}

.certificate-description {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 10px 0;
}

/* More Button */
.certificate-button {
    margin-top: 10px;
}

.certificate-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #C09D5C;
    border-radius: 40px;
    color: #C09D5C;
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.certificate-more-btn:hover {
    background: #C09D5C;
    color: #1a1a1a;
    transform: translateX(5px);
}

.certificate-more-btn svg {
    transition: transform 0.3s ease;
}

.certificate-more-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
    .certificate-inner {
        gap: 25px;
        padding: 25px;
    }
    
    .certificate-image {
        flex: 0 0 180px;
    }
    
    .certificate-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        gap: 25px;
    }
    
    .certificate-inner {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .certificate-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .certificate-title {
        font-size: 1.2rem;
    }
    
    .certificate-subtitle {
        display: inline-block;
    }
    
    .certificate-description {
        font-size: 0.9rem;
    }
    
    .certificate-button {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .certificate-inner {
        padding: 15px;
    }
    
    .certificate-title {
        font-size: 1.1rem;
    }
    
    .certificate-more-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}