@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;
}

.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;
}

.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;
}

.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);
}

@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;
  }
}

.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;
}

.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);
}

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

/* 카드 이미지 스타일 */
.feature-card:nth-child(1) .feature-img {
  background-image: url("../img/event001.png");
  background-size: cover;
  background-position: center;
}

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

.feature-card:nth-child(3) .feature-img {
  background-image: url("../img/event03.png");
  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;
}

.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);
}

.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;
}

.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;
}

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

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

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

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

.detail-toggle {
  background: none;
  border: none;
  color: #3617ce;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0;
}

.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) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

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

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

  header {
    padding: 15px 0;
  }

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

  .hero {
    padding-top: 80px;
    min-height: 500px;
    margin-top: 60px;
  }

  .hero-content {
    padding: 20px;
  }

  .section {
    padding: 3rem 0;
  }

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

  .mobile-fixed-buttons {
    display: flex;
  }

  /* 푸터 아래 여백 추가 */
  footer {
    margin-bottom: 70px;
  }
}

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

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

  .hero-content {
    padding: 15px;
  }

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

  .contact-form {
    padding: 1.5rem;
  }

  .phone-input {
    width: 80px;
  }
}
/* hero 섹션 내 버튼의 테두리를 하얀색으로 변경 */
.hero .button {
  border: 2px solid white; /* 하얀색 테두리 추가 */
}

/* 호버 효과 유지 (필요시) */
.hero .button:hover {
  border: 2px solid white; /* 호버 상태에서도 하얀색 테두리 유지 */
}
/* 요금제 섹션 타이틀 강화 */
.pricing .section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 2.5rem;
}

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

/* 반응형 개선 */
/* 요금제 섹션 타이틀 강화 */
.pricing .section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 2.5rem;
  text-align: center;
  width: 100%;
}

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

/* 요금제 섹션 타이틀 강화 */
.pricing .section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 2.5rem;
  text-align: center;
  width: 100%;
}

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

/* 반응형 개선 */
@media (max-width: 768px) {
  .price-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .price-amount {
    font-size: 1.8rem;
  }

  .price-name {
    font-size: 1.2rem;
  }

  .price-header {
    padding: 1.2rem 0.8rem;
  }

  .price-features {
    padding: 1.2rem 0.8rem;
  }
}
/* 1. 브레드크럼 네비게이션 */
.breadcrumb {
  background: #ffffff;
  padding: 8px 0;
  margin-top: 70px;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

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

.breadcrumb-item:not(:last-child)::after {
  content: "〉";
  margin: 0 8px;
  color: #999;
  font-size: 0.8rem;
}

.breadcrumb-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.breadcrumb-link:hover {
  color: #3617ce;
  background: #f8f9fa;
}

.breadcrumb-current {
  color: #3617ce;
  font-weight: 600;
  padding: 4px 8px;
  background: #f0f4ff;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .breadcrumb {
    margin-top: 60px;
    padding: 6px 0;
  }

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

  .breadcrumb-list {
    font-size: 0.8rem;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin: 0 6px;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    padding: 3px 6px;
    font-size: 0.8rem;
  }
}

/* 추가: 요금제 섹션 상단 여백 조정 */
.pricing {
  margin-top: 20px !important;
  padding-top: 20px !important;
}

