/* Box sizing 설정 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 기본 마진, 패딩 제거 */
* {
    margin: 0;
    padding: 0;
}

/* HTML, Body 기본 설정 */
html,
body {
    height: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* 미디어 요소 기본 설정 */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 폼 요소 폰트 상속 */
input,
button,
textarea,
select {
    font: inherit;
}

/* 폼 요소 focus 스타일 */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 텍스트 오버플로우 처리 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    word-break: keep-all; /* 한국어 텍스트 최적화 */
}

/* 리스트 스타일 제거 */
ul,
ol {
    list-style: none;
}

/* 링크 기본 스타일 제거 */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* 버튼 기본 스타일 제거 */
button {
    background: none;
    border: none;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 테이블 기본 설정 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Body 스타일 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-size: 16px;
    color: #222;
    background-color: #fff;
    word-break: keep-all;
    word-wrap: break-word;
}

/* 유틸리티 클래스 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* =======================================
   레이아웃 구조 확인용 (뼈대 단계)
======================================= */

/* 콘텐츠 영역 공통 (최대 너비 1300px) */
.inner {
    max-width: 1300px;
    margin: 0 auto;
}

/* 배경 이미지 공통 속성 (원본 사이즈로 반복) */
.site-header,
.site-main,
.site-footer {
    background-size: contain;
    background-position: top center;
    background-repeat: repeat;
}

/* 헤더 배경 */
.site-header {
    background-image: url('../images/bg_header.png');
    padding: 50px 0;
    background-color: #121b55;
    background-position: bottom center;
    background-repeat: no-repeat;
}

/* 메인 배경 (섹션 3개를 감싸는 영역에 한 번만 적용) */
.site-main {
    background-image: url('../images/bg_content.png');
    padding: 0 2% 30px;
    background-size: 20%;
}


/* 푸터 배경 */
.site-footer {
    background-image: url('../images/bg_footer.png');
}


/* =======================================
   Mobile First (모바일 기본값)
======================================= */
/* 가로폭 0px ~ 767px까지 적용될 모바일 레이아웃 */
/* (기존 360px 미디어 쿼리는 삭제하거나 기본값에 녹이는 걸 추천합니다.
   Mobile First에서는 기본 상태가 가장 작은 모바일 화면이기 때문입니다.) */



/* ---------- 헤더 타이틀 ---------- */
.header-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
}

.header-title__heading {
    color: #fff;
    font-weight: 700;
    font-size: 30px;
}

.header-title__badge {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
}

.header-title__badge span {
    display: inline-block;
    padding: 0 10px;
    background-color: #ff3ab3;
    border-radius: 8px;
}

.header-title__badge span.badge-dot {
    display: none;
}

.header-title__accent {
    color: #fed45c;
}

/* ---------- 반응형 표시/숨김 유틸리티 ---------- */
.u-only-mobile {
    display: inline;
}

.u-only-pc {
    display: none;
}

/* ---------- 월계수 아이콘 & 순위 라벨 ---------- */
.rank-block__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rank-block__laurel {
    width: 60px;
    height: auto;
}

.rank-block__label-text {
    text-align: center;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
}

.rank-block__label-sub {
    display: block;
    color: #fff;
    font-size: 30px;
}

.rank-block__label-num {
    color: #fff;
    font-weight: 700;
    font-size: 70px;
    line-height: 1.25;
}

/* ---------- rank-wrap (1위/점선/2위) ---------- */
.rank-wrap {
    display: flex;
    flex-direction: column;
    padding: 0 4%;
    align-items: center;
}

.rank-divider {
    width: 100%;
    height: 2px;
    margin: 32px 0;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='2' viewBox='0 0 10 2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}

/* ---------- book-grid (책 목록) ---------- */
.book-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
    column-gap: 4px;
    margin-top: 24px;
}

.book-grid__item {
    width: calc(50% - 2px);
}

