/* === v6 — Elementor 모바일 완전 수정 === */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
body, p, span, li, td, th, input, textarea, button {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif !important;
}

html, body { overflow-x: hidden !important; }

/* 본문 이미지 (로고 제외) */
.elementor-widget-image img,
.elementor-widget-text-editor img,
article img, .entry-content img { max-width: 100% !important; height: auto !important; }

/* 한글 */
h1, h2, h3, h4, .elementor-heading-title { word-break: keep-all !important; }
p, .elementor-text-editor { line-height: 1.8 !important; word-break: keep-all !important; }

/* ===== 모바일 (767px 이하) ===== */
@media (max-width: 767px) {
  /* 컬럼 풀와이드 */
  .elementor-section .elementor-container { flex-wrap: wrap !important; }
  .elementor-column { width: 100% !important; max-width: 100% !important; }

  /* 섹션 좌우 여백 강제 */
  .elementor-section:not(.elementor-section-full_width) > .elementor-container {
    padding-left: 16px !important; padding-right: 16px !important;
  }

  /* 위젯 간격 정리 */
  .elementor-widget:not(:last-child) { margin-bottom: 15px !important; }

  /* 제목 크기 모바일 최적화 */
  h1, .elementor-heading-title { font-size: clamp(20px, 6vw, 30px) !important; }
  h2 { font-size: clamp(17px, 5vw, 24px) !important; }
  h3 { font-size: clamp(15px, 4vw, 20px) !important; }
  p, .elementor-text-editor { font-size: 15px !important; }

  /* 히어로 섹션 배경 이미지 영역 */
  .elementor-section[data-settings*="background_image"] {
    min-height: auto !important;
    padding: 40px 20px !important;
  }
  .elementor-section[data-settings*="background_image"] .elementor-heading-title {
    font-size: clamp(22px, 7vw, 32px) !important;
  }

  /* 버튼 */
  .elementor-button { width: auto !important; max-width: 100% !important; padding: 14px 24px !important; font-size: 15px !important; }

  /* 비디오/iframe */
  iframe, video, embed { max-width: 100% !important; height: auto !important; }
  .elementor-widget-video { max-width: 100% !important; }

  /* 테이블 */
  table { display: block !important; overflow-x: auto !important; max-width: 100% !important; }

  /* Elementor 인라인 width 무력화 */
  .elementor-column[style*="width"] { width: 100% !important; }

  /* 갤러리/슬라이더 */
  .elementor-image-gallery, .elementor-slides, .swiper-container { max-width: 100% !important; overflow: hidden !important; }

  /* 사업개요 등 정보 섹션 간격 */
  .elementor-section + .elementor-section { margin-top: 0 !important; }

  /* 모바일 네비 드롭다운 메뉴 항목 */
  .elementor-nav-menu--dropdown .elementor-item { padding: 12px 20px !important; font-size: 16px !important; }
}

/* ===== 태블릿 ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-section .elementor-container { flex-wrap: wrap !important; }
  .elementor-col-33, .elementor-col-25 { width: 50% !important; }
}

/* ===== 데스크탑 ===== */
@media (min-width: 1025px) {
  p, .elementor-text-editor { font-size: 17px !important; line-height: 1.85 !important; }
}
