@charset "utf-8";


/* =====================
   초기화
===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
}

/* =====================
   PC 전용 헤더
===================== */
.topbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-search {
  position: relative;
  flex: 1;
  max-width: 220px;
}
.top-search input {
  width: 100%;
  padding: 0.5rem 0.8rem 0.5rem 2.2rem;
  border: 1px solid #ccc;
  border-radius: 30px;
}
.top-search i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #999;
}
.top-logo img {
  height: 40px;
}
.top-user a {
  text-decoration: none;
  color: #002b5c;
  font-size: 0.95rem;
  margin-left: 1rem;
}
.top-user i {
  margin-right: 5px;
}
.top-user-text { font-size:0.9em; }

/* =====================
   PC 전용 메뉴
===================== */
.navbar {
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
.navbar-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center; /*  가운데 정렬 */
}

/* =====================
   모바일 전용 헤더
===================== */
.mobile-header {
  display: none;
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}
.mobile-top-row,
.mobile-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mobile-logo img {
  height: 36px;
}
.mobile-search {
  position: relative;
  width: 40%;
  min-width: 140px;
}
.mobile-search input {
  width: 100%;
  padding: 0.5rem 0.8rem 0.5rem 2rem;
  border: 1px solid #ccc;
  border-radius: 30px;
}
.mobile-search i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #888;
}
.mobile-login a {
  text-decoration: none;
  color: #002b5c;
  font-size: 0.9rem;
}
.mobile-login i {
  margin-right: 5px;
}

/* =====================
   메인 콘텐츠 + 배너
===================== */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.main-banner {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 8px;
}
.main-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.content-area {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2rem;
  min-height: 400px; /* 하단까지 자연스럽게 */
}
.left-column {
  flex: 3;
}
.right-column {
  flex: none;
  width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
}
/* PC 전용 간격 조정 */
@media (min-width: 769px) {
  .news-grid-2col .news-box:nth-child(3),
  .news-grid-2col .news-box:nth-child(4) {
    margin-top: 30px; /* 원하는 간격 */
  }
}
@media (max-width: 768px) {
  .right-column {
    display: none;
  }
}
.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.news-box h2 {
  font-size: 1.1rem;
  color: #002b5c;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  border-bottom: 1px dashed #ddd;
  padding: 0.4rem 0;
  display: flex;
}

.news-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-decoration: none;
  color: #333;
}

.news-list .title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list .title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.news-list .comment {
  color: red;
  font-size: 0.85rem;
  white-space: nowrap;
}

.news-list .date {
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
}
.side-banner {
  height: 100px;
  margin-bottom: 20px;
  text-align: center;
  line-height: 100px;
}
.small-banner {
 text-align: center;
  line-height: normal;
  height: auto;
  padding-bottom: 0.5rem;
}

/* 이미지 */
.small-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.small-banner-title {
  font-size: 0.85rem;
  margin-top: 6px;
  color: #333;
  text-align: center;
  line-height: 1.4;
  display: block;
}

/* 중간배너 슬라이드 */
.sideBannerSwiper {
  position: relative; 
  width: 350px; 
  height: auto;
  border-radius: 6px;
  overflow: hidden;
}
.sideBannerSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-next,
.side-prev {
  display: flex !important;
  position: absolute;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.side-next::after,
.side-prev::after {
  font-size: 16px;
}

.side-next {
  right: 10px; /*  우측 하단 */
}

.side-prev {
  left: 10px;
}
@media (max-width: 768px) {
  .sideBannerSwiper {
    width: 100%;
    height: auto; /* 높이는 자동 */
  }

  .sideBannerSwiper img {
    height: auto; /* 예시값 */
    object-fit: cover;
    border-radius: 6px;
  }
}

/* =====================
   갤러리
===================== */
.gallery {
  margin-top: 3rem;
  max-width: 960px;  /*  기존 1200px → 줄이기 */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
.gallery h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-grid p {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 5px;
}

/* PC 전용 하단 배너 */
.bottom-banner-area.only-pc {
  display: block;
  background: #fff;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
  padding: 1.5rem 0;
}

.bottom-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.bottom-banner-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 모바일에서는 숨김 */
@media (max-width: 768px) {
  .bottom-banner-area.only-pc {
    display: none;
  }
}

#randomSmallBannersPC {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 한 줄에 4개 */
  gap: 16px;
  margin-top: 20px;
}

#randomSmallBannersPC .small-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  #randomSmallBannersPC {
    display: none;
  }
}

/* 서브페이지 Swiper (하단용) 스타일 - sideBannerSwiperPC */
.sideBannerSwiperPC {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  padding: 1rem 0;
  overflow: hidden;
}

.sideBannerSwiperPC .swiper-slide {
  height: 250px; /* 원하는 높이 */
}

.sideBannerSwiperPC .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

h2 .more-link {
  font-size: 0.85rem;
  color: #999;
  margin-left: 8px;
  text-decoration: none;
  vertical-align: middle;
}
h2 .more-link:hover {
  text-decoration: underline;
  color: #0055aa;
}

/* =====================
   푸터
===================== */
.footer {
  background: #2c353c;
  color: #ccc;
  padding: 30px 20px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left p {
  margin: 0.4rem 0;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.footer-icons {
  display: flex;
  gap: 0.5rem;
}

.footer-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #444;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 16px;
  transition: background 0.3s;
}

.footer-icons a:hover {
  background: #666;
}
/* =====================
   반응형 (모바일)
===================== */
@media (max-width: 768px) {
  .topbar,
  .navbar {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .content-area {
    flex-direction: column;
  }

  .right-column {
    order: -1;
  }

  .main-banner {
    height: auto !important;      /* 기존 100px 제거 */
    font-size: inherit;
    line-height: normal;
  }

  .main-banner img {
    height: auto !important;      /* 이미지 찌그러짐 방지 */
    max-height: 250px;            /* 필요 시 최대 높이 제한 */
    width: 100%;
    object-fit: cover;
    display: block;
  }

}

.small-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.small-banner img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* 서브 페이지용: 한 줄에 4개 */
.small-banners:not(.main-small-banners) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* 메인 페이지용: 한 줄에 1개씩 */
.main-small-banners {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-small-banners .small-banner img {
  width: 100%;
  height: 100px; /* 또는 120px, 필요시 조정 */
  height: auto;
  display: block;
}

/* 기본 상태: PC에서는 숨김 */
.mobile-bottom-banners {
  display: none;
  visibility: visible;
}

/* 모바일에서만 보이기 */
@media (max-width: 768px) {
  .mobile-bottom-banners {
    display: block !important;
    padding: 1rem;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 2rem;
  }

  .mobile-bottom-banners .side-banner {
  height: auto;             /*  자동 높이 */
  line-height: normal;      /*  텍스트 줄 수에 따라 자동 정렬 */
  padding: 0.5rem;          /*  여백 추가로 보기 좋게 */
  text-align: center;
  border-radius: 6px;
  }

  .mobile-bottom-banners .small-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /*  한 줄에 2개씩 */
    gap: 10px;
  }

  .mobile-bottom-banners .small-banner {
    height: auto; /* 필요시 auto 조정 */
    line-height: normal;
    border-radius: 6px;
    padding: 0;
  }

  .mobile-bottom-banners .small-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
}

/* Swiper 기본 화살표 색상 오버라이드 */
.swiper-button-next,
.swiper-button-prev {
  color: #aeaeae !important;
}

