/* ─── CATEGORY DETAIL PAGES (shared) ─── */

.cat-breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 0;
  font-size: 13px;
  color: var(--text-gray);
}

.cat-breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
}

.cat-breadcrumb a:hover { color: var(--primary); }
.cat-breadcrumb span { margin: 0 6px; }
.cat-breadcrumb-current { color: var(--text); font-weight: 700; }

/* ─── HERO ─── */
.cat-hero {
  margin: 20px 40px 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  padding: 40px 48px;
  color: white;
}

.cat-hero h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sub);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cat-hero h1 .material-symbols-outlined {
  font-size: 30px;
}

.cat-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin-bottom: 28px;
}

.cat-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cat-hero-btn-primary {
  display: inline-block;
  background: white;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 120px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cat-hero-btn-primary:hover { opacity: 0.85; }

.cat-hero-btn-outline {
  display: inline-block;
  background: transparent;
  color: white;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 120px;
  border: 2px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}

.cat-hero-btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }

.cat-hero-blue   { background: #469DDC; }
.cat-hero-green  { background: #4FAE8A; }
.cat-hero-pink   { background: #D6559B; }
.cat-hero-yellow { background: #C99A1E; }
.cat-hero-salmon { background: #E08774; }

.cat-hero-blue .cat-hero-btn-primary   { color: #469DDC; }
.cat-hero-green .cat-hero-btn-primary  { color: #4FAE8A; }
.cat-hero-pink .cat-hero-btn-primary   { color: #D6559B; }
.cat-hero-yellow .cat-hero-btn-primary { color: #C99A1E; }
.cat-hero-salmon .cat-hero-btn-primary { color: #E08774; }

/* ─── TAB BAR ─── */
.cat-tabbar-sticky {
  position: sticky;
  top: 70px;
  z-index: 150;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.cat-tabbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-tabbar-label {
  font-size: 13px;
  color: var(--text-gray);
  margin-right: 4px;
}

.cat-tab {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-sub);
  padding: 8px 18px;
  border-radius: 120px;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-tab:hover { opacity: 0.8; }

.cat-tab-blue.active   { background: #469DDC; color: white; font-weight: 700; }
.cat-tab-green.active  { background: #4FAE8A; color: white; font-weight: 700; }
.cat-tab-pink.active   { background: #D6559B; color: white; font-weight: 700; }
.cat-tab-yellow.active { background: #C99A1E; color: white; font-weight: 700; }
.cat-tab-salmon.active { background: #E08774; color: white; font-weight: 700; }

/* ─── MODULES ─── */
.cat-modules {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 40px;
}

.cat-module {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid #eee;
}

.cat-module:last-child { border-bottom: none; }

.cat-module-text { flex: 1; min-width: 0; }

.cat-module-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.cat-module-num-blue   { color: #469DDC; }
.cat-module-num-green  { color: #4FAE8A; }
.cat-module-num-pink   { color: #D6559B; }
.cat-module-num-yellow { color: #C99A1E; }
.cat-module-num-salmon { color: #E08774; }

.cat-module-text h2 {
  font-family: var(--font-sub);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.cat-module-text > p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 20px;
  max-width: 680px;
}

.cat-module-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-module-check li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.cat-module-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.cat-module-media {
  flex-shrink: 0;
  width: 380px;
  aspect-ratio: 4/3;
  background: var(--bg-sub);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-gray);
}

/* ─── FAQ ─── */
.cat-faq {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 48px;
}

.cat-faq h2 {
  font-family: var(--font-sub);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.cat-faq-item {
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.cat-faq-item:last-child { border-bottom: 1px solid #eee; }

.cat-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cat-faq-item summary::-webkit-details-marker { display: none; }

.cat-faq-item summary::before {
  content: 'Q';
  color: var(--primary);
  font-weight: 700;
  margin-right: 12px;
}

.cat-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--text-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-gray);
  margin-left: auto;
}

.cat-faq-item[open] summary::after { content: '−'; }

.cat-faq-item p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-top: 12px;
}

/* ─── OTHER CATEGORIES ─── */
.cat-others {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 56px;
}

.cat-others h2 {
  font-family: var(--font-sub);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.cat-others-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-other-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 1px solid #eee;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cat-other-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }

.cat-other-card.active {
  border: 2px solid var(--cat-color);
  font-weight: 700;
}

.cat-other-card.feat-cat-blue   { --cat-color: #469DDC; }
.cat-other-card.feat-cat-green  { --cat-color: #4FAE8A; }
.cat-other-card.feat-cat-pink   { --cat-color: #D6559B; }
.cat-other-card.feat-cat-yellow { --cat-color: #C99A1E; }
.cat-other-card.feat-cat-salmon { --cat-color: #E08774; }

.cat-other-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cat-color, var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-other-icon .material-symbols-outlined { font-size: 20px; }

/* ─── BACK TO TOP ─── */
.cat-back-to-top {
  text-align: center;
  padding: 0 40px 48px;
}

.cat-back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 120px;
  transition: all 0.2s;
}

.cat-back-to-top a:hover {
  background: var(--primary);
  color: white;
}

/* ─── CTA ─── */
.cat-cta {
  text-align: center;
  padding: 56px 40px;
  color: white;
}

.cat-cta h2 {
  font-family: var(--font-sub);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cat-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
}

.cat-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: 120px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.cat-cta-btn:hover {
  background: #e8c040;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,212,86,0.4);
}

.cat-cta-blue   { background: #469DDC; }
.cat-cta-green  { background: #4FAE8A; }
.cat-cta-pink   { background: #D6559B; }
.cat-cta-yellow { background: #C99A1E; }
.cat-cta-salmon { background: #E08774; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .cat-breadcrumb { padding: 16px 20px 0; }
  .cat-hero { margin: 16px 20px 0; padding: 32px 24px; }
  .cat-hero h1 { font-size: 22px; }

  .cat-tabbar-sticky { position: static; background: none; backdrop-filter: none; }
  .cat-tabbar { padding: 16px 20px; }
  .cat-modules { padding: 16px 20px 32px; }

  .cat-module { flex-direction: column; gap: 24px; padding: 32px 0; }
  .cat-module-media { width: 100%; }

  .cat-faq { padding: 32px 20px 40px; }
  .cat-others { padding: 0 20px 40px; }
  .cat-others-grid { grid-template-columns: repeat(3, 1fr); }

  .cat-cta { padding: 44px 24px; }
}

@media (max-width: 480px) {
  .cat-hero h1 { font-size: 20px; }
  .cat-hero-btns { flex-direction: column; }
  .cat-hero-btn-primary, .cat-hero-btn-outline { text-align: center; }

  .cat-others-grid { grid-template-columns: repeat(2, 1fr); }
}
