/* ================================================== */
/*                  CSS 변수 정의                     */
/* ================================================== */
:root {
  /* 색상 시스템 */
  --primary-blue: #134197;
  --secondary-blue: #3573e7;
  --light-blue: #f4f7ff;
  --text-dark: #333;
  --text-gray: #454545;
  --text-light: #6c757d;
  --bg-white: #fff;
  --bg-light: #f8f9fa;
  --bg-card: #f2f5f9;
  --border-gray: #c6c6c6;
  --border-light: #e9ecef;

  /* 간격 시스템 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;

  /* 폰트 크기 */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 32px;
  --font-4xl: 50px;

  /* 컨테이너 패딩 */
  --container-padding-desktop: 250px;
  --container-padding-tablet: 100px;
  --container-padding-mobile: 16px;

  /* 전환 효과 */
  --transition-smooth: all 0.3s ease;
  --transition-quick: all 0.2s ease;

  /* 그림자 */
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.1);

  /* 반경 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-circle: 50%;
}

/* ================================================== */
/*                  전역 리셋 & 기본                   */
/* ================================================== */
* {
  box-sizing: border-box;
}
.sub-header.bg-white {
  background: #ffffff !important;
}
/* ===================== quick side bar ============================*/
.quick-sidebar {
  position: fixed !important;
  top: 65% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  z-index: 9999 !important;
  font-family: sans-serif !important;
  width: auto !important;
  height: auto !important;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.quick-sidebar.is-visible {
  opacity: 1; /* 불투명하게 */
  visibility: visible; /* 보이도록 설정 */
  transform: translateY(-50%) translateX(0); /* 원래 위치로 이동 */
}
/* 자주찾는 메뉴 텍스트 라벨 */
.quick-label {
  writing-mode: vertical-rl !important;
  background-color: #0b388c !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
  padding: 12px 4px !important;
  text-align: center !important;
  line-height: 1.4 !important;
  /* 둥근 모서리 제거 */
  border-radius: 0 !important;
  z-index: 9999 !important;
}

/* 아이콘+텍스트 영역 */
.quick-menu {
  background: #3573e7;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 6px 0 0 6px;
}

/* 메뉴 항목 */
.quick-menu li {
  width: 80px;
  height: 58px; /* ✅ 줄임 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}

.quick-menu li:hover {
  background-color: #2459c4;
}

.quick-menu li img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.quick-menu li span {
  font-size: 12px; /* ✅ 조금 줄임 */
  color: white;
  font-weight: 500;
}
.sub-header.bg-white .nav-link,
.sub-header.bg-white .page-title,
.sub-header.bg-white .breadcrumb span {
  color: #000000 !important;
}
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
}

/* 컨테이너 */
.container,
.container-fluid {
  max-width: 100%;
}

/* 기본 링크 */
a {
  color: #0d6efd;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* ================================================== */
/*                  공통 컴포넌트                      */
/* ================================================== */

/* 카드 */
.card {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-xl);
}

/* 뱃지 */
.badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-lg);
  font-size: var(--font-sm);
  font-weight: 500;
  min-width: 58px;
  text-align: center;
}

.badge-notice {
  background-color: #eaeaea;
  color: var(--text-dark);
}

.badge-agriculture {
  background-color: #e9f6e5;
  color: #3b6927;
}

.badge-financial {
  background-color: #e4ebf6;
  color: var(--primary-blue);
}

.badge-default {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* 버튼 */
.btn-primary {
  background-color: var(--primary-blue);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.btn-primary:hover {
  background-color: #0f3278;
}

/* ================================================== */
/*                     헤더                          */
/* ================================================== */
.navbar-brand {
  font-weight: 700;
}

/* 기본 메뉴 제어 (데스크톱) */
#pcMenu {
  display: block;
}

#tabletMenu {
  display: none;
}

/* 네비게이션 메뉴 반응형 제어 */

.nav-menu-mobile {
  display: none;
}

/* 햄버거 메뉴 버튼 반응형 제어 */
.menu-toggle {
  display: none;
}

