/* =========================================================
   NHQF PREMIUM CERTIFICATE VERIFICATION PAGE
   জাতীয় হুফফাজুল কুরআন ফাউন্ডেশন বাংলাদেশ
========================================================= */


/* =========================
   ROOT VARIABLES
========================= */

:root {
    --primary-green: #064d2c;
    --secondary-green: #0a6b3d;
    --light-green: #eaf7ef;
    --deep-green: #033b22;
    --gold: #d7aa32;
    --light-gold: #f5d675;
    --dark-gold: #a97910;
    --white: #ffffff;
    --off-white: #f8faf8;
    --text-dark: #17221b;
    --text-light: #66736b;
    --border-light: #d9e6dd;
    --danger: #c62828;
    --success: #138a50;
    --shadow-soft: 0 12px 35px rgba(0, 54, 30, 0.12);
    --shadow-deep: 0 20px 55px rgba(0, 40, 22, 0.18);
}


/* =========================
   BASIC RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.certificate-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(215, 170, 50, 0.09),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #f6faf7 0%,
            #edf5ef 45%,
            #f9fbf9 100%
        );
    color: var(--text-dark);
    font-family: SolaimanLipi, "Noto Sans Bengali", Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

button,
input {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}


/* =========================
   COMMON CONTAINER
========================= */

.certificate-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   CERTIFICATE HEADER
========================= */

.certificate-header {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 20px;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            rgba(2, 45, 25, 0.98),
            rgba(8, 105, 58, 0.95)
        );
}

.certificate-header::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -210px;
    left: -120px;
    border-radius: 50%;
    border: 2px solid rgba(245, 214, 117, 0.18);
    box-shadow:
        0 0 0 45px rgba(245, 214, 117, 0.04),
        0 0 0 90px rgba(245, 214, 117, 0.025);
}

.certificate-header::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -210px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.13);
    box-shadow:
        0 0 0 40px rgba(255, 255, 255, 0.035),
        0 0 0 80px rgba(255, 255, 255, 0.02);
}

.certificate-header-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.22)
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.015) 0,
            rgba(255, 255, 255, 0.015) 2px,
            transparent 2px,
            transparent 12px
        );
}

.certificate-header-content {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    animation: headerFadeUp 0.9s ease both;
}

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--light-gold);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
}

.back-home:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.certificate-logo {
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    object-fit: contain;
    border-radius: 50%;
    padding: 7px;
    background: rgba(255, 255, 255, 0.92);
    border: 4px solid rgba(245, 214, 117, 0.75);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        0 0 0 8px rgba(255, 255, 255, 0.07);
}

.official-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--light-gold);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.certificate-header h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.25;
    font-weight: 800;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.certificate-header h2 {
    margin-bottom: 14px;
    color: var(--light-gold);
    font-size: clamp(23px, 3.3vw, 34px);
    line-height: 1.35;
    font-weight: 800;
}

.certificate-header-text {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.9;
}


/* =========================
   SEARCH SECTION
========================= */

.certificate-search-section {
    position: relative;
    z-index: 5;
    margin-top: -58px;
    padding: 0 0 55px;
}

.certificate-search-card {
    width: min(850px, 100%);
    margin: 0 auto;
    padding: 42px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(215, 170, 50, 0.28);
    border-radius: 26px;
    box-shadow: var(--shadow-deep);
    text-align: center;
    backdrop-filter: blur(14px);
    animation: cardFadeUp 0.8s 0.15s ease both;
}

.search-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--primary-green),
            var(--secondary-green)
        );
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(6, 77, 44, 0.22);
}

.certificate-search-card h2 {
    margin-bottom: 8px;
    color: var(--primary-green);
    font-size: 30px;
    font-weight: 800;
}

.certificate-search-card > p {
    max-width: 610px;
    margin: 0 auto 26px;
    color: var(--text-light);
    font-size: 17px;
}

#certificateSearchForm {
    text-align: left;
}

#certificateSearchForm label {
    display: block;
    margin-bottom: 9px;
    color: var(--deep-green);
    font-size: 16px;
    font-weight: 800;
}

.certificate-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

#certificateNumber {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 2px solid #dce8df;
    border-radius: 14px;
    color: var(--text-dark);
    background: #fbfdfb;
    font-size: 17px;
    outline: none;
    transition: 0.3s ease;
}

#certificateNumber::placeholder {
    color: #9aa79f;
}

#certificateNumber:focus {
    border-color: var(--secondary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 107, 61, 0.11);
}

.certificate-search-btn {
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--primary-green),
            var(--secondary-green)
        );
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6, 77, 44, 0.2);
    transition: 0.3s ease;
}

.certificate-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(6, 77, 44, 0.28);
}

.certificate-search-btn:active {
    transform: translateY(0);
}

