img.img-fload {
    max-width: 100%;
    height: auto;
}

img {
    object-fit: cover;
}

@font-face {
  font-family: 'NanumSonGeurSicGeumEunBoHwa';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2404@1.0/NanumSonGeurSicGeumEunBoHwa.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.letter-style {
	font-family: 'NanumSonGeurSicGeumEunBoHwa', cursive;
	font-size: 18px;
	line-height: 1.9;
	max-width: 100%;
	margin: 50px auto;
	padding: 40px;
	background: #fffdf8;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	color: #333;
}

span .text-right {
	text-align: right;
    margin-top: 30px;
}

.category-desc-box {
  margin-top: 0;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

.category-description {
  background: var(--rs-theme-blue);
  border-left: 4px solid var(--rs-theme-blue);
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 16px;
  color: #444;
}

.business-list {
  padding-left: 10px;
  margin: 14px 0;
  list-style: none;
}
.business-list li {
  position: relative;
  padding-left: 8px;     /* 왼쪽 간격 살짝 줄임 */
  margin-bottom: 6px;     /* 항목 간격 줄임 */
  font-size: 15px;        /* 글자 크기도 살짝 줄이면 전체적으로 밀도 있게 보임 */
  line-height: 1.5;
}
.business-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rs-theme-blue, #007bff);
  font-weight: bold;
}
.business-list strong {
  color: #222;
}

.arrow-icon {
  transition: transform 0.3s ease;
  font-size: 14px;
}
.arrow-icon.open {
  transform: rotate(180deg); /* ▼ → ▲ */
}

/* 트리 전체 박스 */
.category-tree-box {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  height: 100%;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  font-size: 16px;
  scroll-behavior: smooth;
}

.category-tree-box::-webkit-scrollbar {
  width: 6px;
}
.category-tree-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* 트리 토글 버튼 공통 */
.category-tree .btn-toggle {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #e9ecef;
  color: #212529;
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: left;
  transition: background-color 0.2s ease;
  margin: 0.2rem 0;
  position: relative;
}

.category-tree .btn-toggle:hover {
  background-color: #dee2e6;
}

.category-tree .btn-toggle[aria-expanded="true"] {
  background-color: #adb5bd;
  color: #fff;
}

/* 하위 리스트 공통 */
.category-tree .btn-toggle-nav {
  margin-top: 0.3rem;
  padding-left: 1rem;
  border-left: 2px solid #dee2e6;
}

/* 제품 링크 */
.category-tree a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 1.3rem;
  color: #343a40;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1.5;
  margin: 2px 0;
}

.category-tree a:hover {
  color: #0d6efd;
  background-color: #e2e6ea;
}

.category-tree a.active {
  background-color: #0d6efd;
  color: #fff !important;
  font-weight: 700;
  border-left: 4px solid #0a58ca;
}

/* 깊이 시각화를 위한 들여쓰기 (n단계 지원) */
.category-tree .btn-toggle-nav ul {
  padding-left: 1rem;
  border-left: 2px solid #dee2e6;
  margin-top: 0.3rem;
}

/* 최종 노드(제품)에는 선 없음 */
.category-tree .btn-toggle-nav ul:empty {
  border-left: none;
}

.btn-toggle.top-category {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--rs-light);       /* 기본 파랑 */
  color: var(--rs-black);                             /* 흰 글자 */
  border: none;
  border-radius: 0.4rem;
  font-family: var(--rs-ff-title);
  font-weight: var(--rs-fw-bold);
  font-size: var(--rs-fs-b2);                         /* 16px */
  text-align: left;
  transition: background-color 0.2s ease;
  margin: 0.2rem 0;
  position: relative;
}

.btn-toggle.top-category[aria-expanded="true"] {
  background-color: var(--rs-theme-blue);
  color: var(--rs-white);
}

.btn-toggle.top-category:hover {
  background-color: var(--rs-theme-blue);
  color: var(--rs-white);
}

/* 버튼 스타일 */
.google-translate-button {
    background-color: #4285f4; /* 구글 블루 색상 */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-translate-button:hover {
    background-color: #357ae8; /* Hover 시 약간 더 어두운 파랑 */
    transform: scale(1.05); /* 마우스 오버 시 살짝 커지도록 */
}

.google-translate-button:focus {
    outline: none; /* 포커스 시 테두리 제거 */
}

