:root {
  --primary: #111;          /* 메인 텍스트/배경 */
  --accent: #ffcc00;        /* 강조 색상 (골드톤) */
  --secondary: #555;        /* 서브 텍스트 */
  --light-bg: #f8f8f8;      /* 밝은 배경 */
  --button-dark: #222;
}

h2, h3 {
  margin: 0;
  padding: 0;
}

/* 공통 숨김 상태 (초기) */
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* 보이기 시작할 때 */
.section-show {
  opacity: 1;
  transform: translateY(0);
}

.element-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.element-show {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
}

header {
  background: #0a0a23;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  height: 30px;
}

.header-left .location {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-right {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.kakao-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right img {
  height: 30px;
}

.kakao-id {
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: right;
  word-break: keep-all;
}

.top-banner-wrapper {
  position: relative; /* 기준이 되는 부모 */
}

.top-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.teacher-button {
  position: absolute;
  background-color: black;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.teacher-button:hover {
  background-color: #ffd700; /* hover 시 노란색 (골드톤) */
  color: black;
}

/* LC 버튼 위치 */
.lc-button {
  left: 20%;
  top: 85%;
}

/* RC 버튼 위치 */
.rc-button {
  left: 35%;
  top: 85%;
}

.video-section {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.video-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.video-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.video-section iframe {
  width: 100%;
  max-width: 900px;
  height: 506px; /* 16:9 비율 */
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.review-link-section {
  background: black;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.review-link-section h2 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 40px;
}

.review-link-section p {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 40px;
}

.review-button {
  background-color: #ffd700;
  color: black;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.review-button:hover {
  background-color: #1e90ff;  /* 밝은 블루톤 */
  color: white;
}

.benefit-wrapper {
  padding: 60px 20px;
}

.benefit {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.image-review-section {
  background: #000;  /* 검정 배경 */
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.image-review-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffd700;  /* 골드 강조 */
  font-weight: 800;
}

.image-review-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #fff;
}

.review-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.review-image-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.review-image-grid img:hover {
  transform: scale(1.03);
}

.kakao-section {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.kakao-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffd700;
  font-weight: 800;
}

.kakao-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #fff;
  line-height: 1.8;
}

.kakao-button {
  background-color: #fee500;
  color: #000;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.kakao-button:hover {
  background-color: #000;
  color: #fee500;
  border: 2px solid #fee500;
}

.kakao-icon {
  width: 28px;
  height: 28px;
}

.teacher-wrapper {
  padding: 60px 20px;
}

.teacher {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.apply-section {
  background: #fff; /* 흰색 배경 */
  color: #000; 
  text-align: center;
  padding: 80px 20px;
}

.apply-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000;
  font-weight: 800;
}

.apply-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #555;
}

.apply-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 30px;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: var(--button-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.apply-button:hover {
  transform: translateY(-2px);
  background-color: var(--accent);
  color: #000;
}

/* 각 버튼 색상 */
.main-button {
  background-color: #ff5252; /* 빨간톤 */
}
.main-button:hover {
  background-color: #c62828;
}

.rc-button {
  background-color: #1e90ff; /* 파란톤 */
}
.rc-button:hover {
  background-color: #125d9b;
}

.lc-button {
  background-color: #ffa500; /* 주황톤 */
}
.lc-button:hover {
  background-color: #cc7a00;
}

.instagram-button {
  background-color: #fff;
  color: #E4405F;
  border: 1px solid #E4405F;
}

.instagram-button:hover {
  background-color: #E4405F;
  color: #fff;
}

.blog-button {
  background-color: #fff;
  color: #00c73c;
  border: 1px solid #00c73c;
}
.blog-button:hover {
  background-color: #00c73c;
  color: #fff;
}

@media (max-width: 768px) {
  header {
    flex-direction: row; /* column 대신 row 유지 */
    padding: 10px 20px;  /* 좌우 패딩 줄이기 */
  }

  .header-left {
    gap: 5px;
  }

  .header-left img {
    height: 20px;
  }

  .header-right {
    max-width: 70%;  /* 모바일에서는 좀 더 여유있게 */
  }

  .header-left .location {
    font-size: 1rem; /* 살짝 축소 */
  }

  .header-right .kakao-id {
    font-size: 0.9rem;  /* 살짝 축소 */
  }

  .teacher-button {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 20px;
  }

  .lc-button {
    left: 10%;
    top: 80%;
  }

  .rc-button {
    left: 53%;
    top: 80%;
  }

  .score-counter h3 {
    font-size: 2rem;
  }

  .counter {
    font-size: 4.5rem;
  }

  .plus {
    font-size: 4.5rem;
  }

  .video-section h2 {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .video-section p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .video-section iframe {
    height: 230px;
  }

  .benefit-wrapper {
    padding: 0px;
  }

  .benefit {
    width: 90%;
  }

  .teacher-wrapper {
    padding: 20px 0px;
  }

}