﻿

:root {
    --font-en: var(--font); /*'Manrope', system-ui, sans-serif;*/
    --paper: #ffffff;
    --paper-2: #ffffff; /* #f6f8f9;*/
    --ink: var(--primary); /*#16323b*/
    --ink-soft: var(--secondary) /*#52676e*/;
    --line: #e2e8ea;
    --neon: 233, 154, 60;
    --font-ar: var(--font); /*'Tajawal', system-ui, sans-serif;*/
    --font-logo: 'Playfair Display', Georgia, serif;
}
/*
html, body {
    direction: ltr !important;text-align: left;
}

body {
    background: var(--paper);
    font-family: var(--font-en);
}

*/
.gs-nav a, .gs-pill, .gs-footer a, .gs-footer .contact span, input, button {
    font-family: var(--font-en);
}

a {
    color: var(--primary);
}

    a:hover {
        color: var(--secondary);
    }

/* ---------- HERO ---------- */
.hero {
    position: relative;
   /* background: var(--paper-2);radial-gradient(700px 400px at 15% 0%, rgba(var(--neon), .08), transparent 60%), var(--paper-2);*/
    padding: 70px 56px 80px;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .5;
        background-image: radial-gradient(rgba(28,78,94,.07) 1.4px, transparent 1.4px);
        background-size: 26px 26px;
        mask-image: radial-gradient(900px 500px at 20% 10%, #000, transparent 70%);
    }

.hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 48px;
    align-items: center;
}

.lead .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--line);
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(28,78,94,.06);
}

    .lead .eyebrow .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--secondary);
        box-shadow: 0 0 0 4px rgba(var(--neon),.2);
    }

.lead h1 {
    font-size: 46px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 14px;
    line-height: 1.14;
    letter-spacing: -.8px;
}

    .lead h1 b {
        color: var(--ink-soft);
        position: relative;
    }

        .lead h1 b::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 4px;
            width: 100%;
            height: 10px;
            background: rgba(var(--neon),.3);
            z-index: -1;
            border-radius: 4px;
        }

.lead p.sub {
    font-size: 18px;
    color: var(--ink-soft);
    margin: 0 0 30px;
    max-width: 500px;
    line-height: 1.65;
    text-wrap: pretty;
}

.searchwrap {
    max-width: 560px;
}

.neon-field {
    position: relative;
    border-radius: 18px;
    padding: 2.5px;
    background: #fff;
    box-shadow: 0 0 0 1.5px rgba(var(--neon), .55), 0 8px 22px rgba(var(--neon), .25), 0 0 0 6px rgba(var(--neon), .07);
    transition: box-shadow .3s, transform .3s;
    animation: neonPulseL 3s ease-in-out infinite;
}

@keyframes neonPulseL {
    0%,100% {
        box-shadow: 0 0 0 1.5px rgba(var(--neon),.5), 0 8px 22px rgba(var(--neon),.22), 0 0 0 6px rgba(var(--neon),.06);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(var(--neon),.8), 0 10px 30px rgba(var(--neon),.4), 0 0 0 8px rgba(var(--neon),.12);
    }
}

.neon-field.focused {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2.5px rgba(var(--neon),.95), 0 14px 40px rgba(var(--neon),.5), 0 0 0 10px rgba(var(--neon),.14);
    animation: none;
}

.neon-field.shake {
    animation: shake .4s;
}

@keyframes shake {
    0%,100% {
        transform: translateX(0)
    }

    20%,60% {
        transform: translateX(-9px)
    }

    40%,80% {
        transform: translateX(9px)
    }
}

.field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 15px;
    padding: 8px 18px;
}

    .field-row .sicon {
        color: var(--secondary);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .field-row input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 17px;
        font-weight: 600;
        color: var(--ink);
        padding: 14px 4px;
        letter-spacing: .6px;
    }

        .field-row input::placeholder {
            color: #9fb0b5;
            font-weight: 400;
            letter-spacing: 0;
        }

.go-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: 12px;
    transition: all .18s;
    letter-spacing: .3px;
}

    .go-btn:hover {
        background: var(--primary);
        transform: translateY(-1px);
    }

.hint {
    margin-top: 14px;
    font-size: 14px;
    color: var(--ink-soft);
}

    .hint code {
        color: var(--primary);
        font-family: monospace;
        letter-spacing: 1px;
        background: #fff;
        border: 1px solid var(--line);
        padding: 2px 8px;
        border-radius: 6px;
    }