/* 태블릿 전체 메뉴 스타일 */
#tabletMenu {
  overflow: hidden;
}

#tabletMenu .offcanvas-body {
  overflow: hidden;
}

#tabletMenu .sub-menu {
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  padding-bottom: 20px;
}

#tabletMenu .sub-menu::-webkit-scrollbar {
  width: 6px;
}

#tabletMenu .sub-menu::-webkit-scrollbar-track {
  background: transparent;
}

#tabletMenu .sub-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#tabletMenu .child-menu {
  display: none;
  background-color: #f8f9fa;
  padding: 0;
  margin: 0;
}

#tabletMenu .child-menu-item a {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 40px;
  color: #454545 !important;
  font-size: 14px !important;
  text-decoration: none;
  position: relative;
  transition: background-color 0.2s ease;
}

#tabletMenu .child-menu-item a:hover {
  background-color: #e9ecef;
}

#tabletMenu .child-menu-item a::before {
  content: "•";
  color: #333;
  font-weight: bold;
  margin-right: 8px;
  font-size: 16px;
}

.header-logo {
  width: 186px;
  height: 40px;
  object-fit: contain;
}

.nav-link {
  transition: var(--transition-smooth);
}

.nav-link:hover {
  text-decoration: none;
}

header:not(.bg-white) .nav-link:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

header.bg-white .nav-link:hover {
  color: var(--primary-blue) !important;
}

/* 메가메뉴 */
.nav-item-has-megamenu {
  position: relative;
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  z-index: 1000;
  display: none;
}

.nav-item-has-megamenu:hover .megamenu {
  display: block;
}

.mega-menu-panel {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1020;
  max-height: 688px;
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
}

.mega-menu-panel .col-lg-2 h5 {
  padding-left: var(--spacing-xl);
}

/* 서브 헤더 */
.sub-header {
  background: url("/img/subHeader/subHeaderBgPc.png") no-repeat center top;
  background-size: cover;
  height: 400px;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.sub-header .container-fluid {
  position: relative;
  z-index: 10;
  height: 80px;
}

/* 전체 메뉴 */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #132897;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem;
}

