@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
  --black: #1c1c1c;
  --gray: #7E7E7E;
  --gray-light: #E4E4E4;
  --red: #b30000;
  --font-size-base: 1rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --border-radius: 10px;
}

html, body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  font-size: var(--font-size-base);
  background-color: rgb(236, 235, 234);
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a { color: var(--black); }
h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); }

/*input[type="text"],*/
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  background-color: var(--black);
  border: none;
  color: white; 
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px; 
  cursor: pointer;
}

.btn-delete {
  padding: 10px 16px;
  background-color: var(--red);
}

/* 레이아웃 */
.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.main {
  padding: 20px 0;
}

/* 히어로 이미지 표시 부분 */
.hero-image {
  max-height: 528px;
  filter: drop-shadow(0px 44px 34px rgba(0, 0, 0, 0.25));
  overflow: hidden;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.header {
  display: flex;
  /* flex-direction: column; */
  width: 100%;
}

.header-top {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  padding: 0px 10px;
  width: 100%;
  z-index: 1000;
  background-color: rgb(236, 235, 234);
}

.header-top img{
  align-items: flex-start;
  width: 20%; /* 전체 너비로 설정하여 공간 확보 */
}

.header-left {
  display: flex;
  align-items: center;
  width: 290px;
}

.header-left img {
  max-height: 50px;
  width: auto;
}

.header-logo {
  font-size: 25px;
  font-weight: bold;
  text-decoration: none;
  /* color: #333; */
}

.header-nav {
  position: relative;
  width: 100%;
}

.header-nav.active {
  display: flex;
  flex-direction: column;
}

.header-nav .nav-menu {
  display: flex;
  justify-content: center; 
  list-style: none;
  padding: 0;
  width: 100%;
}

.header-nav .nav-menu .dropdown {
  position: relative;
  display: inline-block;
  margin: 0 0px;
  width: 150px;
  text-align: center;
  /* background-color: #007bff; */
}

.header-nav .nav-menu .dropdown a{
  text-decoration: none;
  /* color: #333; */
  font-size: 20px;
  font-weight: bold;
  /* display: block; */
  /* padding: 10px 15px; */
}

.header-nav .nav-menu .dropdown a:hover{
  text-decoration: none;
  color: #21a00a;
}

.header-nav .nav-menu .dropdown .dropdown-content {
  display: none;
  position: absolute;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-nav .nav-menu .dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  background-color: #21a00a;
  border-radius: 5px;
}

.header-nav .nav-menu .dropdown .dropdown-content li {
  display: block;
  width: 100%;
  min-width: 150px;
}

.header-nav .nav-menu .dropdown .dropdown-content li a {
  color: #333;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 15px;
}

.header-nav .nav-menu .dropdown .dropdown-content li a:hover {
  background-color: #0c7014;
  color: white;
  border-radius: 5px;
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
}

/* .header-right a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  margin-left: 10px;
} */

.header-right i {
  font-size: 18px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333;
}

.header-button a {
  padding: 8px 16px; 
  /* text-decoration: none;  */
  /* color: var(--black);  */
  background-color: var(--gray-light); 
  border-radius: var(--border-radius); 
  transition: background-color 0.3s ease; 
  /* font-size: 15px;
  white-space: nowrap; */
} 

.header-button .username {
  margin: 0 0px;
  text-decoration: none;
  color: #333;
  /* padding: 5px 10px; */
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-left: 10px;
  white-space: nowrap;
}

.header-button a:hover {
  background-color: #c4c4c4;
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  min-height: 1px; /* iOS에서 flex 컨테이너가 사라지는 문제 방지 */
}

.product-image-container img.switch-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: absolute;
  transition: opacity 1s ease;
  opacity: 0;
  /* z-index: 1; */
}

.product-image-container img.switch-image.active {
  opacity: 1;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.product-tile-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  user-select: none;
}