.book-grid__thumb {
    border-radius: 4px;
    overflow: hidden;
}

.book-grid__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.book-grid__category {
    margin-top: 10px;
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.book-grid__name {
    color: #fff;
    font-weight: 700;
    font-size: 23px;
    text-align: center;
}

/* ---------- CTA 버튼 ---------- */
.header-cta {
    margin-top: 30px;
    text-align: center;
}

.header-cta__btn {
    display: inline-block;
    padding: 8px 30px;
    background-color: #ff3ab3;
    color: #fff;
    font-size: 33px;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 0 #9700cf;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.header-cta__btn:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

.header-cta__btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #9700cf;
}

/* ---------- 랜딩 시 위→아래 드롭 애니메이션 ---------- */
@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank-block--first {
    animation: dropIn 0.6s ease-out both;
}

.rank-block--second {
    animation: dropIn 0.6s ease-out 0.15s both;
}

/* 접근성: 모션 감소 설정 사용자 */
@media (prefers-reduced-motion: reduce) {
    .rank-block--first,
    .rank-block--second {
        animation: none;
    }
}

/* ---------- 메인 콘텐츠 상단 타이틀 ---------- */
.main-title {
    padding-top:60px;
    text-align: center;
}

.main-title__heading {
    color: #080808;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 32px;
}

.main-title__heading em {
    color: #ff3ab3;
    font-style: normal;
    font-weight: 700;
}

/* ---------- 메인 섹션 공통 (교수 지원 자료 / 스마트 수업 자료 / 활용법 연수) ---------- */
.section-support,
.section-smart,
.section-training {
    padding: 45px 0;
    text-align: center;
}

.section-support__title,
.section-smart__title,
.section-training__title {
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    display: inline-block;
    padding: 7px 25px;
    background-color: #171b70;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    font-size: 36px;
    line-height: 1.25;
}

.section-support__desc,
.section-smart__desc,
.section-training__desc {
    margin-top: 40px;
    font-size: 26px;
    color: #080808;
    line-height: 1.25;
}

.section-support__visual,
.section-smart__visual,
.section-training__visual {
    margin-top: 32px;
}

/* ---------- 반응형 이미지 (모바일/PC 분기) ---------- */
.img-mobile,
.img-pc {
    width: 100%;
    height: auto;
    display: block;
}

.img-pc {
    display: none;
}

/* ---------- 스마트 수업 자료 (교과서 + PPT 세트) ---------- */
.smart-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.smart-item {
    width: 100%;
    text-align: center;
}

.smart-item__label {
    display: inline-block;
    position: relative;
    padding: 2px 30px;
    font-weight: 700;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    font-size: 30px;
    border-radius: 15px;
}

.smart-item__label::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid transparent;
}

.smart-item--textbook .smart-item__label {
    background-color: #fed45c;
    color: #222;
}

.smart-item--textbook .smart-item__label::after {
    border-top-color: #fed45c;
}

.smart-item--ppt .smart-item__label {
    background-color: #fca51a;
    color: #222;
}

.smart-item--ppt .smart-item__label::after {
    border-top-color: #fca51a;
}

.smart-item__mockup {
    margin-top: 25px;
    position: relative;
}
.smart-item__mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.smart-icon {
    width: 50%;
    margin: 0 auto;
}

.smart-icon img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- 연수 이미지 목록 ---------- */
.training-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.training-grid__item {
    width: calc(50% - 6px);
}

.training-grid__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ---------- 푸터 배경 ---------- */
/* .site-footer {
    background-size: cover;
    background-position: center;
    height: auto;
} */

/* ---------- 푸터 레이아웃 ---------- */
.site-footer .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 57px 20px;
}

.footer-info {
    text-align: center;
}

.footer-info__logo {
    height: 50px;
    width: auto;
    margin: 0 auto 20px;
}

