/* Certifications page specific styles */
.certifications-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--color-bg);
}

.certifications-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 2rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.cert-count {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

/* Animation for the modal */
.certifications-container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Certifications styles */
.certifications-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-category {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cert-category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cert-category-toggle:hover {
    background: #f9f9f9;
}

.cert-category-toggle .arrow {
    margin-right: 0.75rem;
    transition: transform 0.2s ease;
}

.cert-category-toggle[aria-expanded="true"] .arrow {
    transform: rotate(90deg);
}

.cert-issuer-logo {
    height: 24px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.cert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
}

.cert-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cert-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certifications-container {
        padding: 2rem 1.5rem;
    }
    
    .modal-close-btn {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .cert-cards {
        grid-template-columns: 1fr;
    }
}