.product-tile {
  flex: 0 0 80%;
  max-width: 320px;
  text-align: center;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-tile img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-tile:hover img {
  transform: scale(1.05);
}

.product-tile-container.dragging {
  cursor: grabbing;
  user-select: none;
}

.product-tile p {
  font-weight: bold;
  margin: 10px 0 4px;
}

.product-tile d {
  font-size: 0.9rem;
  color: #666;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 50%;
}

.slider-arrow.left {
  left: 10px;
}

.slider-arrow.right {
  right: 10px;
}

/* 고객센터 카드 */
.contact-card {
  display: flex;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  margin: 30px auto;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

.contact-left {
  background-color: #4caf50;
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30%;
}

.contact-left h3 {
  font-size: 1.4rem;
  margin: 0;
}

.contact-left .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-right {
  padding: 24px;
  flex-grow: 1;
  width: 60%;
}

.contact-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.2rem;
  color: #007bff;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.contact-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
}

.parent-container {
  display: flex; 
  flex-direction: column; /* 세로 정렬 */
  align-items: center; /* 필요에 따라 조정 (가운데 정렬) */
  gap: 300px; /* 원하는 간격 */
  padding-top: 300px;
}

.weighter-container {
  display: flex; 
  flex-direction: column ; /* 세로 정렬 */
  align-items: center; /* 필요에 따라 조정 (가운데 정렬) */
  gap: 300px; /* 원하는 간격 */
  padding-top: 300px;
}

/* 상단 텍스트 - HomePage */
.top {
  padding: 10px 0;
  text-align: center;
}

.top-heading {
  margin-top: 10px;
  margin-bottom: 5px;
}

.top-body {
  font-size: var(--font-size-md);
  margin: 5px 0 40px 0;
}

.right-align {
  text-align: right;
  margin-right: 20px; /* 오른쪽 끝과의 간격 */
}

/* 게시물 목록 */
.articles-heading {
  margin-top: 4rem;
  font-weight: 400;
}

.article-ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
  display: flex;
  flex-direction: column;
}

.article-list-date {
  font-size: 1rem;
  color: var(--gray);
  width: 100px;
  display: inline-block;
  width: 260px;
}

.article-ul li a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  margin: 18px 0;
}

.article-ul li {
  font-size: 24px;
  cursor: pointer;
}

.article-ul li:not(:last-child) {
  border-bottom: 1px solid var(--gray-light);
}

.article {
  white-space: pre-wrap;
}

.pagination {
  font-size: 1.3rem;
  color: var(--gray);
  text-decoration: none;
  margin-top: 40px;
  display: inline-block;
}

.pagination:hover {
  color: var(--black);
}

/* 관리자 화면 대시보드 */
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-posts {
  padding: 0;
  margin: 0;
}

/*chat gpt로 추가된 코드*/
.admin-post-controls {
  display: flex;
  gap: 10px; /* 버튼들 사이의 간격 */
}

.admin-post-controls form {
  display: inline-block;
}

.admin-post-controls .btn  {
  display: inline-block;
  background-color: var(--black);
  color: var(--gray-light);
  border: 0;
  text-decoration: none;
  font-size: .8rem;
  padding: 4px 8px;
  line-height: 2;
}

.admin-posts li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

/* chat gpt로 추가된 CSS */
.admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--gray-light);
}

/* chat gpt로 추가된 CSS */
.admin-post-item a {
  flex-grow: 1;
}

.username {
  font-weight: bold;
  color: #000000;
  padding: 10px;
}

/*유튜브 동영상 링크 -->*/
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* 유튜브 동영상 링크 -->*/

.tiles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 타일 사이의 간격을 조정할 수 있습니다 */
}

.tile {
  width: calc(33.333% - 20px); /* 각 타일의 너비를 조정할 수 있습니다 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.tile:hover {
  transform: scale(1.05);
}

.tile a {
  text-decoration: none; /* 링크 텍스트에 밑줄이 없도록 */
  color: inherit; /* 부모 요소의 색상을 상속받도록 */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-image {
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.tile-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-grow: 1;
}

.tile-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  text-decoration: none; /* 타이틀 텍스트에 밑줄이 없도록 */
}

.tile-date {
  text-align: right;
  color: gray;
  text-decoration: none; /* 날짜 텍스트에 밑줄이 없도록 */
  width: 100%;
}

.tile-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.edit-button,
.delete-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.edit-button:hover {
  background-color: #0056b3;
}

