:root {
    --hd-h: 110px;
}

/* GNB A (사용자 관점 시안 B - 클래식 1줄 GNB) 프리미엄 스타일 */
.hd-a {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 110px !important; /* 원래 실질 높이 110px에 맞춰 치우침 완치 */
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s ease !important;
    overflow: visible !important;
}

.hd-a .nav-bar {
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
}

.hd-a .nav-inner {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* scrolled 또는 gnb-open 상태 */
.hd-a.gnb-open,
.hd-a.scrolled {
    background-color: #0f1a2e !important; /* 다크 네이비 기품 유지 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* 스크롤된 상태 - util-bar 숨기고 nav-bar 크기 80px로 수축 */
.hd-a.scrolled {
    position: fixed !important;
    height: 80px !important; /* util-bar 은닉 후 수축 완치 */
}

.hd-a.scrolled .util-bar {
    display: none !important; /* 스크롤 시 util-bar 영구 숨김 완치 */
}

.hd-a #gnb,
.hd-a .gnb,
.hd-a .gnb-list,
.hd-a .gnb-item,
.hd-a #header .gnb > ul > li,
.hd-a #header:hover .gnb > ul > li,
#header.hd-a .gnb > ul > li,
#header.hd-a:hover .gnb > ul > li {
    position: static !important;
}

.hd-a .gnb {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    height: 80px !important; /* 높이를 80px로 일치화하여 middle 정렬 완치 */
}

.hd-a .gnb-list {
    display: flex !important;
    gap: 30px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.hd-a .gnb-item {
    position: static !important; /* relative를 전격 해제하여 absolute 자식 드롭다운이 100vw 전체 가로폭으로 정렬되도록 완치 */
    height: 100% !important;
    display: flex !important;
    align-items: center !important; /* 완벽 수직 중앙 정렬(middle) 실증 */
}

.hd-a .gnb-link {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important; /* 완벽 수직 중앙 정렬(middle) 복원 */
    padding: 0 10px !important;
    line-height: 80px !important; /* 80px 내부 높이와 싱크 */
}

/* 스크롤/열림 상태에서 1차 폰트 반전 차단 (항상 흰색 유지) */
.hd-a.gnb-open .gnb-link,
.hd-a.scrolled .gnb-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

.hd-a .gnb-item:hover .gnb-link {
    color: var(--accent-color) !important;
}

/* GNB B 콤팩트 행배열 3차 텍스트 메가메뉴 드롭다운 (이미지 카드형 단일 통합 및 풀와이드 fixed 복구) */
.hd-a .classic-mega-dropdown {
    position: fixed !important;
    top: 80px !important; /* 벌어짐 완치를 위해 평소 top을 80px로 수축 조절 (GNB-A 네이비 끝선에 완벽 밀착) */
    left: 50% !important; /* 화면 가로 중앙 정렬용 50% 쏠림 */
    transform: translateX(-50%) !important; /* 50% 역보정을 통한 중앙 정착 */
    width: 100% !important; /* 뷰포트 내 가득 채움 허용하되 max-width로 격리 */
    max-width: 1320px !important; /* 로고중앙형 GNB 이너의 1320px 너비 규격과 완벽 동기화 */
    background-color: var(--white) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-top: 3px solid var(--accent-color) !important; /* 기품있는 골드 탑라인 */
    padding: 35px 24px !important;
    box-sizing: border-box !important;
    border-radius: 0 0 16px 16px !important;
    display: none !important;
    z-index: 999 !important;
}

/* 스크롤 시에도 헤더 높이(80px)에 일치시켜 GNB 하단 경계에 칼고정 정렬 */
.hd-a.scrolled .classic-mega-dropdown {
    top: 80px !important;
}

/* 개별 1차 메뉴 hover 시 해당 채널 메가메뉴만 활성화 */
.hd-a .gnb-item:hover > .classic-mega-dropdown {
    display: block !important;
}

.hd-a .classic-mega-inner {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* 행(row) 기반 정렬 컨테이너 */
.hd-a .classic-mega-rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* 개별 행 */
.hd-a .classic-mega-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 30px !important;
    border-bottom: 1px dashed #eaeaea !important;
    padding-bottom: 14px !important;
    margin-bottom: 4px !important;
}

.hd-a .classic-mega-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 좌측 대메뉴 (2차) */
.hd-a .classic-mega-2nd-title-wrap {
    width: 300px !important;
    flex-shrink: 0 !important;
    text-align: left !important;
}

.hd-a .classic-mega-2nd-title {
    font-size: 16px !important; /* 조금 더 크게 상향 */
    font-weight: 800 !important;
    color: #111 !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.2s !important;
    white-space: nowrap !important; /* 텍스트 강제 한 줄 정렬 */
}

.hd-a .classic-mega-2nd-title:hover {
    color: var(--primary-color) !important;
}

/* 우측 소메뉴 (3차) */
.hd-a .classic-mega-3rd-wrap {
    flex: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 24px !important;
    align-items: center !important;
    text-align: left !important;
}

.hd-a .classic-mega-3rd-link {
    font-size: 14px !important; /* 조금 더 크게 상향해 시인성 보장 */
    font-weight: 600 !important;
    color: #555 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease-in-out !important;
}

.hd-a .classic-mega-3rd-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
}

/* 로고 스왑 제어 (스크롤 시에도 흰색 로고 logo-default 유지) */
.hd-a .logo-default { display: block !important; }
.hd-a .logo-scrolled { display: none !important; }

.hd-a.gnb-open .logo-default,
.hd-a.scrolled .logo-default {
    display: block !important;
}

.hd-a.gnb-open .logo-scrolled,
.hd-a.scrolled .logo-scrolled {
    display: none !important;
}

.mbtn {
  display: none;
}

@media (max-width: 1024px) {
  .mbtn {
    display: flex;
    align-items: center;

    position: fixed;
    top: 4rem;
    right: 1.6rem;
    z-index: 999;

    width: 32px;
    height: 32px;

    background: var(--lightgray-color);
    border: 1px solid var(--line-color);
    border-radius: 4px;
    /* background: rgba(255, 255, 255, 0.25); */
    font-size: 0;
  }

  .mbtn::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on::before {
    display: none;
  }

  .mbtn::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on::after {
    display: none;
  }

  .mbtn span::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on span::before {
    transform: rotate(45deg);
  }

  .mbtn span::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on span::after {
    transform: rotate(-45deg);
  }

  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    height: 11.2rem;
    overflow: visible;

    transition: 0.4s;
  }

  #header.on {
    background: var(--white-color);
    border-bottom: 1px solid var(--line-color);
  }
  #header:hover {
    height: 11.2rem;
    overflow: visible;
    background: var(--white-color);
    border-bottom: 1px solid var(--line-color);
  }
  #header .gnb_container {
    position: fixed;
    top: 0;
    left: -100vw;
    z-index: 999;

    width: 100vw;
    height: 200vh;
    background: var(--white-color);

    background: rgba(0, 0, 0, 0.75);
  }

  #header .gnb_container.on {
    left: 0;
  }

  #header .gnb {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4rem;
    padding: 16rem 2.4rem 0 2.4rem;

    width: calc(100vw - 6.4rem);
    height: 150vh;
    background: var(--white-color);
  }

  #header .gnb > ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #header .gnb > ul > li > a {
    line-height: 5.6rem;
    border-bottom: 1px solid var(--line-color);
    color: var(--body-color);
    font-weight: 500;
    font-size: 1.8rem;
    padding: 0 0 0 0.8rem;
    text-align: left;
  }

  #header.on .gnb > ul > li > a {
    line-height: 5.6rem;
    color: var(--body-color);
  }

  #header .gnb > ul > li {
    position: relative;
  }

  #header .gnb > ul {
    display: flex;
    height: 12rem;
    overflow: hidden;

    overflow: visible;
  }
  #header:hover .gnb > ul {
    height: auto;
    border-top: 1px solid var(--primary-color);
  }

  #header .gnb > ul > li {
    position: relative;
    border-left: none;
  }
  #header .gnb > ul > li:last-child {
    border-right: none;
  }
  #header:hover .gnb > ul > li {
    position: relative;
    border-left: none;
  }
  #header:hover .gnb > ul > li:last-child {
    border-right: none;
  }

  #header .gnb > ul > li:hover {
    background: none;
  }
  #header .gnb > ul > li:focus-within {
    background: none;
  }
  #header .gnb > ul > li ul {
    position: static;

    transform: translate(0, 0);
    background: var(--white-color);
    border: 0 solid var(--lightgray-color);

    opacity: 1;
    visibility: visible;

    transition: none;

    display: none;
  }

  #header .gnb > ul > li ul li a {
    display: block;
    padding: 0 0 0 0.8rem;
    line-height: 4rem;
    white-space: nowrap;

    background: var(--lightgray-color);

    text-align: left;
  }

  #header .gnb > ul > li > a::after {
    display: none;
  }

  #header .gnb > ul > li ul li a {
    border-bottom: 1px solid var(--line-color);
  }

  #header .adm {
    display: none !important;
  }

  #header.on .adm {
    color: var(--body-color);
  }

  #header .adm svg {
    vertical-align: -2px;
    margin-right: 8px;
    filter: invert();
  }
  #header.on .adm svg {
    filter: invert();
  }
}

