/* PKTTC Certificate Verification — Professional UI v3 */

.certificate-page-pro {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 169, 157, .08), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(14, 142, 219, .07), transparent 25%),
        linear-gradient(180deg, #ffffff, #f6fbfd);
}

.certificate-tools-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
    gap: 30px;
    align-items: stretch;
}

.certificate-search-card,
.certificate-help-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(7, 91, 158, .14);
    border-radius: 26px;
    box-shadow: 0 22px 65px rgba(3, 40, 66, .12);
}

.certificate-search-card {
    padding: 38px;
}

.certificate-search-card::before,
.certificate-help-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #00a99d, #0e8edb);
}

.certificate-search-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.certificate-search-icon {
    display: grid;
    place-items: center;
    width: 62px;
    min-width: 62px;
    height: 62px;
    color: #fff;
    background: linear-gradient(135deg, #087f5b, #00a99d);
    border-radius: 19px;
    box-shadow: 0 16px 34px rgba(0, 169, 157, .24);
    font-size: 1.55rem;
    font-weight: 900;
}

.certificate-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #00a99d;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.certificate-search-heading h2 {
    margin: 0 0 7px;
    color: #021a2d;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.certificate-search-heading p {
    margin: 0;
    color: #607387;
}

.certificate-search-form {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(145deg, #f4fcff, #edf8fb);
    border: 1px solid #d8e9ef;
    border-radius: 19px;
}

.certificate-search-form label {
    display: block;
    margin-bottom: 9px;
    color: #304858;
    font-size: .84rem;
    font-weight: 850;
}

.certificate-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px;
}

.certificate-search-row input {
    width: 100%;
    min-height: 56px;
    padding: 0 17px;
    color: #102334;
    background: #fff;
    border: 1px solid #c8dfe8;
    border-radius: 14px;
    outline: 0;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.certificate-search-row input:focus {
    border-color: #075b9e;
    box-shadow: 0 0 0 4px rgba(7, 91, 158, .1);
}

.certificate-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 23px;
    color: #fff;
    background: linear-gradient(135deg, #f5a623, #f07d16);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(240, 125, 22, .25);
    font-weight: 850;
    transition: transform .25s ease, box-shadow .25s ease;
}

.certificate-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(240, 125, 22, .35);
}

.certificate-search-form small {
    display: block;
    margin-top: 9px;
    color: #607387;
}

.certificate-security-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.certificate-security-row > div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #e0edf2;
    border-radius: 15px;
}

.certificate-security-row > div > span {
    display: grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    background: #e9f7fb;
    border-radius: 12px;
}

.certificate-security-row p {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.35;
}

.certificate-security-row strong {
    color: #17344a;
    font-size: .84rem;
}

.certificate-security-row small {
    color: #607387;
    font-size: .69rem;
}

.certificate-help-card {
    padding: 28px;
}

.certificate-help-image {
    display: grid;
    place-items: center;
    min-height: 215px;
    padding: 18px;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 169, 157, .18), transparent 28%),
        linear-gradient(145deg, #edfafd, #e7f5f8);
    border-radius: 19px;
}

.certificate-help-image img {
    width: min(100%, 310px);
    max-height: 205px;
    object-fit: contain;
}

.certificate-help-card h2 {
    margin: 24px 0 16px;
    color: #021a2d;
    font-size: 1.55rem;
}

.certificate-help-card ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.certificate-help-card li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #304858;
}

.certificate-help-card li span {
    display: grid;
    place-items: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    color: #fff;
    background: #087f5b;
    border-radius: 50%;
    font-size: .69rem;
    font-weight: 900;
}

.certificate-employer-note {
    margin-top: 22px;
    padding: 16px 17px;
    color: #5b481e;
    background: #fff8e8;
    border: 1px solid #ffd995;
    border-left: 4px solid #ff8a1f;
    border-radius: 13px;
}

.certificate-employer-note strong {
    color: #36495a;
}

.certificate-employer-note p {
    margin: 4px 0 0;
    font-size: .87rem;
}

.certificate-result-host {
    width: 100%;
    margin-top: 34px;
}

.certificate-result-host:empty {
    display: none;
}

.certificate-not-found {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    color: #8a1f2b;
    background: #fff0f2;
    border: 1px solid #f1c4ca;
    border-radius: 17px;
    box-shadow: 0 14px 35px rgba(86, 19, 31, .08);
}

.certificate-not-found > span {
    display: grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    color: #fff;
    background: #c93645;
    border-radius: 50%;
    font-weight: 900;
}

.certificate-not-found strong {
    display: block;
}

.certificate-not-found p {
    margin: 3px 0 0;
}

/* Result credential */

.verified-credential {
    position: relative;
    overflow: hidden;
    color: #102334;
    background: #fff;
    border: 1px solid rgba(7, 91, 158, .16);
    border-radius: 30px;
    box-shadow: 0 34px 95px rgba(3, 40, 66, .18);
    animation: credential-enter .65s cubic-bezier(.2, .8, .2, 1) both;
    isolation: isolate;
}

