@charset "utf-8";

/* ============================================
   BUTTON
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 60px;
  background: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
  color: #fff;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 26px 100px;
  border-radius: 60px;
  background: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
  color: #fff;
  transition: opacity 0.2s;
}

.btn-apply:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .btn-primary {
    padding: 11px 20px;
    font-size: 14px;
  }

  .btn-apply {
    padding: 20px 60px;
    font-size: 17px;
  }
}

/* ============================================
   TAB
   ============================================ */
.tab-group {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--color-bg-tab);
}

.tab-group .tab-item {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 24px 50px;
  border-radius: 8px;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, color 0.2s;
}

.tab-group .tab-item.is-active {
  background: var(--color-text);
  color: #fff;
}

.tab-group .tab-name {
  font-size: 18px;
  font-weight: 700;
}

.tab-group .tab-time {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .tab-group .tab-item {
    padding: 16px 28px;
  }

  .tab-group .tab-name {
    font-size: 16px;
  }

  .tab-group .tab-time {
    font-size: 14px;
  }
}

/* 탭 줄이 가로 폭을 다 쓰는 구간에서는 두 버튼이 폭을 똑같이 나눠 갖는다.
   안 그러면 남는 공간이 회색으로 남아 한쪽이 더 커 보인다 */
@media (max-width: 768px) {
  .tab-group {
    display: flex;
    width: 100%;
  }

  .tab-group .tab-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 10px;
  }
}

@media (max-width: 480px) {
  .tab-group .tab-item {
    flex-direction: column;
    gap: 2px;
    padding: 12px 8px;
  }

  .tab-group .tab-name {
    font-size: 14px;
  }
}

/* ============================================
   ACCORDION (TIME TABLE)
   ============================================ */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

/* 시간 배지 */
.acc-time {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 150px;
  padding: 10px;
  border-radius: 14px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}

.acc-time-blue {
  background:
    radial-gradient(circle at 50% 50%, var(--badge-blue-core) 0%, rgba(26, 140, 255, 0.55) 28%, rgba(26, 140, 255, 0) 62%),
    var(--badge-blue-base);
}

.acc-time-purple {
  background:
    radial-gradient(circle at 50% 50%, var(--badge-purple-core) 0%, rgba(122, 61, 240, 0.55) 28%, rgba(122, 61, 240, 0) 62%),
    var(--badge-purple-base);
}

.acc-time-orange {
  background:
    radial-gradient(circle at 50% 50%, var(--badge-orange-core) 0%, var(--badge-orange-core) 10%, var(--badge-orange-mid) 30%, rgba(249, 69, 107, 0.35) 45%, rgba(249, 69, 107, 0) 62%),
    var(--badge-orange-base);
}

.acc-time-pink {
  background:
    radial-gradient(circle at 50% 50%, var(--badge-pink-core) 0%, rgba(255, 46, 208, 0.55) 28%, rgba(255, 46, 208, 0) 62%),
    var(--badge-pink-base);
}

.acc-time-green {
  background:
    radial-gradient(circle at 50% 50%, var(--badge-green-core) 0%, rgba(60, 190, 0, 0.55) 28%, rgba(60, 190, 0, 0) 62%),
    var(--badge-green-base);
}

/* 내용 카드 */
.acc-cont {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 36px 40px;
  border-radius: 14px;
  background: #fff;
  transition: background-color 0.2s;
}

/* 펼칠 내용이 있는 카드는 어디를 눌러도 열린다 */
.acc-item.is-toggleable .acc-cont {
  cursor: pointer;
}

.acc-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.acc-ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-dark);
}

.acc-ico img {
  display: block;
  width: 20px;
  height: 20px;
}

.acc-cate {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--color-text-gray);
}

.acc-tit {
  display: block;
  margin-top: 26px;
  font-size: 32px;
  font-weight: 700;
  line-height: 28px;
}

.acc-tit .acc-tit-bar {
  display: inline-block;
  width: 3px;
  height: 20px;
  margin: 0 16px;
  background: #b5b5b5;
  vertical-align: middle;
}

/* 열기/닫기 버튼 */
.acc-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e2e2e2;
}

.acc-toggle img {
  display: block;
  width: 24px;
  height: 24px;
}

.acc-toggle .ico-minus {
  display: none;
}

.acc-item.is-open .acc-toggle .ico-plus {
  display: none;
}

.acc-item.is-open .acc-toggle .ico-minus {
  display: block;
}

/* 펼침 영역 */
.acc-body {
  display: none;
  margin-top: 18px;
}

.acc-item.is-open .acc-body {
  display: block;
}

.acc-body p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.625;
}

.acc-body p + p {
  margin-top: 16px;
}

/* 펼침 영역 강조 문구 */
.acc-lead {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .acc-lead {
    font-size: 16px;
  }
}

/* 펼친 상태 — 카드가 주황으로 바뀌고 분류는 흰 알약이 된다 */
.acc-cate-bar {
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 10px;
  background: #eaeaea;
}

.acc-item.is-open .acc-cont {
  background: var(--color-primary);
  color: #fff;
}

.acc-item.is-open .acc-head {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 66px;
  background: #fff;
}

.acc-item.is-open .acc-ico {
  display: none;
}

.acc-item.is-open .acc-cate {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

.acc-item.is-open .acc-tit {
  margin-top: 24px;
  font-size: 28px;
  color: #fff;
}

.acc-item.is-open .acc-tit .acc-tit-bar {
  background: rgba(255, 255, 255, 0.6);
}

.acc-item.is-open .acc-body {
  margin-top: 22px;
}

.acc-item.is-open .acc-toggle {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
  .acc-time {
    width: 150px;
    min-height: 130px;
    font-size: 17px;
  }

  .acc-cont {
    padding: 28px 30px;
  }

  .acc-tit {
    margin-top: 20px;
    font-size: 24px;
    line-height: 1.35;
  }

  .acc-item.is-open .acc-tit {
    font-size: 22px;
  }

  .acc-toggle {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .acc-item {
    flex-direction: column;
    gap: 0;
  }

  .acc-time {
    width: 100%;
    min-height: 88px;
    border-radius: 14px 14px 0 0;
    font-size: 16px;
  }

  .acc-cont {
    padding: 22px 18px;
    border-radius: 0 0 14px 14px;
  }

  .acc-tit {
    margin-top: 16px;
    font-size: 20px;
  }

  .acc-item.is-open .acc-tit {
    font-size: 19px;
  }

  .acc-tit .acc-tit-bar {
    margin: 0 10px;
  }

  .acc-body p {
    font-size: 15px;
  }
}

/* ============================================
   PUBLISHING INDEX (index.html 전용)
   ============================================ */
.pub-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px;
}

.pub-wrap .pub-tit {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.pub-wrap .pub-desc {
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--color-text-gray);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-list > li {
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.pub-list .pub-link {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.pub-list .pub-link:hover {
  background: var(--color-bg-box);
}

.pub-list .pub-path {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
}

@media (max-width: 480px) {
  .pub-wrap {
    padding: 40px 20px;
  }

  .pub-list .pub-link {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 16px 18px;
    font-size: 15px;
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
/* 감추는 건 JS 가 준비됐을 때만 — 스크립트가 죽어도 콘텐츠는 그대로 보인다 */
.is-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.is-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .is-reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