.sub_title {
  position: relative;

  background-color: var(--primary-color);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* border-left: 4px solid var(--point-color); */
  /* border-top: 4px solid var(--point-color); */
  text-transform: uppercase;

  color: var(--white-color);
  /* border-radius: 4rem 0 0 0; */
  overflow: hidden;

  min-height: 48rem;
}

.sub_title::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  z-index: 2;
  background: linear-gradient(rgba(0, 0, 0, 0.2) 40%, transparent);
  backdrop-filter: blur(16px);

  animation: blur 0.4s both;
}

@keyframes blur {
  0% {
    backdrop-filter: blur(16px);
  }
  100% {
    backdrop-filter: blur(0);
  }
}

.sub_title::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  z-index: 3;
  background: url(../images/pt-bg01.png);
}

.sub_title .title {
  position: absolute;
  top: 60%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);

  margin: 0 0;
  width: calc(100% - 3.2rem);
  text-align: right;
  margin-bottom: 0;
}

.sub_title .title h2 {
  font-size: 8rem;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
.sub_title .title p {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.75;
}
@media (max-width: 768px) {
  .sub_title .title h2 {
    font-size: 4.8rem;
    font-weight: 800;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  }
}

.sub_nav {
  position: relative;
  z-index: 5;

  margin-bottom: 8rem;

  background: var(--white-color);
  border-bottom: 1px solid var(--line-color);

  line-height: 6.4rem;
}

.sub_nav .inner {
  display: flex;
  justify-content: space-between;
}

.sub_nav .lnb ul {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}

.sub_nav .lnb ul a {
  display: block;
  background: var(--white-color);

  white-space: nowrap;

  padding: 0 2rem;
}

.sub_nav .lnb ul li ~ li {
  border-left: 1px solid var(--line-color);
}

.sub_nav .lnb ul li.on a {
  border-top: 4px solid var(--point-color);
  margin-top: -4px;
}

.sub_nav .navigation {
  font-size: 1.4rem;
}

.sub_nav .navigation .icon {
  width: 12px;
  height: 12px;
  stroke: var(--body-color);
  stroke-width: 2;
}

.sub_nav .lnb > a {
  display: none;
}

@media (max-width: 1200px) {
  .sub_nav .navigation {
    display: none;
  }
}

@media (max-width: 768px) {
  .sub_nav {
    position: relative;
    margin: 0 1.6rem;
    margin-top: -4rem;
    margin-bottom: 8rem;
    background: var(--white-color);
    border: 1px solid var(--line-color);
    border-top: 4px solid var(--primary-color);

    line-height: 6.4rem;
  }
  .sub_nav .inner {
    display: block;
    margin: 0 0;
  }

  .sub_nav .lnb ul {
    display: none;
  }

  .sub_nav .lnb > a {
    position: relative;
    display: block;
    padding: 0 1.6rem;

    font-size: 1.7rem;
  }

  .sub_nav .lnb > a::after {
    content: "";
    position: absolute;
    top: 50%;

    transform: translate(0, -50%);
    right: 1.6rem;
    width: 24px;
    height: 24px;

    background: url(../lib/icon/chevron-down.svg) no-repeat center center/22px;
    opacity: 0.5;
  }

  .sub_nav .lnb > a.on::after {
    background: url(../lib/icon/chevron-up.svg) no-repeat center center/22px;
  }

  .sub_nav .lnb ul li ~ li {
    border-left: 0px solid var(--line-color);
  }
  .sub_nav .lnb ul li {
    border-top: 1px solid var(--line-color);
  }

  .sub_nav .lnb ul a {
    display: block;
    /* background: var(--white-color); */
    background: var(--background-color);
    white-space: nowrap;

    padding: 0 0;
    padding: 0 1.6rem;
  }

  .sub_nav .lnb ul li.on a {
    border-top: 0px solid var(--point-color);
    margin-top: 0px;
  }
}

.sub_content {
  margin-top: 8rem;
  margin-bottom: 12rem;
}

.sub_content .page_title {
  margin-bottom: 2.4rem;
}

.sub_content .page_title h3 {
  position: relative;
  padding: 1.6rem 0;
  /* border-bottom: 1px solid var(--line-color); */
  white-space: nowrap;
}

.sub_content .page_title h3::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;

  width: 12rem;
  height: 1px;

  background: var(--primary-color);
}

