/* Banner Section */
.banner-section {
  width: 100%;
  max-width: 1280px;
  height: 450px; /* 734px - 아이콘 메뉴 섹션 높이(294px) */
  margin: 0 auto;
  padding: 40px 0 0;
  position: relative;
}

.banner-container {
  display: grid;
  grid-template-areas:
    "main side"
    "main quick";
  grid-template-columns: 780px 1fr;
  gap: 20px;
}

@media screen and (max-width: 1280px) {
  .banner-section {
    height: auto;
    padding-top: 20px;
  }
  .banner-container {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
  }
}

/* Main Banner */
.main-banner {
  grid-area: main;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-height: 520px;
}

.main-banner .swiper-pagination-bullet {
  --swiper-pagination-bullet-inactive-color: #fff;
}

.banner-slide-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide-container img.active {
  opacity: 1;
}

/* Side Banners */
.side-banners {
  grid-area: side;
  display: grid;
  grid-template-columns: repeat(2, 230px);
  gap: 20px;
}

.side-banner {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  width: 230px;
  height: 347px;
  background: #4dd0e1; /* 하늘색 배경 */
}

.side-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-banner:first-child {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5)
  );
}

.side-banner:nth-child(2) {
  background: #0891b2;
}

@media screen and (max-width: 480px) {
  .side-banners {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .side-banner {
    width: 50%;
    height: auto;
  }
}

/* Banner Content */
.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.banner-content h4 {
  margin-top: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
  white-space: nowrap; /* 줄바꿈 방지 */
}

.banner-title {
  margin-top: 20px;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
}

.banner-subtitle {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  color: #00225f;
  font-size: 15px;
  font-weight: 500;
}

.banner-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2c6086;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  margin-top: 12px;
}

.banner-button .arrow-icon {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.side-banner img[alt="납부(완납)확인서"] {
  width: 230px; /* 이미지 너비 감소 */
  height: auto; /* 비율 유지 */
  object-fit: contain; /* 이미지 비율 유지 */
  position: absolute;
  bottom: 0px; /* 아래쪽에 위치 */
  left: 50%;
  transform: translateX(-50%); /* 가운데 정렬 */
  z-index: 1;
}

@media screen and (max-width: 480px) {
  .banner-title {
    font-size: 16px;
  }
  .banner-title br {
    display: none;
  }
  .banner-subtitle {
    font-size: 13px;
    text-shadow: 1px 1px 2px #555;
  }
  .banner-content h4 {
    font-size: 16px;
  }
  .banner-button {
    font-size: 12px;
    text-shadow: 1px 1px 2px #555;
    padding: 8px;
  }
}

.quick-menu {
  grid-area: quick;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #4169e1;
  border-radius: 16px;
  padding: 20px;
  width: 480px;
  height: 153px;
  position: relative;
}

.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  width: 100%;
  height: 100%;
  justify-content: center;
  padding: 0 5px; /* 기본 패딩 */
}

/* 구분선 스타일 수정 */
.quick-menu-item:nth-child(1)::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 110px;
  background: rgba(255, 255, 255, 0.1);
}

.quick-menu-item:nth-child(2)::after {
  content: "";
  position: absolute;
  right: -8px; /* 살짝 오른쪽으로 */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 110px;
  background: rgba(255, 255, 255, 0.1);
}

.quick-menu-item:nth-child(1) {
  padding-right: 25px;
}

.quick-menu-item:nth-child(3) {
  padding-left: 25px;
}

.quick-menu-item:nth-child(2) {
  margin: 0 10px 0 0; /* 오른쪽 마진만 남기고 왼쪽 마진 제거 */
}

/*!* 가운데 아이템에만 더 큰 패딩 적용 *!*/
/*.quick-menu-item:nth-child(2) {*/
/*    padding: 0 25px; !* 양쪽 패딩 증가 *!*/
/*}*/

.quick-menu-item:last-child {
  border-right: none;
}

.quick-menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.quick-menu-item img {
  margin-bottom: 15px;
}

.quick-menu-item span {
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .quick-menu {
    padding: 0;
  }
  .quick-menu-item img {
    width: 40px;
    height: 40px;
  }
  .quick-menu-item:nth-child(1) {
    padding-right: 5px;
  }
  .quick-menu-item:nth-child(2) {
    margin: 0;
  }
  .quick-menu-item:nth-child(3) {
    padding-left: 5px;
  }
  .quick-menu-item span {
    font-size: 13px;
    white-space: wrap;
    padding: 0 10px;
    word-break: keep-all;
  }
}

/* Icon Menu Section */
.icon-menu-section {
  width: 100%;
  height: 294px; /* 아이콘 메뉴 전체 높이 */
  background-color: #f1f5ff;
  padding: 140px 0 0; /* 상단 패딩을 180px에서 140px로 줄임 */
  margin-top: 35px; /* 마진 제거 */
  justify-content: center; /* 수평 중앙 정렬 */
}

