.certificate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.certificate-container {
    width: 100%;
    max-width: 1200px;
    background: var(--white-color);
    border: 3px solid var(--gainsboro-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.certificate-container::before {
    content: "Go Bangla";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: var(--anti-flash-white-color);
    white-space: nowrap;
    z-index: 0;
}

.corner-top-left,
.corner-bottom-right {
    position: absolute;
    width: 30%;
    height: 30%;
    max-width: 150px;
    max-height: 150px;
}

.corner-top-left {
    top: 0;
    left: 0;
    background: var(--primary-bg-color);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    background: var(--secondary-bg-color);
    clip-path: polygon(100% 100%, 0% 100%, 100% 0);
}

.certificate-qr {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    z-index: 1;
}

.certificate-content {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.certificate-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--black-color);
}

.certificate-text {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--sonic-silver-color);
}

.certificate-event-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--black-color);
    margin-bottom: 10px;
}

.certificate-recipient-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--black-color);
    margin-bottom: 10px;
}

.certificate-position {
    font-size: 1rem;
    color: var(--sonic-silver-color);
    margin-bottom: 20px;
}

.certificate-date {
    font-size: 1rem;
    font-weight: bold;
    color: var(--sonic-silver-color);
    text-align: center;
    margin-bottom: 20px;
}

.certificate-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
}

.certificate-signature {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    color: var(--gainsboro-color);
    margin-top: 20px;
    font-family: 'Brush Script MT', cursive;
}

@media (max-width: 768px) {
    .certificate-container {
        padding: 10px;
    }

    .certificate-container::before {
        font-size: 3.5rem;
    }

    .certificate-title {
        font-size: 1.5rem;
    }

    .certificate-text,
    .certificate-position,
    .certificate-date {
        font-size: 0.9rem;
    }

    .certificate-event-name,
    .certificate-recipient-name {
        font-size: 1.2rem;
    }

    .certificate-logo {
        width: 50px;
    }

    .certificate-qr {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .certificate-title {
        font-size: 1.2rem;
    }

    .certificate-text,
    .certificate-position,
    .certificate-date {
        font-size: 0.8rem;
    }

    .certificate-event-name,
    .certificate-recipient-name {
        font-size: 1rem;
    }

    .certificate-qr {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
}