.sub_content .page_title h3 strong {
  font-size: 4rem;
  font-weight: 700;
}

@media (max-width: 1440px) {
}

.sub_content .content p {
  font-size: 1.7rem;
  line-height: 2.4rem;
  opacity: 0.9;
}

.sub_content .content .sub_title_desc {
  line-height: 1.5;
  margin-bottom: 5.6rem;
}

#footer {
  padding: 4rem 0 5.6rem 0;
  background: #1a2744 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  /* border-top: 1px solid var(--line-color); */

  font-size: 1.5rem;
  line-height: 2.4rem;
}

#footer .lnk {
  margin-bottom: 5.6rem;
  padding: 5.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .lnk > ul {
  display: flex;
  gap: 8rem;
}

#footer .lnk > ul > li > a {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
}

#footer .lnk > ul ul a {
  display: block;
  line-height: 1.5;
}

#footer .customer_list {
  display: flex;
  gap: 1.6rem;

  margin-bottom: 1.6rem;
}

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

  #footer .customer_list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
}

#footer .inner {
  display: flex;
  flex-direction: column;
  /* justify-content: center;
  align-items: center; */
  gap: 8px;
}

#footer .info {
  display: flex;
  gap: 2.4rem;
}

#footer .info li {
  position: relative;
  /* text-align: center; */
  white-space: nowrap;
}

