body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e; /* dark grey background */
    color: #fff; /* text color */
}

.certificate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden; /* Ensure no overflow issues */
}

.certificate {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: #222;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.certificate-cutout {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, #1e1e1e 50%);
}

.certificate-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure content is above cutout */
}

.certificate-header {
    margin-bottom: 40px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ffcc00;
    margin-bottom: 20px;
}

.certificate-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 18px;
    color: #aaa;
}

.certificate-info {
    color: #ccc;
    line-height: 1.6;
    text-align: left;
}

.certificate-info h2 {
    font-size: 28px;
    color: #ffcc00;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.certificate-info p {
    font-size: 18px;
    margin-top: 20px;
}

.certificate-info a {
    color: #ffcc00;
    text-decoration: none;
    border-bottom: 1px dashed #ffcc00;
    transition: border-bottom 0.3s ease;
}

.certificate-info a:hover {
    border-bottom: 1px solid #ffcc00;
}

.certificate-image {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.certificate-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .certificate {
        border-radius: 0;
    }
}