@media (max-width: 768px) {
  .pricing {
    margin-top: 15px !important;
    padding-top: 15px !important;
  }
}
/* 2. 서비스 간 연결 박스 */
.related-services {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.related-services h3 {
  color: #3617ce;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}

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

.service-link {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: #3617ce;
  text-decoration: none;
  border-radius: 25px;
  border: 2px solid #3617ce;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-link:hover {
  background: #3617ce;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(54, 23, 206, 0.3);
}

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

/* 3. 자연스러운 링크 스타일 */
.content-link {
  color: #3617ce;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted #3617ce;
  transition: all 0.3s;
}

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

/* 4. 서비스 비교 섹션 */
.related-services {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.related-services h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.service-link {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 100px;
}

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

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

/* 모바일 전용 스타일 */
@media (max-width: 768px) {
  .related-services {
    padding: 15px;
    margin: 20px 10px;
    border-radius: 10px;
  }

  .related-services h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .service-links {
    gap: 8px;
    justify-content: space-around;
  }

  .service-link {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: 80px;
    flex: 1;
    max-width: 90px;
    text-align: center;
  }

  .service-link:hover {
    transform: none; /* 모바일에서는 transform 제거 */
  }
}

/* 데스크톱에서 더 세련된 스타일 */
@media (min-width: 769px) {
  .related-services {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    max-width: 600px;
    margin: 30px auto;
  }

  .service-links {
    gap: 20px;
  }

  .service-link {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
/* 히어로 섹션 내 링크 전용 스타일 */
.hero .content-link {
  color: #ffffff !important;
  background: rgba(54, 23, 206, 0.9) !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  /* ... */
}
/* 히어로 섹션 내 링크 전용 스타일 */
.hero .content-link {
  color: #ffffff !important;
  background: rgba(54, 23, 206, 0.9) !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  margin: 0 2px !important;
}

.hero .content-link:hover {
  background: #ffffff !important;
  color: #3617ce !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}

/* 모바일에서 히어로 링크 최적화 */
@media (max-width: 768px) {
  .hero .content-link {
    display: inline-block !important;
    margin: 2px 1px !important;
    padding: 2px 6px !important;
    font-size: 0.85rem !important;
  }
}
@media (max-width: 768px) {
  /* 기본 모바일 카드 스타일 - 기존과 충돌하지 않는 안전한 설정 */
  .mobile-product-card {
    /* 기존 스타일 유지하면서 필요한 부분만 추가/수정 */
    height: 120px; /* !important 제거하여 기존 스타일과 조화 */
    min-height: 120px; /* 최소 높이 보장 */
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 내용이 넘칠 때 숨김 */
  }

  /* 호버 및 선택 상태 - 기존 스타일 보완 */
  .mobile-product-card:hover {
    border-color: #3498db; /* 기존과 동일하게 유지 */
  }

  .mobile-product-card.selected {
    border-color: #3498db; /* 기존과 동일하게 유지 */
    background-color: #ebf5fb; /* 기존과 동일하게 유지 */
  }

  /* 모바일 카드 내 텍스트 스타일 - 기존 스타일과 조화 */
  .mobile-product-card h3 {
    font-size: 14px;
    color: #2c3e50;
    margin: 0 0 6px 0;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    /* 텍스트 오버플로우 처리 - 새로 추가 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all; /* 한글 단어 단위로 줄바꿈 */
  }

  .mobile-product-card p {
    font-size: 11px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    /* 텍스트 오버플로우 처리 - 새로 추가 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: keep-all; /* 한글 단어 단위로 줄바꿈 */
  }

  /* 특정 섹션별 크기 조정 - 기존 구조 유지하면서 보완 */

  /* 4개 항목이 있는 부가상품 슬라이더 */
  .step6 .mobile-product-card,
  #addonSection .mobile-product-card {
    height: 110px;
    min-height: 110px;
    padding: 10px;
  }

  .step6 .mobile-product-card h3,
  #addonSection .mobile-product-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
    -webkit-line-clamp: 1; /* 제목을 1줄로 제한 */
  }

  .step6 .mobile-product-card p,
  #addonSection .mobile-product-card p {
    font-size: 10px;
    -webkit-line-clamp: 2; /* 설명을 2줄로 제한 */
  }

  /* 2개 항목 슬라이더 (휴대폰 결합, 셋톱박스) */
  .step7 .mobile-product-card,
  .step_setbox .mobile-product-card,
  #phoneSection .mobile-product-card,
  #setboxSection .mobile-product-card {
    height: 100px;
    min-height: 100px;
    padding: 8px;
  }

  .step7 .mobile-product-card h3,
  .step_setbox .mobile-product-card h3,
  #phoneSection .mobile-product-card h3,
  #setboxSection .mobile-product-card h3 {
    font-size: 12px;
    margin-bottom: 3px;
    -webkit-line-clamp: 1;
  }

  .step7 .mobile-product-card p,
  .step_setbox .mobile-product-card p,
  #phoneSection .mobile-product-card p,
  #setboxSection .mobile-product-card p {
    font-size: 9px;
    -webkit-line-clamp: 2;
  }

  /* btvcable 페이지의 2개 항목 슬라이더 */
  .step1 .mobile-product-card {
    height: 100px;
    min-height: 100px;
  }

  /* 배지 스타일 - 기존과 충돌하지 않도록 */
  .mobile-product-card .badge {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    background: #28a745;
    color: white;
    margin-left: 3px;
    display: inline-block;
  }

  /* 슬라이더 네비게이션 개선 - 기존 스타일 보완 */
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    /* 기존 스타일은 그대로 유지 */
  }

  .dot {
    width: 8px;
    height: 8px;
    /* 기존 스타일은 그대로 유지 */
  }

  .dot.active {
    transform: scale(1.2);
    /* 기존 스타일은 그대로 유지 */
  }
}