#footer .info li ~ li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;

  transform: translate(0, -50%);

  width: 1px;
  height: 0.5em;

  background: #ccc;
}

@media (max-width: 768px) {
  #footer .info {
    flex-direction: column;
    gap: 0;
  }

  #footer .info li ~ li::before {
    display: none;
  }

  #footer .ft_bottom {
    flex-direction: column;
  }
}

#side_lnk {
  position: fixed;
  bottom: 12rem;
  right: 1.6rem;
  z-index: 100;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  opacity: 0;
  visibility: hidden;
}

#side_lnk.on {
  opacity: 1;
  visibility: visible;
}

#side_lnk .d_btn {
  position: relative;
  display: block;
  width: 6.4rem;
  height: 6.4rem;
  background: var(--primary-color);
  border-radius: 3.2em;
  box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1);
  text-align: center;
}

#side_lnk a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 6.4rem;
  height: 6.4rem;
  margin-bottom: 1.6rem;
  background: var(--white-color);
  border-radius: 3.2em;
  box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1);

  line-height: 6.4rem;
  color: var(--white-color);
  font-size: 1.2rem;

  overflow: hidden;
  transition: all 0.3s;
}

#side_lnk a .icon {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 3.2rem;
  height: 3.2rem;
  stroke: currentColor;
  stroke-width: 1.5;
}