/* 아이콘 스타일 */
.google-translate-icon {
    font-size: 20px;
    display: inline-block;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 80%; /* 높이를 적절히 조정 */
  margin-bottom: 20px;  /* 하단 콘텐츠와의 간격 */
}

.map-container .root_daum_roughmap_landing {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* 배경형 큰 카드 */
.rs-blog-item.has-thumb-height .rs-blog-bg-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;            /* 최신 브라우저 */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

/* 구형 브라우저(선택) 지원: aspect-ratio 미지원 대비 */
.rs-blog-item.has-thumb-height .rs-blog-bg-thumb::before{
  content: "";
  display: block;
  padding-bottom: 56.25%;          /* 16:9 */
}




.inquiry-overlay {
  z-index: 99999 !important; /* 최상위로 */
}

.inquiry-modal {
  z-index: 999999 !important; /* 오버레이보다 위 */
}

/* 오버레이 */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

/* 모달 */
.inquiry-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 90%;
  background: #fff;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 25px 30px;
  display: none;
  animation: fadeIn 0.3s ease;
}

/* 표시 상태 */
.inquiry-modal.active,
.inquiry-overlay.active {
  display: block;
}

/* 헤더 */
.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.inquiry-header h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.close-inquiry {
  font-size: 24px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
}

/* 공통 폼 스타일 */
.inquiry-form .form-group {
  margin-bottom: 16px;
}

.inquiry-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.inquiry-form select:not(.nice-select-hidden) {
  display: block;
}

.inquiry-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* 가로 배치용 */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-group.half {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

/* 반응형 대응 */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/* 버튼 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-submit {
  background-color: #EA5501;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel {
  background-color: #f0f0f0;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

#categorySelect option.dimmed-option {
  color: #999;
  font-size: 0.9em;
}

#categorySelect,
#productSelect {
  display: block;
  visibility: visible;
  opacity: 1;
}

select.nice-select-hidden {
  display: block !important;
}



/* 썸네일 공통 */
.rs-blog-two .rs-blog-thumb {
  position: relative;
  aspect-ratio: 16 / 9;              /* 비율 통일 (이미지 찌그러짐 방지) */
  overflow: hidden;
  border-radius: 14px;
}
.rs-blog-two .rs-blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
}

/* 블루 그라디언트 오버레이 */
.rs-blog-two .rs-blog-thumb::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,50,120,.25) 0%, rgba(0,20,60,.55) 100%);
  mix-blend-mode: multiply;         /* 색감 강화 */
}

/* 라벨을 이미지 중앙에 */
.rs-blog-two .rs-blog-content { position: relative; }
.rs-blog-two .rs-blog-tag {
  position: absolute; left: 50%; top: -48px;      /* 카드 상단에서 끌어올림 */
  transform: translate(-50%, 0);
  z-index: 3;
}
.rs-blog-two .rs-blog-tag a{
  font-size: 18px !important;
  padding: 10px 22px !important;
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);        /* 글래스 효과 */
  border-radius: 999px;
}

/* 호버 인터랙션 */
.rs-blog-two .rs-blog-item:hover .rs-blog-thumb img { transform: scale(1.08); }

/* 라이트 배너: 흰색 배경 + 선명한 텍스트 */
.cat-group-banner--light {
  background: #efefef !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 30px 36px;
  margin: 40px 0 24px;
}

.cat-group-banner--light::after { display: none; }

.cgb-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cgbi-titles {
  flex: 1;
}

/* 📌 한글 제목 — 더 크고 두껍게 */
.cgbi-ko {
  color: #0d1b3a;
  font-size: 2.4rem;        /* 1.8 → 2.2 */
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* 📌 영문 부제 — 살짝 커지고 가독성 향상 */
.cgbi-en {
  color: #2a3960;
  font-size: 1.5rem;        /* 1.0 → 1.2 */
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
}

/* 버튼 영역 */
.cgbi-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* 📌 버튼 — 더 크고 선명한 스타일 */
.cgbi-btn {
  background: #0d1b3a;
  border: 1px solid #0d1b3a;
  color: #fff;
  padding: 12px 22px;       /* 10→12px 높이 확대 */
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.3rem;       /* 0.92 → 1.05 */
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}
.cgbi-btn:hover {
  background: #142852;
  border-color: #142852;
  transform: translateY(-1px);
}

/* 📌 홈페이지 미등록 시 표시 배지 */
.cgbi-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f4f8;
  border: 1px solid #cfd6e3;
  color: #1e2b50;
  font-size: 1.05rem;
  font-weight: 600;
}
