/* Certifications Section */
.certifications-section {
    width: 100%;
    position: relative;
    color: rgb(var(--color-text));
    background: rgb(var(--color-background));
}

.certifications-section .page-width{
    padding-top: 100px;
}

certifications-achievements {
    display: block;
}

/* Card */
.certifications-card {
    display: flex;
    align-items: center;
    background: rgb(var(--color-button-background));
    border-radius: 24px;
    overflow: hidden;
    min-height: 360px;
}

/* Certificates Stack */
.certificates-stack {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    height: 100%;
}

.certificate-item {
    width: 500px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    position: absolute;
    top: 100px;
}

.certificate-item img{
    object-fit: cover;
}



.certificate-item:nth-child(1) {
    transform: scale(1);
    z-index: 3;
}

.certificate-item:nth-child(2) {
    transform: scale(1);
    z-index: 2;
}

.certificate-item:nth-child(3) {
    transform: scale(1);
    z-index: 1;
}

.certificate-item img,
.certificate-item svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.certifications-content {
    flex: 1;
    background: rgb(var(--color-button-background));
    color: rgb(var(--color-button-text));
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
}

.certifications-title {
    margin: 0 0 20px 0;
}

.certifications-description {
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .certifications-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .certificates-stack {
        width: 100%;
        padding: 32px 24px 16px;
    }

    .certificate-item {
        width: 75%;
        top: 40px;
    }

    .certificate-item:not(:first-child) {
        margin-left: -50px;
    }

    .certifications-content {
        width: 100%;
        padding: 32px 24px;
        min-height: auto;
        text-align: center;
    }

    .certifications-title {
        margin-bottom: 12px;
    }

}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .certifications-card {
        min-height: 360px;
    }

    .certificates-stack {
        padding: 32px;
    }

    .certificate-item {
        width: 170px;
    }

    .certificate-item:not(:first-child) {
        margin-left: -60px;
    }

    .certifications-content {
        padding: 40px 32px;
        min-height: 360px;
    }

}