.search-example {
    margin-top: 17px !important;
    margin-bottom: 0 !important;
    padding: 11px 15px;
    border-radius: 12px;
    color: #5c6a61 !important;
    background: var(--light-green);
    font-size: 15px !important;
}

.search-example strong {
    color: var(--primary-green);
}


/* =========================
   STATUS BOXES
========================= */

.certificate-status-box {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 55px;
    padding: 34px;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    animation: cardFadeUp 0.5s ease both;
}

.loading-box {
    color: var(--primary-green);
    background: var(--white);
    border: 1px solid var(--border-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 5px solid #dcece1;
    border-top-color: var(--secondary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-box p {
    font-size: 17px;
    font-weight: 700;
}

.error-box {
    color: #742222;
    background: #fff4f4;
    border: 1px solid #efc5c5;
}

.status-icon {
    margin-bottom: 12px;
    font-size: 45px;
}

.error-box h2 {
    margin-bottom: 8px;
    color: var(--danger);
    font-size: 27px;
}

.error-box p {
    color: #7b4c4c;
    font-size: 16px;
}


/* =========================
   RESULT SECTION
========================= */

.certificate-result-section {
    padding: 0 0 75px;
    animation: cardFadeUp 0.65s ease both;
}

.result-action-bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.result-action-btn {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.11);
}

.print-btn {
    background:
        linear-gradient(
            135deg,
            #1e6c48,
            #0d8b55
        );
}

.download-btn {
    color: #2c230d;
    background:
        linear-gradient(
            135deg,
            var(--light-gold),
            var(--gold)
        );
}

.result-action-btn:hover {
    transform: translateY(-2px);
}


/* =========================
   PREMIUM CERTIFICATE CARD
========================= */

.premium-certificate-card {
    position: relative;
    overflow: hidden;
    padding: 42px;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.97),
            rgba(255, 255, 255, 0.97)
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 14px,
            rgba(215, 170, 50, 0.04) 14px,
            rgba(215, 170, 50, 0.04) 15px
        );
    border: 2px solid var(--gold);
    border-radius: 28px;
    box-shadow: var(--shadow-deep);
}

.premium-certificate-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(6, 77, 44, 0.2);
    border-radius: 20px;
}

.premium-certificate-card::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -210px;
    top: -210px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(215, 170, 50, 0.12),
            transparent 68%
        );
    pointer-events: none;
}

.certificate-corner {
    position: absolute;
    z-index: 2;
    width: 72px;
    height: 72px;
    border-color: var(--gold);
    pointer-events: none;
}

.corner-top-left {
    top: 18px;
    left: 18px;
    border-top: 4px solid;
    border-left: 4px solid;
    border-top-left-radius: 16px;
}

.corner-top-right {
    top: 18px;
    right: 18px;
    border-top: 4px solid;
    border-right: 4px solid;
    border-top-right-radius: 16px;
}

.corner-bottom-left {
    bottom: 18px;
    left: 18px;
    border-bottom: 4px solid;
    border-left: 4px solid;
    border-bottom-left-radius: 16px;
}

.corner-bottom-right {
    right: 18px;
    bottom: 18px;
    border-right: 4px solid;
    border-bottom: 4px solid;
    border-bottom-right-radius: 16px;
}


/* =========================
   RESULT CARD HEADER
========================= */

.result-card-header {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 20px;
    align-items: center;
    padding-bottom: 26px;
    border-bottom: 2px solid rgba(215, 170, 50, 0.55);
}

.result-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    padding: 5px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 22px rgba(6, 77, 44, 0.14);
}

.result-institute-title {
    text-align: center;
}

.result-institute-title span {
    color: var(--dark-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.result-institute-title h2 {
    margin: 5px 0;
    color: var(--primary-green);
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.3;
    font-weight: 800;
}

.result-institute-title p {
    color: var(--text-light);
    font-size: 16px;
}

.verified-stamp {
    width: 112px;
    height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    border: 4px double var(--secondary-green);
    border-radius: 50%;
    background: rgba(234, 247, 239, 0.86);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    transform: rotate(-8deg);
}

.verified-stamp span {
    margin-bottom: -2px;
    font-size: 34px;
}


/* =========================
   STUDENT PROFILE
========================= */

.student-profile-area {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 34px 0;
    padding: 28px;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(234, 247, 239, 0.95),
            rgba(255, 250, 234, 0.95)
        );
    border: 1px solid rgba(215, 170, 50, 0.3);
}

.student-photo-box {
    position: relative;
    flex: 0 0 auto;
}

.student-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 22px;
    border: 5px solid var(--white);
    outline: 3px solid var(--secondary-green);
    box-shadow: 0 12px 28px rgba(6, 77, 44, 0.22);
}

