.certs-page { background: #fff; }
.breadcrumb a { text-decoration: none; }
/* Page header banner */
.shop-header { position: relative; min-height: 360px; overflow: hidden; color: #fff; background: var(--petrol-dark); isolation: isolate; }
.shop-header-photo { position: absolute; inset: 0; z-index: -3; background: url("../images/certificates-hero.jpg") center/cover no-repeat; }
.shop-shape { position: absolute; inset: 0; pointer-events: none; }
.shop-shape-main { z-index: -2; background: linear-gradient(100deg, rgba(5,5,5,.9) 0%, rgba(21,21,21,.76) 70%, rgba(38,38,38,.28) 100%); clip-path: polygon(0 0, 64% 0, 50% 100%, 0 100%); }
.shop-shape-stripe { z-index: -2; background: var(--brand-red); clip-path: polygon(64% 0, 66.4% 0, 52.4% 100%, 50% 100%); }
.shop-shape-glow { z-index: -2; background: rgba(237,28,36,.55); clip-path: polygon(52.4% 100%, 57% 100%, 59.5% 78%, 54.5% 78%); mix-blend-mode: multiply; }
.shop-shape-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(237,28,36,.35), transparent); clip-path: polygon(0 0, 100% 0, 80% 60%, 0 60%); opacity: 0; }
.shop-header-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; padding-top: 135px; padding-bottom: 1.5rem; }
.shop-header-copy { max-width: 520px; }
.shop-kicker { display: inline-block; margin-bottom: .9rem; padding-bottom: .5rem; color: #ff6a70; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--brand-red); }
.shop-title { margin-bottom: .75rem; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.shop-sub { max-width: 420px; margin: 0; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.6; }
.shop-crumb { margin-top: 2rem; }
.shop-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.45); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .85rem; }
.shop-breadcrumb a { color: #fff; text-decoration: none; }
.shop-breadcrumb a:hover { color: #ff6a70; }

@media (max-width: 991.98px) {
  .shop-header, .shop-header-inner { min-height: 320px; }
  .shop-header-inner { padding-top: 120px; }
  .shop-shape-main { clip-path: polygon(0 0, 82% 0, 62% 100%, 0 100%); }
  .shop-shape-stripe { clip-path: polygon(82% 0, 85% 0, 65% 100%, 62% 100%); }
  .shop-shape-glow { display: none; }
}
@media (max-width: 575.98px) {
  .shop-header-photo { background-position: 70% center; }
  .shop-shape-main { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); background: linear-gradient(100deg, rgba(5,5,5,.9), rgba(24,24,24,.68)); }
  .shop-shape-stripe { clip-path: polygon(100% 0, 100% 5%, 90% 100%, 88% 100%); }
  .shop-sub { max-width: 280px; }
}


.certs-section { padding: 4rem 0 5rem; }
.certs-container { max-width: 1240px; }
.certs-intro { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.certs-intro h2 { margin-bottom: .75rem; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.certs-intro p { margin: 0; color: #5b656b; font-size: 1.02rem; line-height: 1.7; }

.cert-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.cert-filters button { padding: .55rem 1.2rem; color: #4a5358; background: #fff; border: 1px solid #dfe4e7; font-size: .88rem; font-weight: 600; transition: all .2s ease; }
.cert-filters button:hover { color: var(--ink); border-color: var(--ink); }
.cert-filters button.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.cert-card { display: flex; flex-direction: column; }
.cert-card.is-hidden { display: none; }
.cert-thumb { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; background: #f2f4f5; border: 1px solid #e6eaed; transition: box-shadow .25s ease, border-color .25s ease; cursor: zoom-in; }
.cert-card:hover .cert-thumb, .cert-thumb:focus-visible { border-color: #cfd6db; box-shadow: 0 14px 34px rgba(16,37,54,.12); outline: 0; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.04); }
.cert-paper { position: absolute; inset: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 2rem 1.5rem; background: #fff; box-shadow: 0 2px 10px rgba(16,37,54,.08); border-top: 4px solid var(--brand-red); }
.cert-paper > i { color: var(--brand-red); font-size: 2.4rem; }
.cert-lines { display: flex; flex-direction: column; gap: .7rem; width: 100%; }
.cert-lines b { display: block; height: 7px; background: #e6eaed; border-radius: 4px; }
.cert-lines b:nth-child(1) { width: 70%; align-self: center; height: 9px; background: #d5dbdf; }
.cert-lines b:nth-child(3) { width: 85%; }
.cert-lines b:nth-child(4) { width: 55%; }
.cert-view { position: absolute; left: 50%; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; color: #fff; background: var(--ink); font-size: .8rem; font-weight: 600; opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .25s ease; }
.cert-card:hover .cert-view, .cert-thumb:focus-visible .cert-view { opacity: 1; transform: translate(-50%, 0); }
.cert-body { padding-top: 1rem; }
.cert-type { color: var(--brand-red); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cert-title { margin: .35rem 0 .2rem; font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.cert-sub { margin: 0 0 .15rem; color: #5b656b; font-size: .88rem; }
.cert-issuer { margin: 0 0 .75rem; color: #8a949a; font-size: .8rem; }
.cert-download { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--brand-red); padding-bottom: 2px; transition: color .2s ease; }
.cert-download:hover { color: var(--brand-red); }
.cert-download[href="#"] { display: none; }

.certs-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 4.5rem; padding: 2rem 2.25rem; color: #fff; background: var(--petrol-dark); border-left: 4px solid var(--brand-red); }
.certs-cta h3 { margin: 0 0 .3rem; font-size: 1.4rem; font-weight: 600; }
.certs-cta p { margin: 0; color: rgba(255,255,255,.7); }

/* Lightbox */
.cert-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 1rem; background: rgba(8,20,30,.92); }
.cert-lightbox[hidden] { display: none; }
.cert-lb-close { position: absolute; top: 1.25rem; right: 1.25rem; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 50%; transition: background .2s ease; }
.cert-lb-close:hover { background: var(--brand-red); }
.cert-lb-stage { display: grid; place-items: center; max-width: min(900px, 100%); max-height: 80vh; }
.cert-lb-stage img { max-width: 100%; max-height: 80vh; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cert-lb-empty { max-width: 420px; padding: 2.5rem 2rem; text-align: center; color: var(--ink); background: #fff; }
.cert-lb-empty i { color: var(--brand-red); font-size: 2.5rem; }
.cert-lb-empty p { margin: .75rem 0 0; color: #5b656b; }
.cert-lb-caption { margin: 0; color: #fff; font-size: .95rem; font-weight: 600; }

@media (max-width: 1099.98px) { .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .certs-section { padding: 2.5rem 0 3.5rem; }
  .certs-cta { padding: 1.5rem; }
}
@media (max-width: 479.98px) {
  .cert-paper { inset: 1rem; padding: 1.25rem 1rem; }
  .cert-title { font-size: .95rem; }
}

.black-theme .shop-shape-main { background: linear-gradient(100deg, rgba(5,5,5,.9) 0%, rgba(15,15,15,.76) 70%, rgba(28,28,28,.28) 100%); }
.black-theme .cert-filters button.active, .black-theme .cert-view, .black-theme .cert-filters button:hover { border-color: #151515; }

.certs-empty { padding: 4rem 1rem; margin-bottom: 2rem; text-align: center; color: #5b656b; background: #f6f7f8; }
.certs-empty i { display: block; margin-bottom: .6rem; color: #b5bbc0; font-size: 3rem; }
.certs-empty h3 { color: #111; font-size: 1.4rem; }
