/* ===============================
메인 페이지 전용 스타일
=============================== */

/* ── 공통 섹션 타이틀 ── */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.section-label {
  font-size: var(--font-seciton-title-sm);
  color: var(--color-primary-secondary);
}
.section-title {
  font-size: var(--font-seciton-title-lg);
  font-weight: var(--font-weight-bold);
  margin-top: 10px;
}
.service-section .container,
.notice-section .container {
  max-width: 1460px;
  margin: 0 auto;
}

/* ── 배너 섹션 ── */
.banner-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
}
#bannerSwiper {
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 배너 텍스트 오버레이 */
.banner-text-wrap {
  position: absolute;
  bottom: 100px;
  right: 40px;
  text-align: right;
  color: #fff;
  z-index: 10;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  text-wrap-mode: wrap;
  padding-left: 20px;
  word-break: keep-all;
}
.banner-text-main {
  font-size: var(--font-size-lg);
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.banner-text-sub {
  font-size: var(--font-size-base);
  opacity: 0.85;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* 배너 슬라이드 카운터 */
.banner-counter {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}
.banner-nav-btn {
  background: none;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#bannerPause {
  display: none;
}
#bannerPrev {
  margin-left: 20px;
}
#bannerPrev,
#bannerNext {
  font-size: 40px;
}

/* ── 공지사항 섹션 ── */
.notice-section {
  background: #fff;
}
.notice-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 35px;
  display: flex;
  gap: 60px;
}
.notice-section-header {
  margin-bottom: 40px;
  text-align: center;
}
.notice-left,
.notice-right {
  flex: 1;
}
.notice-right {
  /* width: 380px; */
  flex-shrink: 0;
}
.notice-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}
.notice-section-title {
  font-size: var(--font-seciton-title-lg);
  font-weight: var(--font-weight-bold);
}
.notice-tabs {
  display: flex;
  gap: 15px;
  align-items: center;
  height: 46px;
}
.notice-select-wrapper {
  display: none;
  font-size: 0;
  /* position: relative; */
}
.notice-select-wrapper select {
  font-size: var(--font-size-sm);
}
/* .notice-select-wrapper::after {
  content: '';
  display: block;
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 18px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 8l5 5 5-5" stroke="%231A4EA1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>') no-repeat center/contain;
}

.notice-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  padding-right: 36px;
  border-radius: 6px;
  font-size: var(--font-size-base);
  line-height: 1.6;
  height: 38px;
  min-width: 120px;
  cursor: pointer;
} */
.notice-tab {
  background: none;
  font-size: var(--font-seciton-title-sm);
  color: #aaa;
  cursor: pointer;
  border: none;
}
.notice-tab.active {
  color: #fff;
  font-weight: var(--font-weight-medium);
  background: var(--color-primary);
  border-radius: 30px;
  padding: 8px 15px;
}
.notice-more-link {
  margin-left: auto;
  font-size: var(--font-seciton-title-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}
.notice-panel {
  display: none;
}
.notice-panel.active {
  display: block;
}
.notice-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.notice-item:first-child {
  border-top: 1px solid #f0f0f0;
}
.notice-item:last-child {
  border-bottom: 2px solid #111;
}
.notice-item-title {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  width: 650px;
}
.notice-item-meta {
  font-size: var(--font-size-sm);
  color: #aaa;
  margin: 0;
}
.notice-empty {
  padding: 25px 0;
  text-align: center;
  font-size: var(--font-seciton-title-sm);
  color: #aaa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 2px solid #111;
}
/* 학사일정 */
.schedule-box {
  background: var(--background-secondary);
  height: 390px;
  padding: 24px 28px;
  overflow: auto;
}
.schedule-box::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}
.schedule-box::-webkit-scrollbar-thumb {
  background: #d4d8e0;
  border-radius: 4px;
}
.schedule-month {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: var(--font-seciton-title-sm);
}
.schedule-item {
  display: flex;
  gap: 30px;
  word-break: keep-all;
}
.sch-date {
  color: #6a6966;
}
.sch-title {
  color: #333;
}
.schedule-empty {
  padding: 48px 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: #aaa;
  list-style: none;
}

/* ── 주요 서비스 ── */
.service-section .service-icon-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  margin-top: 40px;
}
.service-section .service-icon-list li {
  height: 150px;
}
.service-section .service-section-header {
  text-align: center;
}
.service-icon-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  width: 116px;
  height: 116px;
  word-break: keep-all;
}