.photo-verified-mark {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--success);
    border: 4px solid var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}

.student-main-info {
    flex: 1;
}

.verified-text {
    margin-bottom: 6px;
    color: var(--dark-gold);
    font-size: 15px;
    font-weight: 800;
}

.student-main-info h2 {
    margin-bottom: 6px;
    color: var(--primary-green);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.25;
}

.student-main-info p {
    margin-bottom: 13px;
    color: var(--text-light);
    font-size: 17px;
}

.student-main-info p strong {
    color: var(--text-dark);
}

.official-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--secondary-green),
            var(--success)
        );
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 20px rgba(19, 138, 80, 0.22);
}


/* =========================
   INFORMATION GRID
========================= */

.certificate-info-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-item {
    min-height: 92px;
    padding: 17px 19px;
    border-radius: 16px;
    background: #fbfdfb;
    border: 1px solid var(--border-light);
    transition: 0.3s ease;
}

.info-item:hover {
    border-color: rgba(10, 107, 61, 0.38);
    box-shadow: 0 9px 20px rgba(6, 77, 44, 0.08);
    transform: translateY(-2px);
}

.info-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.45;
}

.info-item .status-valid {
    color: var(--success);
}


/* =========================
   SEAL, NOTE AND QR AREA
========================= */

.verification-footer-area {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 220px 1fr 190px;
    gap: 25px;
    align-items: center;
    margin-top: 30px;
    padding: 28px;
    border-radius: 20px;
    background: rgba(248, 250, 248, 0.9);
    border: 1px solid var(--border-light);
}

.official-seal-area {
    text-align: center;
}

.official-seal {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 50%;
    border: 5px double var(--gold);
    background:
        radial-gradient(
            circle,
            #fffef8 0%,
            #f4e4a8 100%
        );
    box-shadow: 0 10px 26px rgba(169, 121, 16, 0.16);
}

.official-seal img {
    width: 83px;
    height: 83px;
    object-fit: contain;
    opacity: 0.9;
}

.official-seal span {
    position: absolute;
    bottom: 12px;
    color: var(--primary-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.official-seal-area p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.verification-note {
    padding: 0 10px;
    text-align: center;
}

.verification-note h3 {
    margin-bottom: 7px;
    color: var(--primary-green);
    font-size: 22px;
}

.verification-note p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 15px;
}

.verification-note span {
    color: var(--dark-gold);
    font-size: 14px;
    font-weight: 800;
}

.qr-code-area {
    text-align: center;
}

.qr-code-box {
    width: 145px;
    height: 145px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--white);
    border: 8px solid var(--white);
    outline: 2px solid var(--primary-green);
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(6, 77, 44, 0.15);
}

.qr-code-box img,
.qr-code-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.qr-code-box span {
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 900;
}

.qr-code-area p {
    color: var(--text-light);
    font-size: 13px;
}


/* =========================
   CARD BOTTOM
========================= */

.certificate-card-bottom {
    position: relative;
    z-index: 3;
    margin-top: 26px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px dashed rgba(6, 77, 44, 0.28);
}

.certificate-card-bottom p {
    max-width: 780px;
    margin: 0 auto 8px;
    color: var(--text-light);
    font-size: 14px;
}

.certificate-card-bottom strong {
    color: var(--primary-green);
    font-size: 15px;
    letter-spacing: 0.4px;
}


/* =========================
   FOOTER
========================= */

.certificate-footer {
    padding: 28px 20px;
    color: rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(
            135deg,
            var(--deep-green),
            var(--primary-green)
        );
    text-align: center;
}

