/* ==========================================================================
   63366-2.css — 인증사항 페이지
   ========================================================================== */

/* ---------- 공통: 컨테이너 (alignfull + constrained) ---------- */
.mag-section {
  max-width: var(--content-size);
  margin-inline: auto;
  padding-inline: var(--root-pad-x);
}

/* ---------- 공통: 매거진 히어로 ---------- */
.mh-hero { position: relative; overflow: hidden; color: #fff; }
.mh-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mh-hero__dim {
  position: absolute; inset: 0;
  background: linear-gradient(45deg, #141e30 0%, #243b55 100%);
  opacity: 0.6;
}
.mh-hero__content { position: relative; z-index: 1; }
.mh-hero__inner {
  min-height: 403px;
  padding-top: var(--space-70);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
}
.mh-hero__spacer-top { height: 0; flex-basis: 140px; }
.mh-hero__spacer-bottom { height: 0; flex-basis: 100px; }
.mh-hero__kicker {
  font-size: clamp(1.039rem, 1.039rem + ((1vw - 0.2rem) * 0.561), 1.6rem);
  font-weight: 700;
  letter-spacing: 7px;
  line-height: 1.2;
}
.mh-hero__title { opacity: 0.5; }
.mh-hero__bar { width: 48px; margin: 0 auto; padding-block: var(--space-20); color: #fff; }
.mh-hero__bar svg { display: block; width: 100%; height: auto; fill: currentColor; }

/* 히어로 하단 탭 내비게이션 */
.mh-tabs-wrap {
  max-width: var(--content-size);
  margin-inline: auto;
  padding-inline: var(--root-pad-x);
}
.mh-tabs {
  background-color: #0000004f;
  display: flex;
  align-items: flex-end;
}
.mh-tab {
  display: block;
  color: var(--color-base);
  padding: 3px var(--space-10);
  transition: color 0.3s ease, background-color 0.3s ease;
}
.mh-tab p { text-align: center; padding-block: var(--space-20); }
a.mh-tab:hover { color: var(--color-primary); background-color: #0000004f; }
.mh-tab.is-active {
  background-color: var(--color-base);
  color: var(--color-contrast);
  border-top: 6px solid var(--color-primary);
  padding-block: 0;
}
@media (max-width: 780px) {
  .mh-hero__spacer-top, .mh-hero__spacer-bottom { display: none; }
}

/* ---------- 공통: 섹션 헤딩 (인용구 + h2) ---------- */
.mag-head { padding-block: var(--space-70); }
.mag-head__spacer { height: 0; padding-block: var(--space-30); }
.mag-quote {
  font-size: var(--fs-xxx-huge);
  color: var(--color-primary);
  line-height: 1;
}
.mag-quote svg {
  width: 0.5em;
  height: auto;
  display: block;
  fill: currentColor;
  transform: rotate(180deg);
  animation: mag-quote-bounce 2s ease 2s 1;
}
@keyframes mag-quote-bounce {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-12%); }
}
.mag-head__gap { height: 0; padding-block: var(--space-10); }
.mag-h2 {
  font-size: var(--fs-xxx-large);
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- 인증 카드 그리드 ---------- */
.mag-section--cards { padding-top: 0; padding-bottom: var(--space-70); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3vw;
  row-gap: var(--space-50);
}
.cert-grid--hidden { display: none; }
.cert-grid__gap { height: 0; padding-block: var(--space-30); }
.cert-grid__gap-lg { height: 100px; }

.cert-item__caption { margin-top: var(--space-20); }
.cert-item__title {
  font-size: var(--fs-x-large);
  font-weight: 700;
  line-height: 1.6;
}
.cert-item__brand { color: var(--color-step-13); }

.cert-card {
  min-height: 250px;
  clip-path: polygon(100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px), 0 0);
}
.cert-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}
.cert-card:hover img { transform: scale(1.111); }
.cert-card__dim { position: absolute; inset: 0; }
.cert-card__dim--g12-10 {
  background: linear-gradient(45deg, #614385 0%, #516395 100%);
  opacity: 0.1;
}
.cert-card__dim--g5-10 {
  background: linear-gradient(45deg, #c9c9c9 0%, #c0c0c0 100%);
  opacity: 0.1;
}
.cert-card__dim--g06-20 {
  background: linear-gradient(45deg, #bdc3c7 0%, #2c3e50 100%);
  opacity: 0.2;
}

/* ---------- 재배 배너 ---------- */
.cert-banner { position: relative; overflow: hidden; color: #fff; }
.cert-banner__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cert-banner__dim {
  position: absolute; inset: 0;
  background: linear-gradient(45deg, #141e30 0%, #243b55 100%);
  opacity: 0.5;
}
.cert-banner__content {
  position: relative; z-index: 1;
  max-width: var(--content-size);
  margin-inline: auto;
  padding-inline: var(--root-pad-x);
  padding-block: var(--space-70);
}
.cert-banner__spacer { height: 200px; padding-block: var(--space-70); }
.mag-quote--banner {
  font-size: var(--fs-m-huge);
  padding-bottom: var(--space-20);
}
.cert-banner__label {
  font-size: var(--fs-large);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--space-10);
  margin-left: 3px;
}
.cert-banner__desc {
  color: #fff;
  opacity: 0.5;
  margin-top: var(--space-20);
}
.cert-banner__gap { height: 0; padding-block: var(--space-10); }
.cert-banner__big {
  font-size: var(--fs-xxxx-large);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.cert-banner__end { height: 0; padding-block: var(--space-20); }

/* ---------- 마무리 ---------- */
.cert-end-spacer { height: 103px; }
.cert-end-rule {
  border: none;
  border-top: 2px solid var(--color-step-3);
  margin: 0;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card, .cert-card img { min-height: 220px; }
}

/* 서브내비 탭: 전체 폭 균등 분할 (원본 정렬) */
.mh-tab { flex: 1 1 0; }
.mh-tab p { text-align: center; }
