/* Unified Certifications Section Styling */
#certifications {
    padding: 100px 10%;
    position: relative;
}

.certifications-scroll-container {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
}

.certifications-scroll-area {
    max-height: 1000px; /* Increased to allow 2 rows of cards */
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

/* Custom Scrollbar */
.certifications-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.certifications-scroll-area::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px; /* Fixed height for uniformity */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cert-card:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.cert-image {
    height: 180px;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.02); /* Subtle background for the logo */
}

.cert-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.issuer-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background: rgba(112, 0, 255, 0.2);
    border: 1px solid var(--color-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 600;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cert-skills {
    color: var(--color-primary) !important;
    font-weight: 500;
}

.credential-id {
    font-family: monospace;
    font-size: 0.75rem !important;
    opacity: 0.8;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-bottom: 1.5rem;
}

.cert-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cert-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cert-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #certifications {
        padding: 80px 5%;
    }
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    .cert-card {
        min-height: auto;
    }
}