#side_lnk a.phone {
  background: #ff4444;
  color: #ffffff;
}
#side_lnk a.online {
  background: #2c9ca6;
  color: #ffffff;
}
#side_lnk a.cafe {
  background: #03c75a;
  color: #ffffff;
}
#side_lnk a.kakao {
  background: #fee500;
  color: #3c1e1e;
}

#side_lnk a:hover {
  width: 33rem;
}

#side_lnk a span {
  margin-left: 3.2rem;
  width: 0;

  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s;
}

#side_lnk .d_btn .icon {
  width: 32px;
  height: 32px;
  stroke: var(--white-color);
  stroke-width: 2;
}

@media (max-width: 768px) {
  #side_lnk {
    bottom: 4rem;
  }
}

#side_lnk a:hover span {
  width: 24rem;
}

.btel {
  text-align: right;
  overflow: hidden;
}

.btel i {
  font-size: 4rem;
  font-weight: 600;
}

.btel strong {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.8rem 0 0.8rem 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btel {
    text-align: left;
    overflow: hidden;
  }
}

#footer .ft_wrap {
  position: relative;
}

#family_link {
  position: absolute;
  top: 8rem;
  right: 0;
  z-index: 5;

  white-space: nowrap;
}

@media (max-width: 768px) {
  #family_link {
    top: 0;
  }
}

#family_link .f_link {
  position: relative;
  display: block;
  width: 24rem;
  height: 4rem;
  padding: 0 2.4rem;
  text-align: left;
  font-size: 1.4rem;
  text-align: left;
  color: var(--line-color);
  text-transform: uppercase;
  background: var(--primary-color);

  border-radius: 2rem 2rem 2rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

#family_link .f_link.on {
  border-radius: 0 0 2rem 2rem;
  background: var(--body-color);
}

#family_link .f_link svg {
  position: absolute;
  right: 0.8rem;
  top: 1rem;
}

#footer .ft_wrap #family_link .f_link .icon {
  width: 1.8rem;
  height: 1.8rem;
  stroke-width: 1;
  stroke: var(--white-color);
}

#family_link .f_link.on svg {
  transform: rotate(180deg);
}

#family_link ul {
  display: none;
  position: absolute;
  bottom: 4rem;
  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: -1px;
  z-index: 2;

  background: var(--body-color);

  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
}

#family_link ul > li > a {
  display: block;
  padding: 0 2.4rem;
  font-size: 1.4rem;
  line-height: 3.9rem;
  color: var(--line-color);
}

#family_link ul > li ~ li > a {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#family_link ul > li > a:hover {
  background: var(--point-color);
}


/* KSISE Common Variables & Styles */
:root {
    --ksise-primary: #004c97;
    --ksise-bg: #f8fafd;
    --ksise-line: #e1e8f0;
    --ksise-text: #333;
    --ksise-gray: #222;
}

.ksise-font-style p {
    font-size: 1.98rem !important;
    line-height: 130% !important;
    color: var(--ksise-gray);
    word-break: keep-all;
    padding: 0;
}

@media (max-width: 768px) {
    .ksise-font-style p {
        font-size: 2.2rem !important;
        line-height: 135% !important;
    }
}

.mobile_br {
    display: none;
}

