@import url(./color.css);
@import url(./font.css);
/*공통영역*/

* {
  margin: 0px;
  padding: 0px;
  font-family: "KOTRA_GOTHIC";
}
html {
  scroll-behavior: smooth;
}
.wrap {
  width: 100%;
  position: relative;
}

.inner {
  width: calc(100% - 480px);
  max-width: 1440px;
  position: relative;
  margin: auto;
}
body::-webkit-scrollbar {
  display: none;
}
a {
  text-decoration: none;
  color: var(--black);
}

.hidden {
  width: 0px;
  height: 0px;
  border: none;
  outline: none;
  opacity: 0;
  overflow: hidden;
  position: absolute;
}

/*header*/
#header {
  width: 100vw;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  transition: background-color .3s ease-in-out, box-shadow .3s ease-in-out, backdrop-filter .3s ease-in-out, border-color .3s ease-in-out;
  /* 글래스 효과 */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

#header.active {
  background-color: transparent;
}

.header .inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 50px;
}

#header.active .header-logo {
  width: 250px;
}

#header.active .header-center {
  height: auto;
  position: absolute;
  top: 100px;
  left: 50%;
  font-size: 84px;
  color: var(--white);
  transform: translateX(-50%);
}

#header.active .header-center span {
  display: block;
  margin: 0px 24px;
}

#header.active .icon-play {
  color: var(--black);
}

.header-center {
  height: 100%;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
  font-size: 24px;
  color: #000;
  justify-content: center;
}
.header-center span {
  display: none;
}
.mobile-show {
  display: none;
}
.header-left,
.header-right {
  width: calc((100% - 250px) / 2);
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}
.icon-play {
  color: #000;
  transition: all 0.3s ease;
}

.header-left {
  justify-content: left;
}

.header-right {
  justify-content: right;
}
.header-link {
  color: #000;
  transition: color 0.3s ease-in-out;
  white-space: nowrap;
}
.header-left .header-link,
.header-right .header-link {
  flex-shrink: 0;
}
#header.active .header-link {
  color: var(--white);
}

/* 상세 페이지(교사 연수 / 정기 구독)일 때 — 밝은 배경이므로 헤더 텍스트를 진하게 고정 */
body.is-detail-view #header .header-link,
body.is-detail-view #header.active .header-link,
body.is-detail-view #header .header-center,
body.is-detail-view #header.active .header-center {
  color: #1e1e1e !important;
}
body.is-detail-view #header .icon-play,
body.is-detail-view #header .icon-pause {
  color: #1e1e1e !important;
}
body.is-detail-view #header .mobile-show i {
  color: #1e1e1e !important;
}
body.is-detail-view .header-left,
body.is-detail-view .header-right {
  gap: 16px;
}
/* 상세 페이지에서는 거대 "Cocoro-ART" 활성 상태를 일반 크기로 복귀 */
body.is-detail-view #header.active .header-center {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  font-size: 24px;
  height: 100%;
}
body.is-detail-view #header.active .header-center span {
  display: none;
  margin: 0;
}

footer {
  padding: 30px 0px;
  background-color: #000;
}
.footer-logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 12px;
}
.footer-text {
  font-size: 14px;
  line-height: 24px;
  color: var(--white);
}

footer .inner {
  display: flex;
  justify-content: space-between;
}

.footer-title {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

.music-control-container {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.music-control {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  /* 아이콘 크기 조정 */
  color: #333;
  /* 아이콘 색상 (기존 디자인에 맞춰 조정) */
  padding: 5px;
}

.music-control .icon-pause {
  display: none;
  /* 일시정지 아이콘 기본 숨김 */
}

.music-control.music-playing .icon-play {
  display: none;
  /* 음악 재생 중일 때 재생 아이콘 숨김 */
}

.music-control.music-playing .icon-pause {
  display: inline;
  /* 음악 재생 중일 때 일시정지 아이콘 표시 */
}