.delete-button {
  background-color: #dc3545;
}

.delete-button:hover {
  background-color: #c82333;
}

.footer {
  background-color: rgb(236, 235, 234);
  /* padding: 20px; */
  text-align: left;
  border-top: 1px solid #bbbbbb;
  width: 100%;
  margin-top: 40px; /* 푸터가 메인 콘텐츠와 분리되도록 여백 추가 */
  margin-bottom: 40px;
}

.footer-content {
  max-width: 1200px;
  padding: 10px;
  margin: 0 auto;
  font-size: 14px; /* 글씨 크기 조정 */
}

.footer-content p {
  margin: 5px 0; /* 각 <p> 요소의 상하 여백을 줄임 */
}

.footer a {
  color: #333;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* 제품 관련 창 CSS 파일 */
/* 헤더 스타일 */
.product-header {
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 24px;
  font-weight: bold;
}

/* 네비게이션 바 스타일 */
.product-navbar {
  display: flex;
  justify-content: center;
  background-color: #4caf50;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative; /* 초기에는 부모 크기에 맞춤 */
  width: auto; /* 부모 크기 유지 */
  max-width: 100%; /* 부모를 벗어나지 않도록 제한 */
  top: auto;
  /* left: 0; */
  z-index: 500;
  border-radius: 5px;
  /* height: 60px; */
  transition: top 0.3s ease-in-out, width 0.3s ease-in-out, left 0.3s ease-in-out;
  box-sizing: border-box;
  overflow: hidden;
}

/* 스크롤 시 네비게이션 바 고정 & 중앙 정렬 */
.product-navbar.fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* 중앙 정렬 */
  width: auto; /* 부모 요소의 크기를 유지 */
  max-width: 100%; /* 화면을 벗어나지 않도록 */
}

.product-navbar a {
  flex: 1;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 0;
  transition: background-color 0.3s;
  font-size: 25px;
}

.product-navbar a:hover {
  background-color: #0c7014;
}

.product-navbar a.active {
  background-color: #333;
}

.decript-container {
  display: grid;
  gap: 15px;
  /* padding: 20px; */
}
.model-spec-container {
  display: flex; /* 가로 정렬 */
  gap: 10px; /* 요소 사이 간격 */
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-left: 5px;
  padding-right: 5px;
  box-sizing: border-box;
}

.spec-text {
  flex: 1; /* 각 요소가 동일한 너비를 차지하도록 설정 */
}

.spec-text p{
  font-size: medium;
  text-align: center;
  font-weight: bold;
}

.spec-text img{
  border-radius: 10px 10px 10px 10px; 
  width: 100%;
}

.spec-text table {
  border-collapse: collapse; 
  width: 100%;
}

.spec-text table,
.spec-text th,
.spec-text td {
    border: 1px solid black;
    text-align: center;
}

