/* ───── HERO ───── */
.hero {
    background: var(--cream);
    border-bottom: 1px solid var(--gold-light);
    padding: 80px 2rem 70px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '공방잡화점';
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: 'Noto Serif KR', serif;
    font-size: 80px;
    color: var(--gold);
    opacity: 0.07;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 8px;
  }

  .hero-inner {
    max-width: var(--layout-content-max, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
    width: 100%;
  }

  .hero-label {
    font-size: 13px;
    letter-spacing: 2.5px;
    color: var(--brown-mid);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-label::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--brown-mid);
  }

  .hero h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--brown-deep);
    margin-bottom: 20px;
    letter-spacing: -1px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--gold);
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 2px;
  }

  .hero-desc {
    font-size: 14px;
    color: var(--brown-mid);
    line-height: 1.9;
    margin-bottom: 32px;
    max-width: 420px;
  }

  .hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .btn-primary {
    background: var(--brown-deep);
    color: var(--cream);
    padding: 12px 28px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
  }

  /* base.css a:link(#0e355f) 보다 우선 — 히어로 버튼 안 보이는 문제 */
  .hero a.btn-primary,
  .hero a.btn-primary:link,
  .hero a.btn-primary:visited,
  .hero a.btn-primary:active {
    color: var(--cream) !important;
    background: var(--brown-deep);
  }

  .hero a.btn-primary:hover {
    color: var(--cream) !important;
    background: var(--brown-mid);
  }

  .btn-primary:hover { background: var(--brown-mid); }

  .btn-outline {
    color: var(--brown-mid);
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }

  .btn-outline:hover { color: var(--brown-deep); border-color: var(--gold); }

  /* 히어로 오른쪽 장식 -->*/
  .hero-deco {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .deco-frame {
    width: 260px;
    height: 320px;
    border: 1px solid var(--gold);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--natural-white);
  }

  .deco-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 0.5px dashed var(--gold-light);
  }

  .deco-content {
    text-align: center;
    padding: 24px;
  }

  /* ── 빨간 도장 ── */
  .deco-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #C0392B;
    box-shadow:
      0 0 0 3px #C0392B,
      0 0 0 5px rgba(192,57,43,0.25),
      2px 3px 10px rgba(192,57,43,0.35);
    animation: stamp-in 0.5s cubic-bezier(0.22,1,0.36,1) both;
  }

  @keyframes stamp-in {
    0%   { transform: scale(1.4) rotate(-6deg); opacity: 0; }
    60%  { transform: scale(0.94) rotate(1deg); opacity: 1; }
    80%  { transform: scale(1.03) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
  }

  /* 바깥 점선 링 */
  .deco-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1.5px dashed rgba(192,57,43,0.4);
    border-radius: 50%;
    animation: stamp-in 0.5s cubic-bezier(0.22,1,0.36,1) 0.05s both;
  }

  /* 안쪽 얇은 원 */
  .deco-circle::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
  }

  .deco-circle-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
  }

  .deco-circle-inner .stamp-main {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1.1;
  }

  .deco-circle-inner .stamp-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.45);
    margin: 6px 0;
  }

  .deco-circle-inner .stamp-sub {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
  }

  .deco-tagline {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    color: var(--brown-deep);
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .deco-sub {
    font-size: 10px;
    color: var(--brown-light);
    letter-spacing: 1px;
  }

  .deco-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--gold);
    border-style: solid;
  }

  .deco-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .deco-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
  .deco-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
  .deco-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

  /* ───── NOTICE BAND ───── */
  .notice-band {
    background: var(--brown-deep);
    color: var(--cream);
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .notice-band span { color: var(--gold); margin: 0 8px; }

  /* 메인 비주얼(배너): 전 구간 100% — bxSlider 인라인 width·숨김 초기화 붕괴 보완 (:has 로 배너 있는 블록만) */
  .min768:has(.bannerWrap),
  .max768:has(.bannerWrap) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* bx-wrapper 는 bannerWrap 의 부모(bxSlider가 max-width: Npx 인라인 삽입 — 예: slideWidth×장수) */
  .min768 > .bx-wrapper,
  .max768 > .bx-wrapper,
  .min768 > .bx-wrapper > .bx-viewport,
  .max768 > .bx-wrapper > .bx-viewport {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  /* bxSlider가 .bannerWrap에 넣는 가로 트랙 width(예: 1215%) — 뷰포트 밖으로 밀려 안 보임 */
  .min768 .bx-viewport > .bannerWrap.banner3,
  .max768 .bx-viewport > .bannerWrap.banner1 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 서브 bncode=2(.bannerWrap.banner2) 스타일은 /css/banner-bncode2.css (header.html만 로드) */

  .min768 .bannerWrap.banner3 .banner,
  .max768 .bannerWrap.banner1 .banner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .min768 .bannerWrap.banner3 .banner-contents,
  .max768 .bannerWrap.banner1 .banner-contents,
  .min768 .bannerWrap.banner3 .hero,
  .max768 .bannerWrap.banner1 .hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .min768 .bannerWrap.banner3 .banner-contents .hero-inner,
  .max768 .bannerWrap.banner1 .banner-contents .hero-inner {
    width: 100%;
    max-width: var(--layout-content-max, 1100px);
    min-width: 0;
    box-sizing: border-box;
  }

  /* 배너 HTML 히어로: bxSlider float 슬라이드 안에서 그리드·텍스트 정상화 */
  .min768 .bannerWrap .banner .banner-contents,
  .max768 .bannerWrap .banner .banner-contents {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
  }

  .min768 .bannerWrap .banner .hero,
  .max768 .bannerWrap .banner .hero {
    text-align: left;
    width: 100%;
  }

  .min768 .bannerWrap .banner .hero .hero-inner,
  .max768 .bannerWrap .banner .hero .hero-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 24vw, 190px);
    align-items: center;
  }

  .min768 .bannerWrap .banner .hero a.btn-primary,
  .max768 .bannerWrap .banner .hero a.btn-primary,
  .min768 .bannerWrap .banner .hero a.btn-primary:link,
  .max768 .bannerWrap .banner .hero a.btn-primary:link,
  .min768 .bannerWrap .banner .hero a.btn-primary:visited,
  .max768 .bannerWrap .banner .hero a.btn-primary:visited {
    color: #fdfaf5 !important;
    background: var(--brown-deep);
  }

  .min768 .bannerWrap .banner .hero a.btn-primary:hover,
  .max768 .bannerWrap .banner .hero a.btn-primary:hover {
    color: #fdfaf5 !important;
    background: var(--brown-mid);
  }

  .home-sub-visual {
    width: 100%;
  }

  /* ─── 샘플(잡화점_홈피_초안) 메인 전용 ─── */
  .page-home {
    background: var(--paper);
    overflow-x: hidden;
  }

  .hero-left {
    animation: home-fadeInUp 0.7s ease both;
  }

  .hero-deco {
    animation: home-fadeInUp 0.7s ease 0.15s both;
  }

  @keyframes home-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* 마퀴 */
  .marquee-band {
    background: var(--brown-deep);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(196, 169, 122, 0.15);
    border-bottom: 1px solid rgba(196, 169, 122, 0.15);
  }

  .marquee-label {
    background: var(--gold);
    color: var(--brown-deep);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 0 20px 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .marquee-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid var(--gold);
  }

  .marquee-track {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
  }

  .marquee-inner {
    display: flex;
    align-items: center;
    width: max-content;
    animation: home-marquee-scroll 32s linear infinite;
    white-space: nowrap;
  }

  .marquee-group {
    display: flex;
    align-items: center;
  }

  .marquee-inner:hover {
    animation-play-state: paused;
  }

  @keyframes home-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
  }

  .marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
    flex-shrink: 0;
  }

  .marquee-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 12px;
    color: var(--cream);
    letter-spacing: 0.3px;
  }

  .marquee-badge {
    font-size: 9px;
    background: rgba(196, 169, 122, 0.15);
    color: var(--gold);
    border: 1px solid rgba(196, 169, 122, 0.3);
    padding: 1px 8px;
    letter-spacing: 0.5px;
  }

  .marquee-price {
    font-family: 'Noto Serif KR', serif;
    font-size: 11px;
    color: var(--gold);
    opacity: 0.85;
  }

  .marquee-sep {
    width: 1px;
    height: 12px;
    background: rgba(196, 169, 122, 0.2);
    flex-shrink: 0;
    margin: 0 8px;
  }

  /* 카테고리 탭 */
  .home-category-bar {
    background: var(--natural-white);
    border-bottom: 1px solid var(--gold-light);
    padding: 16px 0;
  }

  .category-tabs {
    max-width: var(--layout-shell-max, calc(1100px + 4rem));
    margin: 0 auto;
    padding: 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .category-tabs .tab {
    padding: 6px 16px;
    border: 1px solid var(--gold-light);
    background: var(--natural-white);
    font-size: 12px;
    color: var(--brown-mid);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
  }

  .category-tabs .tab.active {
    background: var(--brown-deep);
    color: var(--cream);
    border-color: var(--brown-deep);
  }

  .category-tabs .tab:hover:not(.active) {
    border-color: var(--gold);
    color: var(--brown-deep);
  }

  .subtab-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .subtab-bar.visible {
    max-width: 420px;
    opacity: 1;
  }

  .subtab-divider {
    width: 1px;
    height: 16px;
    background: var(--gold-light);
    flex-shrink: 0;
    margin: 0 4px;
  }

  .subtab-label {
    font-size: 10px;
    color: var(--brown-light);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .subtab {
    padding: 4px 14px;
    border: 1px solid var(--gold-light);
    background: transparent;
    font-size: 11px;
    color: var(--brown-mid);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.3px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .subtab.active {
    background: var(--gold);
    color: var(--natural-white);
    border-color: var(--gold);
  }

  .subtab:hover:not(.active) {
    background: var(--gold);
    color: var(--natural-white);
    border-color: var(--gold);
  }

  .subtab:active:not(.active) {
    background: #b9925a;
    border-color: #b9925a;
    color: var(--natural-white);
  }

  /* 본문: 안쪽 콘텐츠 1100px + 좌우 2rem (헤더·탭과 동일 기준). 풀폭 배경은 home-bulletin / home-material-band */
  .page-home-main {
    max-width: var(--layout-shell-max, calc(1100px + 4rem));
    margin: 0 auto;
    padding: 0 0 64px;
    width: 100%;
    box-sizing: border-box;
  }

  .home-section {
    padding: 64px 0 0;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gold-light);
  }

  .home-section .section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--brown-deep);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
  }

  .home-section .section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--gold);
  }

  .home-section .section-more {
    font-size: 12px;
    color: var(--brown-light);
    text-decoration: none;
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 1px;
    transition: color 0.2s;
    font-weight: 400;
  }

  .home-section .section-more:hover {
    color: var(--gold);
  }

  /* 메인강좌 카드 가로: 관리자 이미지 크기(--web-main-card-width, awsHomeClass.do에서 설정) */
  .web-main-card-w .courseBox ul > li > .bs-source-subjcet,
  .web-main-card-w .courseBox ul > li > .bs-source-subject,
  .web-main-card-w .courseBox ul > li > .ns-source-subjcet,
  .web-main-card-w .courseBox ul > li > .ns-source-subject {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  /* 신규 출품 그리드 (course_1 등 float 해제) — bxSlider(.course-use-bxslider)는 slideWidth·li 인라인 폭 유지 */
  .home-section-products .home-product-area .web-main-card-w .courseBox ul.course_1:not(.course-use-bxslider),
  .home-section-products .home-product-area .web-main-card-w .courseBox ul[class*="course_"]:not(.course-use-bxslider) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100% !important;
  }

  .home-section-products .home-product-area .web-main-card-w .courseBox ul.course_1:not(.course-use-bxslider) > li,
  .home-section-products .home-product-area .web-main-card-w .courseBox ul[class*="course_"]:not(.course-use-bxslider) > li {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding-top: 5px;
  }

  /* 신규 출품 bx: 그리드/플렉스가 ul에 붙는 경우 차단(bx 트랙은 block 기반) */
  .page-home .home-section-products .home-product-area .courseBox ul.course_1.course-use-bxslider,
  .page-home .home-section-products .home-product-area .courseBox ul.course_1Slider.course-use-bxslider,
  .home-section-products .home-product-area .web-main-card-w .courseBox ul.course_1.course-use-bxslider {
    display: block !important;
  }

