/* Certificates Section Styles */

.certificates-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 60px 0;
}

.certificates-section h2 {
    font-size: 2.5rem;
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Slider Container */
.certificates-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.certificates-container {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.certificates-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 10px;
}

/* Certificate Card */
.certificate-card {
    flex: 0 0 calc(33.333% - 14px);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 15px;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.certificate-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.certificate-card h4 {
    color: #2d3748;
    font-weight: 600;
    margin: 10px 0 5px 0;
    font-size: 1rem;
}

.certificate-card p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Slider Buttons */
.slider-btn {
    background: #c19a6b;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #a0826d;
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-prev {
    order: -1;
}

.slider-next {
    order: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Lightbox Content */
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Lightbox Caption */
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #c19a6b;
    transform: scale(1.2);
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(193, 154, 107, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #c19a6b;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .certificate-card {
        flex: 0 0 calc(50% - 10px);
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .certificates-section h2 {
        font-size: 1.8rem;
    }

    .certificate-card {
        flex: 0 0 100%;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .certificates-slider {
        gap: 10px;
    }

    .certificates-track {
        gap: 15px;
    }

    .certificate-img {
        height: 200px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 8px 12px;
        font-size: 1.2rem;
        left: 10px;
        right: 10px;
    }

    .lightbox-next {
        left: auto;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }

    .lightbox-caption {
        bottom: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .certificates-section {
        padding: 40px 0;
    }

    .certificates-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .certificate-card {
        padding: 10px;
    }

    .certificate-img {
        height: 150px;
        margin-bottom: 10px;
    }

    .certificate-card h4 {
        font-size: 0.9rem;
    }

    .certificate-card p {
        font-size: 0.8rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .lightbox-close {
        font-size: 1.2rem;
    }
}

/* Smooth Transitions */
.certificates-track {
    will-change: transform;
}

.certificate-card,
.slider-btn,
.lightbox-prev,
.lightbox-next {
    will-change: transform;
}

/* Accessibility */
.slider-btn:focus,
.lightbox-prev:focus,
.lightbox-next:focus,
.lightbox-close:focus {
    outline: 2px solid #c19a6b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .certificates-slider,
    .lightbox-modal {
        display: none;
    }
}
