@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
  list-style: none;
  text-decoration: none;
  letter-spacing: -1px;
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

body {
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  background-color: #fff;
  color: #333;
  padding: 25px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 지역 페이지 간단 정리 - 최소한만 수정 */
body:not(.index-page) .container {
  /* 모바일에서 적당한 여백 유지 */
}

@media (max-width: 768px) {
  body:not(.index-page) .container {
    width: 95% !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  body:not(.index-page) .container {
    width: 95% !important;
    padding: 0 8px !important;
    margin: 0 auto !important;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3617ce;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  font-weight: 700;
  color: #333;
  font-size: 1.2rem;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #3617ce;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 85px;
  left: 0;
  width: 100%;
  background: white;
  padding: 1rem 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  padding: 0.8rem 2rem;
  border-bottom: 1px solid #eee;
}

.mobile-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

/* Breadcrumb 스타일 */
.breadcrumb {
  background: #f8f9fa;
  padding: 10px 0;
  margin-top: 80px;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  margin: 0 8px;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: #3617ce;
  text-decoration: none;
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #2b10b0;
  text-decoration: underline;
}

.breadcrumb-current {
  color: #666;
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  font-weight: 500;
}

.hero {
  background: url("../img/main_b-01.webp") no-repeat center center;
  background-size: contain;
  min-height: 500px;
  height: auto;
  display: flex;
  align-items: center;
  padding: 50px 0;
  position: relative;
  background-color: #3617ce;
  width: 100vw; /* 전체 너비 */
  margin-left: calc(50% - 50vw); /* 좌우 여백 제거 */
  margin-right: calc(50% - 50vw);
}

.hero-content-container {
  max-width: 700px;
  margin: 0 0 0 3%;
  padding: 40px;
  text-align: left;
}

.hero-content {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background: #3617ce;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.hero .button {
  border: 2px solid white;
}

.hero .button:hover {
  border: 2px solid white;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.feature-img {
  height: 200px;
  background: #ddd;
}

.feature-card:nth-child(1) .feature-img {
  background-image: url("../img/event001.webp");
  background-size: cover;
  background-position: center;
}

.feature-card:nth-child(2) .feature-img {
  background-image: url("../img/event123.webp");
  background-size: cover;
  background-position: center;
}

.feature-card:nth-child(3) .feature-img {
  background-image: url("../img/event03.webp");
  background-size: cover;
  background-position: center;
}

.feature-content {
  padding: 1.5rem;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-content p {
  margin-bottom: 1.5rem;
}

.event-label {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #2d3436;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  font-weight: 700;
  z-index: 3;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.main-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin: 50px 0;
  border-radius: 20px;
}

.main-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.main-cta .phone {
  font-size: 3rem;
  font-weight: bold;
  margin: 20px 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.main-cta p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #3617ce;
}

.info-card i {
  font-size: 2.5rem;
  color: #3617ce;
  margin-bottom: 20px;
}

.info-card h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 1.5rem;
}

.content-link {
  color: #3617ce;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted #3617ce;
  transition: all 0.3s;
  font-size: clamp(0.7rem, 2.5vw, 0.95rem);
}

/* 히어로 섹션의 content-link는 하얀색으로 */
.hero .content-link {
  color: white !important;
  border-bottom: 1px dotted white !important;
  word-break: keep-all; /* 한글 단어 단위로 줄바꿈 */
  white-space: nowrap; /* 한 줄로 유지 */
}

.hero .content-link:hover {
  color: #f0f0f0 !important;
  border-bottom-style: solid !important;
}

/* 모바일에서 히어로 섹션 텍스트 줄바꿈 개선 */
@media (max-width: 768px) {
  .hero {
    background: url("../img/main_b_m-001.webp") no-repeat center center;
    background-size: cover;
    min-height: 400px;
    max-height: 500px;
    padding-top: 80px;
    margin-top: 60px;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: hidden;
  }

  .hero .content-link {
    white-space: normal; /* 모바일에서는 줄바꿈 허용 */
    word-break: keep-all;
    line-height: 1.4;
    display: inline-block;
  }
  
  .hero p {
    word-break: keep-all;
    line-height: 1.4;
  }
  
  footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: hidden;
    margin-bottom: 70px;
  }
}

.content-link:hover {
  color: #2b10b0;
  border-bottom-style: solid;
}

/* 지역 허브 스타일 */
.region-hub {
  padding: 3rem 0;
  background: #f8f9fa;
}

.region-master-toggle {
  width: 100%;
  background: linear-gradient(135deg, #3617ce 0%, #4d28d4 100%);
  color: white;
  border: none;
  padding: 25px 30px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(54, 23, 206, 0.2);
  margin-bottom: 20px;
}

.region-master-toggle:hover {
  background: linear-gradient(135deg, #2b10b0 0%, #3d1fb8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(54, 23, 206, 0.3);
}

.region-master-toggle h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.region-master-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: white;
}

.region-master-toggle.active .region-master-icon {
  transform: rotate(180deg);
}

.region-all-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.4s ease;
  background: white;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.region-all-content.active {
  max-height: 3000px;
  padding: 30px;
}

.region-category {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-toggle {
  width: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  padding: 20px 25px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.category-toggle:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
}

.category-toggle.active {
  background: linear-gradient(135deg, #3617ce 0%, #4d28d4 100%);
  color: white;
}

.category-toggle h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #3617ce;
}

.category-toggle.active .toggle-icon {
  transform: rotate(180deg);
  color: white;
}

.region-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  background: #f8f9fa;
  padding: 0 25px;
}

.region-content.active {
  max-height: 2000px;
  padding: 25px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0;
}

.region-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.region-card:hover {
  transform: translateY(-3px);
  border-color: #3617ce;
  box-shadow: 0 6px 18px rgba(54, 23, 206, 0.12);
}

.region-card h3 {
  color: #3617ce;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.region-card p {
  color: #666;
  margin: 0 0 12px 0;
  font-size: 0.8rem;
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-card .button {
  background: linear-gradient(135deg, #3617ce 0%, #4d28d4 100%);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.region-card .button:hover {
  background: linear-gradient(135deg, #2b10b0 0%, #3d1fb8 100%);
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(54, 23, 206, 0.25);
}

/* 가격 카드 스타일 */
.pricing {
  background: #f5f9fc;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.price-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(54, 23, 206, 0.15);
}

.price-header {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  color: #333;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #eee;
  position: relative;
}

.price-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #3617ce;
  border-radius: 3px;
}

.price-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #3617ce;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #3617ce;
}

.price-period {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 500;
}

.price-features {
  padding: 1.5rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.price-features ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.price-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-features li i {
  color: #3617ce;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.price-features .button {
  margin-top: auto;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
}

.price-features .button:hover {
  background-color: #2b10b0;
  transform: scale(1.05);
}

/* 기본 모바일 반응형 (768px 이하) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* 모바일 breadcrumb 스타일 */
  .breadcrumb {
    margin-top: 70px;
    padding: 8px 0;
  }

  .breadcrumb-container {
    padding: 0 10px;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 0.8rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 6px;
    font-size: 0.8rem;
  }

  .hero-content {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  header {
    padding: 15px 0;
  }

  .logo span {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .main-cta {
    padding: 35px 20px;
    margin: 30px 10px;
    border-radius: 12px;
  }

  .main-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
  }

  .main-cta .phone {
    font-size: 2rem;
    margin: 15px 0;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .main-cta p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 280px;
  }

  .region-master-toggle {
    padding: 20px 25px;
    border-radius: 12px;
  }

  .region-master-toggle h2 {
    font-size: 1.5rem;
  }

  .region-master-icon {
    font-size: 1.3rem;
  }

  .region-all-content.active {
    padding: 20px;
  }

  .category-toggle {
    padding: 15px 20px;
  }

  .category-toggle h3 {
    font-size: 1.3rem;
  }

  .region-content.active {
    padding: 20px;
  }

  .region-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .region-card {
    padding: 12px;
    min-height: 120px;
  }

  .region-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .region-card p {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .region-card .button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
  }

  .info-card {
    padding: 25px 20px;
  }

  .info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .info-card p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .content-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 15px;
  }

  .main-cta {
    padding: 25px 15px;
    margin: 25px 8px;
    border-radius: 10px;
  }

  .main-cta h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .main-cta .phone {
    font-size: 1.7rem;
    margin: 12px 0;
    font-weight: 800;
  }

  .main-cta p {
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 250px;
  }

  .region-master-toggle {
    padding: 15px 20px;
    border-radius: 10px;
  }

  .region-master-toggle h2 {
    font-size: 1.3rem;
  }

  .region-master-icon {
    font-size: 1.2rem;
  }

  .region-all-content.active {
    padding: 15px;
  }

  .info-card {
    padding: 20px 15px;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.8rem;
  }

  .content-link {
    font-size: 0.85rem;
  }
}

/* 폼 스타일 */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.phone-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.phone-input {
  width: 100px;
  padding: 15px;
  text-align: center;
  border: 2px solid #3617ce;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.phone-separator {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3617ce;
}

.phone-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.phone-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(54, 23, 206, 0.2);
}

.privacy-box {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
}

.privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-header label {
  font-weight: 500;
  color: #333;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
}

.detail-toggle {
  background: none;
  border: none;
  color: #3617ce;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.detail-toggle:hover {
  color: #2b10b0;
  background: rgba(54, 23, 206, 0.1);
}

.privacy-content {
  display: none;
  padding: 1rem;
  background: white;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  border: 1px solid #eee;
}

.privacy-content.active {
  display: block;
}

.privacy-content p {
  margin: 8px 0;
  line-height: 1.4;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.privacy-check input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.privacy-check label {
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  line-height: 1.4;
}

/* 기타 요소들 */
.testimonials {
  background: #2c3e50;
  color: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* 푸터 스타일 */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0;
  width: 100vw; /* 전체 너비 */
  margin-left: calc(50% - 50vw); /* 좌우 여백 제거 */
  margin-right: calc(50% - 50vw);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3617ce;
  transform: translateY(-3px);
}

.social-links i {
  font-size: 1.2rem;
}

/* 모바일 고정 버튼 스타일 */
.mobile-fixed-buttons {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.mobile-call-btn,
.mobile-kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 50%;
  float: left;
  padding: 12px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.mobile-call-btn {
  background-color: #3617ce;
}

.mobile-kakao-btn {
  background-color: #fee500;
  color: #000;
}

.mobile-fixed-buttons i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* 모바일에서 푸터와 버튼 조정 */
@media (max-width: 768px) {
  .mobile-fixed-buttons {
    display: flex;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .phone-input-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .phone-input {
    width: 80px;
  }

  .privacy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.8rem;
  }

  .privacy-header label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    width: 100%;
    min-width: unset;
    margin-bottom: 5px;
  }

  .detail-toggle {
    font-size: 0.8rem;
    padding: 6px 10px;
    background: rgba(54, 23, 206, 0.1);
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
  }

  .privacy-content {
    padding: 0.8rem;
    font-size: 0.8rem;
    margin-top: 0.8rem;
  }

  .privacy-check {
    margin-top: 0.8rem;
    gap: 0.3rem;
  }

  .privacy-check label {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .privacy-box {
    padding: 0.6rem;
    border-radius: 8px;
  }

  .privacy-header {
    gap: 6px;
    margin-bottom: 0.6rem;
  }

  .privacy-header label {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .detail-toggle {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
  }

  .privacy-content {
    padding: 0.6rem;
    font-size: 0.75rem;
    margin-top: 0.6rem;
  }

  .privacy-content p {
    margin: 6px 0;
  }

  .privacy-check {
    margin-top: 0.6rem;
  }

  .privacy-check label {
    font-size: 0.75rem;
  }

  .privacy-check input[type="checkbox"] {
    transform: scale(1.1);
  }
}

/* 챗봇 스타일 */
.chatbot-toggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ffb3d9, #ffc9e0);
  border-radius: 50%;
  border: 3px solid #ffb3d9;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 179, 217, 0.3);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 3s infinite;
}

/* 챗봇 말풍선 전용 스타일 */
.chatbot-speech-bubble {
  position: fixed;
  bottom: 100px;
  right: 40px;
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 20px 20px 5px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  z-index: 1002;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  border: 2px solid #f0f0f0;
}

.chatbot-speech-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chatbot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 데스크톱에서는 챗봇을 아래로 */
@media (min-width: 769px) {
  .chatbot-speech-bubble {
    bottom: 100px;
    right: 40px;
  }
}

/* 모바일에서 말풍선 위치 조정 */
@media (max-width: 768px) {
  .chatbot-speech-bubble {
    bottom: 160px;
    right: 25px;
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: 18px 18px 5px 18px;
    max-width: 160px;
    white-space: normal;
    line-height: 1.3;
  }
  
  .chatbot-speech-bubble::after {
    bottom: -6px;
    right: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
  }
}

/* 320px 이하에서 말풍선 최적화 */
@media (max-width: 320px) {
  .chatbot-speech-bubble {
    bottom: 150px;
    right: 15px;
    font-size: 0.7rem;
    padding: 8px 12px;
    border-radius: 16px 16px 4px 16px;
    max-width: 120px;
    line-height: 1.2;
  }
  
  .chatbot-speech-bubble::after {
    bottom: -5px;
    right: 12px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
  }
}

/* 데스크톱에서는 챗봇을 아래로 */
@media (min-width: 769px) {
  .chatbot-toggle {
    bottom: 20px;
  }
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 179, 217, 0.4);
  background: linear-gradient(135deg, #ffc9e0, #ffd9ea);
}

.chatbot-toggle img {
  width: 35px;
  height: 35px;
  animation: chatbot-alive 4s infinite;
}

@keyframes pulse {
  0%,
  70%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 179, 217, 0.7);
  }
  35% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(255, 179, 217, 0);
  }
}

@keyframes chatbot-alive {
  0%,
  85%,
  100% {
    transform: scaleY(1) rotate(0deg);
  }
  90% {
    transform: scaleY(0.1) rotate(0deg);
  }
  25% {
    transform: scaleY(1) rotate(-2deg);
  }
  75% {
    transform: scaleY(1) rotate(2deg);
  }
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

/* 데스크톱에서는 챗봇 컨테이너를 아래로 */
@media (min-width: 769px) {
  .chatbot-container {
    bottom: 20px;
  }
}

/* ===== 320px 전용 수정사항 - 잠림 현상 완전 해결 ===== */
@media (max-width: 320px) {
  /* 1. 전체 컨테이너 최소 너비 보장 */
  .container {
    min-width: 320px !important;
    width: 95% !important;
    padding: 0 8px !important;
    margin: 0 auto !important;
  }

  /* Breadcrumb 320px 최적화 */
  .breadcrumb {
    margin-top: 60px !important;
    padding: 5px 0 !important;
    background: #f8f9fa !important;
  }

  .breadcrumb-container {
    width: 95% !important;
    padding: 0 5px !important;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 4px !important;
    font-size: 0.7rem !important;
  }

  /* 2. 헤더 최적화 */
  header {
    padding: 8px 0 !important;
  }

  .logo {
    font-size: 1.2rem !important;
  }

  .logo span {
    font-size: 0.8rem !important;
    margin-left: 5px !important;
  }

  /* 3. 히어로 섹션 텍스트 크기 축소 */
  .hero {
    margin-top: 50px !important;
    min-height: 300px !important;
    padding: 20px 0 !important;
  }

  .hero-content-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .hero h1 {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    word-break: keep-all !important;
  }

  .hero p {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    word-break: keep-all !important;
  }

  .hero .button {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
  }

  /* 4. 전화번호 영역 최적화 - 가장 중요한 수정 */
  .main-cta {
    padding: 20px 8px !important;
    margin: 20px 5px !important;
    border-radius: 8px !important;
  }

  .main-cta h2 {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }

  .main-cta .phone {
    font-size: 1.2rem !important;
    margin: 6px 0 !important;
    letter-spacing: -0.5px !important;
    word-spacing: 2px !important;
  }

  .main-cta p {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    word-break: keep-all !important;
  }

  /* 5. 섹션 제목 크기 조정 */
  .section-title {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    padding: 0 5px !important;
    word-break: keep-all !important;
  }

  /* 6. 지역 카드 최적화 - 잠림 현상 해결 */
  .region-card {
    padding: 8px 6px !important;
    min-height: 85px !important;
    margin-bottom: 8px !important;
  }

  .region-card h3 {
    font-size: 0.8rem !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
  }

  .region-card p {
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .region-card .button {
    font-size: 0.65rem !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  /* 7. 기타 요소들 최적화 */
  .feature-content {
    padding: 10px 6px !important;
  }

  .feature-content h3 {
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
    word-break: keep-all !important;
  }

  .feature-content p {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
    word-break: keep-all !important;
  }

  .info-card {
    padding: 12px 6px !important;
  }

  .info-card h3 {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
    word-break: keep-all !important;
  }

  .info-card p {
    font-size: 0.75rem !important;
    margin-bottom: 8px !important;
    word-break: keep-all !important;
  }

  /* 8. 전역 최적화 */
  body {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .button {
    font-size: 0.7rem !important;
    padding: 6px 10px !important;
    border-radius: 15px !important;
  }

  .section {
    padding: 1.5rem 0 !important;
  }

  .region-hub {
    padding: 1.5rem 0 !important;
  }

  /* 9. 모바일 고정 버튼 최적화 */
  .mobile-call-btn,
  .mobile-kakao-btn {
    font-size: 0.7rem !important;
    padding: 8px 0 !important;
  }

  .mobile-fixed-buttons i {
    font-size: 1rem !important;
    margin-bottom: 2px !important;
  }

  /* 10. 챗봇 최적화 */
  .chatbot-toggle {
    width: 55px !important;
    height: 55px !important;
    bottom: 90px !important;
    right: 10px !important;
  }

  .chatbot-container {
    width: 90% !important;
    height: 400px !important;
    bottom: 90px !important;
    right: 5% !important;
    left: 5% !important;
  }

  .chatbot-toggle img {
    width: 25px !important;
    height: 25px !important;
  }

  /* 11. 절대 넘치지 않게 */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero,
  .section,
  .region-hub,
  .main-cta,
  footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* 280px 이하 (Galaxy Fold 등 극소형 기기) */
@media (max-width: 280px) {
  .container {
    min-width: 280px !important;
    padding: 0 4px !important;
  }

  .hero h1 {
    font-size: 0.8rem !important;
  }

  .hero p {
    font-size: 0.6rem !important;
  }

  .main-cta .phone {
    font-size: 1rem !important;
  }

  .region-card h3 {
    font-size: 0.7rem !important;
  }

  .region-card p {
    font-size: 0.6rem !important;
  }

  .region-card .button {
    font-size: 0.6rem !important;
    padding: 3px 6px !important;
  }

  .section-title {
    font-size: 1rem !important;
  }

  .chatbot-toggle {
    width: 50px !important;
    height: 50px !important;
  }

  .chatbot-toggle img {
    width: 22px !important;
    height: 22px !important;
  }
}
.related-services {
  text-align: center;
  padding: 20px 0;
  background: #f8f9fa;
}

.related-services h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
}

.service-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.service-link {
  padding: 10px 20px;
  background: white;
  color: #3617ce;
  text-decoration: none;
  border: 2px solid #3617ce;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link:hover {
  background: #3617ce;
  color: white;
}

.service-link.current {
  background: #3617ce;
  color: white;
}

@media (max-width: 768px) {
  .service-links {
    gap: 10px;
  }

  .service-link {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ========== 챗봇 내부 스타일 추가 ========== */
.chatbot-header {
  background: linear-gradient(135deg, #3617ce 0%, #4d28d4 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chatbot-title {
  font-size: 1rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  max-height: 400px;
}

.message {
  margin-bottom: 15px;
}

.bot-message {
  background: white;
  padding: 12px 15px;
  border-radius: 15px 15px 15px 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.user-message {
  background: #3617ce;
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 5px 15px;
  margin-left: auto;
  margin-right: 0;
  max-width: 80%;
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.option-btn {
  background: #f8f9fa;
  border: 2px solid #3617ce;
  color: #3617ce;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.option-btn:hover {
  background: #3617ce;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(54, 23, 206, 0.3);
}

.benefit-highlight {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
  color: #333;
  padding: 8px 12px;
  border-radius: 15px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
  font-size: 0.9rem;
}

.price-highlight {
  color: #e91e63;
  font-weight: 700;
  font-size: 1.05em;
}

/* 모바일 챗봇 최적화 */
@media (max-width: 768px) {
  .chatbot-container {
    width: 95% !important;
    height: 450px !important;
    bottom: 80px !important;
    right: 2.5% !important;
    left: 2.5% !important;
    border-radius: 12px;
  }

  .chatbot-header {
    padding: 12px 15px;
  }

  .chatbot-title {
    font-size: 0.9rem;
  }

  .close-btn {
    width: 25px;
    height: 25px;
    font-size: 1.2rem;
  }

  .chat-messages {
    padding: 15px;
    max-height: 320px;
  }

  .bot-message {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .user-message {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .option-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .benefit-highlight {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .chatbot-container {
    width: 98% !important;
    height: 400px !important;
    right: 1% !important;
    left: 1% !important;
  }

  .chat-messages {
    padding: 12px;
    max-height: 280px;
  }

  .bot-message {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .user-message {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .option-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 320px) {
  .chatbot-container {
    height: 350px !important;
  }

  .chat-messages {
    padding: 10px;
    max-height: 240px;
  }

  .chatbot-title {
    font-size: 0.8rem;
  }

  .bot-message,
  .user-message {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .option-btn {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .benefit-highlight {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
}
.related-services {
  text-align: center;
  padding: 20px 0;
  background: #f8f9fa;
}

.related-services h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
}

.service-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.service-link {
  padding: 10px 20px;
  background: white;
  color: #3617ce;
  text-decoration: none;
  border: 2px solid #3617ce;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link:hover {
  background: #3617ce;
  color: white;
}

.service-link.current {
  background: #3617ce;
  color: white;
}

@media (max-width: 768px) {
  .service-links {
    gap: 10px;
  }

  .service-link {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