.page-home .home-section-products .home-product-area .courseBox ul.course_1Slider > li,
.page-home .home-section-products .home-product-area .courseBox ul.course_1 > li {
    padding-top: 5px !important;
}

  .home-section-products .home-product-area .courseWrap {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .home-section-products .home-product-area .courseBox {
    width: 100%;
  }

  /* contents.css 전역 div:has(> .ns-ss-all) 규칙이 카드 폭을 깨는 문제를 메인 홈에서만 차단 */
  /* 스킨에 따라 ns-ss-all이 li 직자식이 아닐 수 있음(bs-source 래퍼 등) */
  .page-home .home-section-products .home-product-area .courseBox li:has(.ns-ss-all),
  .page-home .home-section-products .home-product-area .courseBox li:has(.bs-ss-all) {
    display: block !important;
  }

  .page-home .home-section-products .home-product-area .courseBox div:has(> .ns-ss-all),
  .page-home .home-section-products .home-product-area .courseBox div:has(> .bs-ss-all) {
    display: block !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  .page-home .home-section-products .home-product-area .courseBox ul.course_1 > li :is(.ns-ss-all, .bs-ss-all) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  .page-home .home-section-products .home-product-area .courseBox .ns-source-subjcet,
  .page-home .home-section-products .home-product-area .courseBox .ns-source-subject,
  .page-home .home-section-products .home-product-area .courseBox .bs-source-subjcet,
  .page-home .home-section-products .home-product-area .courseBox .bs-source-subject {
    width: 100% !important;
    max-width: none !important;
  }

  /* 메인 강좌 bxSlider: slideWidth(imageW)만큼 .bx-wrapper에 max-width 인라인(예: 1070px)이 붙음 → 본문 폭에 맞춤 */
  .page-home .home-section-products .home-product-area .courseBox .bx-wrapper {
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .page-home .home-section-products .home-product-area .courseBox ul[class*='Slider'] {
    max-width: none !important;
  }

  .page-home .home-section-products .home-product-area .course_1Box .bx-viewport {
    height: auto !important;
    min-height: 205px;
    padding-top: 5px;
    box-sizing: border-box;
  }

  /* main1 슬라이더 화살표 - 외부폰트 없이 CSS 아이콘 */
  .page-home .home-section-products .home-product-area .course_1Box .bx-wrapper .bx-controls-direction a {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    /* border: 1px solid var(--gold-light); */
    /* background: var(--natural-white) !important; */
    background: #e5dfd59e !important;
    border-radius: 999px;
    text-indent: 0 !important;
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-mid);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .page-home .home-section-products .home-product-area .course_1Box .bx-wrapper .bx-prev::before,
  .page-home .home-section-products .home-product-area .course_1Box .bx-wrapper .bx-next::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }

  .page-home .home-section-products .home-product-area .course_1Box .bx-wrapper .bx-prev::before {
    transform: rotate(-135deg);
  }

  .page-home .home-section-products .home-product-area .course_1Box .bx-wrapper .bx-next::before {
    transform: rotate(45deg);
  }

  .page-home .home-section-products .home-product-area .course_1Box .bx-wrapper .bx-controls-direction a:hover {
    background: color-mix(in srgb, var(--brown-deep) 82%, transparent) !important;
    border-color: var(--brown-deep);
    color: var(--cream);
  }

  /* main1(신규 출품) 카드 — nesting으로 `.page-home … courseBox ul.course_1 > li` 반복 제거 (화면 동일) */
  .page-home .home-section-products .home-product-area .courseBox {
    & ul.course_1 > li {
      /* `>` 제거: 관리자 스킨에서 li 직자식이 래퍼일 때 카드(.ns-ss-all)에 보더·호버가 안 먹던 문제 */
      :is(.ns-ss-all, .bs-ss-all) {
        position: relative !important;
        background: var(--natural-white) !important;
        border: 1px solid var(--gold-light) !important;
        border-left-width: 3px !important;
        border-left-style: solid !important;
        border-left-color: var(--gold) !important;
        min-height: 0 !important;
        padding: 15px 8px 15px !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        transition: transform 0.2s, box-shadow 0.2s;
        transform: translateY(0) scale(1);
        backface-visibility: hidden;
      }

    

      /* 신규 출품: 카드 전체 그림자 = 특강 진열대와 동일 */
      &:hover :is(.ns-ss-all, .bs-ss-all) {
        transform: translateY(-3px);
        box-shadow: 0 4px 9px rgba(74, 55, 40, 0.08);
      }

      .ns-ss-all .bs-ss-box {
        display: none !important;
      }

      .ns-ss-all :is(.bs-ss-text, .bs-ss-text1, .bs-ss-text2),
      .bs-ss-all :is(.bs-ss-text, .bs-ss-text1, .bs-ss-text2) {
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
      }

      .ns-ss-all .bs-ss-text1 h1,
      .bs-ss-all .bs-ss-text1 h1 {
        font-size: 11px !important;
        letter-spacing: 2px;
        color: var(--gold) !important;
        font-weight: 500 !important;
        display: flex;
        align-items: center;
        gap: 6px;
        line-height: 1.2 !important;
        height: auto !important;
        margin: 0 0 10px !important;
      }

      .ns-ss-all .bs-ss-text1 h1::before,
      .bs-ss-all .bs-ss-text1 h1::before {
        content: '';
        width: 16px;
        height: 0.1px;
        background: var(--gold);
        flex-shrink: 0;
      }

      .ns-ss-all .bs-ss-text h1 {
        font-family: 'Noto Serif KR', serif;
        color: var(--brown-deep) !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        height: auto !important;
        max-height: 3.8em;
        overflow: hidden;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: keep-all;
        font-size: 18px;
        font-weight: 500;
        letter-spacing: -0.5px;
      }

      .ns-ss-all .bs-ss-text h2 {
        display: none !important;
      }

      .ns-ss-all .bs-ss-text2,
      .bs-ss-all .bs-ss-text2 {
        padding: 14px 16px 0 !important;
        margin: 2px 0 0 !important;
        border-top: 1px dashed var(--gold-light);
        min-height: 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        pointer-events: auto;
      }

      .ns-ss-all .bs-ss-text2 *,
      .bs-ss-all .bs-ss-text2 * {
        pointer-events: none;
      }

      .ns-ss-all .bs-ss-text2::after,
      .bs-ss-all .bs-ss-text2::after {
        content: "상세보기";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 84px;
        height: 34px;
        padding: 0 14px;
        border: 1px solid var(--gold-light);
        background: var(--natural-white);
        color: var(--brown-mid);
        font-size: 12px;
        line-height: 1;
        box-sizing: border-box;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 2;
      }

      /* 상세보기 칩에만 올렸을 때 채움(카드 호버와 무관) */
      .ns-ss-all .bs-ss-text2:hover::after,
      .bs-ss-all .bs-ss-text2:hover::after {
        background: var(--brown-deep);
        color: var(--cream);
        border-color: var(--brown-deep);
      }

      .ns-ss-all .main_teacher,
      .bs-ss-all .main_teacher {
        float: none !important;
        width: 100% !important;
        white-space: normal !important;
        font-size: 12px;
        color: var(--brown-mid);
        line-height: 1.8;
        font-family: "Pretendard", sans-serif;
        font-weight: 400;
        word-break: normal;
        overflow-wrap: break-word;
        letter-spacing: -0.2px;
        margin: 0;
        padding: 0;
      }

      .ns-ss-all .main_teacher::before,
      .bs-ss-all .main_teacher::before {
        content: none !important;
      }

      :is(.ns-ss-all, .bs-ss-all) .main_price {
        float: none !important;
        width: auto !important;
        text-align: left !important;
        color: var(--brown-deep) !important;
        font-family: 'Noto Serif KR', serif;
        font-size: 18px;
        letter-spacing: -0.01em;
        line-height: 1.2;
        margin-top: 6px;
        margin-bottom: 10px;
        padding-top: 0;
        border-top: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        flex: 1;
      }

      /* main1 가격 표기 전용: "₩12,000 원" */
      .main_price::before {
        content: '₩';
        display: inline-block;
        margin-right: 2px;
        font-size: 0.95em;
        color: var(--brown-deep);
      }

      .main_price > span {
        font-family: 'Pretendard', sans-serif;
        font-size: 12px;
        color: var(--brown-light);
        margin-left: 2px;
        font-weight: 400;
        vertical-align: baseline;
        margin-top: 4px;
      }
    }
  }

  .page-home ul.course_1 > li a > .bs-ss-text1:first-of-type > .main_date,
  .page-home ul.course_1 > li a > .ns-ss-text1:first-of-type > .main_date {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    white-space: nowrap !important;
    font-size: 11px !important;
    letter-spacing: 2px;
    color: var(--gold) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    font-family: "Pretendard", sans-serif;
    margin: 0 0 3px !important;
  }

  .page-home ul.course_1 > li a > .bs-ss-text1:first-of-type > .main_date::before,
  .page-home ul.course_1 > li a > .ns-ss-text1:first-of-type > .main_date::before {
    content: '' !important;
    display: inline-block;
    width: 16px !important;
    height: 0.1px !important;
    background: var(--gold) !important;
    flex-shrink: 0 !important;
  }

  .page-home ul.course_1 > li a > .bs-ss-text1:not(:first-of-type) > .main_date,
  .page-home ul.course_1 > li a > .ns-ss-text1:not(:first-of-type) > .main_date {
    display: block;
    width: 100%;
    white-space: normal !important;
    font-size: 12px;
    color: var(--brown-mid);
    line-height: 1.8;
    font-family: "Pretendard", sans-serif;
    font-weight: 400;
    word-break: normal;
    overflow-wrap: break-word;
    letter-spacing: -0.2px;
    margin: 0;
    padding: 0;
    margin-top: 10px;
  }

  .page-home ul.course_1 > li a > .bs-ss-text1:not(:first-of-type) > .main_date::before,
  .page-home ul.course_1 > li a > .ns-ss-text1:not(:first-of-type) > .main_date::before {
    content: none !important;
  }

  /* main2(특강 진열대) 전용: 한 카드 확대/깨짐 방지 */
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2:not(.course-use-bxslider) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    width: 100% !important;
    margin: 0;
    padding: 0;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2:not(.course-use-bxslider) > li {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0;
  }

.ns-ss-all {
    position: relative !important;
    background: var(--natural-white) !important;
    border: 1px solid var(--gold-light) !important;
    border-left: 3px solid var(--gold) !important;
    min-height: 0 !important;
    box-sizing: border-box;
    padding: 15px 8px 15px;
    transition: transform 0.2s, box-shadow 0.2s;
  }



/* 
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .ns-ss-all .course-card-icon-badge,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .ns-ss-all .course-card-icon-badge {
    position: absolute;
    top: 0px;
    right: 15px;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
  } */


  .course-card-icon-badge.badge-new {
    position: absolute;
    top: -1px !important;
    right: 20px !important;
    z-index: 2;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 9px;
    padding:5px 8px;
    letter-spacing: 1px;
    font-weight: 500;    
    background: var(--brown-deep);
    color: var(--natural-white);
    pointer-events: none;
  }
  .course-card-icon-badge.badge-new::before {
    content: "BEST";
  }
  .course-card-icon-badge.badge-best {
    position: absolute;
    top: -1px !important;
    right: 20px !important;
    z-index: 2;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 9px;
    padding: 5px 8px;
    letter-spacing: 1px;
    font-weight: 500;
    background: var(--gold);
    color: var(--natural-white);
    pointer-events: none;
  }
  .course-card-icon-badge.badge-best::before {
    content: "NEW";
  }
  .course-card-icon-badge.badge-new img,
  .course-card-icon-badge.badge-best img {
    display: none !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .ns-ss-all .course-card-icon-badge:not(.badge-new):not(.badge-best) img,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .ns-ss-all .course-card-icon-badge:not(.badge-new):not(.badge-best) img {
    display: block;
    max-height: 40px;
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li:hover .ns-ss-all,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li:hover .ns-ss-all {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 55, 40, 0.08);
  }

  /* contents.css 전역 div:has(> .ns-ss-all) 충돌 차단 (main2 전용) */
  .page-home .home-lecture-section .home-product-area .courseBox li:has(> .ns-ss-all),
  .page-home .home-lecture-section .home-product-area .courseBox li:has(> .bs-ss-all),
  .page-home .home-lecture-section .home-product-area .courseBox div:has(> .ns-ss-all),
  .page-home .home-lecture-section .home-product-area .courseBox div:has(> .bs-ss-all) {
    display: block !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text1,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text1,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text2,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text2 {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  /* main2(특강 진열대) 텍스트 전용 세트 */
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text1,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* main2 카드: "변리사" 라인을 lecture-serial 톤으로 */
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text1 h1,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text1 h1 {
    font-size: 11px !important;
    letter-spacing: 2px;
    color: var(--gold) !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 0 10px !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text1 h1::before,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text1 h1::before {
    content: '';
    width: 16px;
    height: 0.1px;
    background: var(--gold);
    flex-shrink: 0;
  }

  /* 신규출품/특강 라벨("변리사") 톤 완전 동일 고정 — ul에 course_N·course_NSlider 동시 부여 */
  .page-home .home-section-products .home-product-area .courseBox ul.course_1 > li .bs-ss-text1 h1,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text1 h1 {
    font-size: 11px !important;
    letter-spacing: 2px !important;
    color: var(--gold) !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
  }

  .page-home .home-section-products .home-product-area .courseBox ul.course_1 > li .bs-ss-text1 h1::before,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text1 h1::before {
    content: '' !important;
    width: 16px !important;
    height: 0.1px !important;
    background: var(--gold) !important;
    flex-shrink: 0 !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text h1,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text h1 {
    font-family: 'Noto Serif KR', serif;
    color: var(--brown-deep) !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    height: auto !important;
    max-height: 3.8em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text {
    margin-top: 0 !important;
    min-height: 0 !important;
  }


  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .bs-ss-text h2,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .bs-ss-text h2 {
    display: none !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_date,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_date {
    display: block;
    width: 100%;
    white-space: normal !important;
    font-size: 12px;
    color: var(--brown-mid);
    line-height: 1.8;
    flex: 1;
    font-family: "Pretendard", sans-serif;
    font-weight: 400;
    word-break: normal;
    overflow-wrap: break-word;
    letter-spacing: -0.2px;
    margin: 0;
    padding: 0;
    margin-top: 10px;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_date::before,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_date::before {
    content: none !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_teacher,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_teacher,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_price,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_price {
    float: none !important;
    width: auto !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_price,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_price {
    text-align: left !important;
    font-family: 'Noto Serif KR', serif;
    color: var(--brown-deep) !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--gold-light);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100% !important;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_price::before,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_price::before {
    content: '₩';
    display: inline-block;
    margin-right: 2px;
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    color: var(--brown-deep);
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_price .price-won,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_price .price-won {
    font-size: 12px;
    color: var(--brown-light);
    font-family: 'Noto Sans KR', sans-serif;
    margin-left: 3px;
    font-weight: 400;
    vertical-align: baseline;
    margin-top: 4px;
  }

  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2 > li .main_price > span,
  .page-home .home-lecture-section .home-product-area .courseBox ul.course_2Slider > li .main_price > span {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    color: var(--brown-deep);
  }


  .page-home .home-lecture-section .home-product-area .courseBox .main2-price-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .page-home .home-lecture-section .home-product-area .courseBox .main2-price-actions .lecture-btn {
    padding: 5px 14px;
    font-size: 11px;
    line-height: 1.2;
  }

  /* 특강 진열대: 버튼 누름 시에도 호버와 동일 톤 */
  .page-home .home-lecture-section .home-product-area .courseBox .main2-price-actions .lecture-btn:active {
    background: var(--brown-deep);
    color: var(--cream);
    border-color: var(--brown-deep);
  }

  @media (max-width: 834px) {
    .page-home .home-lecture-section .home-product-area .courseBox ul.course_2:not(.course-use-bxslider) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 600px) {
    .page-home .home-lecture-section .home-product-area .courseBox ul.course_2:not(.course-use-bxslider) {
      grid-template-columns: 1fr;
    }
  }


  /* main1 영역은 본문 폭 기준으로 사용 */
  .page-home .home-section-products .home-product-area .courseWrap,
  .page-home .home-section-products .home-product-area .courseBox,
  .page-home .home-section-products .home-product-area .courseBox .bx-wrapper {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }


  /* 자료/교재(book_1): slider OFF 시 트랙 폭/인라인 width 잔존 리셋 */
  .page-home .home-material-section .book_1Wrap,
  .page-home .home-material-section .book_1Box {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .page-home .home-material-section .book_1Box .bx-wrapper,
  .page-home .home-material-section .book_1Box .bx-viewport {
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    border: 0 !important;
    left: 0 !important;
    background: transparent !important;
  }

  .page-home .home-material-section ul.book_1,
  .page-home .home-material-section ul.book_1Slider {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px;
    padding: 0;
    transform: none !important;
  }

  .page-home .home-material-section ul.book_1 > li,
  .page-home .home-material-section ul.book_1Slider > li {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0;
    background: var(--natural-white);
    border: 1px solid var(--gold-light);
    border-left: 3px solid var(--gold);
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 68px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .page-home .home-material-section ul.book_1 > li:hover,
  .page-home .home-material-section ul.book_1Slider > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74,55,40,0.08);
  }

  .page-home .home-material-section ul.book_1 > li::after,
  .page-home .home-material-section ul.book_1Slider > li::after {
    content: "";
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 64px;
    border-top: 1px dashed var(--gold-light);
    pointer-events: none;
  }

  .page-home .home-material-section ul.book_1 > li a,
  .page-home .home-material-section ul.book_1Slider > li a {
    display: block;
    color: var(--brown-deep);
    text-decoration: none;
    line-height: 1.65;
  }


  .page-home .home-material-section ul.book_1 > li .sale-price,
  .page-home .home-material-section ul.book_1Slider > li .sale-price {
    font-size: 11px;
    color: var(--brown-light);
    text-decoration: line-through;
    margin-top: 8px;
  }

  /* book_1 기존 스킨(price 라벨) 보정: "가격22,000원" -> "₩22,000 원" 톤 */
  .page-home .home-material-section .book_price {
    font-family: 'Noto Serif KR', serif !important;
    color: var(--brown-deep) !important;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: left !important;
    padding-right: 0 !important;
    position: absolute;
    left: 25px;
    bottom: 22px;
    margin: 0 !important;
    height: auto;
  }

  .page-home .home-material-section .book_price .price-won {
    font-size: 12px;
    color: var(--brown-light);
    font-family: 'Noto Sans KR', sans-serif;
    margin-left: 3px;
    font-weight: 400;
    vertical-align: baseline;
  }

  .page-home .home-material-section .book_price::before {
    content: "₩";
    display: inline-block;
    margin-right: 2px;
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    color: var(--brown-deep);
  }

  .page-home .home-material-section .book_price .book_stit,
  .page-home .home-material-section span.book_stit {
    display: none !important;
  }

  .page-home .home-material-section ul.book_1 > li button,
  .page-home .home-material-section ul.book_1Slider > li button,
  .page-home .home-material-section ul.book_1 > li .lecture-btn,
  .page-home .home-material-section ul.book_1Slider > li .lecture-btn,
  .page-home .home-material-section ul.book_1 > li a[class*='btn'],
  .page-home .home-material-section ul.book_1Slider > li a[class*='btn'] {
    position: absolute;
    right: 25px;
    bottom: 16px;
    margin: 0 !important;
  }

  .page-home .home-material-section .book-add-btn {
    min-width: 52px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--gold-light);
    background: var(--natural-white);
    color: var(--brown-mid);
    font-size: 12px;
    cursor: pointer;
    line-height: 30px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .page-home .home-material-section .book-add-btn:hover,
  .page-home .home-material-section ul.book_1 > li button:hover,
  .page-home .home-material-section ul.book_1Slider > li button:hover,
  .page-home .home-material-section ul.book_1 > li .lecture-btn:hover,
  .page-home .home-material-section ul.book_1Slider > li .lecture-btn:hover,
  .page-home .home-material-section ul.book_1 > li a[class*='btn']:hover,
  .page-home .home-material-section ul.book_1Slider > li a[class*='btn']:hover {
    background: var(--brown-deep);
    color: var(--cream);
    border-color: var(--brown-deep);
  }

  /* 공방벽보 — 풀폭 배경 (page-home-main 밖에 두어 좌우 끝까지) */
  .page-home > .home-bulletin {
    background: var(--cream);
    border-top: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
    margin: 48px 0 0;
    padding: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .bulletin-inner {
    max-width: var(--layout-shell-max, calc(1100px + 4rem));
    margin: 0 auto;
    padding: 64px 0;
  }

  .bulletin-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gold-light);
  }

  .bulletin-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--brown-deep);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
  }

  .bulletin-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--gold);
  }

  .bulletin-more {
    font-size: 12px;
    color: var(--brown-light) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 1px;
    transition: color 0.2s;
    font-weight: 400;
  }

  .bulletin-more:hover {
    color: var(--gold);
  }

  /* 공방벽보: awsPanRecent 출력 + contents.css .btext 리셋 (초안 bulletin-item 톤) */
  .page-home .home-bulletin-board .bbody {
    width: 100% !important;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0 !important;
    background: transparent;
  }

  .page-home .home-bulletin-board .bboard {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .page-home .home-bulletin-board .btext {
    position: relative !important;
    text-align: left;
    border: none !important;
    font-weight: 400 !important;
    margin: 0;
    padding: 0;
  }

  .page-home .home-bulletin-board .btext > ul {
    list-style: none;
    margin: 0;
    padding: 15px 20px 15px 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    background: var(--natural-white);
    border: 1px solid var(--gold-light);
    border-bottom: none;
    transition: background 0.15s;
  }

  .page-home .home-bulletin-board .bboard > .btext:last-child > ul {
    border-bottom: 1px solid var(--gold-light);
  }

  .page-home .home-bulletin-board .btext:hover > ul {
    background: var(--paper);
  }

  .page-home .home-bulletin-board .btext > ul > li {
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    background: none !important;
    overflow: visible !important;
    white-space: normal !important;
    font-size: inherit;
  }

  .page-home .home-bulletin-board .bulletin-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
  }

  /*
   * awsPanRecent: 썸네일 OFF면 제목·날짜가 **첫 번째 li 하나**에만 출력됨.
   * (썸네일 ON일 때만 1열=이미지, 2열=제목 구조)
   */
  .page-home .home-bulletin-board .btext > ul:not(.photo-list) > li:first-child {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 8px;
  }

  .page-home .home-bulletin-board .btext > ul:not(.photo-list) > li:first-child a {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    color: var(--brown-mid);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
    display: inline-block;
    min-width: 0;
    max-width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-home .home-bulletin-board .btext:hover > ul:not(.photo-list) > li:first-child a {
    color: var(--brown-deep);
  }

  .page-home .home-bulletin-board ul.photo-list > li:nth-child(2) {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
  }

  .page-home .home-bulletin-board ul.photo-list > li:nth-child(2) a {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    color: var(--brown-mid);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
  }

  .page-home .home-bulletin-board .btext:hover ul.photo-list > li:nth-child(2) a {
    color: var(--brown-deep);
  }

  .page-home .home-bulletin-board ul.photo-list > li:first-child {
    flex-shrink: 0;
  }

  /* 본문 미리보기 줄: 한 줄 목록이 너무 길어지면 숨김 (필요 시 이 블록 삭제) */
  .page-home .home-bulletin-board .btext > ul > li.contents {
    display: none;
  }

  .page-home .home-bulletin-board .btext span.date {
    position: static !important;
    right: auto !important;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 12px;
    color: var(--brown-light);
    letter-spacing: 0.3px;
  }

  .page-home .home-bulletin-board .nick {
    display: none;
  }

  .page-home .home-bulletin-board .bbs_mode_ic {
    font-size: 10px;
    padding: 0 9px;
    letter-spacing: 1px;
    font-weight: 500;
    flex-shrink: 0;
    border: 1px solid var(--gold-light);
    /* color: var(--brown-light);
    background: var(--cream); */
    margin-right: 10px;
    font-family: 'Noto Sans KR', sans-serif !important;
    height: 24px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-home .home-bulletin-board .bbs_mode_bg_7 {
    background: var(--brown-deep);
    color: var(--cream);
    border-color: var(--brown-deep);
    font-size: 10.8px;
    letter-spacing: -0.1px;
  }

  .page-home .home-bulletin-board .bbs_mode_bg_guide {
    border: 1px solid var(--gold-light);
    color: var(--brown-light);
    background: var(--cream);
    letter-spacing: -0.1px;
    font-size: 11px;
  }

  .page-home .home-bulletin-board .bbs_mode_bg_new {
    background: var(--gold);
    color: var(--natural-white);
    border-color: var(--gold);
    letter-spacing: -0.1px;
    font-size: 9.5px;
  }

  .page-home .home-bulletin-board .bulletin-item .newIcon {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    margin-left: 4px;
    flex-shrink: 0;
    vertical-align: middle;
  }

  .page-home .home-bulletin-board .bulletin-item .newIcon img {
    display: inline-block;
    vertical-align: middle;
  }

  /* 게시물 없음 */
  .page-home .home-bulletin-board .btext:not(:has(> ul)) {
    text-align: center;
    padding: 48px 20px;
    font-size: 13px;
    color: var(--brown-light);
    font-family: 'Noto Serif KR', serif;
    border: 1px dashed var(--gold-light);
    background: var(--natural-white);
  }

  /* ───── 특강 진열대 / 자료·교재 (초안) ───── */
  .page-home .lecture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .lecture-card {
    background: var(--natural-white);
    border: 1px solid var(--gold-light);
    border-left: 3px solid var(--gold);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
  }

  .page-home .lecture-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 55, 40, 0.08);
  }

  .page-home .lecture-card.featured {
    border-left-color: var(--brown-deep);
    background: var(--cream);
  }

  .page-home .lecture-card-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    font-size: 9px;
    padding: 3px 10px;
    letter-spacing: 1px;
    font-weight: 500;
    background: var(--gold);
    color: var(--natural-white);
  }

  .page-home .lecture-card-badge.best {
    background: var(--brown-deep);
  }

  .page-home .lecture-serial {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .page-home .lecture-serial::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--gold);
  }

  .page-home .lecture-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--brown-deep);
    letter-spacing: -0.5px;
    line-height: 1.3;
  }

  .page-home .lecture-desc {
    font-size: 12px;
    color: var(--brown-mid);
    line-height: 1.8;
    flex: 1;
  }

  .page-home .lecture-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed var(--gold-light);
    margin-top: 4px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .page-home .lecture-footer-single {
    justify-content: space-between;
  }

  .page-home .lecture-footer-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .page-home .lecture-price {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    color: var(--brown-deep);
  }

  .page-home .lecture-price small {
    font-size: 11px;
    color: var(--brown-light);
    font-family: 'Noto Sans KR', sans-serif;
    margin-left: 2px;
  }

  .page-home .lecture-btn {
    font-size: 11px;
    color: var(--brown-mid);
    border: 1px solid var(--gold-light);
    background: transparent;
    padding: 5px 14px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
  }

  .page-home .lecture-btn:hover {
    background: var(--brown-deep);
    color: var(--cream);
    border-color: var(--brown-deep);
  }

  .page-home .lecture-btn-muted {
    border-color: var(--gold-light);
    color: var(--brown-light);
  }

  .page-home > .home-material-band {
    background: var(--cream);
    border-top: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
    margin: 48px 0 0;
    padding: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .page-home .home-material-section {
    max-width: var(--layout-shell-max, calc(1100px + 4rem));
    margin: 0 auto;
    padding: 64px 0;
  }

  /* ───── 미리보기 모달 (특강) ───── */
  .home-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 31, 20, 0.6);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }

  .home-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .home-modal-box {
    background: var(--natural-white);
    border: 1px solid var(--gold-light);
    border-top: 3px solid var(--gold);
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0 1.5rem;
    transform: translateY(16px);
    transition: transform 0.25s;
  }

  .home-modal-overlay.open .home-modal-box {
    transform: translateY(0);
  }

  .home-modal-head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gold-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--cream);
  }

  .home-modal-serial {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .home-modal-serial::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--gold);
  }

  .home-modal-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--brown-deep);
  }

  .home-modal-close {
    background: none;
    border: 1px solid var(--gold-light);
    color: var(--brown-light);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.15s;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-modal-close:hover {
    background: var(--brown-deep);
    color: var(--cream);
    border-color: var(--brown-deep);
  }

  .home-modal-body {
    padding: 24px;
  }

  .home-modal-desc {
    font-size: 13px;
    color: var(--brown-mid);
    line-height: 1.9;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--gold-light);
  }

  .home-modal-info-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
  }

  .home-modal-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
  }

  .home-modal-info-list li {
    font-size: 13px;
    color: var(--brown-mid);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
  }

  .home-modal-info-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 7px;
  }

  .home-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
  }

  .home-modal-price {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px;
    color: var(--brown-deep);
  }

  .home-modal-price small {
    font-size: 12px;
    color: var(--brown-light);
    font-family: 'Noto Sans KR', sans-serif;
  }

  .home-modal-buy {
    background: var(--brown-deep);
    color: var(--cream);
    border: none;
    padding: 10px 28px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-modal-buy:hover {
    background: var(--brown-mid);
  }

  /* 900px에서 장식 숨기면 835~900px 구간이 한쪽만 보임 → 모바일 구간(834이하)과 맞춤 */
  @media (max-width: 834px) {
    html, body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    #wrapmain,
    #main_contents,
    .page-home {
      width: 100% !important;
      max-width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      overflow-x: hidden;
    }

    .page-home .bx-wrapper,
    .page-home .bx-viewport,
    .page-home .bannerWrap {
      width: 100% !important;
      max-width: 100% !important;
      left: 0 !important;
      box-sizing: border-box;
    }

    /* 모바일만: 본문·탭·벽보 좌우 여백 (데스크톱은 max-width 중앙 정렬만 유지) */
    .page-home-main {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .home-category-bar .category-tabs {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .bulletin-inner {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .hero-inner {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .hero-deco {
      display: none;
    }

    /* 모바일: 메인 비주얼은 텍스트 위주(오른쪽 카드/장식 숨김) */
    .max768 .bannerWrap .banner .hero .hero-inner {
      grid-template-columns: 1fr !important;
      gap: 0 !important;
    }

    .max768 .bannerWrap .banner .hero .hero-inner > :last-child {
      display: none !important;
    }

    .hero {
      padding: 40px 1rem 36px;
    }

    .hero::before {
      display: none;
    }

    .hero h1 {
      font-size: 30px;
      line-height: 1.35;
      margin-bottom: 14px;
    }

    .hero-desc {
      font-size: 13px;
      line-height: 1.75;
      margin-bottom: 20px;
      max-width: 100%;
      font-weight: 500;
    }

    .home-category-bar {
      padding: 12px 0;
    }

    .home-category-bar .category-tabs {
      gap: 6px;
    }

    .category-tabs .tab,
    .subtab {
      min-height: 38px;
      padding: 6px 12px;
      font-size: 12px;
    }

    .subtab-label {
      font-size: 9px;
    }

    .page-home-main {
      padding-bottom: 40px;
    }

    .home-section {
      padding-top: 40px;
    }

    .section-header {
      margin-bottom: 20px;
      padding-bottom: 10px;
    }

    .home-section .section-title,
    .bulletin-title {
      font-size: 18px;
      gap: 8px;
    }

    .home-section .section-title::before,
    .bulletin-title::before {
      height: 18px;
    }

    .home-section .section-more,
    .bulletin-more {
      font-size: 11px;
    }

    .page-home .home-bulletin-board .btext > ul:not(.photo-list) > li:first-child a {
      font-weight: 500;
    }

    .page-home ul.course_1 > li a > .bs-ss-text1:not(:first-of-type) > .main_date,
    .page-home ul.course_1 > li a > .ns-ss-text1:not(:first-of-type) > .main_date {
      font-size: 15px !important;
        line-height: 20px;
        margin-bottom: 10px;
    }

    .home-product-area .web-main-card-w .courseBox ul.course_1:not(.course-use-bxslider),
    .home-product-area .web-main-card-w .courseBox ul[class*="course_"]:not(.course-use-bxslider) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .home-material-section ul.book_1,
    .page-home .home-material-section ul.book_1Slider {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .lecture-grid {
      grid-template-columns: 1fr;
    }

    .page-home .home-material-section {
      padding-left: 1rem;
      padding-right: 1rem;
      padding-top: 40px;
      padding-bottom: 40px;
    }
  }

  @media (max-width: 600px) {
    .home-product-area .web-main-card-w .courseBox ul.course_1:not(.course-use-bxslider),
    .home-product-area .web-main-card-w .courseBox ul[class*="course_"]:not(.course-use-bxslider) {
      grid-template-columns: 1fr;
    }

    .page-home .home-material-section ul.book_1,
    .page-home .home-material-section ul.book_1Slider {
      grid-template-columns: 1fr;
    }

    .category-tabs {
      flex-direction: column;
      align-items: stretch;
    }

    .home-category-bar .category-tabs {
      gap: 8px;
    }

    .category-tabs .tab {
      width: 100%;
    }

    .subtab-bar {
      width: 100%;
      gap: 4px;
    }

    .subtab-bar.visible {
      max-width: 100%;
    }

    .subtab {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 8px;
      font-size: 11px;
    }

    .subtab-label,
    .subtab-divider {
      display: none;
    }

    .home-section .section-title,
    .bulletin-title {
      font-size: 16px;
    }

    .hero {
      padding-top: 32px;
      padding-bottom: 28px;
    }

    .hero h1 {
      font-size: 26px;
    }
  }

  /* 헤더 GNB 2뎁스: awsTopNebi(.gnb / p.twoDep) — base .header-section overflow 대비 */
  .site-header .header-section,
  .site-header .header-inner,
  .site-header .header-nav-wrap,
  .site-header #gnb_area {
    overflow: visible !important;
  }
