/* style.css - 전체 페이지에 공통 적용되는 기본 스타일 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
@import url('/css/components/common.css');
@import url('/css/base/base.css');
@import url('/css/base/layout.css');


:root {
  --primary-color: #1F4EB2;
  --primary-hover: #163d8f;
  --text-color: #333;
  --bg-color: #f8f9fa;
  --container-width: 1200px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-hover);
}

/* ========== 컨테이너 ========== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 배너 영역 ========== */

.banner-container {

  margin: 10px auto 15px;
  max-width: var(--container-width);
}

.main-banner {
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sub-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.sub-banners img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* PC에서는 원래 그리드 유지 */
@media (min-width: 769px) {
  .mobile-sub-banner .swiper-wrapper {
    display: none;
  }

  .mobile-sub-banner .swiper-wrapper,
  .mobile-sub-banner .swiper-pagination {
    display: none !important;
  }
}

/* 모바일용 swiper 스타일 */
@media (max-width: 768px) {
  .desktop-sub-banner {
    display: none;
  }


  .mobile-sub-banner.sub-banners {
    display: block !important;  /* ✅ Swiper 구조 유지 */
  }


  .mobile-sub-banner.swiper-container {
    position: relative; /* ✅ 기준 기준 기준! */
    overflow: hidden;
    width: 100%;
    padding: 0;
  }

  .mobile-sub-banner .swiper-wrapper {
    display: flex;
  }

  .mobile-sub-banner .swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
    box-sizing: border-box;
  }

  .mobile-sub-banner .swiper-slide img {
    width: calc(100% - 30px);   /* ✅ 양쪽 여백 확보 (12px씩) */
    margin: 0 12px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
  }

  .swiper-pagination {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;                 /* ✅ 전체 너비 확보 */
    display: flex;
    justify-content: center;     /* ✅ 중앙 정렬 */
    z-index: 10;
  }

  .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    opacity: 1;
  }

  .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
  }
}



/* START : 헤더  */
/* 공통 */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.header-left a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  gap: 8px;
}

.header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
  }

  .header-left {
    flex: 1;
  }

  .header-right {
    flex: 1;
    justify-content: flex-end;
  }

  .header-center {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    order: 2;
  }


}
/* END : 헤더  */



/* START : 푸터  */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 60px;
}
/* END : 푸터  */


/* 버그 관련 임시 css */
.bug-report-btn-wrapper {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 9999;
}

.bug-report-btn {
  background-color: #f44336;
  color: white;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

.bug-report-btn:hover {
  background-color: #d32f2f;
}
/* 중복 제거로 header, nav 관련 스타일은 layout.css에서 관리 */