/* Certificate Section Styles */
.certificate-section {
    padding: 5rem 1rem;
    background-color: var(--light-color);
}

.certificate-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.certificate-wrapper {
    position: relative;
    max-width: 600px;
    border: 5px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.certificate-wrapper:hover {
    transform: scale(1.02);
}

.certificate-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.certificate-wrapper:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(0, 166, 81, 0.8);
    border-radius: 30px;
}

.certificate-description {
    text-align: center;
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* License Section Styles */
.license-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.license-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.license-card {
    width: 300px;
    background: linear-gradient(135deg, #fff, #f0fff5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.license-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 2;
}

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

.license-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.pdf-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.pdf-preview {
    width: 90%;
    height: 90%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
}

.pdf-header {
    background-color: #e74c3c;
    padding: 10px;
    text-align: center;
}

.pdf-logo {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.pdf-content {
    padding: 15px;
    text-align: center;
}

.pdf-content h4 {
    margin: 0 0 10px;
    color: #333;
}

.pdf-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.license-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.license-card:hover .license-overlay {
    opacity: 1;
}

.license-overlay span {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.license-card h3 {
    padding: 15px 15px 5px;
    margin: 0;
    color: #333;
}

.license-card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

/* PDF Modal Styles */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.certificate-modal.active {
    display: flex;
}

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

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .certificate-wrapper {
        max-width: 90%;
    }
    
    .certificate-overlay span {
        font-size: 1rem;
        padding: 8px 16px;
    }
}