﻿@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');

.inner-page {
    position: relative;
    z-index: 1;
}

.main-div {
    font-family: 'Georgia', serif;
}

.certificate {
    padding: 10px;
    max-width: 100%;
    text-align: center;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
    overflow: hidden;
    border: 3px solid #034a82;
}

    .certificate::before {
        position: absolute;
        content: '';
        background-image: url('/cert/mainBg.png');
        background-size: cover; /* ← contain se cover karo */
        background-repeat: no-repeat;
        background-position: center;
        z-index: -1;
        left: 35px;
        top: 35px;
        right: 35px;
        bottom: 35px;
        border: 3px solid #034a82;
        outline: 3px solid #faa816;
    }
    .certificate .title {
        font-size: 70px;
        font-weight: bold;
        color: #ff6a00;
        font-family: 'Tangerine', serif;
        max-width: 86%;
        margin: auto;
    }

    .certificate .subtitle {
        font-size: 18px;
        margin: 5px 0;
        color: #326289;
        font-family: georgia;
        max-width: 86%;
        margin: auto;
    }

    .certificate .content {
        font-size: 16px;
        line-height: 1.4;
        max-width: 57%;
        margin: auto;
        font-weight: 600;
        color: #2f628a;
    }

    .certificate .footer {
        align-self: end;
    }

    .certificate .satya {
        height: 180px;
        padding-top: 39px;
        margin-top: 11px;
    }

    .certificate .barcode {
        margin-top: 0;
        align-self: flex-start;
        display: none;
    }

.mfflex {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0px 53px;
    margin: auto;
    max-width: 86%;
}

.barcode img {
    max-width: 113px;
}

p.Name {
    font-size: 20px;
    color: #000000 !important;
    padding: 0;
}

.certificate .content p {
    margin-bottom: 6px;
    text-align: revert;
    color: #326289;
    font-size: 16px;
}

.mainName p {
    border-bottom: 3px dotted #2f6299;
}

.footer img {
    max-width: 100%;
    object-fit: fill;
    aspect-ratio: 3/3.4;
    height: 52px;
}

.certificate::after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: #034a82;
    border: 3px solid #faa816;
    padding: 6px;
}

@media (max-width: 992px) {
    .certificate .title {
        font-size: 38px;
    }

    .certificate::before {
        top: 20px;
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
}

/* ===== Download Button — Blinking ===== */
button.download-btn {
    padding: 10px 24px;
    border: none;
    background: #faa816;
    border-radius: 10px;
    margin: 24px auto;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    animation: colorBlink 1s infinite;
}

.pdfbtn {
    margin: auto;
    display: block;
    width: 100%;
    text-align: center;
}

button.download-btn:hover {
    background: #04457d;
}

@keyframes colorBlink {
    0%, 100% {
        background-color: #042e5b;
    }

    20% {
        background-color: #f60000;
    }

    50% {
        background-color: #faa816;
    }
}