.icon-menu {
  width: 1200px; /* 전체 너비를 늘림 */
  height: 94px;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(6, 120px); /* 각 아이콘 영역 너비 증가 */
  gap: 60px; /* 갭 추가 */
  margin: 0 auto;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 0 10px; /* 좌우 패딩으로 최소한의 간격만 유지 */
}

.icon-item img {
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

.icon-item span {
  color: #868686;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap; /* 텍스트가 줄바꿈되지 않도록 */
}

@media screen and (max-width: 1280px) {
  .icon-menu-section {
    height: auto;
    padding: 60px 20px;
  }
  .icon-menu {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 40px;
  }
  .icon-item {
    flex: 30%;
  }
}

@media screen and (max-width: 480px) {
  .icon-item span {
    white-space: wrap;
    word-break: keep-all;
  }
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.indicator.active {
  background: #fff;
}

/* Bottom Banner Section */
.bottom-banner {
  width: 100%;
  height: 280px;
  background-color: #1e4bab;
  overflow: hidden;
}

.bottom-banner-img {
  max-width: 1920px;
  width: 100%;
  height: 280px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

@media screen and (max-width: 480px) {
  .bottom-banner {
    height: 200px;
  }
  .bottom-banner-img {
    width: 100%;
    height: 200px;
  }
}

/* Notice Section */
.info-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  width: 1280px;
  padding: 0;
  margin: 30px auto 0;
}

.notice-section {
  width: 590px;
  background: #fff;
  padding: 40px 0;
  border-radius: 16px;
}

/* Tabs */
.notice-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
}

.notice-tab {
  font-size: 18px;
  color: #666;
  cursor: pointer;
  position: relative;
  padding: 8px 0;
}

.notice-tab.active {
  color: #4169e1;
  font-weight: 600;
}

.notice-tab.active::before {
  /* after를 before로 변경 */
  content: "";
  position: absolute;
  bottom: -17px;
  top: -8px; /* 위치를 상단으로 변경 */
  left: 0;
  width: 100%;
  height: 2px;
  background: #4169e1;
}

.notice-tab::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4169e1;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Featured Notice */
.featured-notice {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.featured-notice h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.featured-notice p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 4px 0;
}

/* Notice List */
.notice-list {
  list-style: none;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.notice-item-title {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-date {
  color: #666;
  font-size: 14px;
}

/* Tab Functionality - Without JS */
.notice-tab:not(.active) ~ .featured-notice,
.notice-tab:not(.active) ~ .notice-list {
  display: none;
}

/* 탭 전환 로직 */
#tab1:checked ~ .notice-tab[for="tab1"],
#tab2:checked ~ .notice-tab[for="tab2"] {
  color: #4169e1;
  font-weight: 600;
}

#tab1:checked ~ .notice-tab[for="tab1"]::before,
#tab2:checked ~ .notice-tab[for="tab2"]::before {
  opacity: 1;
}

.tab-content {
  display: none;
}

body:has(#tab1:checked) #content1,
body:has(#tab2:checked) #content2 {
  display: block;
}

.tab-input {
  display: none;
}

.featured-notice {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 10px solid #c2d2de; /* 테두리 추가 */
}

.featured-notice h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.featured-notice p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 4px 0;
}

.alert-wrap {
  width: 586px;
  background: #fff;
  padding: 40px 0;
  border-radius: 16px;
}

.notice-tabs {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
}

.notice-tab {
  font-size: 18px;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 8px 0;
  font-weight: 600;
}

.notice-tab::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4169e1;
}

.info-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.info-left {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.info-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.dot.active {
  background: #fff;
}

.info-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-box {
  background: #334590;
  border-radius: 12px;
  padding: 24px;
  color: #fff;
}

.info-box-content h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between; /* 아이콘을 오른쪽으로 */
  font-size: 18px;
  margin-bottom: 12px;
}

.info-box-content h3 img {
  width: 24px;
  height: 24px;
  order: 1; /* 아이콘을 오른쪽으로 보내기 */
}

.info-box-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.info-box-content a {
  text-decoration: none;
}

.info-box button {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: 12px;
  margin-top: 40px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-box button img {
  width: 16px;
  height: 16px;
}

.info-box:last-child {
  background: #232f5f;
}

.info-box:last-child p {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 12px;
  margin-top: 40px;
  color: #fff;
  font-size: 16px;
}

@media screen and (max-width: 1280px) {
  .info-section {
    display: flex;
    width: 100%;
    padding: 0 20px;
    gap: 40px;
  }
}
@media screen and (max-width: 1024px) {
  .info-section {
    flex-wrap: wrap;
  }
  .notice-section {
    width: 100%;
    padding: 0;
  }
  .alert-wrap {
    width: 100%;
    padding-top: 0;
  }
}
@media screen and (max-width: 480px) {
  .info-links {
    display: flex;
    flex-wrap: wrap;
  }
  .info-left {
    width: 100%;
  }
  .info-right {
    width: 100%;
  }
}
