/* ═══════════════════════════════════════════
   CREDENTIALS — #credentials-root
   Chứng chỉ có bằng chứng kiểm chứng được: ảnh + số chứng chỉ + nút Verify
═══════════════════════════════════════════ */
#credentials-root {
    position: relative;
    background: #000;
    color: #fff;
    font-family: var(--primary-font);
    padding: 90px 24px 110px;
    overflow: hidden;
}

#credentials-root,
#credentials-root *,
#credentials-root *::before,
#credentials-root *::after {
    box-sizing: border-box;
}

#credentials-root .cred-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

#credentials-root .cred-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: rgba(160, 195, 255, 1);
    margin: 0 0 20px;
}

#credentials-root .cred-title {
    /* Dấu tiếng Việt: nền gradient (background-clip:text) chỉ tô trong hộp nội dung,
       dấu chồng (Ố, Ệ, Ậ…) vượt lên trên hộp nên bị mất màu → trông như bị cắt.
       Nới hộp bằng padding rồi bù margin âm: chữ đủ chỗ, bố cục không đổi. */
    padding-block: 0.22em 0.14em;
    margin-block-start: -0.22em;

    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 calc(30px - 0.14em);
    background: linear-gradient(180deg, #fff 30%, rgba(160, 195, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hàng logo đơn vị cấp chứng chỉ — mặc định trắng, hover trả lại màu gốc */
#credentials-root .cred-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px 46px;
    list-style: none;
    margin: 0 0 46px;
    padding: 0;
}

#credentials-root .cred-logos li {
    display: flex;
    align-items: center;
}

#credentials-root .cred-logos a {
    display: block;
    border-radius: 6px;
}

#credentials-root .cred-logos img {
    display: block;
    height: 30px;
    width: auto;
    /* brightness(0) làm mọi màu thành đen, invert(1) lật thành trắng đều */
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}

/* Logo chữ 1 dòng trông to hơn lockup 2 dòng của PACE ở cùng chiều cao → hạ bớt */
#credentials-root .cred-logos .logo-claude img { height: 25px; }

#credentials-root .cred-logos a:hover img,
#credentials-root .cred-logos a:focus-visible img {
    filter: none;
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    #credentials-root .cred-logos {
        gap: 18px 30px;
        margin-bottom: 34px;
    }
    #credentials-root .cred-logos img { height: 24px; }
    #credentials-root .cred-logos .logo-claude img { height: 20px; }
}

#credentials-root .cred-list {
    display: grid;
    gap: 24px;
}

#credentials-root .cred-card {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease, background 0.4s ease;
}

#credentials-root .cred-card:hover {
    border-color: rgba(160, 195, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

#credentials-root .cred-image {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

#credentials-root .cred-image:hover {
    transform: translateY(-4px);
}

#credentials-root .cred-image img {
    display: block;
    width: 100%;
    height: auto;
}

#credentials-root .cred-name {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #fff;
}

#credentials-root .cred-org {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 22px;
}

#credentials-root .cred-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px 24px;
    margin: 0 0 26px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#credentials-root .cred-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#credentials-root .cred-meta dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

#credentials-root .cred-meta dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Mã xác minh dài → chữ nhỏ, cho phép xuống dòng, không phá lưới */
#credentials-root .cred-meta dd.cred-code {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    word-break: break-all;
}

#credentials-root .cred-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    background: rgba(160, 195, 255, 0.1);
    border: 1px solid rgba(160, 195, 255, 0.35);
    color: rgba(160, 195, 255, 1);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#credentials-root .cred-verify:hover {
    background: rgba(160, 195, 255, 1);
    color: #000;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #credentials-root {
        padding: 60px 20px 80px;
    }

    #credentials-root .cred-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px;
        text-align: center;
    }

    #credentials-root .cred-image {
        max-width: 260px;
        margin: 0 auto;
    }

    #credentials-root .cred-meta {
        text-align: left;
    }
}
