/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}


/* 상단바 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 10px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.logo img {
  height: 55px;
}

/* 햄버거 버튼 */
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
}

/* 왼쪽 슬라이드 메뉴 */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #d0dff3;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.side-menu a {
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  font-size: 20px;
  color: #1670aa;
  display: block;
  transition: background 0.2s;
}

.side-menu a:hover {
  background: #f0f0f0;
}

.side-menu .closebtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  text-decoration: none;
}

/* 메뉴 활성화 */
.side-menu.active {
  width: 250px;
}


/* 상단 배너 */
.banner {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 영상이 꽉 차도록 */
  z-index: -1;         /* 텍스트보다 뒤에 위치 */
}

.banner-text {
  position: relative;
  z-index: 1;          /* 영상 위에 텍스트 */
  color: white;
  text-align: center;
}


/* Location 전용 배너 */
.location-banner {
  width: 100%;
  height: 50vh;
  background-image: url("images/map.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

/* Products 전용 배너 */
.product-banner {
  width: 100%;
  height: 50vh;
  background-image: url("images/products.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banner-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.banner-text p {
  font-size: 20px;
}


/* 콘텐츠 */
.content {
  max-width: 1800px;
  margin: 50px auto;
  padding: 0px 30px;
  width: 100%; /* ✅ 항상 동일 비율 유지 */
  box-sizing: border-box; /* ✅ 추가 */
}

/* 제목 스타일 */
.content-title {
  font-size: 3rem;       /* 단락보다 2단계 큼 */
  font-weight: bold;
  color: #1670aa;
  text-align: left;
  margin-bottom: 30px;
}

/* 본문 좌우 배치 */
.content-body {
  display: flex;
  justify-content: space-between;
  gap: 80px; /* 단락 사이 여백 */
  margin-bottom: 50px;
}

.content-body p {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

/* 반응형: 모바일에서는 세로 배치 */
@media (max-width: 768px) {
 .content-body {
    flex-direction: column;
  }

  .content-body p {
   text-align: left;
  }
}

.map-container {
  margin: 0 0 40px;        /* 여백 제거 */
  max-width: 100%;
}

.map-container iframe {
  width: 100%;
  height: 500px;
}

.address {
  margin-top: 20px;
  font-size: 1rem;
  text-align: center;
}

/* product */
.product-list {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  width: 100%; /* ✅ 추가 */
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* ✅ 버튼을 항상 오른쪽 끝으로 */
  padding: 15px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  gap: 40px;  /* 설명과 버튼 사이 간격 확보 */
}

.product-item img {
  width: 120px;             /* ✅ 고정 가로 사이즈 */
  height: auto;             /* 비율 유지 */
  border: 1px solid #1670aa; /* ✅ 파란색 테두리 */
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin: 0 0 5px 0;
}

.product-info .desc {
  font-size: 1.2rem;
  color: #000;         /* 검정 */
}

.product-item .btn-link {
  padding: 10px 18px;
  border: 2px solid #1670aa;
  color: #1670aa;
  text-decoration: none;
  font-size:1rem;
  font-weight:bold;
  transition: all 0.2s;
  white-space: nowrap;
}

.product-item .btn-link:hover {
  background: #1670aa;
  color: #fff;
}


/* 버튼 그룹 기본 (데스크탑) */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 반응형: 화면 폭이 768px 이하일 때 */
@media (max-width: 768px) {
  .product-item {
    flex-direction: column;      /* 세로 배치 */
    align-items: flex-start;     /* 왼쪽 정렬 */
  }

  .btn-group {
    flex-direction: row;         /* 버튼을 가로로 */
    gap: 20px;
  }

  .product-info {
    width: 100%;
  }
}

/* footer */
.footer {
  background: #f5f5f5;
  text-align: center;
  padding: 30px;
  font-size: 0.9em;
  color: #555;
  margin-top: auto;
}
