/* Exact copy of ein-junior-curriculum-main: curriculum header + tab bar (style.css lines 403–488) */
:root {
  --ch-red: #ec6856;
  --ch-white: #ffffff;
  --ch-slate-900: #0f172a;
  --ch-slate-800: #1e293b;
  --ch-slate-200: #e2e8f0;
}

.curriculum-header {
  background: var(--ch-white);
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  .curriculum-header {
    padding-top: 3rem;
  }
}

.curriculum-header__text {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.curriculum-header__eyebrow {
  color: var(--ch-red);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.curriculum-header__title {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--ch-slate-900);
  line-height: 1.3;
  word-break: keep-all;
  font-family: "S-CoreDream", "Pretendard Variable", sans-serif;
}

@media (min-width: 1024px) {
  .curriculum-header__title {
    font-size: 2.25rem;
  }
}

.curriculum-tabs {
  border-top: 1px solid var(--ch-slate-200);
  padding: 1.25rem 0;
}

.curriculum-tabs__list {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
  overflow-x: auto;
}

.curriculum-tabs__list.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.curriculum-tabs__list.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (min-width: 1024px) {
  .curriculum-tabs__list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    overflow: visible;
  }
}

.curriculum-tabs__scroll-hint {
  display: none;
}

/* Mobile: show scroll-hint circle + exact chevron icon (matches reference) */
@media (max-width: 767px) {
  .curriculum-tabs {
    position: relative;
  }
  .curriculum-tabs::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4.5rem;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.98));
    pointer-events: none;
    z-index: 1;
  }
  .curriculum-tabs__scroll-hint {
    position: absolute;
    top: 50%;
    right: 0.375rem;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ch-red);
    color: #fff;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 2;
    animation: tabHintBounce 1.2s ease-in-out infinite;
    transition: opacity 0.3s;
  }
  .curriculum-tabs__scroll-hint-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    color: inherit;
  }
  .curriculum-tabs__scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
  }
  @keyframes tabHintBounce {
    0%,
    100% {
      transform: translateY(-50%) translateX(0);
    }
    50% {
      transform: translateY(-50%) translateX(3px);
    }
  }
}

/* Mobile only: smaller tab size to match reference — PC (min-width: 1024px) rules unchanged */
@media (max-width: 1023px) {
  .tab-btn {
    font-size: 0.8125rem !important;
    padding: 0.375rem 0.75rem !important;
  }
}

/* Reference: .tab-btn — use !important so global button reset cannot override */
.tab-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  color: var(--ch-slate-800) !important;
  border: 1px solid var(--ch-slate-200) !important;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s !important;
  cursor: pointer !important;
  background: var(--ch-white) !important;
  font-family: inherit;
  margin: 0;
  outline: none;
}

@media (min-width: 1024px) {
  .tab-btn {
    font-size: 1rem !important;
  }
}

.tab-btn:hover {
  color: var(--ch-red) !important;
}

.tab-btn.is-active {
  background: var(--ch-red) !important;
  color: var(--ch-white) !important;
  border-color: var(--ch-red) !important;
}

.tab-btn.is-active:hover {
  color: var(--ch-white) !important;
}