/* 매우 작은 화면 최적화 - 기존과 충돌하지 않는 추가 스타일 */
@media (max-width: 480px) {
  .mobile-product-card {
    height: 110px;
    min-height: 110px;
    padding: 10px;
  }

  .mobile-product-card h3 {
    font-size: 13px;
  }

  .mobile-product-card p {
    font-size: 10px;
  }

  /* 4개 항목 슬라이더 */
  .step6 .mobile-product-card,
  #addonSection .mobile-product-card {
    height: 100px;
    min-height: 100px;
  }

  /* 2개 항목 슬라이더 */
  .step7 .mobile-product-card,
  .step_setbox .mobile-product-card,
  #phoneSection .mobile-product-card,
  #setboxSection .mobile-product-card,
  .step1 .mobile-product-card {
    height: 90px;
    min-height: 90px;
    padding: 6px;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
/* 모바일에서 일관되고 컴팩트한 박스 크기 */
@media (max-width: 768px) {
  /* 기본 모바일 카드 스타일 - 컴팩트하게 개선 */
  .mobile-product-card {
    height: 85px;
    min-height: 85px;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  /* 모바일 카드 내 텍스트 스타일 */
  .mobile-product-card h3 {
    font-size: 12px;
    color: #2c3e50;
    margin: 0 0 4px 0;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
  }

  .mobile-product-card p {
    font-size: 10px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
  }

  /* 4개 항목 슬라이더 (부가상품) */
  .step6 .mobile-product-card,
  #addonSection .mobile-product-card {
    height: 75px;
    min-height: 75px;
    padding: 6px;
  }

  .step6 .mobile-product-card h3,
  #addonSection .mobile-product-card h3 {
    font-size: 11px;
    margin-bottom: 2px;
    -webkit-line-clamp: 1;
  }

  .step6 .mobile-product-card p,
  #addonSection .mobile-product-card p {
    font-size: 9px;
    -webkit-line-clamp: 2;
  }

  /* 2개 항목 슬라이더 */
  .step7 .mobile-product-card,
  .step_setbox .mobile-product-card,
  #phoneSection .mobile-product-card,
  #setboxSection .mobile-product-card {
    height: 80px;
    min-height: 80px;
    padding: 8px;
    width: calc(50% - 10px);
    max-width: none;
  }

  .step7 .mobile-product-card h3,
  .step_setbox .mobile-product-card h3,
  #phoneSection .mobile-product-card h3,
  #setboxSection .mobile-product-card h3 {
    font-size: 11px;
    margin-bottom: 3px;
    -webkit-line-clamp: 1;
  }

  .step7 .mobile-product-card p,
  .step_setbox .mobile-product-card p,
  #phoneSection .mobile-product-card p,
  #setboxSection .mobile-product-card p {
    font-size: 9px;
    -webkit-line-clamp: 2;
  }

  /* btvcable 페이지 2개 항목 */
  .step1 .mobile-product-card {
    height: 80px;
    min-height: 80px;
    width: calc(50% - 10px);
    max-width: none;
  }

  /* 네비게이션 버튼 최적화 */
  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  /* 여백 최적화 */
  .mobile-slider-container {
    margin: 10px 0;
  }

  .slider-controls {
    margin-top: 10px;
    padding: 0 10px;
  }

  .mobile-track {
    gap: 10px;
  }
}

/* 작은 화면 추가 최적화 */
@media (max-width: 480px) {
  .mobile-product-card {
    height: 75px;
    min-height: 75px;
    padding: 6px;
  }

  .step6 .mobile-product-card,
  #addonSection .mobile-product-card {
    height: 65px;
    min-height: 65px;
    padding: 4px;
  }

  .step7 .mobile-product-card,
  .step_setbox .mobile-product-card,
  #phoneSection .mobile-product-card,
  #setboxSection .mobile-product-card,
  .step1 .mobile-product-card {
    height: 70px;
    min-height: 70px;
    padding: 5px;
  }

  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}
.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;
}

