/* common_sections.css */

/* --- 기본 설정 --- */
html, body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #1e1e1e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 공통 타이포그래피 기본 스타일 (데스크탑 기준) --- */

/* Subtitle 스타일 (작은 안내 문구) */
.sub-title,
.section-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #d84141;
  text-align: center;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.05em;
  user-select: none;
}

/* H1 (메인 페이지 히어로 섹션 타이틀) */
 h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  word-break: keep-all;
}
.hero-content p{color:#fff;}

/* H2 (일반 섹션 타이틀, main-slide-show h2, noon-hero h1 제외) */
section h2:not(.hero-content h1, .main-slide-show h2, .noon-hero h1) {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.06em;
  margin-bottom: 40px;
  color: #1e1e1e;
  word-break: keep-all;
  text-align: center;
}

/* H3 (카드 제목, 소섹션 제목, `.edu-item h3` 등) */
h3 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  color: #1e1e1e;
}

/* P (기본 본문 텍스트, `.edu-item p` 등) */
p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  word-break: keep-all;
}

/* Intro Text (섹션 도입부 텍스트 - 기본 P보다 약간 크게) */
p.intro-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

/* 리스트 항목 (`ul li`, `.preparation-point-item`, `.custom-list li` 등) */
ul li,
.preparation-point-item,
.type-detail-card p,
.roadmap-visual-steps .roadmap-step-card h3,
.type-detail-card ul.custom-list li,
.type-detail-card ul.sub-list li,
.roadmap-visual-steps .roadmap-step-card p,
.cta-content p,
.photo-exam-experience p,
.edu-item p,
.diff-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* --- 특정 요소 스타일 조정 (common_sections에서 직접 관리) --- */
/* (admissions_v1_refined.css에서 가져옴) */
h5.university-type-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    word-break: keep-all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.accordion-content .sub-heading { /* 아코디언 내부 소제목 */
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e1e1e;
    margin-top: 0;
    margin-bottom: 20px;
    word-break: keep-all;
    text-align: center;
}
.accordion-content .description-text { /* 아코디언 내부 설명 텍스트 */
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    word-break: keep-all;
    text-align: center;
}
.accordion-content .highlight-text { /* 아코디언 내부 강조 텍스트 */
    font-size: 1.05rem;
    background-color: #fcebeb;
    padding: 15px 25px;
    border-left: 5px solid #d84141;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #1e1e1e;
    text-align: center;
}
.accordion-content .warning-text { /* 아코디언 내부 경고 텍스트 */
    font-size: 1.0rem;
    background-color: #fcebeb;
    color: #d84141;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.quick-contact-common .consultation-detail-text { /* 상담 섹션 안내 텍스트 */
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a4a4a;
  margin-bottom: 40px;
  line-height: 1.5;
  text-align: center;
}
.cta-content h3 { /* CTA 카드 제목 */
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.3;
  word-break: keep-all;
  letter-spacing: -0.02em;
  user-select: text;
  color: inherit; /* 부모로부터 색상 상속 */
}
.cta-content p { /* CTA 카드 본문 */
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
  white-space: pre-line;
  letter-spacing: -0.01em;
  user-select: text;
  color: inherit; /* 부모로부터 색상 상속 */
}
.photo-credit { /* 사진 크레딧 */
  position: absolute;
  left: 15px;
  bottom: 15px;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  user-select: none;
  max-width: 300px;
  text-align: left;
  letter-spacing: -0.01em;
  font-family: 'Noto Sans KR', sans-serif;
  z-index: 2;
}

/* --- 공통 타이포그래피 반응형 스타일 --- */