@keyframes credential-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.verified-credential::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, #00a99d, #075b9e);
}

.verified-credential.is-revoked::before {
    background: linear-gradient(180deg, #ef6d78, #c93645);
}

.verified-credential-glow {
    position: absolute;
    z-index: -1;
    right: -130px;
    top: 140px;
    width: 380px;
    height: 380px;
    background: #3bd9ff;
    border-radius: 50%;
    filter: blur(115px);
    opacity: .1;
}

.verified-credential-watermark {
    position: absolute;
    z-index: -1;
    right: 25px;
    bottom: -55px;
    color: rgba(7, 91, 158, .04);
    font-size: clamp(8rem, 18vw, 15rem);
    font-weight: 950;
    letter-spacing: -.08em;
    line-height: 1;
    user-select: none;
}

.verified-credential-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 34px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 10%, rgba(59, 217, 255, .22), transparent 31%),
        linear-gradient(118deg, #021a2d, #06486f 56%, #075b9e);
}

.is-revoked .verified-credential-header {
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .1), transparent 31%),
        linear-gradient(118deg, #341219, #7b2632 56%, #c93645);
}

.verified-credential-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.verified-credential-logo {
    display: grid;
    place-items: center;
    width: 62px;
    min-width: 62px;
    height: 62px;
    color: #fff;
    background: linear-gradient(135deg, #00a99d, #11c6ba);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 19px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .24);
    font-size: 1.5rem;
    font-weight: 950;
}

.is-revoked .verified-credential-logo {
    background: linear-gradient(135deg, #c93645, #ec6673);
}

.verified-credential-brand small {
    display: block;
    margin-bottom: 3px;
    color: #bde6f2;
    font-size: .71rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.verified-credential-brand h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.03em;
}

.verified-credential-status {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 185px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.verified-credential-status-dot {
    width: 11px;
    height: 11px;
    background: #62efbd;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(98, 239, 189, .13);
    animation: status-pulse 2s infinite;
}

.is-revoked .verified-credential-status-dot {
    background: #ffd5da;
    box-shadow: 0 0 0 6px rgba(255, 213, 218, .13);
}

@keyframes status-pulse {
    50% {
        box-shadow: 0 0 0 10px rgba(98, 239, 189, 0);
    }
}

.verified-credential-status div {
    display: flex;
    flex-direction: column;
}

.verified-credential-status small {
    color: #bddce7;
    font-size: .69rem;
}

.verified-credential-status strong {
    color: #75f0c6;
    font-size: 1.12rem;
}

.is-revoked .verified-credential-status strong {
    color: #fff;
}

.verified-credential-main {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 34px;
    padding: 36px;
}

.verified-student-card {
    align-self: start;
    padding: 21px;
    background:
        radial-gradient(circle at 50% 0%, rgba(59, 217, 255, .13), transparent 32%),
        linear-gradient(180deg, #f1fbfd, #e8f5f8);
    border: 1px solid #d2e6ed;
    border-radius: 23px;
    text-align: center;
}

.verified-student-photo-wrap {
    position: relative;
    width: 205px;
    height: 255px;
    margin: 0 auto;
    padding: 7px;
    background: #fff;
    border: 1px solid #c6dce5;
    border-radius: 21px;
    box-shadow: 0 20px 48px rgba(3, 40, 66, .2);
    overflow: visible;
}

.verified-student-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #e8f8fc;
    border-radius: 15px;
}

.verified-student-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background:
        radial-gradient(circle at 35% 18%, rgba(255, 255, 255, .28), transparent 32%),
        linear-gradient(145deg, #00a99d, #075b9e);
    border-radius: 15px;
}

.verified-student-placeholder span {
    font-size: 4.6rem;
    font-weight: 950;
    line-height: 1;
}

.verified-photo-badge {
    position: absolute;
    right: -12px;
    bottom: -12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #087f5b;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .22);
    font-size: 1rem;
    font-weight: 950;
}

.verified-student-photo-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 19px;
}

.verified-student-photo-caption span {
    color: #607387;
    font-size: .73rem;
}

.verified-student-photo-caption strong {
    color: #087f5b;
    font-size: .92rem;
}

.is-revoked .verified-student-photo-caption strong {
    color: #c93645;
}

.verified-credential-details {
    min-width: 0;
}

.verified-student-identity {
    position: relative;
    overflow: hidden;
    padding: 27px 29px;
    color: #fff;
    background:
        radial-gradient(circle at 91% 15%, rgba(59, 217, 255, .2), transparent 28%),
        linear-gradient(122deg, #052c46, #075b9e);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(3, 40, 66, .15);
}

.is-revoked .verified-student-identity {
    background:
        radial-gradient(circle at 91% 15%, rgba(255, 255, 255, .12), transparent 28%),
        linear-gradient(122deg, #431a22, #a33442);
}

.verified-student-identity::after {
    content: "✓";
    position: absolute;
    right: 22px;
    top: 50%;
    color: rgba(255, 255, 255, .075);
    font-size: 8rem;
    font-weight: 950;
    line-height: 1;
    transform: translateY(-50%);
}

.is-revoked .verified-student-identity::after {
    content: "×";
}

.verified-student-label {
    position: relative;
    z-index: 1;
    display: block;
    color: #b9dce8;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.verified-student-identity h3 {
    position: relative;
    z-index: 1;
    max-width: 78%;
    margin: 5px 0 17px;
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.verified-registration-box {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    min-width: min(100%, 330px);
    padding: 11px 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
}

.verified-registration-box span {
    color: #b8dce8;
    font-size: .66rem;
}

.verified-registration-box strong {
    color: #a9efff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: .025em;
    overflow-wrap: anywhere;
}

.verified-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
}

.verified-info-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    background: #f6fbfd;
    border: 1px solid #deebf1;
    border-radius: 16px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.verified-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 91, 158, .3);
    box-shadow: 0 13px 30px rgba(3, 40, 66, .09);
}

.verified-info-card-wide {
    grid-column: 1 / -1;
}

.verified-info-icon {
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    color: #075b9e;
    background: #e2f4fa;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 900;
}

.verified-info-card div {
    min-width: 0;
}

.verified-info-card dt {
    margin-bottom: 4px;
    color: #607387;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verified-info-card dd {
    margin: 0;
    color: #021a2d;
    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.verified-credential-footer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 36px 36px;
    padding: 18px 20px;
    color: #11664d;
    background: linear-gradient(135deg, #edf9f4, #e2f5ed);
    border: 1px solid #c7e8d9;
    border-radius: 17px;
}

.is-revoked .verified-credential-footer {
    color: #8e2733;
    background: #fff0f2;
    border-color: #efc7cd;
}

.verified-footer-icon {
    display: grid;
    place-items: center;
    width: 31px;
    min-width: 31px;
    height: 31px;
    color: #fff;
    background: #087f5b;
    border-radius: 50%;
    font-size: .83rem;
    font-weight: 950;
}

.is-revoked .verified-footer-icon {
    background: #c93645;
}

.verified-credential-footer strong {
    display: block;
    margin-bottom: 2px;
}

.verified-credential-footer p {
    margin: 0;
    font-size: .87rem;
    line-height: 1.65;
}

@media (max-width: 950px) {
    .certificate-tools-grid {
        grid-template-columns: 1fr;
    }

    .verified-credential-main {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 26px;
        padding: 29px;
    }

    .verified-student-photo-wrap {
        width: 175px;
        height: 220px;
    }

    .verified-credential-footer {
        margin: 0 29px 29px;
    }
}

@media (max-width: 720px) {
    .certificate-search-card,
    .certificate-help-card {
        padding: 23px;
        border-radius: 21px;
    }

    .certificate-search-row {
        grid-template-columns: 1fr;
    }

    .certificate-search-button {
        width: 100%;
    }

    .certificate-security-row {
        grid-template-columns: 1fr;
    }

    .verified-credential {
        border-radius: 22px;
    }

    .verified-credential-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 23px 22px;
    }

    .verified-credential-status {
        width: 100%;
        min-width: 0;
    }

    .verified-credential-main {
        grid-template-columns: 1fr;
        gap: 23px;
        padding: 23px 21px;
    }

    .verified-student-card {
        display: grid;
        grid-template-columns: 155px 1fr;
        align-items: center;
        gap: 19px;
        text-align: left;
    }

    .verified-student-photo-wrap {
        width: 155px;
        height: 195px;
    }

    .verified-student-photo-caption {
        margin-top: 0;
    }

    .verified-student-identity {
        padding: 23px 21px;
    }

    .verified-student-identity h3 {
        max-width: 100%;
        padding-right: 38px;
        font-size: 1.8rem;
    }

    .verified-info-grid {
        grid-template-columns: 1fr;
    }

    .verified-info-card-wide {
        grid-column: auto;
    }

    .verified-credential-footer {
        margin: 0 21px 23px;
    }
}

@media (max-width: 470px) {
    .certificate-search-heading {
        flex-direction: column;
    }

    .verified-credential-brand {
        align-items: flex-start;
    }

    .verified-credential-logo {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .verified-credential-brand h2 {
        font-size: 1.4rem;
    }

    .verified-student-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .verified-student-photo-wrap {
        width: 180px;
        height: 225px;
    }

    .verified-registration-box {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .verified-credential,
    .verified-credential-status-dot,
    .certificate-search-button,
    .verified-info-card {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .verified-credential {
        box-shadow: none;
        break-inside: avoid;
    }

    .verified-info-card:hover,
    .certificate-search-button:hover {
        transform: none;
        box-shadow: none;
    }
}


.verified-credential-logo img {
    width: 48px;
    height: 48px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border-radius: 13px;
}

.verified-student-secondary-name {
    position: relative;
    z-index: 1;
    margin: -8px 0 16px;
    color: #c9e7f1;
    font-size: 1rem;
    font-weight: 700;
}