.steps {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary) 100%);
    border-radius: 24px;
    padding: 34px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(21,65,79,.28);
}

    .steps::after {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(var(--neon),.2);
        filter: blur(50px);
        top: -70px;
        right: -40px;
    }

    .steps h3 {
        font-size: 19px;
        margin: 0 0 22px;
        position: relative;
        z-index: 2;
    }

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .step:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .step .num {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background: rgba(var(--neon),.18);
        border: 1px solid rgba(var(--neon),.45);
        color: var(--secondary);
        display: grid;
        place-items: center;
        font-weight: 800;
        flex-shrink: 0;
    }

    .step .st {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .step .sd {
        font-size: 13.5px;
        color: rgba(255,255,255,.66);
        line-height: 1.5;
    }

/* ---------- RESULT ---------- */
.result-zone {
    padding: 0 56px 90px;
   /* background: var(--paper-2);*/
}

    .result-zone .inner {
        max-width: 1180px;
        margin: 0 auto;
    }

.cert-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(21,65,79,.16);
    transform: translateY(36px);
    /*opacity: 0;*/
    transition: all .55s cubic-bezier(.2,.8,.2,1);
}

    .cert-card.in {
        transform: translateY(0);
        opacity: 1;
    }

.cert-preview {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary) 100%);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    position: relative;
    text-align: center;
}

    .cert-preview::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(var(--neon),.16);
        filter: blur(50px);
        bottom: -80px;
        left: -50px;
    }

.mini-doc {
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    width: 100%;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
    position: relative;
    z-index: 2;
    border: 2px solid var(--secondary);
}

    .mini-doc .md-gs {
        font-family: var(--font-logo);
        font-weight: 900;
        color: var(--primary);
        font-size: 22px;
    }

    .mini-doc .md-k {
        letter-spacing: 3px;
        font-size: 9px;
        color: var(--secondary);
        font-weight: 700;
        margin: 8px 0 2px;
    }

    .mini-doc .md-t {
        font-family: var(--font-logo);
        font-size: 18px;
        color: var(--primary);
    }

    .mini-doc .md-name {
        font-size: 15px;
        font-weight: 800;
        margin: 12px 0 2px;
        border-bottom: 1.5px solid var(--secondary);
        display: inline-block;
        padding-bottom: 3px;
    }

    .mini-doc .md-prog {
        font-size: 11px;
        color: var(--ink-soft);
        margin-top: 6px;
    }

    .mini-doc .md-seal {
        position: absolute;
        bottom: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1.5px dashed var(--secondary);
        color: var(--primary);
        font-size: 6.5px;
        display: grid;
        place-items: center;
        font-weight: 800;
        line-height: 1.2;
    }

.cert-preview .open-link {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    font-family: inherit;
    transition: color .18s;
}

    .cert-preview .open-link:hover {
        color: #fff;
    }

.cert-preview .pv-sep {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.16);
    position: relative;
    z-index: 2;
    margin: 4px 0 2px;
}

.cert-preview .qr-box {
    width: 100%;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .cert-preview .qr-box .qr-img {
        width: 142px;
        height: 142px;
        background: #fff;
        border-radius: 10px;
        padding: 7px;
        display: block;
    }

    .cert-preview .qr-box .qr-cap {
        font-size: 12px;
        color: rgba(255,255,255,.82);
        font-weight: 600;
        line-height: 1.5;
        max-width: 190px;
    }

/* details */
.cert-detail {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
}

.cd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(46,160,90,.1);
    color: #1f8a52;
    border: 1px solid rgba(46,160,90,.3);
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .3px;
}

    .status-chip .ck {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #1f8a52;
        color: #fff;
        display: grid;
        place-items: center;
    }

.cd-no-box {
    text-align: right;
}

    .cd-no-box .l {
        font-size: 11.5px;
        color: var(--ink-soft);
        letter-spacing: 1.2px;
        text-transform: uppercase;
        font-weight: 700;
    }

    .cd-no-box .v {
        font-family: monospace;
        font-size: 17px;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 1px;
    }

.cd-divider {
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

.holder-block {
    margin-top: 14px;
}

    .holder-block .hl {
        font-size: 11px;
        letter-spacing: 1.6px;
        text-transform: uppercase;
        color: var(--ink-soft);
        font-weight: 700;
        margin-bottom: 3px;
    }

    .holder-block .hn {
        font-family: var(--font-logo);
        font-size: 25px;
        font-weight: 800;
        color: var(--ink);
        line-height: 1.1;
    }

    .holder-block .hp {
        font-size: 15px;
        color: var(--primary);
        font-weight: 700;
        margin-top: 3px;
    }

/* section blocks */
.sec {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
    align-items: start;
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
}

    .sec-title svg {
        color: var(--secondary);
    }

    .sec-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 24px;
}