/* 플로팅 사이드 내비 */
.side-quick-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-right: none;
  width: 90px;
  background: #fff;
}
.side-quick-nav ul {
  margin: 0;
}
.side-quick-nav ul li {
  width: 90px;
  height: 58px;
  font-size: var(--font-size-sm);
  text-align: center;
  position: relative;
}
.side-quick-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.side-top-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-size: var(--font-size-sm);
  border: none;
}
.side-quick-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.side-quick-nav.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── PKNU NOW 뉴스레터 섹션 ── */
.pknu-now-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0px 35px;
}

.pknu-now-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 30px;
  /* min-height: 90px; */
}

.pknu-now-heading {
  text-align: center;
}

.pknu-now-label {
  display: block;
  font-size: var(--font-seciton-title-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-secondary);
  letter-spacing: 0.04em;
}

.pknu-now-title {
  margin-top: 10px;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-gray-dark);
}

.pknu-now-view-all {
  position: absolute;
  right: 0;
  font-size: var(--font-seciton-title-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.pknu-now-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  padding: 40px 50px;
  background: #eceff3;
  border-radius: 24px;
}

.pknu-now-visual {
  position: relative;
  min-width: 0;
}

.pknu-now-swiper {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.pknu-now-swiper .swiper-slide {
  height: 400px;
  /* aspect-ratio: 4 / 3; */
}

.pknu-now-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.pknu-now-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.pknu-now-arrow img {
  width: 10px;
  height: auto;
}

.pknu-now-arrow--prev {
  left: -20px;
}

.pknu-now-arrow--next {
  right: -20px;
}

.pknu-now-arrow--next img {
  transform: translateX(1px);
}

.pknu-now-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 0 4px;
}

.pknu-now-article-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: var(--font-weight-bold);
  line-height: 1.45;
  color: var(--color-gray-dark);
  margin-bottom: 24px;
}

.pknu-now-article-desc {
  font-size: clamp(17px, 1.3vw, var(--font-size-base));
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.pknu-now-read-more {
  display: inline-block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  text-decoration: none;
}

.pknu-now-read-more img,
.pknu-now-view-all img{
  width: 15px;
  vertical-align: middle;
}

.pknu-now-panel-footer {
  margin-top: auto;
  padding-top: 48px;
}

.pknu-now-pager {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 220px;
  margin-left: auto;
}

.pknu-now-pager-current,
.pknu-now-pager-total {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark);
  min-width: 24px;
}

.pknu-now-pager-total {
  color: var(--color-text-muted);
}

.pknu-now-pager-track {
  flex: 1;
  position: relative;
  height: 2px;
  background: #c5cad1;
  border-radius: 1px;
  overflow: hidden;
}

.pknu-now-pager-progress {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--color-gray-dark);
  border-radius: 1px;
  transition: width 0.4s ease;
}

/* ── 통계 섹션 ── */
.stats-section .container {
  background: url("../../images/front/middle-banner.png") center/cover no-repeat;
  height: 605px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.stats-section .container:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(0, 0, 0, 0.63);
  z-index: 1;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-direction: column;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: 75%;
}
.stats-grid-header h3.section-title {
  font-size: 42px;
  color: #fff;
  word-break: keep-all;
}
.stats-grid-header {
  text-align: center;
}
.stats-grid-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stats-grid-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}
.stat-col {
  flex: 1;
  border-right: 1px solid #cacaca;
  padding-left: 30px;
}
.stat-col:last-child {
  border-right: none;
}
.stat-col-name {
  font-size: var(--font-seciton-title-lg);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: 4px;
}
.stat-col-date {
  font-size: var(--font-size-base);
  color: #cacaca;
  margin-bottom: 16px;
}
.stat-col-num {
  color: rgba(255, 255, 255, 0.6);
}
.stat-count {
  font-size: 46px;
  font-weight: var(--font-weight-bold);
  color: #fff;
}
.stat-col.is-hidden {
  display: none;
}
.stats-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.stats-slider-controls.is-hidden {
  display: none;
}
.stats-slider-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.stats-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.stats-slider-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

