/* ======================================================
   ✅ RESET & 기본 세팅
   ====================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Apple SD Gothic Neo', system-ui, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ======================================================
   ✅ 공통 레이아웃
   ====================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
}
section {
  padding: 2rem 0;
}
h1, h2, h3 {
  line-height: 1.4;
  word-break: keep-word;
}

/* ======================================================
   ✅ Header 반응형
   ====================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #d10000;
  transition: 0.3s;
}
.nav a:hover::after {
  width: 100%;
}

/* 햄버거 메뉴 - 모바일 */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: white;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .nav.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* ======================================================
   ✅ 반응형 Grid 레이아웃
   ====================================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}
.col {
  flex: 1;
  padding: 1rem;
  min-width: 280px;
}

/* ======================================================
   ✅ Hero / 슬라이더
   ====================================================== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: #f9f9f9;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #666;
}
.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #d10000;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}
.cta-btn:hover {
  background: #b00000;
}

/* ======================================================
   ✅ Footer
   ====================================================== */
.footer {
  background: #f5f5f5;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: #666;
}
.footer a {
  color: #d10000;
  text-decoration: underline;
}

/* ======================================================
   ✅ 모바일 최적화 추가 대응
   ====================================================== */
   @media (max-width: 768px) {
  .hero-two-col,
  .page-container {
    width: 100%   !important;
    max-width: 100% !important;
  }
}
@media screen and (max-width: 768px) {
  /* 기본 구조 조정 */
  .hero-two-col,
  .page-container,
  .section,
  .service-inner,
  .slider-track,
  .board-tabs-with-image {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    padding: 0 1rem !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  /* 텍스트 크기 축소 */
  h1, .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  p, li, a, button {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 이미지 및 카드 슬라이드 크기 조정 */
  .card,
  .slide,
  .hero-left,
  .hero-right {
    width: 100% !important;
    height: auto !important;
  }

  /* 메뉴 펼침 */
  .nav ul.show {
    display: flex !important;
    flex-direction: column;
  }

  /* 여백 축소 */
  section, .page-content {
    padding: 1.2rem 1rem !important;
    margin: 0 auto !important;
  }

  /* 좌우 스크롤 제거 */
  body, html {
    overflow-x: hidden !important;
  }
}