/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}


/* 기본 스타일 설정 */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  background-color: #f8f8f8;
}

/* ========================================
   Header 스타일
======================================== */
.header {
  position: relative;
  width: 100%;
  height: 360px;
  background-image: url("../images/header-bg-02.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.header h1 {
  position: relative;
  z-index: 1;
  text-align: center;
  filter: drop-shadow(0px 4px 30px rgba(255, 255, 255, 1));
}

.header-title-image {
  max-width: 445px;
  width: 100%;
  height: auto;
}

/* ========================================
   Main 스타일
======================================== */
.main {
  max-width: 1250px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ========================================
   책 분류 섹션
======================================== */
.book-category {
  margin-bottom: 80px;
}

.category-title {
  font-family: "Paperozi", "Pretendard Variable", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.21;
  color: #000000;
  padding-left: 10px;
  border-left: 10px solid #FF3033;
  margin-bottom: 40px;
}

.category-title span {
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-left: 8px;
}

/* ========================================
   책 카드 스타일
======================================== */
.book-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 40px;
  margin-bottom: 50px;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1),
    0px 14px 14px 0px rgba(0, 0, 0, 0.09), 0px 30px 18px 0px rgba(0, 0, 0, 0.05),
    0px 54px 22px 0px rgba(0, 0, 0, 0.01), 0px 84px 24px 0px rgba(0, 0, 0, 0);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.book-card:nth-child(2) {
  animation-delay: 0.1s;
}
.book-card:nth-child(3) {
  animation-delay: 0.2s;
}
.book-card:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 책 카드 헤더 */
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px 30px 0;
}

.book-title-group {
  flex: 1;
}

.book-title {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.18;
  color: #000000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-author {
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.19;
  color: #000000;
  text-align: left;
}

.book-price {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 15.4px;
  font-weight: 600;
  line-height: 1.18;
  color: #000000;
  white-space: nowrap;
}

/* 책 카드 콘텐츠 */
.book-content {
  display: grid;
  grid-template-columns: 345px 1fr;
  gap: 40px;
  margin-right: 30px;
}

/* 책 이미지 영역 */
.book-image-wrapper {
  position: relative;
  background-color: #f5f5f5;
  border-radius: 0 0 0 40px;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.book-cover {
  width: 233px;
  height: auto;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.book-cover-none {
  width: 233px;
  height: auto;
}

.book-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease;
}

.book-link:hover {
  transform: scale(1.1);
}

/* 교수학습지원자료 영역 */
.book-materials {
  margin-top: auto;
  padding-top: 20px;
  padding-left: 10px;
  border-top: solid 2px #ddd;
}

.book-materials h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #00AE57;
  margin-bottom: 8px;
}

.book-materials h4 img {
  width: 25px;
  height: 21px;
}

.book-materials p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

/* 책 상세 설명 영역 */
.book-details {
  padding: 20px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: solid 2px #ddd;
}

.book-description {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  padding-left: 10px;
  word-break: keep-all;
overflow-wrap: break-word;
}

/* 특장점 영역 */
.book-features {
  padding-left: 10px;
}

.features-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #00AE57;
  padding: 0;
  width: 100%;
}

.features-toggle img {
  width: 22px;
  height: 22px;
}

.features-toggle .arrow-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.book-features.expanded .arrow-icon {
  transform: rotate(180deg);
}

.features-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.book-features.expanded .features-content {
  max-height: 500px;
  margin-top: 15px;
}

.features-content ul {
  list-style: none;
  padding-left: 0;
}

.features-content li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.features-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #00AE57;
}

/* ========================================
   온라인 채널 섹션
======================================== */
.online-channel-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 40px;
  
  margin-bottom: 50px;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1),
    0px 14px 14px 0px rgba(0, 0, 0, 0.09), 0px 30px 18px 0px rgba(0, 0, 0, 0.05),
    0px 54px 22px 0px rgba(0, 0, 0, 0.01), 0px 84px 24px 0px rgba(0, 0, 0, 0);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.online-channel-card:nth-child(2) {
  animation-delay: 0.1s;
}

.online-channel-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* 카카오톡 오픈채팅방 · 네이버 카페 */
/* 상단 영역: 제목과 설명 */
.channel-header {
  padding: 30px 10px 20px 40px;
}

.channel-title {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  color: #000000;
  margin-bottom: 8px;
}