/* ── 부경 커뮤니티 섹션 ── */
.community-section .section-title {
  text-align: center;
}
.community-subtitle {
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin: 20px 0 40px;
  line-height: 30px;
}
.social-icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.social-btn {
  width: 44px;
  height: 44px;
}
.community-card {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
}
.community-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}
.community-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 반응형 ── */
@media (max-width: 1335px) {
  .notice-item-title {
    display: inline-block;
    /* max-width: 550px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
  .stat-col-date {
    font-size: var(--font-seciton-title-sm);
  }
}
@media (max-width: 1200px) {
  .pknu-now-container {
    padding: 0 24px;
  }
  .pknu-now-card {
    gap: 36px;
    padding: 40px 44px;
  }
  .stats-grid {
    width: 86%;
    gap: 48px;
  }
  .stat-col {
    padding-left: 22px;
  }
  .stat-col-name {
    font-size: 28px;
  }
  .stat-count {
    font-size: 40px;
  }
  .notice-section-title {
    font-size: var(--font-size-base);
  }
  .notice-tab {
    font-size: var(--font-seciton-title-sm);
  }
  .service-section .service-icon-list {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 30px;
  }
  .main-container {
    gap: 100px;
  }
}
@media (max-width: 1098px) {
  .notice-inner {
    flex-direction: column;
  }
}
@media (max-width: 1095px) {
  .side-quick-nav {
    display: none;
  }
  .stats-grid-header h3.section-title {
    font-size: var(--font-seciton-title-lg);
  }
  .stat-col-name {
    font-size: var(--font-size-base);
  }
}
@media (max-width: 1035px) {
  .pknu-now-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 28px 40px;
  }
  .pknu-now-panel-footer {
    padding-top: 32px;
  }
  .pknu-now-pager {
    margin-left: 0;
  }
  .stats-section .container {
    height: auto;
    min-height: 605px;
    padding: 80px 24px;
  }
  .stats-grid {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
  }
  .stats-grid-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
    width: 550px;
    margin: 0 auto;
    text-align: center;
  }
  .stat-col:nth-child(2n) {
    border-right: none;
  }
  .notice-item-title {
    max-width: fit-content;
  }
  .service-section .service-icon-list {
    grid-template-columns: repeat(5, 1fr);
  }
  .stat-col {
    border-right: none;
    padding-left: 0;
  }
  .stat-col-date,
  .stat-col-name {
    margin-bottom: 8px;
  }
}
@media (max-width: 768px) {
  .pknu-now-top {
    margin-bottom: 32px;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .pknu-now-view-all {
    position: static;
  }
  .pknu-now-card {
    padding: 24px 20px 36px;
    border-radius: 18px;
    gap: 24px;
  }
  .pknu-now-article-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .pknu-now-article-desc {
    margin-bottom: 24px;
  }
  .pknu-now-arrow {
    width: 44px;
    height: 44px;
  }
  .stats-grid-header .section-title {
    font-size: 28px !important;
    line-height: 1.3;
  }
  .stat-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .community-section .container {
    padding: 0 18px;
  }
  .community-subtitle {
    margin: 14px 0 28px;
  }
  .social-icon-row {
    flex-wrap: wrap;
  }
  .service-section .service-icon-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .notice-item-title {
    max-width: 400px;
  }
  .main-container {
    gap: 80px;
  }
}
@media (max-width: 600px) {
  .service-section .service-icon-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid-track {
    /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
    width: auto;
  }
  .notice-tabs {
    display: none;
  }
  .notice-select-wrapper {
    display: block;
  }
  .pknu-now-swiper .swiper-slide {
    height: auto;
  }
}
@media (max-width: 480px) {
  .notice-inner {
    flex-direction: column;
  }
  .banner-text-main {
    font-size: var(--font-size-base);
  }
  .banner-text-sub {
    font-size: var(--font-seciton-title-sm);
  }
  .service-section .service-icon-list li {
    height: 100px;
  }
  .service-icon-list li a {
    width: 80px;
    height: 80px;
    font-size: var(--font-size-sm);
  }
  .notice-item-title {
    max-width: 350px;
    font-size: var(--font-size-sm);
  }
  .schedule-month,
  .section-title {
    font-size: var(--font-size-base);
  }
  .schedule-item,
  .section-label {
    font-size: var(--font-size-sm);
  }
}
@media (max-width: 400px) {
  .notice-item-title {
    max-width: 300px;
  }
  .notice-title-row {
    gap: 10px;
  }
}
