/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700;800;900&display=swap');

/* 핵심 컬러 & 디자인 시스템 정의 */
:root {
  --primary-blue: #4A90E2;       /* 로고 캐릭터 및 내부 장식용 따뜻한 하늘색 */
  --primary-light: #EBF3FC;      /* 라이트 톤의 파스텔 블루 배경 */
  --navy-dark: #1E3A8A;          /* 외부 간판/배너의 신뢰감 있는 딥 블루 */
  --accent-yellow: #FFD54F;      /* 배너 문구 강조용 따뜻한 옐로우 */
  --accent-orange: #F59E0B;      /* 포인트 텍스트 및 하이라이트 */
  --bg-cozy: #FAF9F6;            /* 교습소 실내의 따뜻하고 쾌적한 느낌을 주는 아이보리 화이트 */
  --text-main: #1E293B;          /* 메인 텍스트색 (Slate 800) */
  --text-muted: #64748B;         /* 서브 텍스트색 (Slate 500) */
  --border-radius-lg: 24px;      /* 로고 느낌의 둥글둥글한 느낌을 위한 큰 둥근 모서리 */
  --border-radius-xl: 32px;
}

/* 영어(EN) 테마: 글로벌 기술/코딩 감성의 에메랄드 & 포레스트 그린 테마 */
[data-lang-theme="en"] {
  --primary-blue: #10B981;       /* 테크 에메랄드 그린 */
  --primary-light: #ECFDF5;      /* 산뜻한 민트 라이트 배경 */
  --navy-dark: #064E3B;          /* 신뢰감 있는 딥 포레스트 그린 */
  --accent-yellow: #FBBF24;      /* 부드러운 앰버 옐로우 */
  --accent-orange: #D97706;      /* 포인트 오렌지 */
  --bg-cozy: #F8FAFC;            /* 깔끔하고 모던한 연회색 화이트 */
}

/* 중국어(ZH) 테마: 학구열과 전통을 상징하는 임페리얼 크림슨 & 골드 테마 */
[data-lang-theme="zh-CN"] {
  --primary-blue: #EF4444;       /* 정열적인 크림슨 레드 */
  --primary-light: #FEF2F2;      /* 은은한 핑크/레드 라이트 배경 */
  --navy-dark: #7F1D1D;          /* 깊이감 있는 딥 버건디/마룬 */
  --accent-yellow: #FBBF24;      /* 화려한 임페리얼 골드 */
  --accent-orange: #EA580C;      /* 포인트 레드오렌지 */
  --bg-cozy: #FFFDF5;            /* 은은하고 따뜻한 미색 아이보리 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', sans-serif;
  background-color: var(--bg-cozy);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 1. Header & Navigation */
header.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy-dark); /* 교습소 썬팅 사진의 신뢰감 높은 남색 적용 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF; /* 남색 배경 대비 흰색 적용 */
  line-height: 1.1;
}

.logo-text span {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-yellow); /* 노란색 포인트를 주어 세련미 향상 */
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8); /* 남색 배경 대비 80% 흰색 글자 */
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-yellow); /* 호버 시 따뜻한 옐로우로 변경 */
}

.nav-btn {
  background-color: var(--primary-blue); /* 하늘색 포인트 버튼으로 변경 */
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: white;
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}


