/* =========================================================
   Certificates page
   ========================================================= */

.certificates-hero {
  padding: 180px 0 80px;
  background: var(--bg-dark, #111110);
  color: var(--text-primary, #f5f0e8);
  position: relative;
}
.certificates-hero__content {
  max-width: 1200px;
  margin: 0 auto;
}
.certificates-hero__line {
  width: 60px;
  height: 1px;
  background: var(--accent-gold, #c9a84c);
  margin-bottom: 24px;
}
.certificates-hero__label {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-gold, #c9a84c);
}
.certificates-hero__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 20px 0 16px;
}
.certificates-hero__sub {
  font-family: "DM Sans", sans-serif;
  max-width: 640px;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.6;
}

/* Grid */
.certificates-grid {
  padding: 100px 0 120px;
  background: var(--bg-dark-alt, #1a1917);
}
.certificates-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
@media (max-width: 1024px) {
  .certificates-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .certificates-grid__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Card */
.cert-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 0;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.cert-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
}

/* Visual (faux certificate) */
.cert-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0e0e0c;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  overflow: hidden;
}
.cert-card__visual-inner {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #f5f0e8;
}
.cert-card__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-gold, #c9a84c);
}
.cert-card__corner--tl {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.cert-card__corner--tr {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}
.cert-card__corner--bl {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}
.cert-card__corner--br {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}
.cert-card__emblem {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-gold, #c9a84c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cert-card__star {
  color: var(--accent-gold, #c9a84c);
  font-size: 20px;
}
.cert-card__issuer {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.cert-card__sub-issuer {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  margin-top: 2px;
}
.cert-card__divider {
  width: 40px;
  height: 1px;
  background: var(--accent-gold, #c9a84c);
  margin: 12px auto;
}
.cert-card__cert-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.2;
  max-width: 80%;
}
.cert-card__cert-range {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold, #c9a84c);
  margin-top: 6px;
}

/* Variant accents */
.cert-card--merit .cert-card__visual,
.cert-card--educator .cert-card__visual {
  background: linear-gradient(180deg, #141310 0%, #0a0a08 100%);
}
.cert-card--educator .cert-card__visual-inner {
  border-color: rgba(201, 168, 76, 0.65);
}

/* Info below */
.cert-card__info {
  padding: 24px;
  color: var(--text-primary, #f5f0e8);
}
.cert-card__number {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-gold, #c9a84c);
}
.cert-card__title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin: 8px 0 10px;
  line-height: 1.25;
}
.cert-card__range {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 12px;
}
.cert-card__range-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-gold, #c9a84c);
  margin-right: 6px;
}
.cert-card__desc {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.75);
}

/* Bottom CTA */
.certificates-cta {
  padding: 100px 0;
  background: var(--bg-dark, #111110);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}
.certificates-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.certificates-cta__heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text-primary, #f5f0e8);
  max-width: 820px;
  line-height: 1.15;
}

/* Tier passport link (reusable for membership.php tier passport CTAs) */
.tier__passport-link {
  display: inline-block;
  margin-top: 16px;
  margin-left: 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold, #c9a84c);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.tier__passport-link:hover {
  border-bottom-color: var(--accent-gold, #c9a84c);
}

/* Judge card apply link (competitions.php) */
.comp-judge-card__apply {
  display: inline-block;
  margin-top: 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold, #c9a84c);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}
.comp-judge-card__apply:hover {
  border-bottom-color: var(--accent-gold, #c9a84c);
}
