@media (max-width: 1429px) {
  main {
    margin-top: 70px;
  }
}

.category-hero {
  width: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #161616;
}

.category-hero-inner {
  max-width: 1100px;
  padding: 0 4%;
}

.category-kicker {
  margin: 0 0 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  font-size: 1rem;
}

.category-hero h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #242424;
}

@media (max-width: 1440px) {
  .category-hero h1 { font-size: 3rem; }
}

@media (max-width: 1200px) {
  .category-hero { min-height: 263px; }
  .category-hero h1 { font-size: 2.5rem; line-height: 1.15; }
}

@media (max-width: 768px) {
  .category-hero { min-height: 280px; padding: 40px 0; }
  .category-hero-inner { padding: 0 6%; }
  .category-kicker { font-size: 0.8rem; letter-spacing: 1px; }
  .category-hero h1 { font-size: 2rem; letter-spacing: 1px; }
}

/* ── Tabs ── */
.section-divider {
  border-bottom: 1px solid var(--border);
}

.cert-tabs-bar {
  padding: 50px 0;
}

.cert-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cert-tab {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #fff;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.cert-tab:hover {
  border-color: var(--navy);
}

.cert-tab.active {
  background: #eee;
  border-color: #eee;
  color: var(--navy);
}

.cert-panels {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 75px;
}

.cert-panel {
  display: none;
}

.cert-panel.active {
  display: block;
}

.cert-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 50px;
}

.cert-img-box {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 750 / 950;
  background: #f4f4f4;
  border: 1px solid rgba(15, 28, 46, 0.35);
  overflow: hidden;
}

.cert-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cert-title-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d1d180;
  backdrop-filter: blur(17px);
  padding: 16px 20px;
  text-align: center;
  z-index: 20;
}

.cert-hover-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.cert-hover-panel {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d1d1d180;
  backdrop-filter: blur(17px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 42px;
  transition: bottom .68s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10;
  color: #1a1a1a;
  text-align: center;
}

.cert-item:hover .cert-hover-panel {
  bottom: 0;
}

.cert-hover-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1a1a1a;
}

@media (max-width: 900px) {
  .cert-img-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .cert-img-grid {
    grid-template-columns: 1fr;
  }
}