/* 모바일 메뉴 토글 버튼 (기본 숨김) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #FFFFFF;
}

/* 다국어 선택기 스타일 */
.lang-selector {
  position: relative;
  display: inline-block;
  margin-right: 15px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.lang-btn svg {
  width: 14px !important;
  height: 14px !important;
}

.lang-btn .chevron {
  transition: transform 0.2s ease !important;
}

.lang-selector.active .lang-btn .chevron {
  transform: rotate(180deg) !important;
}

.lang-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  background-color: white !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  min-width: 115px !important;
  list-style: none !important;
  display: none !important;
  z-index: 1001 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.lang-dropdown li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lang-selector.active .lang-dropdown {
  display: block !important;
}

.lang-dropdown li a {
  display: block !important;
  padding: 8px 16px !important;
  color: var(--navy-dark) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
}

.lang-dropdown li a:hover {
  background-color: #f1f5f9 !important;
  color: var(--primary-blue) !important;
}

/* Google Translate 상단 바 및 팝업 스타일 제어 */
body {
  top: 0px !important;
}
.hidden-translate {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-banner,
.skiptranslate {
  display: none !important;
}
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}
iframe.goog-te-menu-frame {
  display: none !important;
}
.skiptranslate[style*="visibility: visible"] {
  display: none !important;
}


/* 2. Hero Section */
.hero-section {
  padding: 140px 24px;
  background: 
    linear-gradient(90deg, rgba(250, 249, 246, 0.95) 20%, rgba(250, 249, 246, 0.6) 50%, rgba(250, 249, 246, 0) 80%),
    url('./img/main.png') no-repeat center right / cover;
  overflow: hidden;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-mobile-image-wrapper {
  display: none; /* 기본 PC 모드에서는 우측 배경이 로드되므로 태그 이미지는 숨김 */
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--navy-dark);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 213, 79, 0.4);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 16px 32px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.35);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  padding: 16px 32px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  transform: translateY(-3px);
}

.hero-text-content {
  max-width: 600px;
  position: relative;
  z-index: 10;
}

/* 3. Common Section Settings */
.section-padding {
  padding: 100px 24px;
}

.max-width-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--navy-dark);
}

/* 4. About & Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC 대화면에서 강제로 깔끔하게 4개 열로 분할 배치 */
  gap: 24px;
}

.feature-card {
  background-color: white;
  padding: 32px 24px; /* 가로 열이 4개로 증가함에 따라 내부 여백을 컴팩트하게 조율 */
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(74, 144, 226, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.2);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--navy-dark);
  color: white;
}

.feature-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

/* 5. Curriculum Section */
.curriculum-section {
  background-color: white;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.2);
}

.curriculum-content-pane {
  display: none;
}

.curriculum-content-pane.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  animation: fadeIn 0.4s ease forwards;
}