/* ================================================== */
/*                  메인 히어로 섹션                   */
/* ================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("/img/mainPage/main1.png") no-repeat center center;
  background-size: cover;
  filter: brightness(0.9);
  z-index: -1;
}

.hero-bg-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}

.hero-text-container {
  position: absolute;
  top: 74%;
  right: 0;
  z-index: 3;
  transform: translateY(-50%);
  padding-right: 100px;
}

.hero-main-text {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: right;
}






.hero-scroll-btn {
  width: 220px;
  height: 110px;
  cursor: pointer;
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  transition: var(--transition-smooth);
}

.hero-scroll-btn:hover {
  transform: translateY(-5px);
}

/* ================================================== */
/*                 Section01 메인 컨텐츠               */
/* ================================================== */
.section01 {
  background-color: var(--bg-white);
  padding: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.section01 .container-fluid {
  max-width: 1920px;
  padding: 0 var(--container-padding-desktop);
  margin: 0 auto;
}

/* 메인 타이틀 */
.main-title-section {
  display: flex;
  align-items: flex-start;
}

.main-title-section p {
  font-size: var(--font-4xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

.description-section {
  display: flex;
  align-items: flex-start;
}

.description-section p {
  font-size: var(--font-xl);
  line-height: 1.4;
  margin: 0;
}

/* 서비스 카드 그리드 */
.services-container {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}

/* 기존 구조 유지 + 정사각형 적용 */
.service-card {
  width: 200px; /* 기존보다 살짝 줄임 */
  height: 200px; /* ✅ 정사각형으로 맞춤 */
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm); /* 여백 조절 */
}

/* 아이콘 wrapper 크기도 조금 줄이기 */
.service-card .icon-wrapper {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-sm);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-card .icon-wrapper {
  width: 86px;
  height: 86px;
  background-color: var(--bg-white);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.service-card span {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

/* Notice 섹션 */

.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
  white-space: nowrap;
}

.notice-section {
  background-color: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  height: 515px;
}

.nav-tabs-custom {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.tab-item {
  cursor: pointer;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.tab-item.active {
  color: var(--text-dark);
  border: 1px solid var(--secondary-blue);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 5px;
}

.tab-item .desktop-text {
  display: inline;
}

.tab-item .mobile-text {
  display: none;
}

.btn-plus {
  width: 30px;
  height: 30px;
  background-color: #f3f3f3;
  border: none;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.notice-title {
  font-size: var(--font-md);
  color: var(--text-gray);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 마트소식 섹션 */
.mart-news-section {
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  height: 352px;
}

.mart-news-section::after {
  content: "";
  display: table;
  clear: both;
}

.mart-news-title {
  font-size: var(--font-2xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
  display: inline-block;
}

.slider-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  float: right;
  margin-bottom: 20px;
  line-height: 1;
}

.slide-count {
  font-size: var(--font-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.control-buttons {
  display: flex;
  align-items: center;
}

.current-slide {
  color: var(--secondary-blue);
}

.total-slides {
  color: var(--text-dark);
}

.mart-news-slider {
  height: 225px;
  overflow: hidden;
  clear: both;
}

.slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: var(--transition-smooth);
}

.slide {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}

.slide-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 농협인터넷뱅킹 섹션 */
.banking-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  height: 144px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banking-content {
  flex: 1;
}

.banking-title {
  font-size: var(--font-2xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.title-black {
  color: var(--text-dark);
}

.title-blue {
  color: var(--primary-blue);
}

.banking-description {
  font-size: var(--font-xl);
  color: var(--text-dark);
}

.btn-banking {
  width: 157px;
  height: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #134197;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-banking span {
  position: absolute;
  left: 37px;
  top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.btn-banking svg {
  position: absolute;
  left: 108px;
  top: 18px;
  width: 12px;
  height: 24px;
}

/* ================================================== */
/*                Section02 소셜미디어                 */
/* ================================================== */
.section02 {
  background-color: var(--light-blue);
  padding: var(--spacing-sm) 0 var(--spacing-xl) 0;
  overflow: hidden;
  height: auto;
  min-height: fit-content;
}

.section02 .container-fluid {
  max-width: 1920px;
  padding: 0 var(--container-padding-desktop);
  margin: 0 auto;
  overflow: hidden;
}

.section02-title {
  margin-top: 20px; /* ✅ 여백 확보 */
  font-size: var(--font-3xl);
  font-weight: 700;
  margin-bottom: 50px;
}

.section02-title .title-social {
  color: var(--primary-blue);
}

.section02-title .title-media {
  color: var(--text-dark);
}

.video-container {
  width: 100%;
  height: 310px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.video-description {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 48px var(--spacing-lg);
  height: 310px;
  margin-left: -150px;
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.video-title {
  font-size: var(--font-2xl);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 25px 142px;
}

.divider-line {
  width: 340px;
  height: 1px;
  margin: 0 0 25px 142px;
}

.video-subtitle {
  font-size: var(--font-lg);
  color: var(--text-dark);
  margin: 0 0 50px 142px;
}

.video-link {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-left: 142px;
}

.link-text {
  font-size: var(--font-lg);
  color: var(--primary-blue);
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
}

.social-button {
  width: 250px;
  height: 52px;
  background: linear-gradient(90deg, #1d4081 0%, var(--secondary-blue) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 26px;
  cursor: pointer;
  transition: var(--transition-quick);
  text-decoration: none;
}

.social-button:hover {
  transform: translateY(-2px);
}

.social-button svg {
  margin-right: 12px;
  flex-shrink: 0;
}

.social-button span {
  font-size: var(--font-sm);
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

/* 유튜브 버튼의 특별 스타일 */
.youtube-btn span {
  font-size: 12px;
  line-height: 1.1;
}

/* ================================================== */
/*               Section03 농협 쇼핑몰                 */
/* ================================================== */
.section03 {
  background-color: var(--bg-white);
  padding: var(--spacing-xl) 0 100px 0;
}

.section03 .container-fluid {
  max-width: 1920px;
  padding: 0 var(--container-padding-desktop);
  margin: 0 auto;
}

.section03-title {
  font-size: var(--font-3xl);
  font-weight: 700;
  margin-bottom: 66px;
}

.section03-title .title-nh {
  color: var(--text-dark);
}

.section03-title .title-shop {
  color: var(--primary-blue);
}

.contact-info {
  height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-label {
  font-size: var(--font-xl);
  color: var(--text-dark);
}

.contact-number {
  font-size: var(--font-3xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.btn-shop {
  width: 240px;
  height: 50px;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #134197;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-shop span {
  position: absolute;
  left: 31px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.btn-shop svg {
  position: absolute;
  left: 183px;
  top: 12px;
  width: 26px;
  height: 26px;
}

.shop-images {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.shop-image-item {
  width: 300px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.shop-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================== */
/*                     푸터                          */
/* ================================================== */
footer {
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-xl) 0;
}

footer .container-fluid {
  max-width: 1920px;
  padding: 0 var(--container-padding-desktop);
  margin: 0 auto;
}

footer .footer-logo {
  width: 196px;
  height: 42px;
}

footer .footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: flex-end;
}

footer .footer-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
}

footer .footer-details {
  display: flex;
  gap: 32px;
}

footer .top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  z-index: 1000;
}

/* ================================================== */
/*                태블릿 (1024px 이하)                 */
/* ================================================== */
@media (max-width: 1765px) {
  /* 헤더 */
  .header-logo {
    width: 140px;
    height: 30px;
  }

  /* 메뉴 제어 */
  #pcMenu {
    display: none !important;
  }

  #tabletMenu {
    display: block !important;
  }

  /* 네비게이션 메뉴 숨김 */
  .nav-menu-mobile {
    display: flex !important;
  }

  /* 햄버거 메뉴 버튼 표시 */
  .menu-toggle {
    display: flex !important;
  }

  /* 히어로 */
  .hero-bg-container {
    background-position: center 15%;
  }

  .hero-text-container {
    top: 65%;
    padding: 0 60px;
  }

  .hero-main-text {
    font-size: 2.5rem;
    text-align: center;
  }

  .hero-scroll-btn {
    width: 180px;
    height: 90px;
  }

  /* Section01 */
  .section01 .container-fluid {
    padding: 0 var(--container-padding-mobile);
  }

  .section01 .row {
    gap: 0;
    margin: 0;
  }

  .section01 .row .col-auto {
    padding: 0;
  }

  .main-title-section {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
  }

  .main-title-section p {
    font-size: 30px !important;
    text-align: left !important;
    width: 100%;
    word-break: keep-all;
  }

  .main-title-section p span {
    font-size: 30px !important;
    text-align: left !important;
  }

  .description-section {
    flex: 1;
    max-width: 45%;
    padding-left: 40px;
    display: flex;
    justify-content: flex-end;
  }

  .description-section p {
    font-size: 14px !important;
    text-align: right !important;
    width: 100%;
    word-break: keep-all;
  }

  .description-section p span {
    font-size: 14px !important;
    text-align: right !important;
  }

  .services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--spacing-xl);
    justify-items: center;
  }

  .service-card {
    width: 180px;
    height: 160px;
  }

  .service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .service-card span {
    font-size: var(--font-lg);
  }

  /* 배너 섹션 양쪽 여백 조정 */
  .banner-section .container-fluid {
    padding: 0 var(--container-padding-mobile) !important;
  }

  /* Notice 섹션 레이아웃 재정의 */
  .section01 .row.g-4.mb-5 {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: 0 !important;
  }

  .section01 .row.g-4.mb-5 .col-12.col-lg-6:first-child {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .section01 .row.g-4.mb-5 .col-12.col-lg-6:last-child {
    width: 100%;
    max-width: 100%;
    flex: none;
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
  }

  .notice-section {
    padding: 30px;
    height: auto;
    margin-bottom: var(--spacing-sm);
  }

  .notice-section .d-flex.justify-content-between {
    position: relative;
    align-items: center;
  }

  .notice-section .nav-tabs-custom {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
  }

  .mart-news-section {
    padding: 30px;
    height: auto;
    flex: 7;
  }

  .banking-section {
    padding: 30px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    flex: 3;
  }

  .banking-description {
    font-size: 15px !important;
    line-height: 1.4;
    max-width: 140px;
    word-break: keep-all;
  }

  .btn-banking {
    width: 176px;
    height: 56px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #134197;
  }

  .btn-banking span {
    position: absolute;
    left: 49px;
    top: 17px;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: left;
    color: #fff !important;
  }

  .btn-banking svg {
    width: 11px !important;
    height: 22px !important;
    position: absolute;
    left: 116px;
    top: 17px;
  }

  /* Section02 */
  .section02 {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .section02 .container-fluid {
    padding: 0 var(--container-padding-mobile);
    overflow: hidden;
  }

  .section02-title {
    font-size: 28px;
  }

  .section02 .row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  /* 상단 영역 - 플레이어와 소개글을 좌우 배치 */
  .section02 .row .col-12.col-lg-4 {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .section02 .row .col-12.col-lg-5 {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  /* 하단 SNS 영역 - 전체 너비 */
  .section02 .row .col-12.col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .video-container {
    height: 250px;
    margin-bottom: 0;
  }

  .video-description {
    height: auto;
    margin-left: 0;
    padding: 30px;
  }

  .video-title,
  .video-subtitle,
  .video-link,
  .divider-line {
    margin-left: 0;
  }

  .social-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    margin-top: var(--spacing-md);
  }

  .social-button {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    min-height: 20px;
  }

  .social-button svg {
    width: 16px;
    height: 16px;
  }

  .social-button span {
    font-size: 9px;
    line-height: 1.2;
    word-break: keep-all;
  }

  /* 태블릿 유튜브 버튼 특별 스타일 */
  .youtube-btn span {
    font-size: 8px;
    line-height: 1.1;
  }

  /* Section03 */
  .section03 .container-fluid {
    padding: 0 var(--container-padding-mobile);
  }

  .section03-title {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
  }

  .section03 .row.align-items-center {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: stretch !important;
  }

  /* 문의전화 영역 - 내부 요소들을 좌우로 배치 */
  .section03 .row.align-items-center .col-12.col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .contact-info {
    height: auto;
    margin-bottom: 0;
    display: block;
  }

  .contact-info .contact-label {
    margin-bottom: 0;
    text-align: left;
  }

  .contact-info .contact-number {
    margin-bottom: 0;
    text-align: left;
    display: inline-block;
  }

  .contact-info .btn-shop {
    float: right;
    margin-left: var(--spacing-lg);
  }

  .contact-info .btn-shop {
    width: 210px;
    height: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #134197;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-info .btn-shop span {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px !important;
    font-weight: 600 !important;
    text-align: left;
    color: #fff !important;
  }

  .contact-info .btn-shop svg {
    width: 26px !important;
    height: 26px !important;
    position: absolute;
    left: 164px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* 이미지 영역 */
  .section03 .row.align-items-center .col-12.col-lg-8 {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .shop-images {
    gap: var(--spacing-lg);
    justify-content: flex-start;
  }

  .shop-image-item {
    width: calc(33.333% - 16px);
    height: 200px;
  }

  /* 푸터 */
  footer {
    padding: 60px 0;
  }

  footer .container-fluid {
    padding: 0 var(--container-padding-mobile);
  }

  footer .footer-logo {
    width: 160px;
    height: 34px;
  }

  footer .footer-info {
    gap: var(--spacing-md);
    justify-content: flex-start;
    text-align: left;
  }

  footer .footer-details {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    line-height: 1.4;
    text-align: left;
  }

  footer .footer-policy-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  footer .footer-policy-links .btn {
    width: auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}


@media (max-width: 1024px) {
  /* 태블릿/모바일 메뉴는 이 구간에서만 보이게! */
}

/* ================================================== */
/*                모바일 (767px 이하)                  */
/* ================================================== */
@media (max-width: 767px) {
  /* 전체 페이지 overflow 제어 */
  body {
    overflow-x: hidden;
    position: relative;
    width: 100vw;
    max-width: 100vw;
  }

  /* 헤더 */
  .header-logo {
    width: 90px;
    height: 20px;
  }

  .navbar {
    padding: 0.5rem 0;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  /* 메뉴 제어 */
  #pcMenu {
    display: none !important;
  }

  #tabletMenu {
    display: block !important;
  }

  /* 네비게이션 메뉴 숨김 */
  .nav-menu-mobile {
    display: flex !important;
  }

  /* 햄버거 메뉴 버튼 표시 */
  .menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 1000;
  }

  .container,
  .container-fluid {
    padding: 0 var(--container-padding-mobile);
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  /* 히어로 */
  .hero-bg-container {
    background-position: center;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  .hero-text-container {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    padding: 0 16px;
    text-align: center;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-main-text {
    font-size: 1.25rem;
    text-align: center !important;
    line-height: 1.3;
    margin-bottom: 0;
    padding-bottom: 0;
    word-break: keep-all;
  }

  .hero-scroll-btn {
    width: 140px;
    height: 70px;
    margin-top: 20px;
  }

  /* Section01 */
  .section01 {
    padding: 60px 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section01 .row {
    display: block !important;
    flex-direction: unset !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  .section01 .row .col-auto {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .section01 .row .col-auto:has(.description-section) {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-title-section {
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 30px auto !important;
    flex: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: block !important;
  }

  .main-title-section p {
    font-size: 22px;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    word-break: keep-all !important;
    line-height: 1.3;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .main-title-section p span {
    text-align: center !important;
    display: inline !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  .description-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
  }

  .description-section * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .description-section p {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* description-section이 포함된 모든 컨테이너 숨김 */
  .col-auto:has(.description-section),
  .col:has(.description-section),
  .col-12:has(.description-section),
  .col-lg-6:has(.description-section) {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 30px 0;
  }

  .service-card {
    width: 100%;
    height: 120px;
    position: relative;
  }

  .service-card .icon-wrapper {
    width: 45px;
    height: 45px;
    margin-bottom: var(--spacing-xs);
  }

  .service-card span {
    font-size: 12px;
    line-height: 1.2;
  }

  /* Notice */
  .notice-section {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }

  .notice-section h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-xl);
  }

  .nav-tabs-custom {
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
  }

  .tab-item .desktop-text {
    display: none;
  }

  .tab-item .mobile-text {
    display: inline;
  }

  .tab-item {
    font-size: 11px;
    padding: 4px var(--spacing-xs);
  }

  .btn-plus {
    width: 24px;
    height: 24px;
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
  }

  .notice-list {
    gap: 15px;
  }

  .notice-item {
    gap: 10px;
    padding: 10px 0;
  }

  .notice-item .badge {
    font-size: var(--font-xs);
    padding: 5px var(--spacing-sm);
    min-width: 42px;
  }

  .notice-item .notice-title {
    font-size: 12px;
    line-height: 1.3;
  }

  /* 마트소식 & 뱅킹 */
  .mart-news-section,
  .banking-section {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }

  .mart-news-title,
  .banking-title {
    font-size: var(--font-xl);
    margin-bottom: 15px;
  }

  .banking-description {
    font-size: var(--font-md);
    margin-bottom: 15px;
  }

  .mart-news-slider {
    height: 160px;
    margin-top: 15px;
  }

  /* Section02 */
  .section02 {
    padding: 0 0 60px 0;
    overflow: hidden;
    max-width: 100vw;
  }

  .section02-title {
    font-size: var(--font-2xl);
    margin-bottom: 30px;
  }

  .section02 .row {
    flex-direction: column;
  }

  .video-container {
    height: 180px;
    margin-bottom: var(--spacing-xl);
  }

  .video-description {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }

  .video-title {
    font-size: var(--font-lg);
    margin-bottom: 15px;
  }

  .video-subtitle {
    font-size: var(--font-sm);
    margin-bottom: var(--spacing-xl);
  }

  .social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .social-button {
    width: 100%;
    height: 45px;
    padding: 0 var(--spacing-xs);
  }

  .social-button:nth-child(5) {
    grid-column: span 2;
  }

  .social-button svg {
    width: var(--spacing-sm);
    height: var(--spacing-sm);
    margin-right: 6px;
  }

  .social-button span {
    font-size: var(--font-sm);
    line-height: 1.2;
  }

  /* 모바일 유튜브 버튼 특별 스타일 */
  .youtube-btn span {
    font-size: 11px;
    line-height: 1.1;
  }

  /* Section03 */
  .section03 {
    padding: 60px 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section03-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-xl);
  }

  .section03 .row {
    flex-direction: column;
  }

  .contact-info {
    height: auto;
    margin-bottom: 30px;
  }

  .contact-label {
    font-size: var(--font-lg);
  }

  .contact-number {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-xl);
  }

  .btn-shop {
    display: none;
  }

  .shop-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .shop-image-item {
    width: 100%;
    height: 150px;
  }

  .shop-images::after {
    content: "쇼핑몰 바로가기";
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: white;
    font-size: var(--font-md);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    height: 150px;
    text-decoration: none;
  }

  /* 푸터 */
  footer {
    padding: var(--spacing-lg) 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  footer .container-fluid {
    padding: 0 var(--container-padding-mobile);
    max-width: 100vw;
    overflow-x: hidden;
  }

  footer .footer-logo {
    width: 120px;
    height: 26px;
  }

  footer .footer-policy-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
    justify-content: center;
  }

  footer .footer-policy-links .btn {
    font-size: 11px;
    padding: 6px var(--spacing-xs);
  }

  footer .footer-info,
  footer .footer-details {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
    justify-content: center;
  }

  footer .top-button {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 45px;
    height: 45px;
  }

  /* 추가 overflow 제어 */
  * {
    max-width: 100vw;
  }

  .row {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .col,
  .col-12,
  .col-lg-6,
  .col-lg-4,
  .col-lg-5,
  .col-lg-3 {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* 20250709  태블릿용 헤더 메뉴바 하위 메뉴 아래 여백 발생 제거용*/
.sub-menu-content .sub-menu-item:last-of-type {
  border-bottom: none !important;
}

.sub-menu-content .sub-menu-item:last-of-type > a {
  padding-bottom: 0.5rem !important;
}

.sub-menu-content .child-menu:empty {
  display: none !important;
}
/* 20250709  태블릿용 헤더 메뉴바 하위 메뉴 아래 여백 발생 제거용*/

/* 2025 0709   Notice 모바일 죽탱이 갈기고 카테고리 걍 없앰*/
@media (max-width: 580px) {
  .nav-tabs-custom {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .quick-sidebar {
    display: none !important;
  }
}

/* 2025 0709   Notice 모바일 죽탱이 갈기고 카테고리 걍 없앰*/

/* 2025 0709 마트 소식 */
@media (max-width: 619px) {
  .section01 .row.g-4.mb-5 {
    display: flex !important;
    flex-direction: column !important;
  }
  .section01 .row.g-4.mb-5 > .col-12.col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
  }
}
/* 2025 0709 마트 소식 */

/* 2025 0709 유튜브 및 홍보 동영상 */
@media (max-width: 767px) {
  .section02 .row {
    display: block !important;
  }

  .section02 .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .video-container {
    width: 100% !important;
    aspect-ratio: 16 / 9;
  }

  .video-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 10px;
  }

  .video-description {
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
  }
}
/* 2025 0709 유튜브 및 홍보 동영상 */

/*  2025 0709 푸터쪽 슬라이드 */
@media (max-width: 767px) {
  .banner-section .col-2.text-end {
    display: none !important;
  }

  .banner-section .col-8 {
    width: calc(100% - 90px) !important;
    flex: 0 0 calc(100% - 90px);
    max-width: calc(100% - 90px);
  }

  .banner-section .banner-scroll-container {
    overflow-x: hidden;
    padding-right: 0;
  }

  .banner-section .banner-item {
    flex: 0 0 50%; /* 2개만 보여지게 */
    box-sizing: border-box;
  }

  /* 버튼 우측 정렬, 배너와 같은 줄 */
  .banner-section .col-2:last-child {
    width: 80px !important;
    flex: 0 0 90px !important;
    max-width: 80px !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
  }

  /* 버튼 크기 줄이기 */
  .banner-section button {
    width: 16px !important;
    height: 28px !important;
    padding: 0 !important;
    margin-left: 1px;
  }

  .banner-section button img {
    width: 12px;
    height: 12px;
  }
}
/*  2025 0709 푸터쪽 슬라이드 */

/* 2025 0709 맨 하단 홈페이지 이용약관 */
@media (max-width: 767px) {
  footer .footer-policy-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2개씩 */
    gap: 8px !important;
    justify-items: center !important;
    padding: 0 !important;
  }

  footer .footer-policy-links .btn {
    width: 100% !important;
    font-size: 12px !important;
    padding: 6px 4px !important;
    white-space: nowrap !important;
    text-align: center !important;
    border-radius: 20px !important;
  }
}

/* 2025 0709 맨 하단 홈페이지 이용약관 */

/* 20250711 메인페이지 장바구니 아이콘 및 메뉴 아이콘 수정 */
#shopIcon,
#menuWhiteIcon,
#menuIcon {
  width: 32px !important;
  height: 32px !important;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  #shopIcon,
  #menuWhiteIcon,
  #menuIcon {
    width: 24px !important;
    height: 24px !important;
  }
  .icon-img {
    width: 24px !important;
    height: 24px !important;
  }
  #shopBtn,
  #menuBtn {
    width: 36px !important;
    height: 36px !important;
  }
}
/* 20250711 메인페이지 장바구니 아이콘 및 메뉴 아이콘 수정 */

/*20250711 서브헤더 메뉴에 따른 제목 */
.sub-header-title-wrapper {
  position: absolute;
  right: 350px; /* 오른쪽 여백 조절 */
  top: 350%; /* 필요하면 이 값 조절 */
  transform: translateY(-50%);
  text-align: right !important;
  z-index: 10;
  color: white; /* 텍스트 색상 하얗게 */
}

.sub-header-title-wrapper .page-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 8px 0;
}

.sub-header-title-wrapper .breadcrumb {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

.sub-header-title-wrapper .breadcrumb span:not(:last-child)::after {
  content: ">";
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.6);
}

/*20250711 서브헤더 메뉴에 따른 제목 */

/*20250714 서브헤더 태블릿 & 모바일 위치변경 및 숨김 */
@media (max-width: 1024px) and (min-width: 768px) {
  .sub-header-title-wrapper {
    right: 50px; /* 기존보다 오른쪽으로 이동 */
    top: 360%; /* 필요하면 위치 소폭 조정 */
  }

  .sub-header-title-wrapper .page-title {
    font-size: 2rem; /* 글씨 크기 ↓ */
  }

  .sub-header-title-wrapper .breadcrumb {
    font-size: 0.8rem; /* 글씨 크기 ↓ */
  }
}

@media (max-width: 767px) {
  .sub-header-title-wrapper {
    display: none;
  }
}
/*20250714 서브헤더 태블릿 & 모바일 위치변경 및 숨김 */

/* nav-menu-desktop 중복 미디어쿼리/스타일 모두 삭제 후 아래 코드만 남김 */
@media (max-width: 1024px) {
  .nav-menu-desktop {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100vw;
  }
  .nav-menu-desktop .navbar-nav {
    justify-content: space-evenly !important;
    width: 100% !important;
  }
  .nav-menu-desktop .nav-link {
    font-size: 14px !important;
    letter-spacing: -2.5px !important;
    min-width: 0 !important;
  }
}
@media (max-width: 1023px) {
  .nav-menu-desktop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
  }
}
