/* 커스텀 컴포넌트 스타일 */
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
    "돋움", Dotum, Arial, sans-serif;
}

button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
.main-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background-color: #fefc00;
  opacity: 100;
  z-index: -1;
}

.highlight-text {
  position: relative;
  padding: 0 5px;
  width: fit-content;
}

.highlight-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 80%;
  background-color: #fefc00;
  opacity: 100;
  z-index: -1;
}

.badge {
  display: inline-block;
  width: fit-content;
  border-radius: 20px;
  padding: 4px 14px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

@media (max-width: 768px) {
  .badge {
    padding: 4px 10px;
    font-size: 13px;
    line-height: 16px;
    white-space: nowrap;
  }
}

.toggleButton {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #3ed3ff;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .toggleButton {
    width: 40px;
    height: 40px;
  }
}

.header-transparent {
  background-color: transparent !;
  transition: all 0.3s ease-in-out;
}

.header-scrolled {
  background-color: #3ed3ff;
  transition: all 0.3s ease-in-out;
}

#header-nav {
  height: auto;
  min-height: 72px;
  transition: all 0.3s ease-in-out;
}

#header-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 306px;
  background-color: #3ed3ff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

#header-nav:hover::before {
  opacity: 100;
  background-color: #3ed3ff;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
}

#header-nav:hover .sub-menu {
  opacity: 100 !important;
  display: flex !important;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
  transition-delay: 0.2s;
}

.sub-items {
  min-width: 118px;
  white-space: nowrap;
}

.tab-btn {
  padding: 18px 22px;
  white-space: nowrap;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  border-radius: 40px;
  background: #cccccc;
  color: #000;
  transition: background 0.2s, color 0.2s;
  border: none;
  outline: none;
}
.tab-btn.active {
  background: #fffc00;
  color: #000;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 메뉴 아이템 호버 효과 */
.menu-items a:hover {
  color: #fefc00;
  transition: colors 0.3s;
}

.sub-items:hover {
  color: #fefc00;
  transition: colors 0.3s;
}

.mobile-menu-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s;
}

.mobile-menu-expanded {
  max-height: 1000px;
  transition: all 0.5s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.accordion-content.open {
  max-height: 500px;
}

.bar {
  left: 0;
}

#header-nav-mobile {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-custom-header {
  background-color: #3ed3ff !important;
}

.toggle-active .bar:nth-child(1) {
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.toggle-active .bar:nth-child(2) {
  opacity: 0;
}

.toggle-active .bar:nth-child(3) {
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* 스와이퍼 네비게이션 버튼 스타일 */
.swiper-button-prev,
.swiper-button-next {
  width: 48px !important;
  height: 48px !important;
  margin-top: -20px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 기본 화살표 아이콘 숨기기 */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
}

.swiper-button-prev {
  left: -60px !important;
}

.swiper-button-next {
  right: -60px !important;
}

/* 스와이퍼 인디케이터 스타일 */
.swiper-button-prev,
.swiper-button-next {
  width: 40px !important;
  height: 40px !important;
  background: #d2d014 !important;
  border-radius: 50% !important;
  margin-top: -20px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #d2d014 !important;
  transform: scale(1.1) !important;
}

/* 기본 화살표 아이콘 숨기기 */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
}

.swiper-button-prev {
  left: -60px !important;
}

.swiper-button-next {
  right: -60px !important;
}

/* 스와이퍼 인디케이터 스타일 */
.swiper-pagination {
  position: static !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 16px !important;
  width: 100% !important;
  text-align: center !important;
  left: 0 !important;
  transform: none !important;
}

.swiper .swiper-pagination {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: #d2d014 !important;
  opacity: 1 !important;
  margin: 0 4px !important;
  border-radius: 50% !important;
  left: 0 !important;
}

.swiper-pagination-bullet-active {
  background: #3ed3ff !important;
  transform: scale(1) !important;
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
  transform: scale(1) !important;
}

@media (max-width: 1024px) {
  .tab-btn {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 18px;
  }
}
@media (max-width: 400px) {
  .xsHidden {
    display: none;
  }
}

/* 팝업 스와이프 */
#mainPopup {
  transition: all 0.5s ease-in-out;
  opacity: 1;
}

#mainPopup .popup-swiper {
  width: 100%;
  height: 100%;
}

#mainPopup.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

#mainPopup.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mainPopup .popup-pagination {
  position: absolute !important;
  bottom: 12px !important;
  left: 0 !important;
  width: 100%;
}

#mainPopup .swiper-button-prev,
#mainPopup .swiper-button-next {
  width: 32px !important;
  height: 32px !important;
  cursor: pointer !important;
  background: #fff !important;
  cursor: pointer !important;
}

#mainPopup .popup-btn-next {
  position: absolute;
  right: 12px !important;
  top: calc(50% + 23px);
  transform: translateY(-50%);
}
#mainPopup .popup-btn-prev {
  position: absolute;
  left: 12px !important;
  top: calc(50% + 23px);
  transform: translateY(-50%);
}

#mainPopup .swiper-pagination-bullet {
  background: #d9d9d9 !important;
}
#mainPopup .swiper-pagination-bullet-active {
  background: #3ed3ff !important;
  transform: scale(1) !important;
}

#mainPopup .swiper-button-prev:hover,
#mainPopup .swiper-button-next:hover {
  transform: translateY(-50%) !important;
}