@media (max-width: 768px) {
    .mobile_br {
        display: block;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PC 해상도(769px 이상)에서 GNB-A 모바일 햄버거 버튼 영구 숨김 */
@media (min-width: 769px) {
    .hd-a .pm-m-hamburger,
    .hd-a #btn_m_ham_a {
        display: none !important;
    }
}

/* ==========================================================================
   [GNB-A 가로일자형 헤더 반응형 고도화 보정]
   ========================================================================== */
@media (max-width: 1226px) {
    /* 1. 1226px 이하 화면에서 1차메뉴(.gnb) 및 메가드롭다운 노출 차단 (가로폭 축소 시 메뉴 글씨 행간/줄바꿈 깨짐 완치) */
    .hd-a .gnb,
    .hd-a #gnb,
    .hd-a .gnb-list,
    #header .gnb {
        display: none !important;
    }
    .hd-a .classic-mega-dropdown {
        display: none !important;
    }
    .hd-a .gnb-item:hover > .classic-mega-dropdown {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* PC 헤더 은닉 및 투명화 */
    .hd-a {
        height: 70px !important; /* 모바일 로고 확대를 위해 높이를 70px로 상향 */
        background-color: rgba(15, 26, 46, 0.5) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* 스크롤 시 다크 네이비 배경 적용 */
    .hd-a.scrolled {
        height: 70px !important;
        background-color: #0f1a2e !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    .hd-a .util-bar {
        display: none !important;
    }
    .hd-a .nav-bar {
        display: none !important;
    }
    
    /* 모바일 탑바 활성화 및 투명화 */
    .m-top-bar-only {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        height: 70px !important;
        padding: 0 16px;
        background: transparent !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 스크롤 시 모바일 탑바 배경 */
    .hd-a.scrolled .m-top-bar-only {
        background: #0f1a2e !important;
    }
    
    /* 햄버거 메뉴를 좌측으로 배치 (흰색 바) */
    .m-top-bar-only .pm-m-hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 22px !important;
        height: 16px !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        margin: 0 !important;
    }
    .m-top-bar-only .pm-m-hamburger span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #ffffff !important; /* 흰색 햄버거 메뉴 */
    }
    
    /* 로고 150% 크기 조정 및 패딩 */
    .m-top-bar-only .m-logo-only {
        flex: 1 !important;
        text-align: center !important;
        padding: 5px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }
    .m-top-bar-only .m-logo-only a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        text-decoration: none !important;
    }
    .m-top-bar-only .m-logo-only img {
        height: 44px !important; /* 44px로 웅장하게 확대 */
        width: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    /* 우측 다국어 토글 */
    .m-top-bar-only .m-top-right-only {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
    }
    
    .m-top-bar-only .btn-m-lang {
        font-size: 18px !important;
        color: #ffffff !important; /* 흰색 지구본 */
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 4px !important;
    }
    
    .m-top-bar-only .m-lang-dropdown {
        display: none;
        position: absolute !important;
        right: 16px !important;
        top: 55px !important;
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        z-index: 5000 !important;
        width: 100px !important;
        padding: 6px 0 !important;
        margin-top: 6px !important;
    }
    .m-top-bar-only .m-lang-dropdown a {
        display: block !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        color: #666 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        text-align: left !important;
    }
    .m-top-bar-only .m-lang-dropdown a.active {
        color: #111 !important;
        font-weight: 700 !important;
        background: #f5f6f8 !important;
    }

    /* 모바일 footer 전화번호 50% 축소 */
    .ft-tel-num {
        font-size: 16px !important;
    }

    /* 모바일 기기 접속 시 그누보드 내부 레이아웃 여백 제거 */
    #container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #wrapper {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* 모바일 서브 Hero 높이 및 상단 패딩 강제 적용 */
    .yun-sub-hero {
        height: 280px !important;
        padding-top: 70px !important; /* 모바일 헤더 높이(70px)에 일치화 */
        margin-top: 0 !important;
    }
}

/* ==========================================================================
   [독립운동사 전용 프리미엄 스타일시트]
   ========================================================================== */
.movement-tab-container {
    margin-top: 30px;
    width: 100%;
}

/* 캡슐 배지 서브 탭 프리미엄 스타일 */
.enlighten-sub-badge-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0 auto 40px auto;
    max-width: 650px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.sub-badge-pill {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-600);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    outline: none;
}

.sub-badge-pill:hover {
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.02);
}

.sub-badge-pill.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 42, 74, 0.15);
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: subTabFadeIn 0.5s ease;
}

