/* 여기에 작업 또는 수정할 당신의 css style을 설정하세요. (customizations) */
.nav-wrap {
  background: #1d6eb0;
}
.no-show {
  display: none;
}

/* 기본 스타일 */
.tail-slider-wrap {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  background-color: #999;
}

.tail-slider {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tail-slider-item {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 10px;
}

.tail-slider-item a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
}

.tail-slider-item img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.tail-slider-item img:hover {
  transform: scale(1.05);
}

.main-tail-ben-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.main-tail-ben {
  display: flex;
  align-items: center;
  width: 24%; /* 가로 4개 배열을 위해 약 25% 설정 */
  background-color: #eaeaea;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  cursor: pointer;
}

.main-tail-ben img {
  width: 60px; /* 아이콘 크기 조정 */
  height: auto;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.main-tail-ben:hover img {
  transform: scale(1.1);
}

.main-tail-ben .item {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.main-tail-ben .item .tit {
  display: block;
  margin-bottom: 5px;
}

.main-tail-ben .item .con {
  font-size: 14px;
  color: #666;
  display: block;
}

.main-notice-wrap {
  position: relative;
  overflow: hidden;
  margin-top: -40px;
  background-color: #eaebed;
  background-image: url('/theme/eb4_basic/image/custom/notice-bg.png');
  background-size: auto;
  background-repeat: no-repeat;
  background-position: right 50px bottom 0;
}

.notice-wrap .notice-t-item {
  display: flex;
  align-items: center;
  gap: 10px; /* 요소 간 간격 */
  width: 100%; /* 컨테이너의 가로 너비 */
  background-color: #308fb6;
}

.notice-wrap .notice-t-item h1 {
  flex: none;
  white-space: nowrap;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
}

.notice-wrap .notice-t-item div {
  flex: 1; /* 유동적인 크기 */
}

.notice-wrap .notice-t-item div a {
  color: #fff;
}

.notice-wrap .notice-t-item div a:hover {
  text-decoration: underline;
}

.notice-wrap .notice-t-item .more-btn {
  flex: none;
  width: 80px; /* 고정 너비 */
}

.notice-wrap .notice-b-item {
  display: flex;
  align-items: center;
  gap: 10px; /* 요소 간 간격 */
  width: 100%; /* 컨테이너의 가로 너비 */
  background-color: #a78266;
}

.notice-wrap .notice-b-item h1 {
  flex: none;
  white-space: nowrap;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
}

.notice-wrap .notice-b-item div {
  flex: 1; /* 유동적인 크기 */
}

.notice-wrap .notice-b-item div a {
  color: #fff;
}

.notice-wrap .notice-b-item div a:hover {
  text-decoration: underline;
}

.notice-wrap .notice-b-item .more-btn {
  flex: none;
  width: 80px; /* 고정 너비 */
}

.notice-wrap .notice-img {
  background-image: url('/theme/eb4_basic/image/custom/banneux2.jpg');
  background-size: cover;
}

.notice-wrap .notice-img {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 10px; /* 내부 여백 */
}

.notice-wrap .notice-img-info {
  position: absolute;
  bottom: 10px; /* 하단 여백 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px; /* p와 button 사이 간격 */
  background-color: rgba(0, 0, 0, 0.5); /* 배경 투명 */
  padding: 5px 10px;
  border-radius: 10px;
}

.notice-wrap .notice-img-info p {
  color: #fff;
  margin: 0;
  white-space: nowrap;
}

.notice-wrap .notice-img-info button {
  white-space: nowrap;
}

/* 반응형 스타일 */
@media screen and (max-width: 992px) {
  .main-tail-ben {
    width: 48%; /* 2개씩 2열 배열 */
  }
  .notice-wrap .notice-img {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .tail-slider-item {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tail-slider-item a {
    flex: 0 1 calc(50% - 10px);
  }

  .tail-slider-item img {
    max-width: 100%;
  }

  .notice-wrap .notice-t-item {
    flex-direction: column;
    align-items: flex-start; /* 왼쪽 정렬 */
  }

  .notice-wrap .notice-t-item h1,
  .notice-wrap .notice-t-item div,
  .notice-wrap .notice-t-item .more-btn {
    display: block;
  }
  .notice-wrap .notice-b-item {
    flex-direction: column;
    align-items: flex-start; /* 왼쪽 정렬 */
  }

  .notice-wrap .notice-b-item h1,
  .notice-wrap .notice-b-item div,
  .notice-wrap .notice-b-item .more-btn {
    display: block;
  }

  .notice-wrap .notice-img {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .main-tail-ben {
    width: 100%; /* 모바일에서는 1열 배열 */
  }
}
