/* 모든 요소의 크기 계산 방식을 통일합니다. */
* {
  box-sizing: border-box;
}

/* =========================
   홈페이지 공통 색상
========================= */
:root {
  --button-dark: #332d29;
  --button-dark-hover: #4a403a;
  --button-text: #ffffff;

  --button-light: #fff8f1;
  --button-light-hover: #eadfd8;

  --pink-light: #fff0f3;
  --pink-text: #9a6874;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: #222;
  background: #fff8f9;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* 공통 너비 */
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* 공통 여백 */
.section {
  padding: 64px 0;
}

.small-title {
  margin: 0 0 12px;
  color: #9b7d56;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.section-title h2,
.section-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
}

.center {
  text-align: center;
}

/* =========================
   헤더
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 248, 249, 0.92);
  border-bottom: 1px solid rgba(80, 60, 50, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
}

.logo span {
  font-size: 24px;
}

.logo small {
  color: #9b7d56;
  font-size: 14px;
}

.main-menu ul {
  display: flex;
  gap: 34px;
}

.main-menu a {
  font-size: 15px;
  font-weight: 600;
}

.main-menu a:hover {
  color: #9b7d56;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-button,
.login-button {
  border: 0;
  background: transparent;
  font-size: 14px;
}

.apply-button {
  padding: 11px 20px;

  color: var(--button-text);
  background: var(--button-dark);

  border: 1px solid var(--button-dark);
  border-radius: 30px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.apply-button:hover {
  transform: translateY(-2px);

  background: var(--button-dark-hover);
  box-shadow: 0 8px 18px rgba(51, 45, 41, 0.2);
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
}

.mobile-menu {
  display: none;
}

/* =========================
   메인 슬라이드
========================= */

/* 자작나무 배경이 들어가는 전체 영역 */
.hero {
  position: relative;
  padding: 0 0 50px;

  background-image: url("images/자작나무숲.jpg");
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* 자작나무 사진을 연하게 만드는 흰색 투명막 */
.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.55);

  z-index: 1;
  pointer-events: none;
}

/* 기존의 큰 사각 박스 제거 */
.hero-slider {
  position: relative;
  z-index: 2;

  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;

  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;

  overflow: hidden;
}

/* 글자와 오른쪽 사진을 가로로 배치 */
.hero-slide {
  position: relative;
  z-index: 2;

  min-height: 540px;
  padding-top: 40px;
  padding-right: 20px;
  padding-bottom: 40px;
  padding-left: 0;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;

  gap: 30px;
}

/* 왼쪽 글자 영역 */
.hero-text {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  transform: none;
}