/* 초록색 박스 스타일 */
.decript-box {
  font-size: 25px;
  font-weight: bold;
  background-color: #4caf50;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 설명 박스 스타일 */
.decript-content {
  display: flex; /* Flex로 변경 */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 10px; /* 안쪽 여백 추가 */
  justify-content: flex-start;
}

.decript-content img {
  margin: 5px;
  width: 20%; /* 가로 크기 비율 유지 */
  height: auto; /* 원본 비율 유지 (가장 중요한 부분) */
  max-height: 100%; /* 부모 요소를 초과하지 않도록 설정 */
  border-radius: 10px;
  object-fit: contain; /* 원본 비율을 유지하면서 크기 조절 */
}

/* .decript-text {
  width: 60%; 
  padding-left: 40px; 
  text-align: left; 
  flex-direction: column;
} */

.decript-content .decript-text {
  flex: 1; /* 남은 공간을 최대한 사용 */
  padding-left: 40px;
  text-align: left; /* 텍스트 왼쪽 정렬 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.decript-content .decript-text h3 {
  font-size: 30px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0px;
  /* word-break: break-word;
  white-space: normal; */
}

.decript-content .decript-text p {
  font-size: 20px;
  line-height: 1.6; 
  width: 100%;
  margin-bottom: 0px;
}

.decript-main-box {
  display: flex; /* Flex로 변경 */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 10px; /* 안쪽 여백 추가 */
  justify-content: flex-start;
}

/* 텍스트 스타일 조정 */
.decript-main-text {
  text-align: left; /* 왼쪽 정렬 */
  flex: 1; /* 공간 차지 */
}

/* h3 태그 스타일 수정 */
.decript-main-text h3 {
  font-size: 30px; /* 원하는 크기로 설정 */
  margin-bottom: 5px;
}

.decript-main-text p {
  font-size: 20px; /* 원하는 크기로 설정 */
}


/* 스팩 박스 스타일 */
/* .spec-content {
  display: flex; 
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  gap: 0px;
  max-width: 100%;
} */

/* .spec-text {
  width: 60%; 
  padding-left: 10px; 
  padding-right: 10px; 
  padding-top: 10px; 
  padding-bottom: 10px; 
  text-align: center;
  display: flex;
  flex-direction: column; 
} */

/* .spec-content img {
  padding: 0px 0px;
} */
  

/* .spec-text td{
  font-weight: normal;
  height: auto;
} */

.green-cell {
  border: 1px solid #cecece;
  background-color: #4caf50; /* 초록색 배경 */
  color: white; /* 흰색 글자 */
  line-height: 1.2; /* 글자 크기에 맞는 줄 간격 */
  padding: 4px 8px; 
}

.product-title {
  font-size: 30px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 5px;
}

.product-subtitle {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  margin-top: 5px;
}

.product-title-img img {
  width: 100%;  /* 창 크기에 맞게 자동 조정 */
  height: 100%;  /* 가로세로 비율 유지 */
  display: block;
  margin: 0 auto; /* 중앙 정렬 */
}

/* 갤러리 컨테이너 */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 사진들이 왼쪽 정렬되도록 설정 */
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
  gap: 20px; /* 사진 사이 간격 조정 */
}

/* 갤러리 아이템 (사진과 설명) */
.gallery-item {
  flex: 0 1 calc(50% - 15px); /* 한 줄에 2개 배치 */
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}

/* 이미지 스타일 */
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* 설명 텍스트 스타일 */
.caption {
  font-size: 16px;
  color: #333;
  margin-top: 5px;
}

/* 팝업 스타일 */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* 어두운 배경 */
  z-index: 9999; /* 화면 위로 팝업 띄우기 */
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.popup-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

.info-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 10px;
}

.info-table {
    width: 100%;
    text-align: left;
    border-spacing: 0;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.info-table i {
    color: #007bff;
    margin-right: 10px;
}

.info-table td a {
    color: #007bff;
    text-decoration: none;
}

.info-table td a:hover {
    text-decoration: underline;
}

#map {
    width: 100%;
    height: 400px;
    margin: 20px auto;
    border-radius: 10px;
}

/* 탭 버튼 스타일 */
.tab-buttons {
  display: flex;
  border-bottom: 2px solid #ddd;
}

.tab-buttons a{
  text-decoration: none;
}

.tab-button {
  flex: 1;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  border: none;
  outline: none;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  border-radius: 5px;
}

.tab-button:hover {
background-color: #e0e0e0;
transition: background-color 0.3s;
}

.tab-button.active {
  background-color: #4caf50;
  color: white;
  border-bottom: 2px solid #4caf50;
}

/* productIntroBox 스타일 */
.productIntroBox {
  position: relative; /* 자식 요소를 절대 위치로 배치하기 위해 필요 */
  width: 100%;
  height: 200px;
  /* border: 2px solid #000; */
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: #f9f9f9; */
  font-size: 40px;
  font-weight: bold;
  background-image: url("/img/dms_banner.png"); /* 배경 이미지 적용 */
  background-size: cover; /* 이미지를 컨테이너 크기에 맞게 조정 */
  background-position: center; /* 이미지를 중앙 정렬 */
  background-repeat: no-repeat; /* 이미지 반복 방지 */
  color: white;
  border-radius: 10px; /* 👈 모서리 둥글게 적용 */
  overflow: hidden; /* 👈 둥근 모서리 내부 이미지도 적용 */
}
/* 텍스트 초기 상태는 안보이도록 설정 */
#detailInfo {
  opacity: 0;
  transition: opacity 1s ease-in-out; /* 2초에 걸쳐 점진적으로 변화 */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* visible 클래스가 추가되면 텍스트가 보임 */
