/* ============================================================
   HEADER / NAVBAR
============================================================ */

/* Header Context */
header {
  position: relative;
  z-index: 2000;
}

/* Fixed Navbar */
#mainNavbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* Navigation 기본 스타일 */
.navbar-nav .nav-item { position: relative; }
.nav-link { color: #333; }
.nav-link:hover { color: #4caf50; }

/* Dropdown toggle 아이콘 제거 */
.right-nav-link.dropdown-toggle::after {
  display: none !important;
}

/* 1차 메뉴에만 밑줄 애니메이션 적용 */
.navbar-nav > .nav-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #4caf50;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

/* hover 시 확장 */
.navbar-nav > .nav-item > a:hover::after {
  width: 100%;
}

/* 2차 메뉴(서브메뉴)는 밑줄 효과 제거 */
.submenu li a::after {
  content: none !important;
}


/* ============================================================
   NAV – SUBMENU
============================================================ */
.submenu-bg {
  position: absolute;
  top: 100%; left: 0;
  width: 100vw;
  /* background: #f8f9fa; */
  background: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-20px);
  height: 0;
  transition: transform .25s ease, opacity .25s ease, height .25s ease;
  z-index: 999;
}

.navbar-nav .submenu {
  position: absolute;
  top: 100%;
  left: -27px;
  width: 100vw;
  padding: 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: transform .25s ease, opacity .25s ease;
  z-index: 1000;
}

.navbar-nav:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li { margin: 0.5rem 0; }
.submenu li a {
  color: #fff;
  font-size: 1.2rem;
}
.submenu li a:hover {
  color: #4caf50;
}

/* 모바일: submenu 완전 비활성화 */
@media (max-width: 991px) {
  .submenu-bg,
  .submenu {
    position: static !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    height: 0 !important;
  }
}


/* ============================================================
   TOP RIGHT (LOGIN / UTIL)
============================================================ */
.topright {
  display: flex;
  font-size: 1.1rem;
  z-index: 1001;
  padding-top: 16px;
}
.topright a { color: #666; }
.topright ul {padding-left: 1rem !important;}
@media (max-width: 991px) {
  .topright {
    position: absolute;
    right: 10px;
	padding-top: 17px;
  }
  .me-5 {margin-right: 2rem !important;}
}


/* ============================================================
   HAMBURGER / SIDE MENU (모바일)
============================================================ */
.hamburger {
  position: fixed !important;
  right: 2rem;
  top: .8rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100 !important;
}

.hamburger span.menu,
.hamburger span.close {
  position: absolute;
  top: 0; left: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.hamburger span.menu { opacity: 1; }
.hamburger span.close { opacity: 0; transform: scale(0); }

.hamburger.open span.menu {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
.hamburger.open span.close {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: #fff;
}

/* Side menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px); 
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1010;
  padding: 1rem;
  overflow-y: auto;
}
.side-menu.open { right: 0; }

/* Side menu items */
.side-menu > ul > li {
  margin-bottom: 5px;
}
/* 1차 메뉴 스타일 */
.side-menu > ul > li > a {
  padding: 12px 15px;
  font-size: 1.05rem;

  color: #f5f5f5;                /* 🔹 밝은 글씨 */
  font-weight: 500;

  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
/* 1차 메뉴 Hover */
.side-menu > ul > li > a:hover {
  background: rgba(255,255,255,0.15);  /* 🔹 밝은 배경 강조 */
  color: #4caf50;                      /* 🔹 강조 색상 (녹색) */
}
/* 2차 메뉴(사이드 서브메뉴) */
.side-submenu {
  list-style: none;
  padding-left: 1.2rem;
  margin-top: 4px;
  display: none;
}

.side-submenu li a {
  display: block;
  padding: 6px 0;
  font-size: 1.1rem;
  color: #e0e0e0;      /* 🔹 서브메뉴는 조금 연한 색 */
  transition: color 0.2s ease;
}

.side-submenu li a:hover {
  color: #4caf50;      /* 🔹 서브메뉴 hover 강조 */
}


.menu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 메뉴를 여닫는 아이콘 */
.menu-toggle .submenu-icon {
  color: #ccc;
}

/* 서브 상단 비주얼 */
.sub-visual {position: relative;padding: 150px 0 50px;color: #fff;margin-top:70px;}
.sub-visual::before {content: "";position: absolute;inset: 0;background: url('/images/sub_img.jpg') center/cover no-repeat;opacity: 0.85;}
.sub-visual::after {content: "";position: absolute;inset: 0;background: linear-gradient(to right,rgba(12, 37, 23, 0.9),rgba(24, 66, 40, 0.85)),linear-gradient(135deg,rgba(17, 78, 44, 0.8),rgba(34, 102, 52, 0.8));opacity: 0.52;}
.sub-visual-inner {position: relative;z-index: 1;max-width: var(--max-width);margin: 0 auto;padding: 0 16px;}
.page-title {font-size: 1.6rem;color: #f9f9f9;margin-bottom: 6px;}
.page-desc {font-size: 1rem;color: #c9c9c9;}

@media (max-width: 576px){
	.sub-visual{ padding: 110px 0 40px; margin-top: 0; }
}

/* ============================================================
   FOOTER
============================================================ */
.bskr-footer {
  margin-top: auto; /* 하단정렬 html,body 연동 */
  background: #000;
  color: #ccc;
  padding: 30px 0;
  font-size: 14px;
}

.bskr-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.bskr-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bskr-footer .footer-left img {
  height: 48px;
}

.bskr-footer .footer-right {
  text-align: right;
}
.bskr-footer .footer-right a {
  color: #ccc;
  margin-right: 8px;
}
.bskr-footer .footer-right a:hover {
  color: #fff;
}

.bskr-footer .company-info {
  margin-top: 8px;
  font-size: 13px;
  color: #aaa;
}

/* 모바일 footer 정렬 */
@media (max-width: 768px) {
  .bskr-footer {
    margin-top: 50px;
  }
  .bskr-footer .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .bskr-footer .footer-left {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
  }
  .bskr-footer .footer-right {
    text-align: left;
    width: 100%;
  }
  .bskr-footer .elink a {
    display: inline-block;
    margin-bottom: 6px;
  }
}


/* ============================================================
   FLOATING MENU (PC & 모바일)
============================================================ */

/* 공통 버튼 스타일 */
.floating-menu .menu-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.floating-menu a {color:#fff;}
/* Primary */
.floating-menu .menu-item.is-primary .menu-btn { background: #4caf50; }

/* Hover */
.floating-menu .menu-item:hover .menu-btn {
  background: #ff7a00;
  transform: translateX(-4px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
}

/* PC Layout */
@media (min-width: 767px) {
  .floating-menu {
    position: fixed;
    top: 60%; right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
  }

  .floating-menu .menu-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
  }

  .floating-menu .menu-label {
    margin-right: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    opacity: 0;
    transform: translateX(-8px);
    transition: transform .2s ease, opacity .2s ease;
  }
  .floating-menu .menu-item:hover .menu-label {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 모바일 Layout */
@media (max-width: 768px) {
  .floating-menu {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 0;
    z-index: 1000;
  }

  .floating-menu .menu-item {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .floating-menu .menu-label {
    margin-bottom: 6px;
    padding: 6px 10px;
    font-size: 12px;
    background: #222;
    color: #fff;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .floating-menu .menu-item:hover .menu-label {
    opacity: 1;
    transform: translateY(0);
  }
  .sub-nav ul {padding-left: 0rem;}
}

/* ============================================================
   SUBPAGE MENU (PC & 모바일)
============================================================ */

/* 컨테이너 하단 라인 */
.sub-nav {
  border-bottom: 1px solid #ddd; /* 전체 하단 라인 */
  top: 0;
}

/* 가로 메뉴 */
.sub-menu {
  display: flex;
  justify-content: space-evenly;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.sub-menu::-webkit-scrollbar { height: 6px; }
.sub-menu::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.sub-menu li {
  flex: 1;
  position: relative;       /* ::after 기준점 */
  text-align: center;       /* 메뉴명 가운데 정렬 */
}

/* 항목 스타일 */
.sub-menu li a {
  display: inline-block;
  padding: 12px 16px;
  color: #999;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* 밑줄(붉은 라인) — li 전체 폭 */
.sub-menu li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;              /* .sub-nav의 border-bottom 두께와 동일 */
  background: #4caf50;
  transform: scaleX(0);     /* 처음엔 숨김 */
  transition: transform 0.25s ease;
  transform-origin: center; /* 가운데에서 펼쳐지도록 */
}

/* 호버 시: li 전체 밑줄 표시 */
.sub-menu li:hover::after {
  transform: scaleX(1);
}
.sub-menu li:hover a { color: #4caf50; }

/* 활성 탭: 항상 전체 밑줄 표시 */
.sub-menu li.active::after {
  transform: scaleX(1);
}
.sub-menu li.active a {
  color: #000;
}

/* 사용자 접근성: 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .sub-menu li,
  .sub-menu li::after {
    transition: none;
  }
}