/* 과정소개(전체과정 로드맵) 전용 스타일 */
:root {
  --primary: #FF6B00;
  --primary-hover: #E55C00;
  --primary-light: #FFF4EB;
  --primary-glow: rgba(255, 107, 0, 0.28);
  --navy-dark: #0F172A;
  --navy-card: #1E293B;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --white: #FFFFFF;
  --emerald: #10B981;
  --blue: #2563EB;
  --purple: #9333EA;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -8px rgba(15, 23, 42, 0.16);
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background-color: #F8FAFC;
}

    /* ==========================================
       🧭 Page Layout & OTT Netflix-Style Showcase
       ========================================== */
    .page-wrapper {
      max-width: 1360px;
      width: 100%;
      margin: 0 auto;
      padding: 2.2rem 1.5rem 5rem;
      flex-grow: 1;
    }

    .breadcrumb-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: var(--slate-400);
      margin-bottom: 1.2rem;
      font-weight: 600;
    }
    .breadcrumb-row a { color: var(--slate-600); text-decoration: none; }
    .breadcrumb-row a:hover { color: var(--primary); }

    /* Page Hero Banner */
    .page-hero {
      background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
      border-radius: var(--radius-lg);
      padding: 2.2rem 2.6rem;
      color: var(--white);
      margin-bottom: 2rem;
      position: relative;
      overflow: hidden;
      box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22);
    }
    .page-hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(255, 107, 0, 0.18) 0%, transparent 70%);
      pointer-events: none;
    }
    .page-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 107, 0, 0.2);
      border: 1px solid rgba(255, 107, 0, 0.4);
      color: #FF8533;
      padding: 4px 14px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 800;
      letter-spacing: 0.8px;
      margin-bottom: 1rem;
    }
    .page-hero h1 {
      font-size: 2.35rem;
      font-weight: 900;
      line-height: 1.3;
      letter-spacing: -0.8px;
      margin-bottom: 0.75rem;
    }
    .page-hero h1 span.highlight { color: #FF6B00; }
    .page-hero p {
      color: #CBD5E1;
      font-size: 1.05rem;
      max-width: 820px;
      line-height: 1.65;
    }

    /* Quick Level Stepper Pills */
    .level-stepper-row {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-top: 1.6rem;
      flex-wrap: wrap;
    }
    .stepper-pill {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #E2E8F0;
      padding: 5px 13px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
    }
    .stepper-pill.active, .stepper-pill:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #FFFFFF;
      transform: translateY(-2px);
    }

    /* ==========================================
       🎬 OTT 2-Column Split Master Layout
       ========================================== */
    .ott-container-layout {
      display: grid;
      grid-template-columns: 500px 1fr;
      gap: 2rem;
      align-items: flex-start;
    }

    /* 📽️ Left Column: Sticky Theater Spotlight Panel */
    /* 📽️ Left Column: Sticky Theater Spotlight Panel (스크롤 완전 밀착 추적) */
    .ott-theater-sticky {
      position: sticky;
      top: 96px;
      align-self: start;
      height: fit-content;
      z-index: 50;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .theater-card {
      background: #FFFFFF;
      border: 1.5px solid #E2E8F0;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 20px rgba(255, 107, 0, 0.04);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }

    /* Poster Header Area (165px) */
    .theater-poster-box {
      position: relative;
      width: 100%;
      height: 165px;
      flex-shrink: 0;
      background: #0F172A;
      overflow: hidden;
    }
    .theater-poster-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
      filter: brightness(0.85);
    }
    .theater-poster-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.92) 100%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 1.1rem 1.3rem;
    }
    .theater-top-tags {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .badge-rank-best {
      background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);
      color: #FFFFFF;
      font-weight: 800;
      font-size: 0.74rem;
      padding: 3px 10px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
    }
    .badge-level-tag {
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #FFFFFF;
      font-size: 0.74rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 12px;
    }
    .theater-poster-headline {
      color: #FFFFFF;
    }
    .theater-category-label {
      font-size: 0.72rem;
      font-weight: 800;
      color: #FF8533;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .theater-title-main {
      font-size: 1.32rem;
      font-weight: 900;
      line-height: 1.25;
      letter-spacing: -0.5px;
      margin-top: 2px;
    }

    /* 🎭 Theater Body Container */
    .theater-body-container {
      padding: 1.25rem 1.35rem 1.45rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      background: #FFFFFF;
      min-width: 0;
      max-width: 100%;
    }

    /* 1. Top 2-Column Split: Book Cover & Info */
    .theater-top-split {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 1.15rem;
      align-items: stretch;
      min-width: 0;
      max-width: 100%;
    }

    .theater-split-left {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.6rem;
      width: 150px;
    }
    .book-cover-frame {
      width: 100%;
      height: 195px;
      background: #F8FAFC;
      border: 1.5px solid #E2E8F0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 20px -4px rgba(15, 23, 42, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      position: relative;
    }
    .book-cover-img-real {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 8px;
      transition: transform 0.3s ease;
    }
    .book-cover-frame:hover .book-cover-img-real {
      transform: scale(1.05);
    }
    .book-spec-pill {
      width: 100%;
      background: #FFF4EB;
      border: 1.5px solid #FED7AA;
      color: #C2410C;
      font-size: 0.76rem;
      font-weight: 800;
      padding: 6px 10px;
      border-radius: 12px;
      text-align: center;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      box-shadow: 0 2px 6px rgba(255, 107, 0, 0.08);
      box-sizing: border-box;
    }
    .book-level-dropdown-wrap {
      width: 100%;
      box-sizing: border-box;
      position: relative;
    }
    .book-level-select {
      width: 100%;
      background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
      border: 2px solid #FF6B00;
      color: #C2410C;
      font-size: 0.76rem;
      font-weight: 800;
      padding: 6px 26px 6px 10px;
      border-radius: 12px;
      text-align: left;
      cursor: pointer;
      outline: none;
      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
      box-sizing: border-box;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23FF6B00' d='M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
      background-size: 10px;
      font-family: inherit;
      transition: all 0.22s ease;
    }
    .book-level-select:hover, .book-level-select:focus {
      background-color: #FED7AA;
      border-color: #EA580C;
      box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
      transform: translateY(-1px);
    }
    .book-level-select option {
      background: #FFFFFF;
      color: #0F172A;
      font-weight: 700;
      padding: 6px;
    }

    .theater-split-right {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.55rem;
      min-width: 0;
      max-width: 100%;
    }
    .theater-eng-tagline {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--primary);
      font-style: italic;
      line-height: 1.35;
    }
    .theater-desc-compact {
      font-size: 0.82rem;
      color: var(--slate-600);
      line-height: 1.5;
    }

    /* Target Audience (좌측 레벨 뱃지 하단선과 칼각 일치) */
    .theater-target-section {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      padding: 0.65rem 0.8rem;
      box-sizing: border-box;
      min-width: 0;
      max-width: 100%;
    }
    .target-title-label {
      font-size: 0.72rem;
      font-weight: 800;
      color: #94A3B8;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 2px;
    }
    .target-checklist {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.28rem;
    }
    .target-checklist li {
      font-size: 0.77rem;
      font-weight: 700;
      color: #334155;
      display: flex;
      align-items: center;
      gap: 6px;
      line-height: 1.35;
      min-width: 0;
      max-width: 100%;
    }
    .target-checklist li i {
      color: #FF6B00;
      font-size: 0.72rem;
      flex-shrink: 0;
    }
    .target-checklist li span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* 2. Unit 1~3 Key Syllabus Preview & Header Actions */
    .theater-syllabus-preview {
      border-top: 1px solid #F1F5F9;
      padding-top: 0.85rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      min-width: 0;
      max-width: 100%;
    }
    .theater-syllabus-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .syllabus-header-title {
      font-size: 0.76rem;
      font-weight: 800;
      color: #64748B;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .syllabus-header-actions {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .btn-syllabus-action {
      background: #FFFFFF;
      border: 1.5px solid #CBD5E1;
      color: #334155;
      font-size: 0.72rem;
      font-weight: 800;
      padding: 0.22rem 0.55rem;
      border-radius: 7px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
      white-space: nowrap;
    }
    .btn-syllabus-action i {
      color: #FF6B00;
      font-size: 0.75rem;
    }
    .btn-syllabus-action:hover {
      background: #FFF7ED;
      border-color: #FF6B00;
      color: #FF6B00;
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(255, 107, 0, 0.18);
    }

    /* Modal - Sample Book & Full Curriculum */
    .sample-modal-box {
      max-width: 960px;
      width: 95%;
      max-height: 92vh;
      overflow-y: auto;
      border-radius: 20px;
      padding: 1.8rem;
    }
    .sample-modal-title {
      font-size: 1.3rem;
      font-weight: 900;
      color: #0F172A;
      margin: 0 0 0.35rem;
    }
    .sample-modal-desc {
      font-size: 0.88rem;
      color: #64748B;
      margin: 0;
    }
    .sample-pdf-frame {
      flex: 1 1 auto;
      min-height: 0;
      height: auto;
      margin-top: 0.75rem;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
    }
    .sample-pdf-frame iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      background: #fff;
    }
    .sample-pdf-fallback {
      margin: 0.55rem 0 0;
      font-size: 0.78rem;
      color: #64748B;
    }
    .sample-pdf-fallback a {
      color: #C2410C;
      font-weight: 800;
    }
    .sample-modal-actions {
      flex: 0 0 auto;
      display: flex;
      gap: 0.6rem;
      margin-top: 0.7rem;
      padding-top: 0.75rem;
      border-top: 1px solid #F1F5F9;
    }
    .sample-modal-actions .btn-full-primary,
    .sample-modal-actions .btn-full-secondary {
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      padding: 0.82rem 0.7rem;
      font-size: 0.88rem;
    }
    .curriculum-modal-box {
      max-width: 940px;
      width: 95%;
      max-height: 90vh;
      overflow-y: auto;
      border-radius: 20px;
      padding: 2rem;
    }
    .curri-accent-bar {
      width: 44px;
      height: 4px;
      background: linear-gradient(90deg, #FF6B00, #FF8A00);
      border-radius: 3px;
      margin: 0.4rem 0 0.9rem;
      border: none;
    }
    .sample-book-preview-grid {
      display: grid;
      grid-template-columns: 190px 1fr;
      gap: 1.4rem;
      margin-top: 1.2rem;
      align-items: start;
    }
    @media (max-width: 640px) {
      .sample-book-preview-grid {
        grid-template-columns: 1fr;
      }
    }
    .sample-book-thumb-frame {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 14px;
      padding: 1rem;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .sample-book-thumb-frame img {
      max-width: 100%;
      height: auto;
      max-height: 220px;
      object-fit: contain;
      border-radius: 8px;
    }
    .curri-table-wrapper {
      max-height: 56vh;
      overflow-y: auto;
      margin-top: 0.8rem;
      border: 1.5px solid #E2E8F0;
      border-radius: 14px;
      background: #FFFFFF;
      box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    }
    .curriculum-2col-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }
    .curriculum-2col-table thead th {
      background: #F8FAFC;
      color: #475569;
      font-size: 0.78rem;
      font-weight: 800;
      padding: 0.75rem 0.9rem;
      border-bottom: 1.5px solid #E2E8F0;
      position: sticky;
      top: 0;
      z-index: 2;
    }
    .curriculum-2col-table tbody tr {
      border-bottom: 1px solid #F1F5F9;
      transition: background 0.15s ease;
    }
    .curriculum-2col-table tbody tr:last-child {
      border-bottom: none;
    }
    .curriculum-2col-table tbody tr:hover {
      background: #FFF9F5;
    }
    .curri-cell-unit {
      width: 50px;
      text-align: center;
      font-size: 0.78rem;
      font-weight: 800;
      color: #FF6B00;
      padding: 0.65rem 0.4rem;
      background: rgba(255, 247, 237, 0.45);
      border-right: 1px solid #F1F5F9;
    }
    .curri-cell-topic {
      font-size: 0.82rem;
      color: #334155;
      font-weight: 600;
      padding: 0.65rem 0.9rem;
      line-height: 1.4;
    }
    .curri-cell-topic.divider-right {
      border-right: 1.5px solid #E2E8F0;
    }
    .compact-unit-list {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      min-width: 0;
      max-width: 100%;
    }
    .unit-preview-card {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 10px;
      padding: 0.55rem 0.8rem;
      display: flex;
      flex-direction: column;
      gap: 3px;
      transition: all 0.2s ease;
      min-width: 0;
      max-width: 100%;
    }
    .unit-preview-card:hover {
      background: #FFFDFB;
      border-color: #FED7AA;
      transform: translateX(2px);
    }
    .unit-preview-top {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      max-width: 100%;
    }
    .unit-badge-pill {
      font-size: 0.68rem;
      font-weight: 800;
      color: #FF6B00;
      background: #FFF4EB;
      border: 1px solid #FFEDD5;
      padding: 1px 6px;
      border-radius: 6px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .unit-main-name {
      font-size: 0.82rem;
      font-weight: 800;
      color: #1E293B;
      min-width: 0;
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .unit-key-line {
      font-size: 0.76rem;
      color: #64748B;
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 2px;
      min-width: 0;
      max-width: 100%;
      overflow: hidden;
    }
    .unit-key-line > span {
      flex-shrink: 0;
      white-space: nowrap;
    }
    .unit-key-line strong {
      color: #C2410C;
      font-weight: 700;
      min-width: 0;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* 3. Full-Width CTA Actions */
    .theater-full-actions {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      padding-top: 0.25rem;
    }
    .btn-full-primary {
      width: 100%;
      background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);
      color: #FFFFFF;
      padding: 0.85rem 1.2rem;
      border-radius: 14px;
      font-size: 0.95rem;
      font-weight: 800;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
      transition: all 0.25s ease;
    }
    .btn-full-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(255, 107, 0, 0.5);
    }
    .btn-full-secondary {
      width: 100%;
      background: #0F172A;
      color: #FFFFFF;
      padding: 0.75rem 1.2rem;
      border-radius: 14px;
      font-size: 0.88rem;
      font-weight: 800;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.2s;
    }
    .btn-full-secondary:hover {
      background: #1E293B;
      color: #FF8533;
    }

    /* ==========================================
       📚 Right Column: OTT Catalog & Horizontal Shelves
       ========================================== */
    .ott-catalog-panel {
      display: flex;
      flex-direction: column;
      gap: 1.6rem;
      min-width: 0; /* Prevents flex overflow */
    }

    /* Filter & Search Header Bar (6개 탭 균등 1열 황금비율 & 패널 스케일업) */
    .catalog-filter-bar {
      background: #FFFFFF;
      border: 1.5px solid var(--slate-200);
      border-radius: var(--radius-md);
      padding: 1.15rem 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
      box-shadow: var(--shadow-card);
    }
    .filter-pills-row {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 0.5rem;
      width: 100%;
    }
    .filter-pill-btn {
      background: #F1F5F9;
      border: 1.5px solid #E2E8F0;
      color: #475569;
      height: 42px;
      padding: 0 4px;
      border-radius: 12px;
      font-size: 0.83rem;
      font-weight: 700;
      letter-spacing: -0.35px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-align: center;
      white-space: nowrap;
      line-height: 1;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }
    .filter-pill-btn i {
      font-size: 0.86rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      flex-shrink: 0;
    }
    .filter-pill-btn span {
      display: inline-block;
      line-height: 1;
    }
    .filter-pill-btn:hover { 
      background: #E2E8F0; 
      color: #0F172A;
      transform: translateY(-1px);
    }
    .filter-pill-btn.active {
      background: #0F172A;
      color: #FFFFFF;
      border-color: #0F172A;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    }
    .filter-pill-btn.active i {
      color: #FFFFFF !important;
    }
    .filter-pill-btn.active.best-btn {
      background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);
      border-color: #FF6B00;
      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
    }

    .catalog-search-box {
      position: relative;
      width: 100%;
    }
    .catalog-search-box input {
      width: 100%;
      background: #F8FAFC;
      border: 1.5px solid #E2E8F0;
      padding: 0.65rem 1rem 0.65rem 2.6rem;
      border-radius: 12px;
      font-size: 0.88rem;
      font-weight: 600;
      outline: none;
      transition: all 0.2s;
    }
    .catalog-search-box input:focus {
      background: #FFFFFF;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
    }
    .catalog-search-box i {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: #94A3B8;
      font-size: 0.9rem;
    }

    /* Shelf Section Header & Slider Controls */
    .catalog-shelf-section {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      min-width: 0;
    }
    .shelf-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 2px solid #E2E8F0;
      padding-bottom: 0.5rem;
    }
    .shelf-title-wrap {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
    }
    .shelf-title {
      font-size: 1.15rem;
      font-weight: 900;
      color: #0F172A;
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .shelf-count {
      font-size: 0.78rem;
      font-weight: 700;
      color: #64748B;
    }
    .shelf-slider-nav {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .btn-slide-nav {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #FFFFFF;
      border: 1.5px solid #CBD5E1;
      color: #475569;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.75rem;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }
    .btn-slide-nav:hover {
      background: #FF6B00;
      color: #FFFFFF;
      border-color: #FF6B00;
      box-shadow: 0 4px 10px rgba(255, 107, 0, 0.35);
      transform: scale(1.05);
    }
    .btn-slide-nav:active {
      transform: scale(0.95);
    }

    /* Horizontal Carousel Track (우측으로 가는 슬라이드) */
    .shelf-carousel-wrapper {
      position: relative;
      width: 100%;
      overflow: hidden;
    }
    .shelf-carousel-track {
      display: flex;
      gap: 1.1rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
      padding: 4px 4px 14px 4px;
    }
    .shelf-carousel-track::-webkit-scrollbar {
      display: none;
    }
    .shelf-carousel-track .course-card-item {
      flex: 0 0 calc((100% - 2 * 1.1rem) / 3);
      width: calc((100% - 2 * 1.1rem) / 3);
      min-width: calc((100% - 2 * 1.1rem) / 3);
    }

    /* 2-Row Horizontal Slide Track (정규 회화 전용 3열 2행 6개 칼각 핏팅) */
    .shelf-carousel-track.two-row-slide {
      display: grid;
      grid-template-rows: repeat(2, auto);
      grid-auto-flow: column;
      grid-auto-columns: calc((100% - 2 * 1.1rem) / 3);
      gap: 1.1rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
      padding: 4px 4px 14px 4px;
    }
    .shelf-carousel-track.two-row-slide::-webkit-scrollbar {
      display: none;
    }
    .shelf-carousel-track.two-row-slide .course-card-item {
      flex: none;
      width: 100%;
      min-width: 0;
    }

    /* 2-Row Full Grid (베스트 6 전면 3열 2행 6개 배치) */
    .shelf-carousel-track.two-row-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.1rem;
      overflow-x: visible;
      padding: 4px 4px 14px 4px;
    }
    .shelf-carousel-track.two-row-grid .course-card-item {
      flex: none;
      width: 100%;
      min-width: 0;
    }

    /* Course Card in Horizontal Shelf (위아래 여유 확장 & 좌측 패널 하단 칼각 일치) */
    .course-card-item {
      background: #FFFFFF;
      border: 1.5px solid #E2E8F0;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      position: relative;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }
    .course-card-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 26px -6px rgba(15, 23, 42, 0.12);
      border-color: #CBD5E1;
    }
    .course-card-item.selected {
      border: 2px solid #FF6B00 !important;
      box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25), 0 14px 26px rgba(255, 107, 0, 0.15) !important;
      transform: translateY(-3px);
    }

    .card-thumb-wrap {
      position: relative;
      width: 100%;
      height: 145px;
      background: #0F172A;
      overflow: hidden;
    }
    .card-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }
    .course-card-item:hover .card-thumb-img {
      transform: scale(1.06);
    }
    .card-floating-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(15, 23, 42, 0.78);
      backdrop-filter: blur(4px);
      color: #FFFFFF;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .card-floating-badge.card-badge-best {
      background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);
      border: none;
      font-weight: 800;
      box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    }
    .card-unit-pill {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background: rgba(15, 23, 42, 0.85);
      color: #FFFFFF;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 6px;
    }

    .card-info-content {
      padding: 0.95rem 1.05rem 1.1rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex: 1;
      gap: 0.55rem;
      background: #FFFFFF;
    }
    .card-sub-category {
      font-size: 0.7rem;
      font-weight: 800;
      color: #FF6B00;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      margin-bottom: 2px;
    }
    .card-main-title {
      font-size: 0.98rem;
      font-weight: 800;
      color: #0F172A;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-brief-desc {
      font-size: 0.78rem;
      color: var(--slate-600);
      line-height: 1.45;
      margin-top: 2px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-footer-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid #F1F5F9;
      padding-top: 0.55rem;
      font-size: 0.73rem;
      color: #64748B;
      font-weight: 700;
    }
    .card-select-hint {
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-weight: 800;
    }

    /* Curriculum modal close button */

    .modal-close-btn {
      position: absolute;
      top: 1.2rem;
      right: 1.2rem;
      background: #F1F5F9;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      color: #64748B;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 20;
      font-size: 0.95rem;
    }
    .modal-close-btn:hover {
      background: #E2E8F0;
      color: #0F172A;
      transform: rotate(90deg);
    }

    /* 🚀 UCanSpeak Signature Vibrant Orange Primary CTA Button (Modal & Theater) */
    .btn-theater-primary,
    .btn-modal-submit,
    .modal-box form button[type="submit"] {
      background: linear-gradient(135deg, #FF6B00 0%, #FF8800 100%) !important;
      color: #FFFFFF !important;
      border: none !important;
      border-radius: 14px !important;
      padding: 0.95rem 1.6rem !important;
      font-size: 1.05rem !important;
      font-weight: 800 !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.5rem !important;
      box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35) !important;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
      letter-spacing: -0.3px !important;
      box-sizing: border-box !important;
      text-decoration: none !important;
      font-family: inherit !important;
      width: 100%;
    }
    .btn-theater-primary:hover,
    .btn-modal-submit:hover,
    .modal-box form button[type="submit"]:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 12px 28px rgba(255, 107, 0, 0.45) !important;
      background: linear-gradient(135deg, #FF5500 0%, #FF7700 100%) !important;
    }
    .btn-theater-primary:active,
    .btn-modal-submit:active,
    .modal-box form button[type="submit"]:active {
      transform: translateY(0) !important;
      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3) !important;
    }
    .btn-theater-primary.btn-dark-secondary {
      background: #0F172A !important;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
    }
    .btn-theater-primary.btn-dark-secondary:hover {
      background: #1E293B !important;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35) !important;
    }


    /* 📑 2-Column Luxury Curriculum Modal Styling */
    .curriculum-modal-box {
      max-width: 960px !important;
      width: 94% !important;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      padding: 2.2rem 2.4rem 1.8rem;
    }
    .curri-accent-bar {
      width: 38px;
      height: 3px;
      background: #FF6B00;
      border: none;
      margin: 6px 0 10px;
      border-radius: 2px;
    }
    .curri-table-wrapper {
      margin-top: 1.2rem;
      max-height: 55vh;
      overflow-y: auto;
      border: 1.5px solid #E2E8F0;
      border-radius: 14px;
      background: #FFFFFF;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    }
    .curri-table-wrapper::-webkit-scrollbar {
      width: 6px;
    }
    .curri-table-wrapper::-webkit-scrollbar-track {
      background: #F8FAFC;
    }
    .curri-table-wrapper::-webkit-scrollbar-thumb {
      background: #CBD5E1;
      border-radius: 10px;
    }
    .curri-table-wrapper::-webkit-scrollbar-thumb:hover {
      background: #94A3B8;
    }
    .curriculum-2col-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.88rem;
      text-align: left;
    }
    .curriculum-2col-table thead {
      position: sticky;
      top: 0;
      background: #F8FAFC;
      z-index: 10;
      box-shadow: 0 1px 0 #E2E8F0;
    }
    .curriculum-2col-table th {
      padding: 0.75rem 1rem;
      font-size: 0.82rem;
      font-weight: 800;
      color: #475569;
      background: #F8FAFC;
      border-bottom: 1.5px solid #E2E8F0;
      letter-spacing: 0.3px;
    }
    .curriculum-2col-table tbody tr {
      border-bottom: 1px solid #F1F5F9;
      transition: background 0.15s ease;
    }
    .curriculum-2col-table tbody tr:last-child {
      border-bottom: none;
    }
    .curriculum-2col-table tbody tr:hover {
      background: #FFF8F3;
    }
    .curri-cell-unit {
      width: 50px;
      text-align: center;
      font-weight: 800;
      color: #FF6B00;
      font-size: 0.85rem;
      padding: 0.7rem 0.5rem;
      vertical-align: middle;
      background: rgba(255, 107, 0, 0.03);
    }
    .curri-cell-topic {
      padding: 0.7rem 1.1rem;
      color: #1E293B;
      font-weight: 600;
      line-height: 1.45;
      vertical-align: middle;
      font-size: 0.86rem;
    }
    .curri-cell-topic.divider-right {
      border-right: 1.5px solid #E2E8F0;
    }

    /* ==========================================

    /* ==========================================
       📱 Ultra-Polished Responsive & Mobile Styling
       (PC 버전 100% 무변경 유지, 모바일 전용 완벽 핏팅)
       ========================================== */
    @media (max-width: 1100px) {
      .ott-container-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      .ott-theater-sticky {
        position: static;
        top: auto;
      }
    }

    @media (max-width: 992px) {
      .main-nav-container, 
      .header-right .btn-login-text, 
      .header-right .btn-leveltest-cta { 
        display: none !important; 
      }
      .mobile-menu-toggle { 
        display: block !important; 
      }
      .page-hero { 
        padding: 2.2rem 1.4rem; 
      }
      .page-hero h1 { 
        font-size: 1.8rem; 
        line-height: 1.3;
      }
      .page-hero p {
        font-size: 0.95rem;
      }
      
      /* Tablet 2-Column Cards */
      .shelf-carousel-track .course-card-item {
        flex: 0 0 calc((100% - 1.1rem) / 2);
        width: calc((100% - 1.1rem) / 2);
        min-width: calc((100% - 1.1rem) / 2);
      }
      .shelf-carousel-track.two-row-slide {
        grid-auto-columns: calc((100% - 1.1rem) / 2);
      }
      .shelf-carousel-track.two-row-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
      }
      .header-inner {
        padding: 0 1rem;
        height: 66px;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .logo-img {
        height: 40px;
      }
      .page-wrapper {
        padding: 1.2rem 0.75rem 3.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
      }
      .ott-container-layout {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
      }
      .ott-theater-sticky {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .breadcrumb-row {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
      }

      /* Hero Banner on Mobile */
      .page-hero {
        padding: 1.5rem 1rem !important;
        margin: 0 auto 1.4rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .page-hero-badge {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
        margin-bottom: 0.7rem !important;
      }
      .page-hero h1 {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.6rem !important;
        word-break: keep-all !important;
      }
      .page-hero p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
        word-break: keep-all !important;
      }
      .hero-pills-row {
        gap: 0.35rem !important;
      }
      .hero-pill-badge {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
      }

      /* Theater Spotlight Panel on Mobile (2열 슬림 컴팩트 & 배지 무잘림) */
      /* Theater Spotlight Panel on Mobile (2열 슬림 컴팩트 & 배지/버튼 무잘림 완벽 핏팅) */
      .theater-card {
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
      }
      .theater-poster-box {
        height: 125px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
      }
      .theater-poster-overlay {
        padding: 0.65rem 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .theater-top-tags {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .badge-rank-best {
        font-size: 0.65rem !important;
        padding: 2px 7px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
      }
      .badge-level-tag {
        font-size: 0.65rem !important;
        padding: 2px 7px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
      }
      .theater-category-label {
        font-size: 0.64rem !important;
      }
      .theater-title-main {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
        word-break: keep-all !important;
      }

      .theater-body-container {
        padding: 0.8rem 0.75rem 0.95rem !important;
        gap: 0.65rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }

      /* Top Split: 모바일 뷰포트 최적화 2열 핏팅 (우측 짤림 완전 방지) */
      .theater-top-split {
        display: grid !important;
        grid-template-columns: 88px 1fr !important;
        gap: 0.65rem !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .theater-split-left {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 0.35rem !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        flex-shrink: 0 !important;
      }
      .book-cover-frame {
        width: 88px !important;
        height: 112px !important;
        border-radius: 8px !important;
        padding: 4px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #F8FAFC !important;
        border: 1px solid #E2E8F0 !important;
        box-sizing: border-box !important;
      }
      .book-cover-frame img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
      }
      .book-spec-pill {
        width: 88px !important;
        font-size: 0.66rem !important;
        padding: 4px 4px !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        text-align: center !important;
        box-sizing: border-box !important;
      }
      .book-level-dropdown-wrap {
        width: 88px !important;
        box-sizing: border-box !important;
      }
      .book-level-select {
        width: 88px !important;
        font-size: 0.66rem !important;
        padding: 4px 16px 4px 4px !important;
        border-radius: 8px !important;
        background-size: 8px !important;
        background-position: right 3px center !important;
      }

      .theater-split-right {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 0.35rem !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
      }
      .theater-eng-tagline {
        font-size: 0.76rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
      }
      .theater-desc-compact {
        font-size: 0.7rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        word-break: keep-all !important;
      }
      .theater-target-section {
        background: #F8FAFC !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 8px !important;
        padding: 0.35rem 0.45rem !important;
        gap: 0.2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .target-title-label {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
      }
      .target-checklist {
        gap: 0.18rem !important;
        width: 100% !important;
      }
      .target-checklist li {
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: keep-all !important;
        gap: 4px !important;
        align-items: flex-start !important;
      }
      .target-checklist li span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }
      .target-checklist li i {
        font-size: 0.64rem !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
      }

      /* Syllabus Preview (헤더 버튼 짤림 완벽 방지) */
      .theater-syllabus-preview {
        border-top: 1px solid #F1F5F9 !important;
        padding-top: 0.55rem !important;
        gap: 0.35rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .theater-syllabus-header-row,
      .syllabus-header-wrap {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 4px 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .syllabus-header-title {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
      }
      .syllabus-header-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
      }
      .btn-syllabus-action {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.45rem !important;
        border-radius: 6px !important;
        gap: 3px !important;
        white-space: nowrap !important;
      }
      .btn-syllabus-action i {
        font-size: 0.68rem !important;
      }
      .compact-unit-list {
        gap: 0.3rem !important;
        width: 100% !important;
      }
      .unit-preview-card {
        padding: 0.4rem 0.6rem !important;
        border-radius: 8px !important;
        gap: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .unit-preview-top {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
      }
      .unit-badge-pill {
        font-size: 0.62rem !important;
        padding: 1px 4px !important;
        flex-shrink: 0 !important;
      }
      .unit-main-name {
        font-size: 0.74rem !important;
        white-space: normal !important;
        word-break: keep-all !important;
      }
      .unit-key-line {
        font-size: 0.68rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
      }
      .unit-key-line strong {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
      }

      /* Full CTA Buttons */
      .theater-full-actions {
        gap: 0.4rem !important;
        padding-top: 0.1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .btn-full-primary {
        padding: 0.72rem 1rem !important;
        font-size: 0.88rem !important;
        border-radius: 11px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .btn-full-secondary {
        padding: 0.62rem 1rem !important;
        font-size: 0.82rem !important;
        border-radius: 11px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }

      /* Filter & Search Bar on Mobile */
      .catalog-filter-bar {
        padding: 0.75rem 0.85rem !important;
        gap: 0.6rem !important;
        margin-bottom: 0.8rem !important;
        border-radius: 14px !important;
        overflow: hidden !important;
      }
      .filter-pills-row {
        display: flex !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding: 2px 2.5rem 6px 2px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        margin-right: -0.85rem !important;
      }
      .filter-pills-row::-webkit-scrollbar {
        display: none !important;
      }
      .filter-pill-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 0.78rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
      }
      .catalog-search-box input {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.8rem 0.5rem 2.2rem !important;
        border-radius: 10px !important;
      }
      .catalog-search-box i {
        left: 0.8rem !important;
        font-size: 0.8rem !important;
      }

      /* Shelf Section on Mobile (헤더 짤림 방지 및 터치 스와이프 카드 최적화) */
      .catalog-shelf-section {
        gap: 0.65rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .shelf-header {
        padding-bottom: 0.4rem !important;
        border-bottom: 1.5px solid #E2E8F0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .shelf-title {
        font-size: 0.98rem !important;
        gap: 5px !important;
      }
      .shelf-count {
        font-size: 0.68rem !important;
      }
      /* 모바일 터치 스크롤 환경에서는 우측 끝에 짤리는 화살표 버튼 대신 터치 스와이프로 직관화 */
      .shelf-slider-nav {
        display: none !important;
      }
      
      /* All Carousel Tracks on Mobile -> Touch Swipe Carousel */
      .shelf-carousel-track,
      .shelf-carousel-track.two-row-grid,
      .shelf-carousel-track.two-row-slide {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-flow: unset !important;
        gap: 0.75rem !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 1.2rem 14px 2px !important;
        scrollbar-width: none !important;
      }
      .shelf-carousel-track::-webkit-scrollbar,
      .shelf-carousel-track.two-row-grid::-webkit-scrollbar,
      .shelf-carousel-track.two-row-slide::-webkit-scrollbar {
        display: none !important;
      }

      /* Course Cards on Mobile (화면 너비에 맞춘 쾌적한 카드 슬라이더) */
      .shelf-carousel-track .course-card-item,
      .shelf-carousel-track.two-row-grid .course-card-item,
      .shelf-carousel-track.two-row-slide .course-card-item,
      .course-card-item {
        flex: 0 0 240px !important;
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        scroll-snap-align: start !important;
        border-radius: 14px !important;
      }
      .card-thumb-wrap {
        height: 120px !important;
      }
      .card-floating-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        top: 6px !important;
        left: 6px !important;
      }
      .card-unit-pill {
        font-size: 0.62rem !important;
        padding: 1px 5px !important;
        bottom: 6px !important;
        right: 6px !important;
      }
      .card-info-content {
        padding: 0.75rem 0.85rem 0.9rem !important;
        gap: 0.4rem !important;
      }
      .card-sub-category {
        font-size: 0.66rem !important;
      }
      .card-main-title {
        font-size: 0.92rem !important;
        line-height: 1.3 !important;
      }
      .card-brief-desc {
        font-size: 0.74rem !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
      }
      .card-footer-meta {
        padding-top: 0.45rem !important;
        font-size: 0.7rem !important;
      }

      /* Footer on Mobile */
      .site-footer {
        padding: 2.2rem 1rem 2rem !important;
      }
      .footer-top-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.9rem !important;
      }
      .footer-nav-links {
        flex-wrap: wrap !important;
        gap: 0.6rem 0.9rem !important;
        font-size: 0.78rem !important;
      }

      /* Curriculum Modal Mobile Responsive */
      .curriculum-modal-box {
        padding: 1.5rem 1.1rem 1.2rem !important;
        max-height: 92vh !important;
        width: 96% !important;
      }
      .curri-table-wrapper {
        max-height: 52vh !important;
        margin-top: 0.8rem !important;
      }
      .curriculum-2col-table th, .curriculum-2col-table td {
        padding: 0.55rem 0.45rem !important;
        font-size: 0.78rem !important;
      }
      .curri-cell-unit {
        width: 38px !important;
        font-size: 0.75rem !important;
      }
    }

    @media (max-width: 380px) {
      .page-hero h1 {
        font-size: 1.3rem !important;
      }
      .theater-top-split {
        grid-template-columns: 90px 1fr !important;
        gap: 0.65rem !important;
      }
      .book-cover-frame {
        height: 120px !important;
      }
      .shelf-carousel-track .course-card-item,
      .shelf-carousel-track.two-row-grid .course-card-item,
      .shelf-carousel-track.two-row-slide .course-card-item {
        flex: 0 0 210px !important;
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
      }
    }
  

/* Keep the close control clear of the PDF link on narrow screens too. */
#fullCurriculumModal .curriculum-modal-box { position: relative; padding-top: 4.5rem !important; }
#sampleBookModal .sample-modal-box { position: relative; }

/* PDF plugins stay blank inside transformed, filtered, or faded ancestors. */
#sampleBookModal {
  z-index: 3000;
  opacity: 1;
  visibility: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}
#sampleBookModal.open { visibility: visible; }
#sampleBookModal .sample-modal-box,
#sampleBookModal.open .sample-modal-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 2rem));
  max-width: 960px;
  height: calc(100vh - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  padding: 1.15rem 1.35rem 1.1rem !important;
  transform: none;
  transition: none;
}
#sampleBookModal .sample-modal-title,
#sampleBookModal .sample-modal-desc,
#sampleBookModal .sample-modal-box > div:first-of-type {
  padding-right: 2.4rem;
}
@media (max-width: 720px) {
  #sampleBookModal .sample-modal-box {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    max-height: calc(100vh - 1rem);
    padding: 1rem 1rem 0.9rem !important;
  }
  #sampleBookModal .sample-modal-actions {
    flex-direction: column;
  }
  #sampleBookModal .sample-modal-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .filter-pills-row {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-right: 2px !important;
    margin-right: 0 !important;
  }
  .shelf-carousel-track,
  .shelf-carousel-track.two-row-grid,
  .shelf-carousel-track.two-row-slide {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding: 4px 2px 14px !important;
  }
  .shelf-carousel-track .course-card-item,
  .shelf-carousel-track.two-row-grid .course-card-item,
  .shelf-carousel-track.two-row-slide .course-card-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  #fullCurriculumModal .curri-table-wrapper { overflow-x: hidden; }
  #fullCurriculumModal .curriculum-2col-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  #fullCurriculumModal .curriculum-2col-table thead { display: none; }
  #fullCurriculumModal .curriculum-2col-table tbody { display: block; }
  #fullCurriculumModal .curriculum-2col-table tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
  }
  #fullCurriculumModal .curriculum-2col-table tbody td {
    display: block;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #fullCurriculumModal .curriculum-2col-table tbody td.curri-cell-topic {
    border-right: 0;
  }
  #fullCurriculumModal .curriculum-2col-table tbody td:nth-child(3),
  #fullCurriculumModal .curriculum-2col-table tbody td:nth-child(4) {
    border-top: 1px solid #F1F5F9;
  }
  #fullCurriculumModal .curriculum-2col-table tbody td:nth-child(3):empty,
  #fullCurriculumModal .curriculum-2col-table tbody td:nth-child(4):empty { display: none; }
  #fullCurriculumModal .curriculum-2col-table tbody td[colspan] { grid-column: 1 / -1; }
  #fullCurriculumModal .modal-close-btn,
  #sampleBookModal .modal-close-btn {
    width: 44px !important;
    height: 44px !important;
  }
}