@keyframes subTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.movement-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 45px 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--gray-200);
}

.movement-tabs li {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-600);
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.movement-tabs li:hover {
    color: var(--primary-color);
}

.movement-tabs li.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.5s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 텍스트 코딩 레이아웃 */
.about-content {
    display: flex;
    gap: 50px;
    margin-top: 10px;
    align-items: flex-start;
}

.ac-text {
    flex: 1.2;
}

.ac-image {
    flex: 0.8;
    text-align: center;
}

.ac-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
}

.ac-text p {
    font-size: 19px;
    line-height: 1.85;
    color: #222;
    margin-bottom: 24px;
    text-align: justify;
    word-break: keep-all;
    font-family: 'Pretendard', sans-serif;
}

.ac-text blockquote {
    background-color: var(--gray-50);
    border-left: 4px solid var(--accent-color);
    padding: 20px 24px;
    font-size: 19px;
    line-height: 1.8;
    color: var(--primary-color);
    margin: 25px 0;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
}

.ac-heading {
    margin-bottom: 35px;
    line-height: 1.5;
}

.ac-quote {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.ac-meaning {
    display: block;
    font-size: 21px;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: -0.03em;
}

/* 중첩 탭 구조 */
.nested-tab-container {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 35px;
    margin-top: 30px;
}

.nested-tabs-header {
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 30px;
}

.nested-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nested-tab {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-600);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
    background-color: #fff;
    border: 1px solid var(--gray-300);
    border-bottom: none;
    margin-bottom: -1px;
}

.nested-tab:hover {
    color: var(--primary-color);
}

.nested-tab.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nested-content {
    display: none;
}

.nested-content.active {
    display: flex;
    gap: 40px;
    animation: tabFadeIn 0.4s ease;
}

.book-intro-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.nested-image-box {
    flex: 0.8;
    text-align: center;
}

.nested-image-box img {
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.book-chapter-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 25px 0 15px 0;
}

.book-raw-paragraph {
    font-family: 'Pretendard', monospace;
    font-size: 18px;
    line-height: 1.8;
    background-color: #fff;
    border: 1px solid var(--gray-200);
    padding: 20px;
    border-radius: 8px;
    color: #333;
    margin-bottom: 20px;
}

.book-sep {
    border: none;
    border-top: 1px dashed var(--gray-300);
    margin: 30px 0;
}

/* 스크롤 가능한 영역 */
.max-height-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

/* 카드 그리드 */
.revival-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.revival-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.rc-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.rc-info {
    padding: 30px;
}

.rc-info h5 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.rc-info p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    word-break: keep-all;
}

.rc-sub-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 25px 0 10px 0;
}

.rc-info blockquote {
    background-color: var(--gray-50);
    border-left: 3px solid var(--accent-color);
    padding: 12px 16px;
    font-size: 16px;
    color: #333;
    margin: 15px 0 0 0;
}

.song-verse {
    font-size: 19px;
    line-height: 1.85;
    color: #333;
}

/* 프리미엄 테이블 스타일 */
.yun-table {
    width: 100%;
    border-collapse: collapse;
}

.yun-table th {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.yun-table td {
    padding: 12px 15px;
    border: 1px solid var(--gray-200);
    line-height: 1.6;
}

/* 반응형 모바일 쿼리 */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .ac-image {
        width: 100%;
    }
    
    .ac-image img {
        max-width: 100%;
    }
    
    .nested-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .nested-image-box {
        width: 100%;
    }
    
    .nested-image-box img {
        max-width: 100%;
    }
    
    .revival-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .enlighten-sub-badge-container {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
        gap: 8px;
    }
    
    .sub-badge-pill {
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 15px;
    }

    .movement-tabs li {
        font-size: 17px;
        padding: 12px 6px;
        min-width: 50%;
    }
    
    .nested-tab {
        font-size: 15px;
        padding: 10px 16px;
        width: 100%;
        text-align: center;
    }
    
    .book-raw-paragraph {
        font-size: 16px;
        padding: 15px;
    }
}