.channel-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.19;
  color: #000000;
}

/* 하단 영역: 이미지 + 링크 카드 */
.channel-content-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* 왼쪽: 노트북 이미지 영역 */
.channel-image-area {
  position: relative;
  width: 100%;
  background-color: #f5f5f5;
  border-radius: 0 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.channel-main-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 오른쪽: 링크 카드 영역 */
.channel-links-area {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 30px 0 30px 10px;
  border-top: 2px solid #ddd;
  margin-right: 30px;
}

.channel-link-card {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  padding: 0;
  width: fit-content;
}

.channel-link-card:hover {
  transform: translateX(5px);
}

.channel-icon {
  width: 67px;
  height: 67px;
  flex-shrink: 0;
  border-radius: 8px;
}

.channel-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-card-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.channel-card-name {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #00AE57;
}

.channel-card-link-icon {
  width: 24px;
  height: 24px;
}

.channel-card-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

/* ========================================
   교사 역량 강화 연수 섹션 (별도 스타일)
======================================== */
.training-section-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 40px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1),
    0px 14px 14px 0px rgba(0, 0, 0, 0.09), 0px 30px 18px 0px rgba(0, 0, 0, 0.05),
    0px 54px 22px 0px rgba(0, 0, 0, 0.01), 0px 84px 24px 0px rgba(0, 0, 0, 0);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

.training-section-card .channel-header {
  padding: 0 10px 20px 10px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.training-section-card .channel-title {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  color: #000000;
  margin-bottom: 12px;
}

.training-section-card .channel-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.19;
  color: #000000;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.training-card-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  padding: 0;
  width: fit-content;
}

.training-card-item:hover {
  transform: translateX(5px);
}

.training-thumbnail {
  width: 207px;
  height: 117px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
}

.training-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.training-card-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.training-card-title {
  flex: 1;
  font-family: "Pretendard", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.19;
  color: #00AE57;
  margin: 0;
}

.training-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.training-card-date {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.19;
  color: #000000;
  margin: 0;
}

.training-card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 데스크톱: 날짜 옆 아이콘만 표시 */
.training-icon-mobile {
  display: none;
}

.training-icon-desktop {
  display: block;
}

/* ========================================
   배너 섹션
======================================== */
.banner-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 40px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1),
    0px 18px 18px 0px rgba(0, 0, 0, 0.09), 0px 41px 25px 0px rgba(0, 0, 0, 0.05),
    0px 73px 29px 0px rgba(0, 0, 0, 0.01), 0px 115px 32px 0px rgba(0, 0, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15),
    0px 24px 24px 0px rgba(0, 0, 0, 0.12), 0px 50px 30px 0px rgba(0, 0, 0, 0.08),
    0px 80px 35px 0px rgba(0, 0, 0, 0.02), 0px 120px 40px 0px rgba(0, 0, 0, 0);
}

