/* Home > Sample Certificates (themes/theme/pages/explore-certificate.php + sample-certificates.js) - MGAV navy and gold */
.hc { --p1: #0d4aa6; --p2: #0a2f6e; --amb: #f59e0b; --amb2: #ffb81c; --ink: #0b2448; --mut: #5b6677; position: relative; overflow: hidden; padding: 70px 0 60px; background: radial-gradient(ellipse at 50% 0%, #eef4fc 0%, #fff 60%); }
.hc::before { content: ""; position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(13, 74, 166, .08), transparent 60%); pointer-events: none; }
.hc-eye { text-align: center; color: var(--amb); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin: 0; }
.hc-h { text-align: center; font-size: 36px; font-weight: 800; margin: 6px 0; color: var(--ink) !important; }
.hc-h span { color: var(--amb2); }
.hc-h::after { content: ""; display: block; width: 70px; height: 4px; border-radius: 4px; margin: 12px auto 0; background: linear-gradient(90deg, var(--p1), var(--amb2)); }
.hc-sub { text-align: center; color: var(--mut); margin: 0 auto 10px; max-width: 620px; font-size: 15.5px; }
.hc-stage { position: relative; height: 530px; perspective: 1400px; margin-top: 10px; touch-action: pan-y; user-select: none; }
.hc-card { position: absolute; left: 50%; top: 20px; width: 320px; margin-left: -160px; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s, filter .8s; cursor: pointer; }
.hc-frame { position: relative; border-radius: 18px; padding: 8px; background: #fff; box-shadow: 0 24px 50px rgba(11, 36, 72, .18); overflow: hidden; }
.hc-frame::before { content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 3px; background: linear-gradient(135deg, var(--p1), var(--amb2), var(--p2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .6s; }
.hc-card.c0 .hc-frame::before { opacity: 1; }
.hc-frame img { display: block; width: 100%; height: 400px; object-fit: contain; border-radius: 12px; background: #f6f8fc; }
.hc-frame::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); pointer-events: none; }
.hc-card.c0 .hc-frame::after { animation: hcShine 3.5s 1s infinite; }
.hc-zoom { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 8px 18px rgba(13, 74, 166, .35); opacity: 0; transform: scale(.6); transition: all .4s; }
.hc-card.c0 .hc-zoom { opacity: 1; transform: none; }
.hc-no { position: absolute; left: 18px; top: 18px; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(11, 36, 72, .15); }
.hc-lab { display: flex; justify-content: center; margin-top: 14px; opacity: 0; transform: translateY(10px); transition: all .5s .2s; }
.hc-card.c0 .hc-lab { opacity: 1; transform: none; }
.hc-lab span { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--p1), var(--p2)); color: #fff; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; border-radius: 30px; padding: 8px 18px; box-shadow: 0 10px 22px rgba(13, 74, 166, .3); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-lab i { color: var(--amb2); }
.hc-nav { position: absolute; top: 50%; z-index: 30; width: 50px; height: 50px; margin-top: -40px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--p2); background: #fff; box-shadow: 0 10px 24px rgba(11, 36, 72, .18); cursor: pointer; transition: all .25s; }
.hc-nav:hover { color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); transform: scale(1.08); }
.hc-nav.pv { left: 4%; }
.hc-nav.nx { right: 4%; }
.hc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.hc-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: #d9e2ef; cursor: pointer; transition: all .35s; }
.hc-dots button.on { width: 30px; background: linear-gradient(90deg, var(--p1), var(--amb2)); }
.hc-cta { display: flex; justify-content: center; margin-top: 22px; }
.hc-cta a { display: inline-flex; align-items: center; gap: 10px; border-radius: 40px; padding: 12px 26px; font-weight: 800; font-size: 15px; color: var(--p2) !important; background: #fff; border: 2px solid #dbe5f3; text-decoration: none !important; transition: all .3s; }
.hc-cta a:hover { color: #fff !important; background: linear-gradient(110deg, var(--p1), var(--p2)); border-color: transparent; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(13, 74, 166, .3); }
.hc-cta a i { color: #1f9d55; transition: color .3s; }
.hc-cta a:hover i { color: var(--amb2); }
/* full-screen viewer */
.hc-lb { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 18, 40, .9); backdrop-filter: blur(6px); }
.hc-lb.on { display: flex; animation: hcFade .3s both; }
.hc-lb img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 14px; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); animation: hcPop .4s both; cursor: zoom-in; transition: transform .3s; }
.hc-lb img.z { transform: scale(1.6); cursor: zoom-out; }
.hc-lb .x, .hc-lb .lp, .hc-lb .ln { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 18px; background: rgba(255, 255, 255, .14); cursor: pointer; transition: background .2s; }
.hc-lb .x:hover, .hc-lb .lp:hover, .hc-lb .ln:hover { background: var(--amb); }
.hc-lb .x { right: 20px; top: 20px; }
.hc-lb .lp { left: 20px; top: 50%; margin-top: -23px; }
.hc-lb .ln { right: 20px; top: 50%; margin-top: -23px; }
.hc-lb .cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; font-weight: 700; background: rgba(0, 0, 0, .35); border-radius: 20px; padding: 6px 16px; white-space: nowrap; }
@keyframes hcShine { 0% { left: -80%; } 55%, 100% { left: 140%; } }
@keyframes hcFade { from { opacity: 0; } }
@keyframes hcPop { from { opacity: 0; transform: scale(.85); } }
@media (max-width: 767px) {
    .hc { padding: 46px 0 40px; }
    .hc-h { font-size: 27px; }
    .hc-stage { height: 440px; }
    .hc-card { width: 240px; margin-left: -120px; }
    .hc-frame img { height: 320px; }
    .hc-lab span { max-width: 230px; font-size: 12.5px; }
    .hc-nav { width: 40px; height: 40px; font-size: 15px; }
    .hc-nav.pv { left: 8px; }
    .hc-nav.nx { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hc *, .hc *::after { animation: none !important; transition: none !important; } }