.footer-info__tel {
    font-family: 'Paperlogy', sans-serif;
    font-size: 32px;
    color: #fff;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.footer-links__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 600;
    border-radius: 15px;
    padding: 10px 30px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links__btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.footer-links__btn--teaching {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 60px;
}

.footer-links__btn--exhibition {
    background-color: #ff3ab3;
    color: #fff;
    border: none;
    padding: 8px 60px;
}

.footer-links__btn--mobile-only {
    display: flex;
}

.footer-links__btn--kakao {
    background-color: #FEE500;
    color: #222;
    border: none;
    gap: 8px;
}

.footer-links__kakao-ico {
    height: 32px;
    width: auto;
}


/* =======================================
   Tablet (min-width: 768px)
======================================= */
@media (min-width: 768px) {
  /* 일반적인 태블릿 세로, 패드 크기 */
  /* 시안의 교과서 리스트가 2열에서 4열 정도로 넓어지기 좋은 구간입니다. */
.site-header {
    padding: 50px 20px 100px;
    background-repeat: repeat;
}


  .site-main {
    background-size: auto;
}
  .header-title {
      margin-bottom: 60px;
  }

  .header-cta {
    margin-top: 30px;
}

  .main-title__heading {
      font-size: 45px;
  }

  .img-mobile {
      display: none;
  }

  .img-pc {
      display: block;
      width: 888px;
      height: auto;
      margin: 0 auto;
  }

  .smart-wrap {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 0;
  }

  .smart-item {
      flex: 1;
  }

  .smart-item__label {
      font-size: 30px;
  }

  .smart-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 262px;
      margin: 0;
      z-index: 1;
  }

  .training-grid {
      gap: 8px;
  }

  .training-grid__item {
      width: calc(25% - 12px);
  }

  .site-footer {
    background-size: cover;
}

  .site-footer .inner {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 48px 20px;
  }

  .footer-info {
      text-align: left;
  }

  .footer-links {
      width: auto;
      align-items: flex-end;
  }

  .footer-links__btn--mobile-only {
      display: none;
  }

  .header-title__heading {
      font-size: 45px;
  }

  .header-title__badge {
      display: inline-block;
      margin-top: 30px;
      padding: 0 20px;
      background-color: #ff3ab3;
      font-size: 40px;
      border-radius: 10px;
  }

  .header-title__badge span {
      display: inline;
      padding: 0;
      background-color: transparent;
      border-radius: 0;
  }

  .header-title__badge span.badge-dot {
      display: inline;
  }

  .u-only-mobile {
      display: none;
  }

  .u-only-pc {
      display: inline;
  }

  

  .rank-block__laurel {
    width: auto;
    height: auto;
  }

  .rank-wrap {
      flex-direction: row;
      align-items: flex-start;
      gap: 50px;
      padding: 0 0 30px;
  }

  .rank-block--first,
  .rank-block--second {
      flex: 1;
  }

  .rank-divider {
      width: 2px;
      height: auto;
      align-self: stretch;
      margin: 0;
      background-image: url("data:image/svg+xml,%3Csvg width='2' height='10' viewBox='0 0 2 10' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff'/%3E%3C/svg%3E");
        background-repeat: repeat-y;
        background-position: center;
  }

  .book-grid {
    row-gap: 30px;
  }

  .book-grid__item {
      width: calc(25% - 3px);
  }

  .book-grid__category {
      margin-top: 10px;
      font-size: 16px;
  }

  .book-grid__name {
      font-size: 20px;
  }

  .header-cta__btn {
      padding: 0 70px;
      font-size: 48px;
  }

  .section-support__desc,
.section-smart__desc,
.section-training__desc {
    margin-top: 55px;
    font-size: 32px;
    color: #080808;
    line-height: 1.5;
}
    .section-support__visual,
.section-smart__visual,
.section-training__visual {
    margin-top: 55px;
}

.section-smart__title br,.section-training__title br {
    display: none;

}

.footer-links__btn {
    font-size: 24px;
}


}