.banner-image {
  width: 100%;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-title {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  color: #FF3033;
  margin: 20px 30px 12px;
  text-align: center;
}

.banner-description {
  font-family: "Pretendard", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
  text-align: center;
  padding: 0 30px 30px;
}

/* ========================================
   Footer 스타일
======================================== */
.footer {
  background-color: #000000;
  padding: 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  max-width: 298px;
  height: auto;
}

.kakao-channel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #FAE100;
  border-radius: 10px;
  padding: 11px 55px 11px 11px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.kakao-channel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.kakao-channel-link span {
  font-family: "Pretendard", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #000000;
  white-space: nowrap;
}

.kakao-channel-link svg {
  flex-shrink: 0;
}

/* ========================================
   반응형 미디어 쿼리
======================================== */

/* 태블릿 */
@media screen and (max-width: 1024px) {
  .main {
    padding: 40px 20px;
  }

  .book-content {
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-right: 0;
  }

  .book-image-wrapper {
    padding: 3.9vw 2.9vw;
  }

  .book-cover {
    width: 200px;
  }

  .banner-section {
    gap: 30px;
  }

  /* 온라인 채널 반응형 - 태블릿 */
  .channel-header {
    padding: 25px 10px 18px 30px;
  }

  .channel-description {
    font-size: 15px;
  }

  .channel-content-wrapper {
    grid-template-columns: 300px 1fr;
    gap: 30px;
  }

  .channel-image-area {
    max-width: 300px;
  }

  .channel-links-area {
    padding: 25px 0 25px 10px;
    margin-right: 20px;
  }

  /* 교사 역량 강화 연수 - 태블릿 */
  .training-section-card {
    padding: 25px;
  }

  .training-section-card .channel-header {
    padding: 0 10px 18px 10px;
    margin-bottom: 25px;
  }

  .training-grid {
    gap: 20px;
  }

  .training-thumbnail {
    width: 180px;
    height: 101px;
  }
}

/* 모바일 */
@media screen and (max-width: 768px) {
  .header {
    height: 200px;
  }

  .header-title-image {
    max-width: 307px;
  }

  .main {
    padding: 3vw 2vw;
  }

  .category-title {
    font-size: 30px;
    border-left-width: 8px;
    padding-left: 8px;
    margin-bottom: 3vw;
  }

  .book-card {
    margin-bottom: 40px;
    border-radius: 40px;
  }

  .book-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 20px 0;
  }

  .book-title {
    font-size: 22px;
  }

  .book-price {
    font-size: 14px;
    width: 100%;
    text-align: right;
  }

  .book-content {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-right: 0;
  }

  .book-image-wrapper {
    padding: 3.9vw 2.9vw;
    border-radius: 0;
  }

  .book-cover {
    width: 166px;
  }

  .book-link {
    width: 39px;
    height: 39px;
  }

  .book-link img {
    width: 39px;
    height: 39px;
  }

  .book-details {
    padding: 5px 15px 30px 20px;
    gap: 15px;
    border-top: none;
  }

  .book-description {
    font-size: 18px;
  }

  .book-materials {
    padding-bottom: 0;
    border-top: 1px solid #ddd;
  }

  /* 모바일에서 토글 기능 활성화 */
  .features-toggle {
    display: flex;
  }

  .features-toggle .arrow-icon {
    display: block;
  }

  .features-content {
    max-height: 0;
  }

  .book-features.expanded .features-content {
    max-height: 600px;
  }

  .banner-section {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 60px auto;
  }

  .banner {
    padding: 0;
  }

  .banner-title {
    font-size: 26px;
    margin: 15px 20px 10px;
  }

  .banner-description {
    font-size: 16px;
    padding: 0 20px 20px;
  }

  /* 모바일 온라인 채널 */
  .online-channel-card {
    margin-bottom: 30px;
    border-radius: 40px;
  }

  .channel-header {
    padding: 20px 10px 15px 20px;
  }

  .channel-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .channel-description {
    font-size: 14px;
  }

  .channel-content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .channel-image-area {
    max-width: 100%;
    border-radius: 0;
  }

  .channel-links-area {
    padding: 0 10px 20px 30px;
    gap: 20px;
    border-top: 0;
    margin-right: 10px;
  }

  .channel-link-card {
    gap: 18px;
  }

  .channel-card-name {
    font-size: 16px;
  }

  /* 교사 역량 강화 연수 - 모바일 */
  .training-section-card {
    padding: 20px;
    margin-bottom: 30px;
  }

  .training-section-card .channel-header {
    padding: 0 0 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
  }

  .training-section-card .channel-title {
    font-size: 22px;
  }

  .training-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .training-card-item {
    gap: 16px;
  }

  .training-thumbnail {
    width: 152px;
    height: 86px;
  }

  .training-card-title {
    font-size: 16px;
  }

  /* 모바일: 제목 옆 아이콘만 표시 */
  .training-icon-mobile {
    display: block;
  }

  .training-icon-desktop {
    display: none;
  }

  /* 모바일 풋터 */
  .footer-container {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .kakao-channel-link {
    width: 100%;
    max-width: 285px;
    justify-content: center;
    padding: 11px 20px;
  }

  .kakao-channel-link span {
    font-size: 18px;
  }

  .footer-logo {
    max-width: 236px;
  }
}

/* 소형 모바일 */
@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header {
    height: 180px;
  }

  .header-title-image {
    max-width: 280px;
  }

  .category-title {
    font-size: 26px;
  }

  .book-title {
    font-size: 20px;
  }

  .book-cover {
    width: 140px;
  }
}

/* 데스크톱에서 특장점 항상 펼쳐진 상태 */
@media screen and (min-width: 769px) {
  .features-toggle .arrow-icon {
    display: none;
  }

  .features-content {
    max-height: none;
    margin-top: 15px;
  }
}