.curriculum-card {
  background-color: white; /* 또렷하게 보이기 위해 기본 크림색에서 흰색 카드로 변경 */
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(74, 144, 226, 0.15); /* 테두리를 조금 더 굵고 명확하게 설정 */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-card:hover {
  transform: translateY(-8px);
  background-color: var(--navy-dark); /* 호버 시에만 남색 배경으로 전환 */
  border-color: var(--navy-dark);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}

/* 호버 시 텍스트 색상 반전 처리 */
.curriculum-card:hover h4 {
  color: white !important;
}

.curriculum-card:hover .curr-level {
  color: var(--accent-yellow) !important; /* 레벨 텍스트는 노란색 포인트로 변경 */
}

.curriculum-card:hover .curr-steps p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.curriculum-card:hover .curr-step-num {
  color: var(--accent-yellow) !important;
}

.curr-level {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.curriculum-card.highlight-card .curr-level {
  color: var(--accent-yellow);
}

.curriculum-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.curr-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curr-step-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.curriculum-card.highlight-card .curr-step-item {
  color: rgba(255, 255, 255, 0.9);
}

.curr-step-num {
  color: var(--primary-blue);
  font-weight: 800;
}

.curriculum-card.highlight-card .curr-step-num {
  color: var(--accent-yellow);
}

/* 6. Education Policy & Time */
.policy-section {
  background-color: var(--primary-light);
  border-radius: var(--border-radius-xl);
  padding: 60px 40px;
  margin-top: 60px;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.policy-text h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.policy-text p {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.tuition-box {
  background-color: white;
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.08);
}

.tuition-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.tuition-item:last-child {
  border: none;
  margin: 0;
  padding: 0;
}

.tuition-item span.title {
  font-weight: 700;
  color: var(--text-main);
}

.tuition-item span.price {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
}

.tuition-item:last-child span.price {
  color: var(--primary-blue);
}

/* 7. Gallery Section (세로 사진 최적화 3:4 카드 레이아웃) */
.gallery-section {
  overflow: hidden;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}

.gallery-item-vertical {
  background-color: white;
  padding: 10px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(74, 144, 226, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.gallery-img-container {
  width: 100%;
  aspect-ratio: 3 / 4; /* 세로형 사진 전용 3:4 고정 종횡비 정의 */
  overflow: hidden;
  border-radius: calc(var(--border-radius-lg) - 8px);
  position: relative;
  background-color: var(--primary-light);
}

.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지가 찌그러지지 않고 3:4 박스 안에 예쁘게 꽉 차도록 설정 */
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item-vertical:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(74, 144, 226, 0.15);
  border-color: rgba(74, 144, 226, 0.3);
}

.gallery-item-vertical:hover .gallery-img-container img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .masonry-gallery {
    grid-template-columns: repeat(2, 1fr); /* 모바일 환경에서는 2열 격자로 배열해 가독성 확보 */
    gap: 12px;
  }
  .gallery-item-vertical {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    grid-template-columns: 1fr; /* 더 작은 화면은 1열로 축소 */
  }
}

/* 8. Contact & Map Section */
.contact-section {
  background-color: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  gap: 16px;
  background-color: var(--bg-cozy);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.info-details h5 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.info-details p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 240px;
  margin-top: 24px;
}

/* Contact Form */
.contact-form-container {
  background-color: var(--bg-cozy);
  padding: 40px;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 15px 35px rgba(0,0,0,0.02);
  border: 1px solid rgba(74, 144, 226, 0.08);
}

.contact-form-container h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.contact-form-container p.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 진단형 문항 단추형 버튼 스타일 */
.choice-btn-item {
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border-radius: 14px;
  background-color: var(--bg-cozy);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-btn-item:hover {
  background-color: #e2e8f0;
}

.choice-btn-item.active {
  border-color: var(--primary-blue);
  background-color: #eff6ff;
  color: var(--primary-blue);
}

/* 9. Footer */
footer.main-footer {
  background-color: var(--navy-dark);
  color: white;
  padding: 60px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1px;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-title h4 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-title p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.footer-phone:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 100px 24px;
    /* 모바일에서도 PC와 완벽히 동일한 전체화면 배경 이미지 덮어쓰기 적용 */
    background: 
      linear-gradient(90deg, rgba(250, 249, 246, 0.96) 30%, rgba(250, 249, 246, 0.8) 60%, rgba(250, 249, 246, 0.3) 100%),
      url('./img/main.png') no-repeat center right / cover;
    text-align: left; /* PC와 동일하게 왼쪽 정렬 유지하여 배경과 조화 */
    min-height: 480px;
  }

  .hero-container {
    flex-direction: row !important; /* 모바일에서도 원본 레이아웃 1열 정렬 흐름 복구 */
    text-align: left;
  }
  
  .hero-description {
    margin: 0 0 40px 0;
  }
  
  .hero-actions {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  /* 수동 삽입형 모바일 전용 임베디드 이미지 박스는 화면 뒤 전체 배경에 묻히므로 숨김 */
  .hero-mobile-image-wrapper {
    display: none !important;
  }

  .hero-mobile-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 태블릿 규격에서는 4열이 비좁으므로 2열 격자로 분산 배치 */
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* 모바일 사이드바 형태로 구현 필요시 숨김 또는 JS 제어 */
  }
  
  .nav-container .nav-btn {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-copyright {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* 모바일 해상도에서는 4개의 카드가 세로 1열로 보기 쉽게 정렬 */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* FAQ 아코디언 스타일 시스템 */
.faq-section {
  background-color: var(--bg-cozy);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  background-color: white;
  border-radius: 20px;
  border: 1px solid rgba(74, 144, 226, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(74, 144, 226, 0.2);
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.06);
}

.faq-question {
  width: 100%;
  padding: 24px 30px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-q-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-q-prefix {
  color: var(--primary-blue);
  font-size: 18px;
  font-weight: 900;
}

.faq-icon-arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: #fafbfc;
  border-top: 0 solid rgba(74, 144, 226, 0.05);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  border-top-width: 1px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer-content {
  padding: 24px 30px;
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.7;
}