/* 태블릿 (max-width: 991px) */
@media (max-width: 991px) {
  .sub-title, .section-subtitle {
    font-size: 0.9rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.3;
  }
  section h2:not(.hero-content h1, .main-slide-show h2, .noon-hero h1) {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  h3 {
    font-size: 1.4rem;
  }
  p, ul li {
    font-size: 0.95rem;
  }
  p.intro-text {
      font-size: 1rem;
      margin-bottom: 40px;
  }
  h5.university-type-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  .accordion-content .sub-heading {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  .accordion-content .description-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .accordion-content .highlight-text {
    font-size: 0.95rem;
    padding: 12px 15px;
    margin-bottom: 25px;
  }
  .accordion-content .warning-text {
    font-size: 0.95rem;
    padding: 12px 15px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .quick-contact-common .consultation-detail-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .cta-content h3 {
    font-size: 1.6rem;
  }
  .cta-content p {
    font-size: 0.9rem;
  }
  .photo-credit {
    font-size: 0.65rem;
  }
}

/* 모바일 (max-width: 767px) */
@media (max-width: 767px) {
  .sub-title, .section-subtitle {
    font-size: 0.85rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  section h2:not(.hero-content h1, .main-slide-show h2, .noon-hero h1) {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  h3 {
    font-size: 1.2rem;
  }
  p, ul li {
    font-size: 0.9rem;
  }
  p.intro-text {
      font-size: 0.9rem;
      margin-bottom: 30px;
  }
  h5.university-type-title {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .accordion-content .sub-heading {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  .accordion-content .description-text {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  .accordion-content .highlight-text {
    font-size: 0.85rem;
    padding: 10px 12px;
    margin-bottom: 20px;
  }
  .accordion-content .warning-text {
    font-size: 0.85rem;
    padding: 10px 12px;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .quick-contact-common .consultation-detail-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .cta-content h3 {
    font-size: 1.4rem;
  }
  .cta-content p {
    font-size: 0.85rem;
  }
  .photo-credit {
    font-size: 0.6rem;
  }
}

/* 작은 모바일 (max-width: 480px) */
@media (max-width: 480px) {
  .sub-title, .section-subtitle {
    font-size: 0.8rem;
  }
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }
  section h2:not(.hero-content h1, .main-slide-show h2, .noon-hero h1) {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  h3 {
    font-size: 1.1rem;
  }
  p, ul li {
    font-size: 0.85rem;
  }
  p.intro-text {
      font-size: 0.85rem;
      margin-bottom: 25px;
  }
  h5.university-type-title {
    font-size: 0.95rem;
  }
  .accordion-content .sub-heading {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .accordion-content .description-text {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  .accordion-content .highlight-text {
    font-size: 0.8rem;
    padding: 8px 10px;
    margin-bottom: 15px;
  }
  .accordion-content .warning-text {
    font-size: 0.8rem;
    padding: 8px 10px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .quick-contact-common .consultation-detail-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .cta-content h3 {
    font-size: 1.2rem;
  }
  .cta-content p {
    font-size: 0.8rem;
  }
  .photo-credit {
    font-size: 0.5rem;
  }
}

/* --- 모든 섹션 공통 스타일 --- */
section {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero {
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 0 20px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30,30,30,0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* --- 모든 콘텐츠 섹션 상단 여백 --- */
.academy-environment,
.cta-class-selection,
.quick-contact-common {
  margin-top: 75px;
}

/* --- 학원 환경 섹션 (.academy-environment) --- */
.academy-environment {
  padding: 60px 0 80px;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;
  user-select: none;
  overflow: visible;
  min-height: 550px;
  justify-content: flex-start;
}

.academy-swiper-container {
  position: relative;
  width: 100%;
  padding-bottom: 40px;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.academy-swiper-container .swiper-slide {
  text-align: center;
}

.academy-swiper-container .swiper-slide img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.academy-swiper-container .swiper-button-prev,
.academy-swiper-container .swiper-button-next {
  color: #d84141;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.academy-swiper-container .swiper-button-prev {
  left: 10px;
}

.academy-swiper-container .swiper-button-next {
  right: 10px;
}

.academy-swiper-container .swiper-button-prev::after,
.academy-swiper-container .swiper-button-next::after {
  font-size: 2rem;
}

.academy-swiper-container .swiper-pagination {
  position: absolute;
  bottom: 0 !important;
  width: 100%;
  text-align: center;
}

.academy-swiper-container .swiper-pagination-bullet {
  background: #bbb;
  opacity: 0.8;
}

.academy-swiper-container .swiper-pagination-bullet-active {
  background: #d84141;
  opacity: 1;
}

/* --- 수업 보러가기 (CTA) 섹션 --- */
.cta-class-selection {
  padding: 60px 0 80px;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;
  user-select: none;
  overflow: visible;
  min-height: 450px;
}

.cta-grid {
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  gap: 24px;
  height: auto;
  overflow: visible;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.cta-card {
  flex: 0 0 calc(50% - 12px);
  max-width: 538px;
  height: auto;
  min-height: 280px;
  border-radius: 20px;
  overflow: visible;
  background-color: #f9f6dc;
  display: flex;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.11);
  color: #000;
  text-decoration: none;
  position: relative;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.cta-card.cta-blue {
  background-color: #5a78ce;
  color: #fff;
}
.cta-card.cta-yellow {
  background-color: #f9f6dc;
  color: #000;
}

.cta-card:hover {
  box-shadow: 0 12px 50px rgba(88, 93, 203, 0.4);
  transform: translateY(-8px);
}

.cta-content {
  flex: 1 1 55%;
  padding: 48px 32px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1.4;
  position: relative;
  z-index: 3;
}

.cta-arrow {
  position: relative;
  margin-top: 40px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 210, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 22px;
  color: #000;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease;
  z-index: 10;
}
.cta-card.cta-blue .cta-arrow {
  background-color: #6b92f2;
  color: #fff;
}
.cta-card.cta-yellow .cta-arrow {
  background-color: #ffe05d;
  color: #000;
}

.cta-arrow:hover {
  background-color: rgba(255, 255, 210, 1);
}

.cta-image-wrapper {
  flex: 1 1 45%;
  position: relative;
  border-radius: 0 20px 20px 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

.cta-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
  display: block;
}

.cta-image-wrapper .copyright-text {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
  pointer-events: none;
  font-family: 'Noto Sans KR', sans-serif;
}

/* --- 빠른 상담 및 문의 섹션 --- */
.quick-contact-common {
  background-image: url('../img/placeholders/bright_contact_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
  color: #1e1e1e;
  width: 100%;
  box-sizing: border-box;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.quick-contact-common > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* 상담 섹션 h2 */
.quick-contact-common h2 {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #1e1e1e !important;
  font-weight: 900;
  font-size: 2.8rem; /* common_sections.css의 일반 H2를 따르도록 */
  line-height: 1.2;
  word-break: keep-all;
}

/* 버튼 그룹 */
.quick-contact-common .contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

/* 버튼 스타일 */
.quick-contact-common .btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.15rem; /* 버튼 내 텍스트 크기 */
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background-color: #1e1e1e;
  border: 1px solid #1e1e1e;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  min-width: 200px;
  white-space: nowrap;
}

.quick-contact-common .btn-contact span {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* 호버 색상 변화 */
.quick-contact-common .btn-contact:hover {
  background-color: #d84141;
  border-color: #d84141;
  transform: translateY(-3px);
}

/* 아이콘 파일명 */
.quick-contact-common .btn-phone span {
  background-image: url('../img/icons/phone_W.svg');
}

.quick-contact-common .btn-kakao span {
  background-image: url('../img/icons/kakao_W.svg');
}

.quick-contact-common .btn-naver span {
  background-image: url('../img/icons/naver-reserve_W.svg');
}

/* --- 반응형 (common_sections 전체에 대한 미디어쿼리) --- */
@media (max-width: 991px) { /* 태블릿 */
  /* 모든 공통 섹션 상단 여백 */
  .academy-environment,
  .cta-class-selection,
  .quick-contact-common {
    margin-top: 80px;
  }
  .quick-contact-common h2 {
    font-size: 2.2rem; /* common_sections.css의 일반 H2를 따르도록 */
  }
  .quick-contact-common .contact-buttons {
    gap: 15px;
  }
  .quick-contact-common .btn-contact {
    padding: 14px 28px;
    font-size: 1.05rem;
    min-width: 160px;
  }
  .quick-contact-common .btn-contact span {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  /* 학원 환경 섹션 */
  .academy-environment {
    padding-left: 20px;
    padding-right: 20px;
    min-height: 500px;
  }
  .academy-swiper-container .swiper-slide img {
    height: 400px;
  }
  /* 수업 보러가기 (CTA) 섹션 */
  .cta-class-selection {
    padding-left: 20px;
    padding-right: 20px;
    min-height: 400px;
  }
  .cta-grid {
    gap: 20px;
    max-width: none;
    padding: 0;
  }
  .cta-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-height: 260px;
  }
  .cta-content {
    padding: 36px 30px;
  }
  .cta-arrow {
    margin-top: 35px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

@media (max-width: 767px) { /* 모바일 */
  /* 모든 공통 섹션 상단 여백 */
  .academy-environment,
  .cta-class-selection,
  .quick-contact-common {
    margin-top: 70px;
  }
  .quick-contact-common h2 {
    font-size: 1.8rem; /* common_sections.css의 일반 H2를 따르도록 */
  }
  .quick-contact-common .contact-buttons {
    flex-direction: column; /* 모바일에서 버튼 세로 정렬 */
    gap: 15px;
    align-items: center;
  }
  .quick-contact-common .btn-contact {
    width: 100%; /* 너비를 100%로 설정 */
    max-width: 320px; /* 최대 너비 제한 */
    padding: 14px 20px;
    font-size: 1rem;
  }
  .quick-contact-common .btn-contact span {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
  /* 학원 환경 섹션 */
  .academy-environment {
    padding-top: 40px;
    padding-bottom: 50px;
    padding-left: 0;
    padding-right: 0;
    min-height: 400px;
  }
  .academy-swiper-container .swiper-slide img {
    height: 300px;
  }
  .academy-swiper-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* 수업 보러가기 (CTA) 섹션 */
  .cta-class-selection {
    padding-top: 40px;
    padding-bottom: 50px;
    padding-left: 0;
    padding-right: 0;
    min-height: 350px;
  }
  .cta-grid {
    flex-direction: column;
    gap: 25px;
    padding: 0 15px;
  }
  .cta-card {
    width: 100%;
    max-width: none;
    min-height: 180px;
  }
  .cta-content {
    padding: 20px 25px;
  }
  .cta-arrow {
    margin-top: 25px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .cta-image-wrapper {
    flex: 1 1 45%;
    border-radius: 0 16px 16px 0;
  }
  .cta-image-wrapper img {
    border-radius: 0 16px 16px 0;
  }
  .cta-image-wrapper .copyright-text {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) { /* 작은 모바일 */
  /* 모든 공통 섹션 상단 여백 */
  .academy-environment,
  .cta-class-selection,
  .quick-contact-common {
    margin-top: 60px;
  }
  .quick-contact-common h2 {
    font-size: 1.6rem; /* common_sections.css의 일반 H2를 따르도록 */
    margin-bottom: 20px;
  }
  .quick-contact-common .contact-buttons {
    gap: 8px;
  }
  .quick-contact-common .btn-contact {
    max-width: 260px;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .quick-contact-common .btn-contact span {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }
  /* 학원 환경 섹션 */
  .academy-swiper-container .swiper-slide img {
    height: 250px;
  }
  .academy-swiper-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  /* 수업 보러가기 (CTA) 섹션 */
  .cta-grid {
    padding: 0 10px;
  }
  .cta-card {
    min-height: 160px;
  }
  .cta-arrow {
    margin-top: 20px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .cta-image-wrapper .copyright-text {
    font-size: 0.5rem;
  }
}