#detailInfo.visible {
  opacity: 1;
}

/* D801_1 관련 CSS */
.table-container {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* 고정 크기 테이블 설정 */
.fixed-table {
  width: 1200px;
  min-width: 1000px; 
  border-collapse: collapse;
  background-color: #fff;
}

/* 테이블 헤더 스타일 */
.green-cell {
  background-color: #4caf50;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

.weigher-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reject-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.weigher-item {
    flex: 1; /* 각 항목이 동일 비율로 크기를 차지 */
    /* display: flex; */
    justify-content: center; /* 이미지를 중앙에 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    padding: 10px;
}

.weigher-item img {
    width: 100%; /* 이미지 가로 크기를 부모에 맞게 설정 */
    height: auto; /* 이미지 세로 비율 자동 유지 */
    border-radius: 5px;
}

@media (max-width: 1064px){
  .header-logo {
    font-size: 20px; /* 모바일 화면에서 로고 크기 줄이기 */
  }

  .header-right{
    gap: 10px; /* 모바일에서는 간격 줄이기 */
    font-size: 14px; /* 글씨 크기 줄이기 */
  }

  .header-nav {
    display: none; /* 기본적으로 메뉴 숨김 */
    position: absolute;
    top: 30px;
    /* left: 0; */
    width: 100%;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none; /* 기본 숨김 */
    flex-direction: column;
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    max-width: 300px;
    background: white; /* 기본 배경 */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    transition: background 0.3s ease-in-out; /* 부드러운 효과 추가 */
  }

  .nav-menu.active {
    display: flex;
    width: 100%;
    max-width: 300px;
    height: auto;
    padding: 15px;
    min-height: 270px;
    background-color: rgba(255, 255, 255, 0.927);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-content {
    position: absolute;
    top: 0;
    left: 100%;
    width: 5px;
  }

  /* 하위 메뉴 아이템 간격 조정 */
  .dropdown-content li {
    padding: 0px 0px; /* 내부 패딩 조정 */
    margin-bottom: 0px; /* 항목 사이의 간격 설정 */
  }

  /* 마지막 항목의 하단 여백 제거 */
  .dropdown-content li:last-child {
      margin-bottom: 0;
  }

  /* 하위 메뉴 링크 스타일 */
  .dropdown-content li a {
      display: block;
      font-size: 18px;
  }

  /* 하위 메뉴 호버 시 스타일 */
  .dropdown-content a:hover {
      width: auto; /* 기존 width: 100px; 제거하여 자연스럽게 조정 */
      background-color: white;
      color: black;
  }

  .header-left {
    flex: 1;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 5px 0;
  }

  .product-tile {
    width: 250px; 
    height: 350px;
    border: 1px solid #ccc;
  }

  .tab-buttons a{
    font-size: 20px;
  }

  .parent-container {
    gap: 250px; 
    padding-top: 270px;
  }

  .spec-text {
    width: 100%;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .decript-content .decript-text img{
    width: 60%; /* 이미지 크기 조정 */
    max-width: 400px; /* 최대 크기 제한 */
    /* min-width: 200px; */
  }

  .productIntroBox {
    width: 100%;
    height: 200px;
    font-size: 40px;
  }

}

/* 태블릿 (768px ~ 1023px) */
@media screen and (max-width: 1023px) {
  .parent-container {
    gap: 240px; 
    padding-top: 250px;
  }

  .productIntroBox {
    width: 100%;
    height: 100px;
    font-size: 30px;
  }

}

/* 모바일 (480px ~ 767px) */
@media screen and (max-width: 768px) {
  .parent-container {
    padding-top: 190px;
    gap: 170px; 
  }

  .productIntroBox {
    width: 100%;
    height: 100px ;
    font-size: 20px ;
  }

  .model-spec-container {
    flex-direction: column; 
    align-items: center; 
  }

  .spec-text {
    max-width: 100%; 
    /* text-align: center;  */
    padding: 0 10px;
  }

  .spec-text img {
    width: 100%; 
    max-width: 100%; 
  }

  .spec-text table {
    width: 100%; 
    max-width: 100%; 
  }

  .decript-box {
    font-size: 14px;
    padding: 5px;
  }

  .product-subtitle {
      font-size: 16px ;
  }

  .info-table td {
    display: block;
    width: 100%;
    padding: 15px 0;
  }

  .info-table td:first-child {
      font-weight: bold;
  }

  .info-table td a {
      display: inline-block;
      margin-top: 5px;
  }

  .info-table i {
      font-size: 1.2em;
  }

  .tab-button {
    font-size: 14px; /* 모바일 화면에서는 글자 크기를 줄임 */
    padding: 8px 16px; /* 모바일에서는 패딩을 줄임 */
  }

  .tab-buttons {
    flex-direction: column; /* 모바일에서 버튼들을 세로로 배치 */
  }

  .tab-container p{
    font-size: 20px; /* 모바일 화면에서는 글자 크기를 줄임 */
    padding: 8px 16px; /* 모바일에서는 패딩을 줄임 */
  }
  .decript-box .table-container .fixed-table {
    min-width: 1000px;
  }

  .green-cell {
    font-size: 14px;
  }
  
  .product-navbar a.nav-link {
    font-size: 18px;
  }

  .decript-content {
    flex-direction: column; /* 세로 배치 */
    align-items: center; /* 가운데 정렬 */
    text-align: center; /* 텍스트도 가운데 정렬 */
  }

  .decript-content .decript-text {
      width: 100%; /* 전체 너비 사용 */
      padding: 10px; /* 여백 추가 */
  }

  .decript-content img {
    width: 60%; /* 이미지 크기 조정 */
    max-width: 300px; /* 최대 크기 제한 */
    min-width: 200px;
  }

  .decript-content .decript-text h3 {
    font-size: 25px;
  }

  .decript-content .decript-text p {
    font-size: 20px; /* 모바일에서 본문 크기 조정 */
    text-align: left; /* 필요하면 중앙 정렬 대신 왼쪽 정렬 */
    line-height: 1.2; 
    margin-bottom: 0px;
  }

  .reject-container {
    flex-direction: column; /* 모바일에서 세로 정렬 */
    align-items: center; /* 중앙 정렬 (필요하면 추가) */
    gap: 15px; /* 모바일에서 간격 조정 */
  }

  .gallery-container {
    flex-direction: column; /* 모바일에서 세로 정렬 */
    align-items: center; /* 중앙 정렬 (필요하면 추가) */
  }

  .gallery-container img {
    width: 90%; /* 모바일에서 너비 조정 */
    max-width: 400px; /* 최대 크기 제한 */
  }

  .tile-title {
    font-size: 15px;
  }

  .contact-card {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    text-align: center;
  }

  .contact-left {
    padding: 20px 10px;
  }

  .product-tile {
    /* flex: 0 0 70%; */
    width: 90%;
  }

  .product-tile img {
    width: 90%;
  }
}

/* 작은 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
  .parent-container {
    padding-top: 100px;
    gap: 90px; 
  }

  .productIntroBox {
    height: 100px;
    font-size: 20px;
  }

  .decript-content {
    flex-direction: column; 
    align-items: center;
    text-align: center; 
  }

  .decript-content img {
    width: 60%; /* 이미지 크기 조정 */
    max-width: 400px; /* 최대 크기 제한 */
    min-width: 200px;
  }

  .decript-content .decript-text h3 {
    font-size: 20px;
  }

  .decript-content .decript-text p {
    font-size: 15px; /* 모바일에서 본문 크기 조정 */
    text-align: left; /* 필요하면 중앙 정렬 대신 왼쪽 정렬 */
  }

  .product-navbar a.nav-link{
    font-size: 15px;
  }

  .decript-main-box {
    flex-direction: column; /* 세로 배치 */
    /* align-items: center; 가운데 정렬 */
    /* text-align: left; */
  }

  .decript-main-text {
    text-align: left; /* 모바일에서는 중앙 정렬 */
  }
  
}