.certificate-footer .certificate-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.certificate-footer p {
    font-size: 14px;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes headerFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   TABLET RESPONSIVE
========================= */

@media (max-width: 980px) {

    .certificate-header {
        min-height: 420px;
    }

    .result-card-header {
        grid-template-columns: 85px 1fr;
    }

    .verified-stamp {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100px;
        height: 100px;
    }

    .verification-footer-area {
        grid-template-columns: 1fr 1fr;
    }

    .verification-note {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 720px) {

    .certificate-container {
        width: min(100% - 24px, 1180px);
    }

    .certificate-header {
        min-height: auto;
        padding: 45px 16px 90px;
    }

    .certificate-logo {
        width: 92px;
        height: 92px;
    }

    .certificate-header-text {
        font-size: 16px;
        line-height: 1.75;
    }

    .certificate-search-section {
        margin-top: -50px;
    }

    .certificate-search-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .certificate-search-card h2 {
        font-size: 25px;
    }

    .certificate-search-row {
        grid-template-columns: 1fr;
    }

    .certificate-search-btn {
        width: 100%;
    }

    .result-action-bar {
        justify-content: stretch;
    }

    .result-action-btn {
        flex: 1;
    }

    .premium-certificate-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .premium-certificate-card::before {
        inset: 8px;
        border-radius: 15px;
    }

    .certificate-corner {
        width: 48px;
        height: 48px;
    }

    .result-card-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .result-logo {
        width: 82px;
        height: 82px;
    }

    .student-profile-area {
        flex-direction: column;
        text-align: center;
        padding: 22px 16px;
    }

    .student-photo {
        width: 135px;
        height: 135px;
    }

    .certificate-info-grid {
        grid-template-columns: 1fr;
    }

    .verification-footer-area {
        grid-template-columns: 1fr;
        padding: 22px 16px;
    }

    .verification-note {
        grid-column: auto;
        grid-row: auto;
        order: -1;
    }

    .certificate-footer .certificate-container {
        justify-content: center;
        text-align: center;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 430px) {

    .certificate-header h1 {
        font-size: 28px;
    }

    .certificate-header h2 {
        font-size: 22px;
    }

    .official-label {
        font-size: 12px;
    }

    .back-home {
        font-size: 14px;
    }

    .certificate-search-card {
        padding: 24px 15px;
    }

    #certificateNumber {
        font-size: 15px;
    }

    .result-action-bar {
        flex-direction: column;
    }

    .result-action-btn {
        width: 100%;
    }

    .premium-certificate-card {
        padding: 24px 13px;
    }

    .result-institute-title h2 {
        font-size: 24px;
    }

    .student-main-info h2 {
        font-size: 28px;
    }

    .official-verified-badge {
        font-size: 12px;
        padding: 8px 13px;
    }

    .info-item {
        padding: 15px;
    }
}


/* =========================
   PRINT DESIGN
========================= */

@media print {

    @page {
        size: A4;
        margin: 10mm;
    }

    body.certificate-page {
        background: var(--white) !important;
    }

    .certificate-header,
    .certificate-search-section,
    .certificate-status-box,
    .result-action-bar,
    .certificate-footer {
        display: none !important;
    }

    .certificate-result-section {
        display: block !important;
        padding: 0 !important;
    }

    .certificate-container {
        width: 100% !important;
        max-width: none !important;
    }

    .premium-certificate-card {
        width: 100%;
        padding: 24px;
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .premium-certificate-card,
    .premium-certificate-card * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .info-item:hover {
        transform: none;
        box-shadow: none;
    }
}

/* =========================================
   Certificate Search Result
========================================= */

.certificate-result-section {
    width: 100%;
    padding: 45px 20px 70px;
    background: #f5f8f6;
}

.certificate-result-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 38px;
    background: #ffffff;
    border: 2px solid #d8bc62;
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(0, 58, 31, 0.13);
    position: relative;
    overflow: hidden;
}

.certificate-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(
        90deg,
        #07552f,
        #d8bc62,
        #07552f
    );
}

.certificate-result-card > h2 {
    margin: 5px 0 10px;
    text-align: center;
    color: #07552f;
    font-size: 32px;
    font-weight: 700;
}

.certificate-result-card > p {
    margin: 0 0 32px;
    text-align: center;
    color: #68756e;
    font-size: 17px;
    line-height: 1.7;
}

.certificate-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.certificate-info-item {
    min-height: 105px;
    padding: 18px 20px;
    background: #f4faf6;
    border: 1px solid #dbe9df;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.25s ease;
}

.certificate-info-item:hover {
    border-color: #c8a943;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 69, 37, 0.08);
}

.certificate-info-item span {
    display: block;
    margin-bottom: 7px;
    color: #758079;
    font-size: 15px;
    font-weight: 500;
}

.certificate-info-item strong {
    display: block;
    color: #10291c;
    font-size: 19px;
    line-height: 1.5;
    word-break: break-word;
}

/* =========================================
   Certificate Error
========================================= */

.certificate-error-section {
    width: 100%;
    padding: 45px 20px 70px;
    background: #f8f8f8;
}

.certificate-error-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 35px 25px;
    text-align: center;
    background: #fff5f5;
    border: 1px solid #efb5b5;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(120, 0, 0, 0.08);
}

.certificate-error-card h2 {
    margin: 0 0 12px;
    color: #b42318;
    font-size: 29px;
}

.certificate-error-card p {
    margin: 0;
    color: #6d4444;
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 768px) {
    .certificate-result-section,
    .certificate-error-section {
        padding: 30px 14px 50px;
    }

    .certificate-result-card {
        padding: 30px 18px;
        border-radius: 17px;
    }

    .certificate-result-card > h2 {
        font-size: 26px;
    }

    .certificate-info-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .certificate-info-item {
        min-height: 90px;
        padding: 15px 17px;
    }

    .certificate-info-item strong {
        font-size: 17px;
    }

    .certificate-error-card h2 {
        font-size: 25px;
    }
}