/**
 * Certifications Page Specific Styles
 *
 * This file contains CSS specific to the certifications page template
 */

/* Page Layout */
.content-area.certifications-page {
    margin-top: 0 !important;
}

.certifications-page .page-header {
    padding: 80px 0;
    margin-bottom: 0;
}

.certifications-page .page-header .ast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.certifications-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #0e3e26 0%, #1a5d3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.certifications-page .page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
}

.certifications-list-section {
    padding: 0 0 80px 0;
}

.certifications-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Certification Row Styles */
.certification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.certification-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    margin-right: 40px;
}

.certification-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 8px;
    color: #d4af37;
}

.certification-details {
    flex: 1;
}

.certification-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0e3e26;
    margin: 0 0 10px 0;
}

.certification-description,
.certification-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.certification-action {
    flex-shrink: 0;
}

.btn-view-certificate {
    background: linear-gradient(135deg, #0e3e26 0%, #1a5d3a 100%);
    color: #FFD700;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 62, 38, 0.4);
}

/* Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    padding: 5px;
}

.modal-close:hover {
    color: #0e3e26;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.8rem;
    color: #0e3e26;
    margin: 0 0 10px 0;
}

.modal-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

#certificateName {
    font-weight: 600;
    color: #0e3e26;
}

/* Form Styles */
.certificate-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #d4af37;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-submit {
    background: linear-gradient(135deg, #0e3e26 0%, #1a5d3a 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 62, 38, 0.3);
}

/* Success and Error Messages */
.form-success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    color: #0e3e26;
    margin-bottom: 20px;
}

.form-success-message h3 {
    font-size: 1.5rem;
    color: #0e3e26;
    margin: 0 0 15px 0;
}

.form-success-message p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-close-success {
    background: #0e3e26;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-close-success:hover {
    background: #1a5d3a;
}

.form-error-message {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.no-certifications {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-page .page-header {
        padding: 60px 20px;
    }
    
    .certifications-page .page-title {
        font-size: 2rem;
    }
    
    .certification-row {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }
    
    .certification-info {
        flex-direction: column;
        text-align: center;
    }
    
    .certification-action {
        width: 100%;
    }
    
    .btn-view-certificate {
        width: 100%;
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}