/* Class Descriptions — tabbed accordion inside the Training section.
   Authored against the site's two fixed canvases (1440 desktop / 430 mobile);
   layout.js scales the body with zoom, so sizes here are canvas pixels. */

/* The training section is a fixed-height band; the catalog makes it grow. */
.si-page-training-and-events .training-section {
  height: auto;
  min-height: 694px;
}

.class-catalog {
  /* 972px matches .events-main-row / .cat-section above it. */
  width: 972px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

/* ── Header ── */
.class-catalog .cc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.class-catalog .cc-title {
  font-family: 'Afacad', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  text-transform: uppercase;
  color: #272727;
  margin: 0;
}

.class-catalog .cc-underline {
  width: 60px;
  height: 4px;
  background: #D62121;
  flex-shrink: 0;
}

.class-catalog .cc-intro {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #000000;
  margin: 0;
}

.class-catalog .cc-note {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  color: #4A4A55;
  margin: 0;
  max-width: 720px;
}

.class-catalog .cc-note strong {
  font-weight: 700;
  color: #272727;
}

/* ── Tabs (same vocabulary as .cat-pill in the events section) ── */
.class-catalog .cc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.class-catalog .cc-tab {
  font-family: 'Afacad', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  text-transform: capitalize;
  text-align: center;
  color: #FFFFFF;
  background: #272727;
  border: 0;
  border-radius: 4px;
  padding: 10px 20px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 180ms ease;
}

.class-catalog .cc-tab:hover,
.class-catalog .cc-tab.is-active {
  background: #D62121;
}

.class-catalog .cc-tab:focus-visible {
  outline: 2px solid #D62121;
  outline-offset: 2px;
}

/* ── Panels ── */
.class-catalog .cc-panel {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 14px;
}

.class-catalog .cc-panel.is-active {
  display: flex;
}

.class-catalog .cc-panel-head {
  text-align: center;
}

.class-catalog .cc-panel-title {
  font-family: 'Afacad', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 110%;
  text-transform: uppercase;
  color: #272727;
  margin: 0;
}

.class-catalog .cc-panel-terms {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 150%;
  color: #701111;
  margin: 6px 0 0;
}

/* ── Accordion (same vocabulary as .question-item in FAQSection) ── */
.class-catalog .cc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.class-catalog .cc-item {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E5EB;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 180ms ease;
}

.class-catalog .cc-item.is-open {
  border-color: #D62121;
}

.class-catalog .cc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.class-catalog .cc-trigger:focus-visible {
  outline: 2px solid #D62121;
  outline-offset: -2px;
}

.class-catalog .cc-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.class-catalog .cc-name {
  font-family: 'Afacad', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 110%;
  text-transform: uppercase;
  color: #272727;
}

.class-catalog .cc-code {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 100%;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: #701111;
  border-radius: 4px;
  padding: 4px 7px;
  margin-right: 8px;
  vertical-align: middle;
}

.class-catalog .cc-meta {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  color: #6A6A75;
}

.class-catalog .cc-arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: #D62121;
  transition: transform 180ms ease;
}

.class-catalog .cc-item.is-open .cc-arrow {
  transform: rotate(180deg);
}

.class-catalog .cc-body {
  height: 0;
  overflow: hidden;
  transition: height 250ms ease;
}

.class-catalog .cc-body-inner {
  padding: 0 15px 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #272727;
}

/* ── Mobile canvas (430px) ── */
html.is-mobile .class-catalog {
  width: 100%;
  gap: 16px;
}

html.is-mobile .class-catalog .cc-intro {
  font-size: 15px;
}

/* Pills scroll sideways rather than stacking into six rows. */
html.is-mobile .class-catalog .cc-tabs {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html.is-mobile .class-catalog .cc-tabs::-webkit-scrollbar {
  display: none;
}

html.is-mobile .class-catalog .cc-tab {
  font-size: 16px;
  padding: 9px 16px;
}

html.is-mobile .class-catalog .cc-panel-title {
  font-size: 20px;
}

html.is-mobile .class-catalog .cc-name {
  font-size: 16px;
}

html.is-mobile .class-catalog .cc-list {
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .class-catalog .cc-body,
  .class-catalog .cc-arrow,
  .class-catalog .cc-tab,
  .class-catalog .cc-item {
    transition: none;
  }
}
