/* Section heading styles */


/* Background container that stays behind images */
.certificates-background {
    background: rgba(17, 24, 39);
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 8rem); /* Increased side margins - 4rem padding on each side */
    height: 100%; /* Just match the wrapper height */
    z-index: -1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Wrapper for positioning */
.certificates-wrapper {
    position: relative;
    padding: 2.5rem 2rem; /* Slightly reduced vertical padding */
    margin-bottom: 3rem;
}

/* Certificates container */
.certificates-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.certificate-item {
    flex: 0 0 auto;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    /* Removed the extra padding from certificate-item */
}

.certificate-item:hover {
    transform: translateY(-3px);
}

.certificate-image {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(100, 116, 139, 0.2);
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.certificate-image img {
    width: 90%;
    height: 85%;
    object-fit: contain;
    border-radius: 4px;
}

.placeholder-cert {
    font-size: 4rem;
    color: #475569;
    opacity: 0.8;
}

.issuer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .certificates-background {
        width: calc(100% - 6rem); /* 3rem padding on each side */
    }
    
    .certificate-item {
        width: 300px;
    }
    
    .certificate-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-heading {
        margin-top: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .certificates-background {
        width: calc(100% - 4rem); /* 2rem padding on each side */
    }
    
    .certificates-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .certificates-container {
        gap: 2rem;
    }
    
    .certificate-item {
        width: 280px;
    }
    
    .certificate-image {
        height: 190px;
    }
    
    .placeholder-cert {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .section-heading {
        margin-top: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .certificates-background {
        width: calc(100% - 3rem); /* 1.5rem padding on each side */
    }
    
    .certificates-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .certificate-item {
        width: 100%;
        max-width: 300px;
    }
    
    .certificates-container {
        gap: 1.75rem;
    }
}

@media (max-width: 380px) {
    .certificates-background {
        width: calc(100% - 2rem); /* 1rem padding on each side */
    }
    
    .certificate-image {
        height: 170px;
    }
    
    .placeholder-cert {
        font-size: 3rem;
    }
}