/* 태블릿 크기 (768px ~ 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .privacy-header {
    gap: 8px;
  }

  .privacy-header label {
    font-size: 0.95rem;
    min-width: 180px;
  }

  .detail-toggle {
    font-size: 0.85rem;
    padding: 4px 6px;
  }
}

/* 모바일 크기 (최대 768px) - 세로 배치 */
@media (max-width: 768px) {
  .privacy-box {
    padding: 0.8rem;
    margin-bottom: 1.2rem;
  }

  /* 모바일에서 세로 배치 */
  .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; /* 왼쪽 정렬 */
  }

  .detail-toggle:active {
    background: rgba(54, 23, 206, 0.2);
    transform: scale(0.98);
  }

  .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;
  }
}

/* 소형 모바일 (최대 480px) */
@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);
  }
}

/* 아주 작은 화면 (최대 360px) */
@media (max-width: 360px) {
  .privacy-box {
    padding: 0.5rem;
  }

  .privacy-header label {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .detail-toggle {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .privacy-content {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

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

/* 가로 모드 모바일 최적화 */
@media (max-width: 768px) and (orientation: landscape) {
  .privacy-header {
    flex-direction: row; /* 가로 모드에서는 가로 배치 */
    justify-content: space-between;
    align-items: center;
  }

  .privacy-header label {
    width: auto;
    margin-bottom: 0;
  }

  .detail-toggle {
    align-self: center;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: no-preference) {
  .privacy-content {
    transition: all 0.3s ease;
  }

  .detail-toggle {
    transition: all 0.2s ease;
  }
}

/* 터치 기기 최적화 */
@media (pointer: coarse) {
  .detail-toggle {
    padding: 8px 12px; /* 터치하기 쉽게 영역 확대 */
    min-height: 40px; /* 최소 터치 영역 확보 */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .privacy-check input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
  }

  .privacy-check label {
    padding: 5px 0; /* 터치 영역 확대 */
  }
}
/* 추가 셋톱박스 섹션 스타일 */
.additional-setbox-section {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.additional-setbox-title h4 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.additional-setbox-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.addon-option:hover {
  border-color: #3617ce;
  background: #f0f4ff;
}

.addon-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.addon-option label {
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* 선택된 상태 */
.addon-option input[type="radio"]:checked + label {
  color: #3617ce;
  font-weight: 600;
}

.addon-option:has(input[type="radio"]:checked) {
  border-color: #3617ce;
  background: #ebf5fb;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .additional-setbox-section {
    margin-top: 15px;
    padding: 12px;
  }

  .additional-setbox-title h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .additional-setbox-options {
    flex-direction: column;
    gap: 10px;
  }

  .addon-option {
    min-width: auto;
    padding: 10px;
    justify-content: flex-start;
  }

  .addon-option label {
    font-size: 0.85rem;
  }
}
/* 추가 셋톱박스 섹션 스타일 */
.additional-setbox-section {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.additional-setbox-title h4 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.additional-setbox-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* btv 페이지는 4개 항목이므로 그리드 레이아웃 */
.step5 .additional-setbox-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-content: center;
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.addon-option:hover {
  border-color: #3617ce;
  background: #f0f4ff;
}

.addon-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.addon-option label {
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* 선택된 상태 */
.addon-option input[type="radio"]:checked + label {
  color: #3617ce;
  font-weight: 600;
}

.addon-option:has(input[type="radio"]:checked) {
  border-color: #3617ce;
  background: #ebf5fb;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .additional-setbox-section {
    margin-top: 15px;
    padding: 12px;
  }

  .additional-setbox-title h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .additional-setbox-options {
    flex-direction: column;
    gap: 10px;
  }

  /* btv 페이지 모바일에서는 세로 배치 */
  .step5 .additional-setbox-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .addon-option {
    min-width: auto;
    padding: 10px;
    justify-content: flex-start;
  }

  .addon-option label {
    font-size: 0.85rem;
  }
}
/* ========== 챗봇 스타일 - css/styles.css 파일 맨 아래에 추가 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 챗봇 버튼 */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  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-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: 20px;
  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 (max-width: 480px) {
  .chatbot-container {
    width: 95vw;
    height: 90vh;
    bottom: 10px;
    right: 2.5vw;
    border-radius: 10px;
  }

  .chatbot-toggle {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }

  .chatbot-toggle img {
    width: 30px;
    height: 30px;
    animation: chatbot-alive 4s infinite; /* 이 줄 추가 */
  }
}

/* 헤더 */
.chatbot-header {
  background: linear-gradient(135deg, #0066cc, #004499);
  color: rgb(212, 105, 105);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  font-size: 16px;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 메시지 영역 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f9f9f9;
}

.message {
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  background: white;
  padding: 12px 15px;
  border-radius: 15px 15px 15px 5px;
  border-left: 4px solid #0066cc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-message {
  background: #0066cc;
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 5px 15px;
  margin-left: auto;
  max-width: 80%;
  text-align: right;
}

/* 버튼 옵션 */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.option-btn {
  background: white;
  border: 2px solid #0066cc;
  color: #0066cc;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
}

.option-btn:hover {
  background: #0066cc;
  color: white;
  transform: translateY(-1px);
}

/* 혜택 강조 */
.benefit-highlight {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  margin: 5px 0;
}

.price-highlight {
  color: #ff4444;
  font-weight: bold;
  font-size: 16px;
}

/* 스크롤바 스타일 */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #0066cc;
  border-radius: 3px;
}
/* 기존 챗봇 CSS 맨 아래에 이것만 추가 */

/* 챗봇과 기존 모바일 버튼 충돌 방지 */
.mobile-fixed-buttons {
  z-index: 999 !important;
}

.chatbot-toggle {
  z-index: 1001 !important;
}

.chatbot-container {
  z-index: 1000 !important;
}

/* 모바일에서 챗봇 위치 조정 (기존 모바일 버튼과 겹치지 않게) */
@media (max-width: 768px) {
  .chatbot-toggle {
    bottom: 80px !important; /* 기존 모바일 버튼 위로 이동 */
    right: 15px !important;
  }

  .chatbot-container {
    bottom: 80px !important; /* 기존 모바일 버튼 위로 이동 */
    right: 2.5vw !important;
    height: 70vh !important; /* 높이 조정 */
  }

  /* 푸터 여백 제거 - 챗봇이 있으니 불필요 */
  footer {
    margin-bottom: 0 !important;
  }
}
/* 기존 챗봇 CSS 아래에 추가 */

/* 모바일 고정 버튼이 있을 때만 여백 추가 */
@media (max-width: 768px) {
  footer {
    margin-bottom: 0 !important;
    padding-bottom: 2rem !important;
  }
}

/* 혹시 body에 여백이 있다면 제거 */
body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* 챗봇 버튼 항상 보이는 말풍선 */
/* 말풍선 위치 수정 - 챗봇 왼쪽에 표시 */
.chatbot-toggle::before {
  content: "무엇을 도와드릴까요?";
  position: absolute;
  left: -160px; /* 왼쪽으로 변경 */
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  z-index: 1002;
  font-family: "Noto Sans KR", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chatbot-toggle::after {
  content: "";
  position: absolute;
  left: -10px; /* 왼쪽으로 변경 */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 8px solid #333; /* 화살표 방향 변경 */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 1;
  visibility: visible;
  z-index: 1002;
}

/* 말풍선 크기 조금 증가 */
.chatbot-toggle::before {
  content: "무엇을 도와드릴까요?";
  position: absolute;
  left: -165px; /* 약간 더 왼쪽으로 (크기 증가로 인해) */
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 10px 15px; /* 8px 12px → 10px 15px */
  border-radius: 10px; /* 8px → 10px */
  font-size: 13px; /* 12px → 13px */
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  z-index: 1002;
  font-family: "Noto Sans KR", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chatbot-toggle::after {
  content: "";
  position: absolute;
  left: -11px; /* 약간 조정 */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 9px solid #333; /* 8px → 9px */
  border-top: 7px solid transparent; /* 6px → 7px */
  border-bottom: 7px solid transparent; /* 6px → 7px */
  opacity: 1;
  visibility: visible;
  z-index: 1002;
}

/* 모바일에서도 약간 증가 */
@media (max-width: 768px) {
  .chatbot-toggle::before {
    left: -145px;
    font-size: 12px; /* 11px → 12px */
    padding: 8px 12px; /* 6px 10px → 8px 12px */
  }

  .chatbot-toggle::after {
    left: -9px;
    border-right: 7px solid #333; /* 6px → 7px */
    border-top: 6px solid transparent; /* 5px → 6px */
    border-bottom: 6px solid transparent; /* 5px → 6px */
  }
}

/* 작은 화면에서도 약간 증가 */
@media (max-width: 480px) {
  .chatbot-toggle::before {
    left: -125px;
    font-size: 11px; /* 10px → 11px */
    padding: 6px 10px; /* 4px 8px → 6px 10px */
  }

  .chatbot-toggle::after {
    left: -7px;
    border-right: 6px solid #333; /* 5px → 6px */
    border-top: 5px solid transparent; /* 4px → 5px */
    border-bottom: 5px solid transparent; /* 4px → 5px */
  }
}

/* 모바일에서만 적용 - 데스크톱은 건드리지 않음 */
@media (max-width: 768px) {
  /* 히어로 섹션 전체 너비 */
  .hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    position: relative !important;
  }

  /* 푸터 전체 너비 */
  footer {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    position: relative !important;
  }

  /* 히어로 내부 컨텐츠는 기존대로 */
  .hero .container {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    position: relative !important;
  }

  /* 푸터 내부 컨텐츠는 기존대로 */
  footer .container {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    position: relative !important;
  }
}

/* 데스크톱용 - 혹시 약간의 여백이 있다면 */
@media (min-width: 769px) {
  .hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* 부드러운 자동 크기 조절 - 기존 크기 대부분 유지 */

@media (max-width: 768px) {
  /* 제목들 - 기존 크기 유지하되 화면이 아주 작을 때만 조절 */
  .hero h1 {
    font-size: clamp(1.1rem, 5vw, 1.3rem) !important; /* 기존 1.3rem 유지 */
    line-height: 1.4 !important;
    word-break: keep-all !important;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.5rem) !important; /* 기존 1.5rem 유지 */
  }

  .hero p {
    font-size: clamp(0.8rem, 3.5vw, 0.85rem) !important; /* 기존 0.85rem 유지 */
    line-height: 1.3 !important;
    word-break: keep-all !important;
  }

  /* 카드 제목들 - 기존 크기 거의 유지 */
  .region-card h3,
  .price-card h3,
  .feature-card h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important; /* 기존 크기 유지 */
    line-height: 1.3 !important;
    word-break: keep-all !important;
  }

  /* 카드 설명 - 기존 크기 유지 */
  .region-card p,
  .price-card p,
  .feature-card p {
    font-size: clamp(0.85rem, 3vw, 0.95rem) !important; /* 기존 크기 유지 */
    line-height: 1.4 !important;
    word-break: keep-all !important;
  }

  /* 전화번호 - 화면에 맞춰 조절 (이건 조절 필요) */
  .main-cta .phone {
    font-size: clamp(
      1.8rem,
      8vw,
      2rem
    ) !important; /* 기존 2rem에서 약간만 조절 */
    white-space: nowrap !important;
    letter-spacing: clamp(-1px, -0.2vw, 0px) !important;
  }

  /* 가격 표시 - 기존 크기 유지 */
  .price-amount {
    font-size: clamp(1.6rem, 7vw, 1.8rem) !important; /* 기존 1.8rem 유지 */
  }

  /* 버튼 텍스트 - 기존 크기 유지 */
  .button,
  .region-card .button,
  .price-card .button,
  .feature-card .button {
    font-size: clamp(0.85rem, 3vw, 0.9rem) !important; /* 기존 0.9rem 유지 */
    padding: 10px 20px !important; /* 기존 패딩 유지 */
  }

  /* 매우 긴 텍스트만 약간 조절 */
  .feature-content p {
    font-size: clamp(0.9rem, 3.2vw, 1rem) !important;
    word-break: keep-all !important;
    line-height: 1.4 !important;
  }
}

/* 아주 작은 화면 (360px 이하)에서만 더 조절 */
@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(1rem, 5.5vw, 1.1rem) !important;
    letter-spacing: -0.3px !important;
  }

  .main-cta .phone {
    font-size: clamp(1.5rem, 9vw, 1.7rem) !important;
    letter-spacing: -0.5px !important;
  }
}

/* 매우 작은 화면 (320px 이하)에서만 적극적 조절 */
@media (max-width: 320px) {
  .hero h1 {
    font-size: clamp(0.95rem, 6vw, 1rem) !important;
    letter-spacing: -0.5px !important;
  }

  .region-card h3,
  .price-card h3,
  .feature-card h3 {
    font-size: clamp(1rem, 5vw, 1.1rem) !important;
  }

  .main-cta .phone {
    font-size: clamp(1.3rem, 10vw, 1.5rem) !important;
    letter-spacing: -1px !important;
  }
}

/* 특별히 긴 텍스트들만 자동 줄바꿈 방지 */
.region-card h3,
.price-card .price-name,
.main-cta .phone {
  /* 길면 자동으로 폰트 크기만 살짝 조절 */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 일반 텍스트는 자연스러운 줄바꿈 허용 */
.hero p,
.region-card p,
.price-card p,
.feature-card p {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

/* 삼성 브라우저에서 부드러운 텍스트 렌더링 */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
  * {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
}