.cf {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .cf.full {
        grid-column: 1 / -1;
    }

    .cf .k {
        font-size: 12px;
        color: var(--ink-soft);
    }

    .cf .v {
        font-size: 16.5px;
        font-weight: 700;
        color: var(--ink);
    }

        .cf .v.vcode {
            font-family: monospace;
            font-size: 15px;
            letter-spacing: 1.2px;
            color: var(--primary);
        }

        .cf .v.ok {
            color: #1f8a52;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            letter-spacing: .8px;
        }

/* issued by */
.issuer-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-slot {
    width: 66px;
    height: 66px;
    border-radius: 12px;
    border: 1.5px dashed rgba(28,78,94,.3);
    background: var(--paper-2);
    display: grid;
    place-items: center;
    text-align: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 8px;
}

    .logo-slot img {
        width: 100%;
    }

.issuer-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .issuer-meta .inst {
        font-family: var(--font-logo);
        font-size: 19px;
        font-weight: 800;
        color: var(--primary);
        line-height: 1.15;
    }

    .issuer-meta .ref {
        font-size: 12px;
        color: var(--ink-soft);
    }

        .issuer-meta .ref b {
            font-family: monospace;
            color: var(--ink);
            letter-spacing: 1px;
            font-size: 13px;
        }

/* assessment result */
.score-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.score-tile {
    border: 1px solid var(--line);
    background: var(--paper-2);
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .score-tile .k {
        font-size: 11px;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: var(--ink-soft);
        font-weight: 700;
    }

    .score-tile .v {
        font-size: 24px;
        font-weight: 800;
        color: var(--primary);
        line-height: 1;
        letter-spacing: -.5px;
    }

    .score-tile.pass .v {
        color: #1f8a52;
        font-size: 21px;
        letter-spacing: 1px;
    }

.score-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(28,78,94,.1);
    overflow: hidden;
    margin-top: 2px;
}

    .score-bar i {
        display: block;
        height: 100%;
        width: 86%;
        border-radius: 99px;
        background: var(--secondary);
    }

/* digital badge */
.badge-card {
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, rgba(var(--neon),.07), var(--paper-2));
}

.badge-medal {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(21,65,79,.24);
    border: 2px solid var(--secondary);
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: 17px;
}

.badge-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

    .badge-meta .bn {
        font-size: 15px;
        font-weight: 800;
        color: var(--ink);
        line-height: 1.25;
    }

    .badge-meta .bi {
        font-size: 12px;
        color: var(--ink-soft);
    }

.badge-btn {
    flex-shrink: 0;
    border: 1.5px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 10px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .18s;
    font-family: var(--font-en);
}

    .badge-btn:hover {
        background: var(--primary);
        color: #fff;
    }

/* accreditation */
.ac-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ac {
    padding: 7px 11px;
    border-radius: 9px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    gap: 2px;
    text-align: center;
}

    .ac .m {
        font-family: var(--font-logo);
        font-size: 15px;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
        letter-spacing: .4px;
    }

    .ac .n {
        font-size: 8.5px;
        letter-spacing: .3px;
        color: var(--ink-soft);
        line-height: 1.2;
    }

/* share */
.share-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.share-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px 26px;
    align-items: end;
}

.share-label {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

    .share-label svg {
        color: var(--secondary);
    }

.link-row {
    display: flex;
    gap: 8px;
}

.link-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 11px;
    padding: 9px 12px;
    font-family: monospace;
    font-size: 13.5px;
    color: var(--primary);
    letter-spacing: .3px;
    outline: none;
}

.copy-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .18s;
    font-family: var(--font-en);
}

    .copy-btn:hover {
        background: var(--primary);
    }

    .copy-btn.copied {
        background: #1f8a52;
    }

.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .share-icons .sh {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        border: 1.5px solid var(--line);
        color: var(--primary);
        background: #fff;
        transition: all .18s;
    }

        .share-icons .sh:hover {
            background: var(--secondary);
            border-color: var(--secondary);
            color: #fff;
            transform: translateY(-2px);
        }

.cert-foot {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.dl-btn {
    flex: 1;
    border: none;
    border-radius: 13px;
    padding: 14px;
    background: var(--secondary);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 26px rgba(var(--neon),.4);
    transition: all .2s;
    font-family: var(--font-en);
    letter-spacing: .2px;
}

    .dl-btn:hover {
        background: var(--secondary);
        box-shadow: 0 12px 34px rgba(var(--neon),.55);
        transform: translateY(-2px);
    }

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cert-card {
        grid-template-columns: 1fr;
    }

    .sec-grid, .share-row {
        grid-template-columns: 1fr;
    }

    .rows, .score-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Fullscreen Certificate Modal */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .cert-modal.active {
        opacity: 1;
        pointer-events: auto;
    }

.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cert-modal-content {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.cert-modal-body img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero .lead {
        padding: 0 1rem;
    }

        .hero .lead h1 {
            font-size: 1.4rem;
            line-height: 1.25;
        }

    .searchwrap .neon-field .field-row {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .neon-field .field-row input[type="text"],
    .neon-field .field-row .selectpicker {
        width: 100% !important;
        box-sizing: border-box;
    }

    .neon-field .field-row .go-btn {
        width: 100%;
        padding: .6rem .75rem;
    }

    aside.steps {
        order: 2;
        padding: 0 1rem 1rem 1rem;
    }

    .steps .step {
        display: flex;
        gap: .75rem;
        align-items: flex-start;
    }

    .steps .num {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
    }
}

@media (max-width: 480px) {
    .hero .lead h1 {
        font-size: 1.1rem;
    }

    .hero .sub {
        font-size: .9rem;
    }

    .steps .st {
        font-size: .95rem;
    }

    .steps .sd {
        font-size: .85rem;
    }

    .hero-grid {
        padding: .5rem 0;
    }
}