/* 메인 제목 */
.hero-text h1,
.hero-text h2 {
  margin: 0 0 22px;

  font-size: clamp(42px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: -2.2px;
  word-break: keep-all;
}

/* 설명 문장 */
.hero-description {
  max-width: 520px;
  margin: 0 0 28px;

  color: #625d59;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}

/* 버튼 영역 */
.hero-links {
  display: flex;
  gap: 12px;
}

/* 버튼 공통 디자인 */
.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;
  border-radius: 30px;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* 메인 수강신청 버튼 */
.primary-button {
  color: var(--button-text);
  background: var(--button-dark);

  border: 1px solid var(--button-dark);
}

.primary-button:hover {
  transform: translateY(-2px);

  background: var(--button-dark-hover);
  box-shadow: 0 8px 18px rgba(51, 45, 41, 0.2);
}

/* 자세히 보기 버튼 */
.outline-button {
  color: var(--button-dark);
  background: rgba(255, 255, 255, 0.72);

  border: 1px solid rgba(51, 45, 41, 0.45);
}

.outline-button:hover {
  transform: translateY(-2px);

  color: var(--button-text);
  background: var(--button-dark-hover);
  border-color: var(--button-dark-hover);
}

/* 오른쪽 사진 영역 */
.hero-image {
  width: 100%;
  max-width: 650px;

  justify-self: start;
}

/* 오른쪽 사진 */
.hero-image img {
  width: 100%;
  height: 390px;

  object-fit: cover;
  object-position: center;

  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;

  box-shadow: 0 18px 45px rgba(58, 43, 35, 0.14);
}

/* =========================
   소개
========================= */

/* 왼쪽 제목과 오른쪽 설명을 좌우로 배치 */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

/* 오른쪽 설명 영역 */
.about-text {
  max-width: 560px;
  padding-left: 34px;

  color: #555;
  font-size: 17px;
  line-height: 1.75;

  border-left: 1px solid #dfd4cb;
}

/* 설명 문단 사이 간격 */
.about-text p {
  margin: 0 0 20px;
}

/* 마지막 문단 아래에는 불필요한 간격 제거 */
.about-text p:last-of-type {
  margin-bottom: 0;
}

/* 프로그램 살펴보기 링크 */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 18px;
  padding-bottom: 5px;

  color: #2f2925;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  border-bottom: 1px solid rgba(47, 41, 37, 0.35);

  transition:
    gap 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* 링크에 마우스를 올렸을 때 */
.arrow-link:hover {
  gap: 13px;
  color: #a6814f;
  border-color: #a6814f;
}

#about {
  padding-top: 54px;
  padding-bottom: 50px;
}

/* =========================
   추천 강좌
========================= */

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.course-card {
  overflow: hidden;

  background: #ffffff;
  border: 1px solid rgba(83, 65, 53, 0.09);
  border-radius: 20px;

  box-shadow: 0 8px 24px rgba(60, 45, 35, 0.05);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.course-card:hover {
  transform: translateY(-4px);

  border-color: rgba(185, 126, 139, 0.22);
  box-shadow: 0 16px 34px rgba(60, 45, 35, 0.10);
}

.course-image img {
  height: 220px;
  object-fit: cover;
}

.course-content {
  padding: 22px;
}

.course-tags {
  display: flex;
  gap: 7px;
}

.course-tags span {
  padding: 5px 10px;

  color: #8c6670;
  background: #fff0f3;
  border: 1px solid #f3e0e5;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.course-content h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.course-content p {
  color: #777;
  font-size: 14px;
}

.course-info {
  margin: 18px 0;
  color: #777;
  font-size: 13px;
}

.course-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-bottom button {
  padding: 9px 14px;

  color: var(--button-text);
  background: var(--button-dark);

  border: 1px solid var(--button-dark);
  border-radius: 20px;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.course-bottom button:hover {
  transform: translateY(-2px);

  background: var(--button-dark-hover);
  box-shadow: 0 7px 16px rgba(51, 45, 41, 0.18);
}

/* =========================
   문화갤러리
========================= */
/* 문화갤러리 전체 배경 */
.gallery-section {
  padding-top: 56px;
  padding-bottom: 48px;
  background: #fff8f9;
}

.gallery-heading {
  margin-bottom: 28px;
  display: block;
}

/* 문화갤러리 큰 제목 */
.gallery-heading h2 {
  margin: 0;

  color: #222;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -2px;
}

/* 안내문 */
.gallery-intro {
  max-width: 480px;
  margin: 12px 0 0;

  color: #666;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

/* 카드 3개씩 배치 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  align-items: stretch;
}

/* 각각의 갤러리 카드 */
.gallery-card {
  position: relative;

  width: 100%;
  height: 330px;

  overflow: hidden;

  background: #e7dfda;
  border: 1px solid rgba(82, 62, 52, 0.1);
  border-radius: 22px;

  box-shadow: 0 10px 28px rgba(65, 45, 36, 0.07);

  cursor: zoom-in;

  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

/* 모든 사진을 같은 크기의 틀에 채움 */
.gallery-card img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.5s ease;
}

/* 사진 위 어두운 투명막 */
.gallery-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(39, 31, 28, 0.92) 0%,
      rgba(39, 31, 28, 0.5) 48%,
      rgba(39, 31, 28, 0.04) 80%
    );

  transition: background 0.35s ease;
}

/* 사진 위 글자 영역 */
.gallery-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 2;

  min-height: 160px;
  padding: 24px 25px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  color: #fff;
}

/* 영문 분류 */
.gallery-category {
  display: block;

  margin-bottom: 7px;

  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* 작품 제목 */
.gallery-content h3 {
  margin: 0 0 8px;

  color: #fff;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;

  word-break: keep-all;
}

/* 작품 설명 */
.gallery-description {
  margin: 0;

  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;

  word-break: keep-all;
}

/* 생각 질문 */
.gallery-question {
  max-height: 0;
  margin: 0;

  overflow: hidden;

  color: #fff0d7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;

  opacity: 0;
  transform: translateY(8px);

  transition:
    max-height 0.35s ease,
    margin-top 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* 마우스를 올렸을 때 카드 */
.gallery-card:hover {
  transform: translateY(-4px);

  border-color: rgba(166, 129, 79, 0.22);

  box-shadow: 0 18px 40px rgba(65, 45, 36, 0.13);
}

/* 마우스를 올렸을 때 사진 확대 */
.gallery-card:hover img {
  transform: scale(1.055);
}

/* 마우스를 올렸을 때 투명막을 조금 진하게 */
.gallery-card:hover .gallery-overlay {
  background:
    linear-gradient(
      to top,
      rgba(39, 31, 28, 0.95) 0%,
      rgba(39, 31, 28, 0.65) 60%,
      rgba(39, 31, 28, 0.12) 100%
    );
}

/* 마우스를 올렸을 때 질문 표시 */
.gallery-card:hover .gallery-question {
  max-height: 52px;
  margin-top: 9px;

  opacity: 1;
  transform: translateY(0);
}

/* 기본 사진 중심 */
.gallery-image-center {
  object-position: center;
}

/* 사진 위쪽을 더 보여줌 */
.gallery-image-top {
  object-position: center top !important;
}

/* 사진 아래쪽을 더 보여줌 */
.gallery-image-bottom {
  object-position: center bottom !important;
}

/* =========================
   갤러리 이미지 크게 보기
========================= */

/* 클릭 가능한 이미지 표시 */
.gallery-click-image {
  cursor: zoom-in;
}

/* 전체 화면 팝업 배경 */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;

  padding: 40px;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  background: rgba(25, 20, 18, 0.92);

  opacity: 0;
  transition: opacity 0.25s ease;
}

/* 팝업이 열렸을 때 */
.gallery-modal.is-open {
  display: flex;
  opacity: 1;
}

/* 크게 보이는 이미지 */
.gallery-modal-image {
  display: block;

  max-width: min(1100px, 90vw);
  max-height: 82vh;

  width: auto;
  height: auto;

  object-fit: contain;

  background: #fff;
  border-radius: 12px;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

/* 이미지 설명 */
.gallery-modal-caption {
  margin: 14px 0 0;

  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-align: center;
}

/* 닫기 버튼 */
.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  color: #fff;
  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  font-size: 30px;
  line-height: 1;
}

/* 닫기 버튼 마우스 효과 */
.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* =========================
   문화갤러리 태블릿
========================= */

@media (max-width: 900px) {

  .gallery-heading {
    margin-bottom: 24px;
  }

  .gallery-heading h2 {
    font-size: 36px;
  }

  .gallery-intro {
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-card {
    height: 310px;
    border-radius: 20px;
  }

  .gallery-content {
    min-height: 155px;
    padding: 22px;
  }

  .gallery-content h3 {
    font-size: 19px;
  }

  .gallery-description {
    font-size: 12px;
  }

  /* 태블릿은 질문을 항상 표시 */
  .gallery-question {
    max-height: 52px;
    margin-top: 8px;

    font-size: 12px;

    opacity: 1;
    transform: none;
  }

  /* 태블릿 팝업 */
  .gallery-modal {
    padding: 30px;
  }

  .gallery-modal-image {
    max-width: 92vw;
    max-height: 80vh;
  }
}


/* =========================
   문화갤러리 스마트폰
========================= */

@media (max-width: 600px) {

  .gallery-heading {
    margin-bottom: 20px;
    display: block;
  }

  .gallery-heading h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .gallery-intro {
    margin-top: 10px;

    font-size: 14px;
    line-height: 1.55;
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-card {
    height: 285px;
    border-radius: 18px;
  }

  .gallery-content {
    min-height: 145px;
    padding: 19px;
  }

  .gallery-category {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .gallery-content h3 {
    margin-bottom: 6px;

    font-size: 18px;
    line-height: 1.35;
  }

  .gallery-description {
    font-size: 12px;
    line-height: 1.55;
  }

  .gallery-question {
    max-height: 50px;
    margin-top: 7px;

    font-size: 12px;
    line-height: 1.5;

    opacity: 1;
    transform: none;
  }

  /* 스마트폰 팝업 */
  .gallery-modal {
    padding: 18px;
  }

  .gallery-modal-image {
    max-width: 94vw;
    max-height: 76vh;

    border-radius: 9px;
  }

  .gallery-modal-close {
    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    font-size: 27px;
  }

  .gallery-modal-caption {
    margin-top: 10px;
    font-size: 12px;
  }
}

/* =========================
   새로운 강사진 소개
========================= */

/* 강사진 전체 영역 */
.instructors-section {
  padding: 50px 0;
  background: #fffafb;
}


/* 강사진 콘텐츠 최대 너비 */
.instructors-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* 위쪽 제목 영역 */
.instructors-heading {
  margin-bottom: 30px;
  text-align: center;
}


/* 작은 영문 제목 */
.instructors-small-title {
  margin: 0 0 12px;

  color: #a47d4d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}


/* 큰 제목 */
.instructors-heading h2 {
  margin: 0;

  color: #222;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.7px;
}


/* 제목 아래 설명 */
.instructors-intro {
  margin: 12px auto 0;
  max-width: 620px;

  color: #777;
  font-size: 15px;
  line-height: 1.65;
}


/* =========================
   대표 강사 카드
========================= */
.main-instructor-card {
  margin-bottom: 28px;
  padding: 28px 32px;

  display: block;

  background: #ffffff;
  border: 1px solid #eee5e2;
  border-radius: 24px;

  box-shadow: 0 10px 28px rgba(80, 50, 40, 0.055);
}

/* 대표 강사 내부 배치 */
.main-instructor-content {
  padding: 0;

  display: grid;

  /* 왼쪽 정보 330px, 오른쪽 소개글은 남은 공간 */
  grid-template-columns: 340px minmax(0, 1fr);

  /* 각 내용을 어느 위치에 놓을지 정합니다. */
  grid-template-areas:
    "badge description"
    "name description"
    "role description"
    "career description";

  column-gap: 38px;
  row-gap: 0;

  align-items: center;
}

/* 대표 강사 배지 */
.instructor-badge {
  grid-area: badge;

  display: inline-block;
  justify-self: start;

  margin-left: 0px;
  margin-bottom: 10px;
  padding: 7px 16px;

  color: white;
  background: #c98996;

  border-radius: 30px;

  font-size: 13px;
  font-weight: 800;
}


/* 대표 강사 이름 */
.main-instructor-content h3 {
  grid-area: name;

  margin: 0 0 6px;

  color: #222;
  font-size: 34px;
  line-height: 1.2;
}


/* 대표 강사 분야 */
.main-instructor-role {
  grid-area: role;

  margin: 0 0 16px;

  color: #a56f7b;
  font-size: 18px;
  font-weight: 700;
}


/* 대표 강사 경력 박스 */
.main-instructor-career {
  grid-area: career;

  width: fit-content;
  min-width: 230px;

  margin: 0;
  padding: 12px 17px;

  list-style: none;

  color: #555;
  background: #fff5f6;

  border: 1px solid #f2dfe3;
  border-radius: 15px;

  font-size: 15px;
  line-height: 1.75;
}

.main-instructor-description {
  grid-area: description;
  align-self: center;

  margin: 0;
  padding: 6px 4px 6px 32px;

  color: #666;
  border-left: 1px solid #eadcde;

  font-size: 15px;
  line-height: 1.75;
}

/* 경력 앞 점 */
.main-instructor-career li::before {
  content: "•";

  width: 17px;
  flex-shrink: 0;

  color: #c98996;
}


/* =========================
   아래 코치 카드
========================= */

/* 카드 4개 배치 */
.instructor-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}


/* 각각의 코치 카드 */
.instructor-profile-card {
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #eee6e2;
  border-radius: 22px;

  box-shadow: 0 8px 22px rgba(70, 45, 40, 0.05);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 카드에 마우스를 올렸을 때 */
.instructor-profile-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 16px 34px rgba(70, 45, 40, 0.10);
}

/* 코치 설명 영역 */
.instructor-profile-content {
  height: 100%;
  padding: 18px 20px 22px;

  display: flex;
  flex-direction: column;

  text-align: center;
}

/* Fellow 표시 */
.instructor-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;

  width: auto;
  min-width: 88px;

  margin-bottom: 12px;
  padding: 5px 14px;

  color: #8a6f63;
  background: #fffaf8;

  border: 1px solid #e7d8d2;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

/* 코치 이름 */
.instructor-profile-content h3 {
  margin: 0 0 10px;

  color: #24201e;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

/* 코치 전문 분야 */
.instructor-profile-content strong {
  display: block;
  margin-bottom: 17px;

  color: #b47885;
  font-size: 15px;
}

/* 코치 경력 */
.instructor-profile-content ul {
  min-height: 118px;

  /* 목록 전체를 카드 가운데에 배치 */
  width: 190px;
  margin: 0 auto 14px;

  padding: 0;
  list-style: none;

  /* 목록 글자만 왼쪽 정렬 */
  text-align: left;

  color: #777;
  font-size: 13.5px;
  line-height: 1.7;
}

/* 경력 한 줄씩 정렬 */
.instructor-profile-content li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 7px;
}

/* 경력 앞 점 */
.instructor-profile-content li::before {
  content: "•";
  margin-right: 6px;
  color: #c98996;
}


/* 코치 소개문 */
.instructor-profile-content p {
  margin: 0;
  padding-top: 16px;

  color: #6f6a67;
  border-top: 1px solid #e8dfdb;

  font-size: 13.5px;
  line-height: 1.65;
}

/* =========================
   태블릿 화면
========================= */

@media (max-width: 1100px) {

  .instructors-section {
    padding: 52px 0;
  }

  .instructors-container {
    width: min(100% - 40px, 1180px);
  }

  .instructors-heading {
    margin-bottom: 26px;
  }

  .instructors-heading h2 {
    font-size: 38px;
  }

  .instructors-intro {
    margin-top: 10px;
    font-size: 15px;
  }

  /* 대표 강사 카드 */
  .main-instructor-card {
    margin-bottom: 24px;
    padding: 26px 28px;
  }

  .main-instructor-content {
    grid-template-columns: 285px minmax(0, 1fr);
    column-gap: 30px;
  }

  .main-instructor-content h3 {
    font-size: 31px;
  }

  .main-instructor-role {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .main-instructor-career {
    min-width: 0;
    padding: 11px 15px;

    font-size: 14px;
    line-height: 1.65;
  }

  .main-instructor-description {
    padding-left: 26px;

    font-size: 14px;
    line-height: 1.7;
  }

  /* 아래 코치 카드 2개씩 */
  .instructor-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .instructor-profile-content {
    padding: 18px 20px 21px;
  }

  .instructor-profile-content ul {
    width: min(100%, 220px);
    min-height: 88px;
  }
}

/* =========================
   스마트폰 화면
========================= */

@media (max-width: 700px) {

  .instructors-section {
    padding: 42px 0;
  }

  .instructors-container {
    width: min(100% - 30px, 1180px);
  }

  .instructors-heading {
    margin-bottom: 22px;
  }

  .instructors-small-title {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .instructors-heading h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .instructors-intro {
    margin-top: 9px;

    font-size: 14px;
    line-height: 1.6;
  }

  /* 대표 강사 카드 */
  .main-instructor-card {
    margin-bottom: 18px;
    padding: 22px 20px;

    border-radius: 20px;
  }

  .main-instructor-content {
    padding: 0;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "name"
      "role"
      "career"
      "description";

    row-gap: 0;
  }

  .instructor-badge {
    margin: 0 0 10px;
    padding: 6px 13px;

    font-size: 12px;
  }

  .main-instructor-content h3 {
    margin: 0 0 5px;

    font-size: 28px;
  }

  .main-instructor-role {
    margin: 0 0 14px;

    font-size: 15px;
  }

  .main-instructor-career {
    width: 100%;
    min-width: 0;

    margin: 0 0 17px;
    padding: 12px 15px;

    font-size: 13px;
    line-height: 1.65;
  }

  .main-instructor-description {
    margin: 0;
    padding: 17px 0 0;

    border-top: 1px solid #eadcde;
    border-left: 0;

    font-size: 14px;
    line-height: 1.7;
  }

  /* 코치 카드 한 줄에 하나씩 */
  .instructor-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .instructor-profile-card {
    border-radius: 20px;
  }

  .instructor-profile-content {
    padding: 18px 19px 20px;
  }

  .instructor-position {
    margin-bottom: 7px;
    padding: 5px 12px;
  }

  .instructor-profile-content h3 {
    font-size: 21px;
  }

  .instructor-profile-content strong {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .instructor-profile-content ul {
    width: min(100%, 230px);
    min-height: auto;

    margin-bottom: 12px;

    font-size: 13px;
    line-height: 1.65;
  }

  .instructor-profile-content li {
    margin-bottom: 5px;
  }

  .instructor-profile-content p {
    padding-top: 12px;

    font-size: 13px;
    line-height: 1.6;
  }
}

/* =========================
    수강생 후기
========================= */

/* 후기 전체 영역 */
.reviews-section {
  padding: 56px 0;

  background: #eee9dd;
}


/* 후기 전체 너비 */
.reviews-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* 후기 제목 영역 */
.reviews-heading {
  margin-bottom: 28px;
}


/* 작은 영문 제목 */
.reviews-small-title {
  margin: 0 0 7px;

  color: #a6814f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}


/* 후기 큰 제목 */
.reviews-heading h2 {
  margin: 0;

  color: #222;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.8px;
}


/* 제목 아래 설명 */
.reviews-intro {
  margin: 10px 0 0;

  color: #777;
  font-size: 15px;
  line-height: 1.6;
}


/* 후기 슬라이더와 화살표를 감싸는 바깥 상자 */
.review-slider-shell {
  position: relative;

  width: 100%;
  padding: 0 64px;
}

/* 실제 후기 슬라이더 */
.review-slider {
  position: relative;

  width: 100%;
  margin: 0 auto;
  padding: 4px 0 38px;

  /* 이전·다음 카드 조각을 완전히 숨김 */
  overflow: hidden;
}

/* 반복 슬라이드의 일부가 바깥으로 보이지 않도록 처리 */
.review-slider .swiper-wrapper {
  align-items: stretch;
}

.review-slider .swiper-slide {
  box-sizing: border-box;
  height: auto;
}


/* 후기 카드 */
.review-card {
  box-sizing: border-box;

  width: 100%;
  min-height: 205px;
  height: auto;

  padding: 26px 30px 22px;

  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.98);

  border: 1px solid rgba(88, 68, 56, 0.08);
  border-radius: 24px;

  box-shadow: 0 12px 28px rgba(70, 50, 40, 0.06);
}

/* 카드 위쪽 별점과 강좌명 */
.review-card-top {
  margin-bottom: 12px;
}

/* 별점 */
.review-stars {
  color: #c99a48;

  font-size: 19px;
  line-height: 1;
  letter-spacing: 1.5px;
}

/* 수강 강좌 표시 */
.review-course {
  display: none;
}

/* 후기 내용 */
.review-card blockquote {
  width: 100%;
  margin: 0;

  color: #555;
  font-size: 16px;
  line-height: 1.65;

  text-align: left;
  word-break: keep-all;
}

/* 작성자 부분 */
.review-author {
  width: 100%;
  margin-top: auto;
  padding-top: 10px;

  display: block;

  border-top: 1px solid #eee7e1;
  text-align: left;
}

/* 분홍색 원 숨김 */
.review-author-mark {
  display: none;
}

/* 수강생 이름 숨김 */
.review-author strong {
  display: none;
}


/* 직업만 표시 */
.review-author span {
  display: block;

  margin: 0;

  color: #555;
  font-size: 15px;
  font-weight: 700;
}

/* 페이지 표시 위치 */
.review-slider .swiper-pagination {
  bottom: 4px;
}

/* 선택되지 않은 페이지 점 */
.review-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;

  background: #bfb2a4;
  opacity: 0.45;
}

/* 현재 페이지 점 */
.review-slider .swiper-pagination-bullet-active {
  width: 25px;

  background: #c98996;
  border-radius: 10px;

  opacity: 1;
}

/* 후기 좌우 화살표 공통 */
.review-button {
  position: absolute;
  top: calc(50% - 18px);
  z-index: 20;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  color: #5b4a43;
  background: rgba(255, 255, 255, 0.94);

  border: 1px solid rgba(115, 91, 78, 0.16);
  border-radius: 50%;

  box-shadow: 0 12px 28px rgba(63, 46, 38, 0.13);

  font-size: 18px;
  line-height: 1;

  transform: translateY(-50%);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}


/* 왼쪽 화살표 */
.review-button-prev {
  left: 8px;
}


/* 오른쪽 화살표 */
.review-button-next {
  right: 8px;
}


/* 화살표에 마우스를 올렸을 때 */
.review-button:hover {
  color: var(--button-text);
  background: var(--button-dark-hover);

  box-shadow: 0 15px 32px rgba(51, 45, 41, 0.22);

  transform:
    translateY(-50%)
    scale(1.05);
}

/* =========================
   태블릿
========================= */
@media (max-width: 900px) {

  .reviews-section {
    padding: 50px 0;
  }

  .reviews-container {
    width: min(100% - 40px, 1180px);
  }

  .reviews-heading {
    margin-bottom: 24px;
  }

  .review-slider-shell {
    padding: 0;
  }

  .review-slider {
    width: 100%;
    padding: 4px 0 34px;
  }

  .review-card {
    min-height: 200px;
  }

  .review-button {
    display: none;
  }
}

/* =========================
   스마트폰
========================= */
@media (max-width: 600px) {

  .review-slider-shell {
    padding: 0;
  }

  .review-slider {
    width: 100%;
    padding: 3px 0 32px;
  }

  /* 기존 스마트폰 후기 코드 계속 */
}

/* =========================
   아카데미 장소
========================= */

/* 장소 전체 영역 */
.location-section {
  padding: 50px 0;
  background: #fff8f9;
}


/* 전체 너비 */
.location-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* 제목 영역 */
.location-heading {
  margin-bottom: 28px;
}

/* 작은 영문 제목 */
.location-small-title {
  margin: 0 0 7px;

  color: #a6814f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* 큰 제목 */
.location-heading h2 {
  margin: 0;

  color: #222;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.8px;
}

/* 제목 아래 문장 */
.location-heading > p:last-child {
  margin: 10px 0 0;

  color: #777;
  font-size: 15px;
  line-height: 1.6;
}

/* 정보와 지도를 좌우로 배치 */
.location-content {
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  gap: 22px;
  align-items: stretch;
}

/* 왼쪽 장소 정보 */
.location-info {
  min-height: 360px;
  padding: 28px 32px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #ffffff;
  border: 1px solid #eee5e2;
  border-radius: 22px;

  box-shadow: 0 10px 26px rgba(61, 42, 38, 0.05);
}

/* 작은 이름 표시 */
.location-label {
  display: inline-block;
  align-self: flex-start;

  margin-bottom: 12px;
  padding: 6px 13px;

  color: #9a6874;
  background: #fff0f3;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.location-info h3 {
  margin: 0 0 8px;

  color: #222;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -1px;
}

/* 간단한 소개 */
.location-description {
  margin: 0 0 20px;

  color: #777;
  font-size: 14px;
  line-height: 1.65;
}

/* 주소·교통·시간 한 줄 */
.location-item {
  margin-bottom: 13px;
  padding-bottom: 13px;

  display: flex;
  align-items: center;
  gap: 14px;

  border-bottom: 1px solid #f3ece8;
}

.location-item:last-of-type {
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
}

/* 아이콘 */
.location-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: #fff2f4;
  border: 1px solid #f3e2e6;
  border-radius: 50%;

  font-size: 14px;
}

/* 항목 제목 */
.location-item strong {
  display: block;
  margin-bottom: 2px;

  color: #222;
  font-size: 14px;
  font-weight: 700;
}

/* 항목 설명 */
.location-item p {
  margin: 0;

  color: #777;
  font-size: 13px;
  line-height: 1.55;
}

/* 길찾기 버튼 */
.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;

  margin-top: 4px;
  padding: 10px 19px;

  color: var(--button-text);
  background: var(--button-dark);

  border: 1px solid var(--button-dark);
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;

  box-shadow: 0 8px 18px rgba(51, 45, 41, 0.16);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* 버튼에 마우스를 올렸을 때 */
.location-button:hover {
  transform: translateY(-2px);

  background: var(--button-dark-hover);
  box-shadow: 0 10px 24px rgba(51, 45, 41, 0.22);
}

/* 오른쪽 지도 바깥 상자 */
.location-map {
  width: 100%;
  min-height: 360px;

  overflow: hidden;

  background: #f3f1ee;
  border: 1px solid #eee5e2;
  border-radius: 22px;

  box-shadow: 0 10px 26px rgba(61, 42, 38, 0.05);
}

/* 실제 카카오 지도 */
#kakao-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

/* =========================
   태블릿 화면
========================= */

@media (max-width: 900px) {

  .location-section {
    padding: 50px 0;
  }

  .location-container {
    width: min(100% - 40px, 1180px);
  }

  .location-heading {
    margin-bottom: 24px;
  }

  .location-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .location-info {
    min-height: auto;
    padding: 30px 32px;
  }

  .location-map,
  #kakao-map {
    min-height: 350px;
  }
}

/* =========================
   스마트폰 화면
========================= */

@media (max-width: 600px) {

  .location-section {
    padding: 42px 0;
  }

  .location-container {
    width: min(100% - 30px, 1180px);
  }

  .location-heading {
    margin-bottom: 20px;
  }

  .location-heading h2 {
    font-size: 30px;
  }

  .location-heading > p:last-child {
    margin-top: 10px;
    font-size: 14px;
  }

  .location-content {
    gap: 15px;
  }

  .location-info {
    min-height: auto;
    padding: 26px 22px;
    border-radius: 20px;
  }

  .location-info h3 {
    font-size: 25px;
  }

  .location-description {
    margin-bottom: 18px;
  }

  .location-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .location-icon {
    width: 34px;
    height: 34px;
  }

  .location-button {
    padding: 10px 18px;
  }

  .location-map {
    border-radius: 20px;
  }

  .location-map,
  #kakao-map {
    min-height: 280px;
  }
}

/* =========================
   푸터
========================= */

.footer {
  padding: 24px 0 14px;

  color: white;
  background: #332d29;
}

/* 푸터 위쪽 3칸 배치 */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.6fr;

  gap: 22px;
  align-items: start;
}

/* 왼쪽 로고 */
.footer-logo {
  font-size: 20px;
  font-weight: 800;
}


/* 왼쪽 소개 문장 */
.footer-brand p {
  margin: 8px 0 0;

  color: #d1c9c4;
  font-size: 14px;
  line-height: 1.55;
}

/* 가운데 안내 제목 */
.footer-contact h2 {
  margin: 0 0 10px;

  color: white;
  font-size: 18px;
  line-height: 1.3;
}

/* 가운데 안내 문장 */
.footer-contact p {
  margin: 0 0 12px;

  color: #d1c9c4;
  font-size: 14px;
  line-height: 1.6;
}

/* 가운데 수강신청 버튼 */
.footer-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 0;

  padding: 8px 17px;

  color: #332d29;
  background: #fff8f1;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.footer-contact-button:hover {
  transform: translateY(-2px);
  background: var(--button-light-hover);
}

/* 오른쪽 바로가기 제목 */
.footer-menu h2 {
  margin: 0 0 10px;

  font-size: 18px;
}

/* 바로가기 목록 */
.footer-menu ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

/* 바로가기 한 줄 */
.footer-menu li {
  margin-bottom: 4px;
}

/* 바로가기 글자 */
.footer-menu a {
  color: #f2ece8;
  font-size: 14px;
}


/* 푸터 맨 아래 */
.footer-bottom {
  margin-top: 14px;
  padding-top: 10px;

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  color: #aaa;
  font-size: 12px;
}

/* 개인정보처리방침·이용약관 */
.footer-bottom a {
  margin-right: 12px;
}

/* 주소 */
.footer-bottom address {
  margin: 5px 0;

  font-style: normal;
  line-height: 1.5;
}

/* 위로 가기 버튼 */
.top-button {
  position: fixed;
  right: 25px;
  bottom: 25px;

  width: 48px;
  height: 48px;

  border: 0;
  border-radius: 50%;

  background: white;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   푸터 제목 높이 맞추기
========================= */
.footer-brand,
.footer-contact,
.footer-menu{
    display:flex;
    flex-direction:column;
    align-items: flex-start;
}

/* =========================
   태블릿·스마트폰
========================= */

/* 태블릿 화면 */
@media (max-width: 1000px) {

  .main-menu,
  .login-button {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .teacher-grid,
  .notice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  /* 태블릿 푸터 */
  .footer {
    padding: 28px 0 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-menu {
    grid-column: 1 / -1;
  }

  .footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .footer-menu li {
    margin-bottom: 0;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 11px;
  }
}


/* 스마트폰 화면 */
@media (max-width: 700px) {

  .section {
    padding: 44px 0;
  }

  .hero-slide {
    padding: 35px 25px;
  }

  .hero-text h1,
  .hero-text h2 {
    font-size: 36px;
  }

  .about-inner,
  .newsletter-inner,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* 스마트폰 푸터 */
  .footer {
    padding: 26px 0 18px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-menu {
    grid-column: auto;
  }

  .footer-logo {
    font-size: 18px;
  }

  .footer-brand p {
    margin-top: 6px;
    font-size: 13px;
  }

  .footer-contact h2,
  .footer-menu h2 {
    font-size: 17px;
  }

  .footer-contact p {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .footer-contact-button {
    padding: 8px 15px;
    font-size: 12px;
  }

  .footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .footer-menu li {
    margin-bottom: 0;
  }

  .footer-menu a {
    font-size: 13px;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 10px;
    font-size: 11px;
  }

  .footer-bottom address {
    margin: 7px 0;
  }

.course-grid,
.teacher-grid,
.notice-grid {
  grid-template-columns: 1fr;
}


  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .newsletter-form input {
    width: 220px;
  }
}


/* 메인 슬라이드 화살표 숨기기 */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  display: none;
}