* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f7fa;
    color: #0f172b;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-text-primary {
    font-size: 20px;
    font-weight: bold;
    color: #3d5afe;
}

.logo-text-secondary {
    font-size: 14px;
    font-weight: bold;
    color: #45556c;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #314158;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    background-color: #f5f5f5;
}

.category-icon {
    width: 20px;
    height: 20px;
}

.search-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 48px 8px 16px;
    background-color: #f3f3f5;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    color: #717182;
    font-family: 'Noto Sans KR', sans-serif;
}

.search-input::placeholder {
    color: #717182;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: #314158;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 400;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #3d5afe;
}

.nav-button {
    background-color: white;
    color: #0a0a0a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-button:hover {
    background-color: #f9f9f9;
}

.signup-button {
    background-color: #3d5afe;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.signup-button:hover {
    background-color: #2d4ade;
}

/* Main Banner */
.banner-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #314158 0%, #1d293d 100%);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 2;
}

.banner-content {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
}

.banner-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    font-weight: 400;
}

.banner-search-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.banner-search-input {
    width: 100%;
    max-width: 672px;
    padding: 12px 48px 12px 48px;
    border-radius: 9999px;
    border: none;
    background-color: white;
    font-size: 14px;
    color: #90a1b9;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
}

.banner-search-input::placeholder {
    color: #90a1b9;
}

.banner-search-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #90a1b9;
    pointer-events: none;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 672px;
    margin: 0 auto;
    top: 52%;
    z-index: 20;
}

.banner-button {
    display: inline-block;
    background-color: #fe9a00;
    color: #0f172b;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.banner-button:hover {
    background-color: #ff6900;
}

.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-dot.active {
    background-color: #fe9a00;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #314158;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.banner-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.banner-btn.prev {
    left: 20px;
}

.banner-btn.next {
    right: 20px;
}

/* Main Container */
.container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 5px 0px;
    display: none;
    gap: 30px;
}
.container.open {
    display: flex;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-header {
    display: flex;
    margin-bottom: 0px;
    gap: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #0f172b;
}

.section-subtitle {
    font-size: 15px;
    color: #45556c;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 0 0;
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #45556c;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn.active {
    background-color: #fe9a00;
    color: white;
    border: 1px solid #fe9a00;
}

.filter-btn:hover {
    border-color: #fe9a00;
    background-color: #fff7ed;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.course-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.badge-vod {
    background: linear-gradient(135deg, #fe9a00 0%, #ff6900 100%);
}

.badge-live {
    background-color: #1d293d;
    color: #fe9a00;
}

.course-students {
    position: absolute;
    bottom: 12px;
    right: 8px;
    background-color: #314158;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.course-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-title {
    font-size: 13px;
    font-weight: bold;
    color: #0f172b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-instructor {
    font-size: 13px;
    color: #45556c;
}

.course-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.rating-star {
    color: #fe9a00;
    font-weight: bold;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: #62748e;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #45556c;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta-icon {
    width: 16px;
    height: 16px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: #62748e;
}

.course-price {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.discount-badge {
    background-color: #fe9a00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    width: 44px;
    text-align: center;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: #0f172b;
}

.original-price {
    font-size: 13px;
    color: #90a1b9;
    text-decoration: line-through;
}

.price-discount {
    font-size: 13px;
    color: #00a63e;
    font-weight: bold;
}

/* View More Button */
.view-more-btn {
    align-self: center;
    margin-top: 24px;
    padding: 16px 32px;
    border: 2px solid #cad5e2;
    background-color: white;
    color: #0a0a0a;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.view-more-btn:hover {
    border-color: #fe9a00;
    background-color: #fff7ed;
}

.contents_row {display: flex; flex-direction: column; gap: 30px; align-items: flex-start;}

/* New Instructor Section */
.new-instructor {
    flex-shrink: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
}

.ni-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ni-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f172b;
    line-height: 1.5;
    flex: 1;
}

.ni-early-bird-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(to right, #fe9a00, #ff6900);
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1);
    transition: opacity 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.ni-early-bird-btn:hover { opacity: 0.9; }

.ni-card {
    background-color: white;
    border: 0.9px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ni-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ni-row:hover { background-color: #f9fafb; }

.ni-rank {
    font-size: 16px;
    font-weight: 900;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.ni-rank-1  { color: #fe9a00; }
.ni-rank-2  { color: #90a1b9; }
.ni-rank-3  { color: #bb4d00; }
.ni-rank-4  { color: #cad5e2; }

.ni-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ni-avatar-ring {
    box-shadow: 0 0 0 2px #fe9a00;
}

.ni-info {
    flex: 1;
    min-width: 0;
}

.ni-name {
    font-size: 13px;
    font-weight: bold;
    color: #0f172b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ni-category {
    font-size: 11px;
    color: #62748e;
}

.ni-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.ni-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fe9a00;
}

.ni-rating-icon {
    width: 12px;
    height: 12px;
}

.ni-reviews {
    font-size: 10px;
    color: #62748e;
    text-align: right;
}

@media (max-width: 1200px) {
    .new-instructor { width: 280px; }
}

@media (max-width: 1024px) {
    .contents_row { flex-direction: column; }
    .new-instructor { width: 100%; }
    .ni-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

@media (max-width: 600px) {
    .ni-card { grid-template-columns: 1fr; }
}

/* Instructor List */
.instructor_list {
    padding-top: 32px;
    width: 320px
}

.il-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    margin: 0 0 50px 0;
}

.il-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.il-heading-icon {
    width: 24px;
    height: 24px;
}

.il-title {
    font-size: 20px;
    font-weight: bold;
    color: #0a0a0a;
}

.il-subtitle {
    font-size: 14px;
    color: #717182;
}

.il-card {
    background: white;
    border: 0.9px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.il-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 0.9px solid rgba(0,0,0,0.1);
}

.il-row:last-child { border-bottom: none; }
.il-row:hover { background-color: #f9fafb; }

.il-rank {
    font-size: 20px;
    font-weight: bold;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.il-pop-1  { color: #9810fa; }
.il-pop-2  { color: #c27aff; }
.il-pop-3  { color: #dab2ff; }
.il-pop-rest { color: #cad5e2; }

.il-qna-1  { color: #00a63e; }
.il-qna-2  { color: #00c950; }
.il-qna-3  { color: #05df72; }
.il-qna-rest { color: #cad5e2; }

.il-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.il-info {
    flex: 1;
    min-width: 0;
}

.il-name {
    font-size: 14px;
    font-weight: bold;
    color: #0a0a0a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.il-category {
    font-size: 12px;
    color: #717182;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.il-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.il-stat-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #0a0a0a;
}

.il-stat-icon {
    width: 12px;
    height: 12px;
}

.il-stat-label {
    font-size: 10px;
    color: #717182;
    text-align: right;
}

@media (max-width: 1024px) {
    .instructor_list { flex-direction: column; width: stretch;}
}

/* Popular Section */
.popular-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
}

/* Level Badges */
.level-badge {
    position: absolute;
    top: 9px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    border: 0.9px solid;
}
.level-badge.basic { background: #dbeafe; color: #1447e6; border-color: #8ec5ff; }
.level-badge.intermediate { background: #ffedd4; color: #ca3500; border-color: #ffb86a; }
.level-badge.advanced { background: #ffe2e2; color: #c10007; border-color: #ffa2a2; }
.level-badge.beginner { background: #dcfce7; color: #008236; border-color: #7bf1a8; }

.badge-pro {
    background-color: #1d293d;
    color: #51a2ff;
}

/* ── 헤더 ── */
.live-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 28px;
    cursor:pointer;
    user-select:none;
    border-bottom:1px solid #E8EBF0;
    transition:background 0.15s;
}
.live-header:hover{background:#FAFBFC;}

.live-header-left{display:flex;align-items:center;gap:14px;}

/* LIVE 배지 */
.live-badge{
    display:flex;align-items:center;gap:6px;
    background:rgba(239,68,68,0.08);
    border:1.5px solid rgba(239,68,68,0.25);
    border-radius:20px;
    padding:4px 12px;
    font-size:12px;font-weight:700;color:#EF4444;
    white-space:nowrap;
}
.live-dot{
    width:8px;height:8px;border-radius:50%;
    background:#EF4444;
    animation:pulse 1.4s ease-in-out infinite;
}
@keyframes pulse{
    0%,100%{opacity:1;transform:scale(1);}
    50%{opacity:0.4;transform:scale(1.3);}
}

.live-header-text{}
.live-title{font-size:18px;font-weight:800;color:#1A2B4A;margin-bottom:2px;}
.live-sub{font-size:13px;color:#8B95A1;}

/* 헤더 우측 – 업데이트 + 토글버튼 */
.live-header-right{display:flex;align-items:center;gap:12px;}
.auto-update{font-size:12px;color:#8B95A1;display:flex;align-items:center;gap:4px;}
.auto-update .spin{display:inline-block;animation:spin 2s linear infinite;font-size:14px;}
@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}

/* PC 더보기/접기 버튼 */
.toggle-btn-pc{
    display:flex;align-items:center;gap:6px;
    background:#F4F5F7;border:1.5px solid #E8EBF0;
    border-radius:8px;padding:6px 14px;
    font-size:13px;font-weight:600;color:#1A2B4A;
    cursor:pointer;transition:all 0.15s;
    white-space:nowrap;
}
.toggle-btn-pc:hover{border-color:#FF6B35;color:#FF6B35;}
.toggle-btn-pc .arrow{transition:transform 0.3s;font-style:normal;}
.toggle-btn-pc .arrow.open{transform:rotate(180deg);}

/* 모바일 화살표 버튼 (PC에서 숨김) */
.toggle-btn-mobile{display:none;}

/* ── 콘텐츠 래퍼 ── */
  .live-content{
    overflow:hidden;
    transition:max-height 0.4s cubic-bezier(0.4,0,0.2,1),
               opacity 0.3s ease,
               padding 0.3s ease;
  }
  .live-content.expanded{max-height:2000px;opacity:1;padding:24px 28px;}
  .live-content.collapsed{max-height:0;opacity:0;padding:0 28px;}

  /* ── 카드 그리드 ── */
  .feed-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
  }

  /* ── 개별 피드 카드 ── */
  .feed-card{
    background:#FAFBFC;
    border:1.5px solid #E8EBF0;
    border-radius:12px;
    padding:14px;
    transition:all 0.2s;
    position:relative;
    overflow:hidden;
  }
  .feed-card:hover{
    border-color:rgba(255,107,53,0.35);
    box-shadow:0 4px 14px rgba(26,43,74,0.09);
    transform:translateY(-2px);
  }

  /* 왼쪽 강조 바 (강의 유형별 색상) */
  .feed-card::before{
    content:'';
    position:absolute;
    top:0;left:0;
    width:3px;height:100%;
    border-radius:3px 0 0 3px;
  }
  .feed-card.type-online::before{background:#FF6B35;}
  .feed-card.type-live::before{background:#EF4444;}
  .feed-card.type-offline::before{background:#10B981;}
  .feed-card.type-grade::before{background:#7C3AED;}

  /* 시간 */
  .feed-time{font-size:11px;color:#B0B8C4;text-align:right;margin-bottom:8px;}

  /* 아이콘 + 제목 */
  .feed-icon-row{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;}
  .feed-icon{
    width:38px;height:38px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:18px;flex-shrink:0;
  }
  .icon-bg-green{background:rgba(16,185,129,0.12);}
  .icon-bg-orange{background:rgba(255,107,53,0.12);}
  .icon-bg-red{background:rgba(239,68,68,0.12);}
  .icon-bg-purple{background:rgba(124,58,237,0.12);}
  .icon-bg-blue{background:rgba(45,140,255,0.12);}
  .icon-bg-amber{background:rgba(245,158,11,0.12);}

  .feed-title{font-size:13px;font-weight:700;color:#1A2B4A;line-height:1.4;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .feed-desc{font-size:12px;color:#8B95A1;margin-top:2px;
    display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}

  /* 강사 정보 */
  .feed-instructor{display:flex;align-items:center;gap:6px;margin-top:10px;}
  .instructor-avatar{
    width:22px;height:22px;border-radius:50%;
    background:linear-gradient(135deg,#1A2B4A,#2A3F6F);
    display:flex;align-items:center;justify-content:center;
    font-size:10px;color:#fff;font-weight:700;flex-shrink:0;
  }
  .instructor-name{font-size:12px;font-weight:600;color:#2A2A2A;}
  .instructor-tag{
    margin-left:auto;
    padding:2px 8px;border-radius:20px;
    font-size:10px;font-weight:600;
    background:rgba(255,107,53,0.10);color:#FF6B35;
    white-space:nowrap;
  }
  .instructor-tag.tag-python{background:rgba(45,140,255,0.10);color:#2D8CFF;}
  .instructor-tag.tag-design{background:rgba(255,107,53,0.10);color:#FF6B35;}
  .instructor-tag.tag-grade{background:rgba(124,58,237,0.10);color:#7C3AED;}
  .instructor-tag.tag-live{background:rgba(239,68,68,0.10);color:#EF4444;}
  .instructor-tag.tag-green{background:rgba(16,185,129,0.10);color:#10B981;}

  /* ── 하단 더보기 버튼 (접혀 있을 때 PC에서 보임은 헤더에서 처리) ── */
  /* 모바일 펼침 시 하단에 '접기' 버튼 */
  .mobile-collapse-btn{
    display:none;
    width:100%;
    border:none;background:none;
    padding:12px 0 6px;
    font-size:13px;font-weight:700;color:#8B95A1;
    cursor:pointer;text-align:center;
    font-family:inherit;
  }
  .mobile-collapse-btn span{font-size:16px;display:inline-block;transition:transform 0.3s;}

  /* ── Responsive ── */
  @media(max-width:1024px){
    .feed-grid{grid-template-columns:repeat(2,1fr);}
  }

  @media(max-width:768px){
    .live-section{margin:16px;border-radius:12px;}
    .live-header{padding:16px 18px;}
    .live-title{font-size:15px;}
    .live-sub{font-size:12px;}
    .live-badge{padding:3px 10px;font-size:11px;}

    /* PC 버튼 숨기고 모바일 화살표 보이기 */
    .toggle-btn-pc{display:none;}
    .toggle-btn-mobile{
      display:flex;align-items:center;justify-content:center;
      width:32px;height:32px;
      background:#F4F5F7;border:1.5px solid #E8EBF0;
      border-radius:50%;cursor:pointer;
      font-size:16px;transition:all 0.2s;flex-shrink:0;
    }
    .toggle-btn-mobile:hover{border-color:#FF6B35;}
    .toggle-btn-mobile .m-arrow{
      display:inline-block;transition:transform 0.3s;
    }
    .toggle-btn-mobile .m-arrow.open{transform:rotate(180deg);}

    /* 모바일 기본 = 접힘 */
    .live-content.mobile-collapsed{max-height:0;opacity:0;padding:0 18px;}
    .live-content.mobile-expanded{max-height:2000px;opacity:1;padding:16px 18px;}

    .feed-grid{grid-template-columns:1fr 1fr;gap:10px;}
    .feed-card{padding:12px;}
    .feed-icon{width:32px;height:32px;font-size:15px;}
    .feed-title{font-size:12px;}
    .feed-desc{font-size:11px;}
    .instructor-name{font-size:11px;}

    .mobile-collapse-btn{display:block;}
    .auto-update{display:none;} /* 모바일에서 업데이트 텍스트 숨김 */
  }

  @media(max-width:480px){
    .feed-grid{grid-template-columns:1fr;}
  }

/* Live Instructor Feed Section */
.live-section{
    background:#fff;
    border-radius:16px;
    border:1px solid #E8EBF0;
    overflow:hidden;
    margin:24px auto;
    max-width:1100px;
    box-shadow:0 2px 12px rgba(26,43,74,0.07);
}

.live-section-footer {
    text-align: center;
    margin-top: 32px;
}

.live-footer-note {
    font-size: 14px;
    color: #45556c;
    margin-bottom: 8px;
}

.live-view-all-btn {
    font-size: 16px;
    font-weight: bold;
    color: #ff6900;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
}

.live-view-all-btn:hover { text-decoration: underline; }

/* Activity card border color variants */
.bd-green  { border-color: #00c950; }
.bd-orange { border-color: #ff6900; }
.bd-amber  { border-color: #fe9a00; }
.bd-purple { border-color: #ad46ff; }
.bd-blue   { border-color: #2b7fff; }
.bd-pink   { border-color: #f6339a; }

/* Activity icon circle gradient variants */
.ic-green  { background: linear-gradient(135deg, #00c950, #00a63e); }
.ic-orange { background: linear-gradient(135deg, #ff6900, #f54900); }
.ic-amber  { background: linear-gradient(135deg, #fe9a00, #e17100); }
.ic-purple { background: linear-gradient(135deg, #ad46ff, #8200db); }
.ic-blue   { background: linear-gradient(135deg, #2b7fff, #155dfc); }
.ic-pink   { background: linear-gradient(135deg, #f6339a, #e60076); }

/* Legacy wrappers kept for compatibility */
.best-wrapper, .community-wrapper { display: block; }

/* Community Sidebar */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.community-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-sidebar-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
}

.community-sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #0a0a0a;
}

.ranking-items-container,
.qna-items-container {
    background-color: white;
    border: 0.9px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ranking-item,
.qna-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 0.9px solid rgba(0, 0, 0, 0.1);
}

.ranking-item:last-child,
.qna-item:last-child {
    border-bottom: none;
}

.ranking-item:hover,
.qna-item:hover {
    /*background-color: #f9fafb;*/
    cursor: pointer;
    border-radius: 8px;
}

.rank-badge {
    font-size: 14px;
    font-weight: bold;
    width: 32px;
    text-align: center;
    min-width: 32px;
}

.rank-badge.rank-1 { color: #9810fa; }
.rank-badge.rank-2 { color: #c27aff; }
.rank-badge.rank-3 { color: #dab2ff; }
.rank-badge.rank-4plus { color: #cad5e2; }

.qna-badge.qna-1 { color: #00a63e; }
.qna-badge.qna-2 { color: #00c950; }
.qna-badge.qna-3 { color: #05df72; }
.qna-badge.qna-4plus { color: #cad5e2; }

.item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 14px;
    font-weight: bold;
    color: #0a0a0a;
}

.item-category {
    font-size: 12px;
    color: #717182;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.item-meta.rating {
    color: #0a0a0a;
    font-weight: 500;
}

.item-meta.student-count {
    font-size: 10px;
    color: #717182;
    margin-top: 2px;
}

.item-meta.answer-count {
    color: #0a0a0a;
    font-weight: 500;
}

.item-meta.answer-label {
    font-size: 10px;
    color: #717182;
    margin-top: 2px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: #0f172b;
}

.sidebar-subtitle {
    font-size: 13px;
    color: #45556c;
}

.instructor-list {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 700px;
    overflow-y: auto;
}

.instructor-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.instructor-item:hover {
    background-color: #f9fafb;
}

.instructor-rank {
    font-size: 16px;
    font-weight: 900;
    width: 24px;
    text-align: center;
    min-width: 24px;
}

.instructor-rank-1 {
    color: #fe9a00;
}

.instructor-rank-2,
.instructor-rank-3 {
    color: #90a1b9;
}

.instructor-rank-other {
    color: #cad5e2;
}

.instructor-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-item:nth-child(1) .instructor-image {
    border: 2px solid #fe9a00;
}

.instructor-info {
    flex: 1;
    min-width: 0;
}

.instructor-name {
    font-size: 13px;
    font-weight: bold;
    color: #0f172b;
}

.instructor-category {
    font-size: 11px;
    color: #62748e;
}

.instructor-rating {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 12px;
}

.rating-value {
    color: #fe9a00;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1400px) {
    .header-content {width: 100%; padding: 10px 20px; flex-wrap: wrap; height: auto; justify-content: flex-start; gap: 10px;}
}
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 32px 20px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-language {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }

    .live-section-title {
        font-size: 26px;
    }

    .search-wrapper {
        width: 70%;
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 768px) {
    .header-content {
        padding: 10px 20px;
        gap: 16px;
    }
    
    .logo-text-primary {
        font-size: 16px;
    }
    
    .logo-text-secondary {
        font-size: 12px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .search-container {
        max-width: 280px;
        min-width: 200px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-button,
    .signup-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .banner-section {
        height: 280px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-description {
        font-size: 14px;
    }
    
    .banner-search-input {
        max-width: 100%;
        padding: 10px 40px;
        font-size: 12px;
    }
    
    .banner-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .banner-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .filter-row {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .section-title {
        font-size: 22px;
    }
    
    .course-image {
        height: 170px;
    }
    
    .live-section-title {
        font-size: 22px;
    }

    .live-section-header {
        flex-direction: column;
    }
    
    .course-info {
        padding: 12px;
    }
    
    .course-title {
        font-size: 13px;
    }
    
    .course-instructor {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .view-more-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .community-title {
        font-size: 22px;
    }
    
    .community-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .community-filters {
        gap: 6px;
    }
    
    .community-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .community-post {
        padding: 16px;
    }
    
    .community-post-title {
        font-size: 16px;
    }
    
    .community-post-description {
        font-size: 13px;
    }
    
    .community-post-meta {
        gap: 12px;
        font-size: 12px;
    }

    .footer {
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .footer-language {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-language-buttons {
        width: 100%;
    }
    
    .language-btn {
        flex: 1;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .logo-text-primary {
        font-size: 14px;
    }
    
    .logo-text-secondary {
        display: none;
    }
    
    .category-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .search-container {
        max-width: 150px;
        min-width: 120px;
    }
    
    .search-input {
        padding: 6px 36px 6px 12px;
        font-size: 11px;
    }
    
    .nav-button,
    .signup-button {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .banner-section {
        height: 240px;
    }
    
    .banner-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .banner-description {
        font-size: 12px;
        max-width: 100%;
    }
    
    .banner-search-input {
        max-width: 100%;
        padding: 8px 36px;
        font-size: 11px;
    }
    
    .banner-button {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .banner-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .banner-btn.prev {
        left: 12px;
    }
    
    .banner-btn.next {
        right: 12px;
    }
    
    .container {
        padding: 24px 16px;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .filter-row {
        gap: 4px;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .course-image {
        height: 180px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-activity-grid {
        grid-template-columns: 1fr;
    }

    .activity-card-title {
        font-size: 15px;
    }

    .live-section-title {
        font-size: 20px;
    }
    
    .course-badge {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .course-students {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .course-info {
        padding: 10px;
        gap: 6px;
    }
    
    .course-title {
        font-size: 12px;
    }
    
    .course-instructor {
        font-size: 11px;
    }
    
    .rating-star {
        font-size: 12px;
    }
    
    .course-meta {
        gap: 8px;
        font-size: 11px;
    }
    
    .discount-badge {
        width: 40px;
        font-size: 12px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .original-price,
    .price-discount {
        font-size: 11px;
    }
    
    .view-more-btn {
        margin-top: 16px;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .community-title {
        font-size: 20px;
    }
    
    .community-subtitle {
        font-size: 13px;
    }
    
    .community-write-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .community-filter-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .community-post {
        padding: 12px;
    }
    
    .community-post-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .community-post-description {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .community-post-meta {
        gap: 8px;
        font-size: 11px;
    }
    
    .community-more-btn {
        margin-top: 16px;
        padding: 10px 24px;
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h4 {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-section ul {
        gap: 6px;
    }
    
    .footer-section a {
        font-size: 11px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        font-size: 11px;
        padding-top: 24px;
    }
}

/* Scrollbar styling */
.instructor-list::-webkit-scrollbar {
    width: 6px;
}

.instructor-list::-webkit-scrollbar-track {
    background: transparent;
}

.instructor-list::-webkit-scrollbar-thumb {
    background: #d0d8e0;
    border-radius: 3px;
}

.instructor-list::-webkit-scrollbar-thumb:hover {
    background: #b5bcc7;
}

/* Community Section */
.community-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 80px;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.community-header-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.community-title {
    font-size: 28px;
    font-weight: bold;
    color: #0a0a0a;
}

.community-subtitle {
    font-size: 15px;
    color: #45556c;
}

.community-write-btn {
    padding: 8px 16px;
    background-color: #1d293d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background-color 0.3s;
}

.community-write-btn:hover {
    background-color: #0f172b;
}

.community-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.community-filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 0.9px solid #cad5e2;
    background-color: white;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
}

.community-filter-btn.active {
    background-color: #1d293d;
    color: white;
    border-color: #1d293d;
}

.community-filter-btn:hover {
    border-color: #1d293d;
}

.community-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-post {
    background-color: white;
    border: 0.9px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.community-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.community-post-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.community-post-badge {
    padding: 6px 12px;
    background-color: #ffe2e2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #e7000b;
    display: inline-block;
    white-space: nowrap;
}

.community-post-badge.hot {
    background-color: #ffe2e2;
    color: #e7000b;
}

.community-post-badge.category {
    background-color: #f1f5f9;
    color: #45556c;
}

.community-post-title {
    font-size: 18px;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.community-post-description {
    font-size: 14px;
    color: #45556c;
    margin-bottom: 12px;
    line-height: 1.5;
}

.community-post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #62748e;
}

.community-post-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.community-more-btn {
    align-self: center;
    margin-top: 24px;
    padding: 12px 32px;
    border: 1px solid #cad5e2;
    background-color: white;
    color: #0a0a0a;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}

.community-more-btn:hover {
    border-color: #fe9a00;
    background-color: #fff7ed;
}

/* ── HERO ── */
.hero{position:relative;min-height:540px;overflow:hidden;display:flex;align-items:center;}
.hero-bg{position:absolute;inset:0;background:linear-gradient(135deg,#0D1B2E 0%,#1A2B4A 40%,#0F3460 70%,#16213E 100%);}
/*.hero-bg::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");}*/

/* 그래프 배경 */
.hero-chart-bg{position:absolute;bottom:0;left:0;right:0;height:200px;opacity:0.08;}
.hero-chart-bg svg{width:100%;height:100%;}

/* 파티클 */
.particle{position:absolute;border-radius:50%;animation:float linear infinite;opacity:0;}
@keyframes float{0%{transform:translateY(0) scale(1);opacity:0;}10%{opacity:1;}90%{opacity:0.5;}100%{transform:translateY(-500px) scale(0.3);opacity:0;}}

.hero-inner{position:relative;z-index:10;width:100%;max-width:1280px;margin:0 auto;padding:60px 40px;display:flex;align-items:center;gap:40px;}

/* ── 배너 텍스트 전환 애니메이션 ── */
.hero-text-slider{position:relative;min-height:160px;margin-bottom:20px;}
.hero-slide{position:absolute;top:0;left:0;opacity:0;transform:translateY(16px);transition:opacity 0.7s ease,transform 0.7s ease;pointer-events:none;}
.hero-slide.active{opacity:1;transform:translateY(0);pointer-events:auto;}

.hero-title{font-size:42px;font-weight:900;color:#fff;line-height:1.25;letter-spacing:-1px;margin-bottom:10px;}
.hero-title em{color:#FF6B35;font-style:normal;}
.hero-title-sub{font-size:16px;color:rgba(255,255,255,0.68);line-height:1.65;}

/* ── 배지 ── */
.hero-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,107,53,0.15);border:1px solid rgba(255,107,53,0.30);border-radius:20px;padding:5px 14px;font-size:12px;font-weight:700;color:#FF6B35;margin-bottom:18px;}
.hero-badge .dot{width:6px;height:6px;border-radius:50%;background:#FF6B35;animation:pulse2 1.4s ease-in-out infinite;}
@keyframes pulse2{0%,100%{opacity:1;}50%{opacity:0.3;}}

/* ── 수익 통계 칩 ── */
.hero-stats{display:flex;gap:12px;margin-bottom:30px;flex-wrap:wrap;}

/* 메인 강조 칩 */
.stat-chip{background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.12);border-radius:14px;padding:14px 18px;text-align:center;transition:all 0.2s;cursor:default;}
.stat-chip:hover{background:rgba(255,255,255,0.11);border-color:rgba(255,107,53,0.40);}
.stat-chip.highlight{background:rgba(255,107,53,0.10);border:1.5px solid rgba(255,107,53,0.35);}
.stat-chip .s-num{font-size:22px;font-weight:900;color:#FF6B35;line-height:1;}
.stat-chip .s-num.white{color:#fff;}
.stat-chip .s-label{font-size:11px;color:rgba(255,255,255,0.55);margin-top:4px;line-height:1.4;}
.stat-chip .s-label strong{color:rgba(255,255,255,0.85);font-weight:700;}

/* 검색창 */
.hero-search{display:flex;gap:10px;max-width:540px;margin-bottom:22px;}
.hero-search input{
    flex:1;
    height:52px;
    border:none;
    border-radius:12px;
    padding:0px 48px 0px 20px;
    font-size:14px;
    font-family:inherit;
    outline:none;
    background:rgba(255,255,255,0.95);
    width: 100%;}
.hero-search input::placeholder{color:#B0B8C4;}
.hero-search-container {
    flex: 1; position: relative;
}
.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-search input:focus{background:#fff;box-shadow:0 0 0 3px rgba(255,107,53,0.25);}
.btn-hero-cta{height:52px;padding:0 28px;background:#FF6B35;color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit;transition:all 0.2s;white-space:nowrap;box-shadow:0 4px 20px rgba(255,107,53,0.40);}
.btn-hero-cta:hover{background:#E85A25;transform:translateY(-1px);}

/* 가이드북 버튼 */
.guidebook-btn{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.07);border:1.5px solid rgba(255,255,255,0.16);border-radius:10px;padding:10px 20px;font-size:13px;font-weight:600;color:rgba(255,255,255,0.78);cursor:pointer;transition:all 0.2s;text-decoration:none;}
.guidebook-btn:hover{background:rgba(255,255,255,0.13);border-color:rgba(255,255,255,0.28);color:#fff;}
.guidebook-btn .gb-icon{font-size:18px;}
.guidebook-badge{display:inline-block;background:#F59E0B;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:6px;margin-left:2px;animation:badgePulse 2s ease-in-out infinite;}
@keyframes badgePulse{0%,100%{opacity:1;}50%{opacity:0.6;}}

/* ── 우측 이벤트 패널 ── */
.hero-right{width:340px;flex-shrink:0;display:flex;flex-direction:column;gap:14px;}

/* QnA 오픈 예고 카드 */
.event-card{background:rgba(255,255,255,0.06);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.12);border-radius:16px;overflow:hidden;}
.event-card-header{background:linear-gradient(135deg,#FF6B35,#E85A25);padding:14px 18px;display:flex;align-items:center;justify-content:space-between;}
.event-header-left{display:flex;align-items:center;gap:8px;}
.event-header-icon{font-size:20px;}
.event-header-text .e-title{font-size:13px;font-weight:800;color:#fff;}
.event-header-text .e-sub{font-size:11px;color:rgba(255,255,255,0.75);margin-top:1px;}
.event-dday{background:rgba(0,0,0,0.20);border-radius:8px;padding:4px 10px;font-size:12px;font-weight:800;color:#fff;white-space:nowrap;}

.event-card-body{padding:16px 18px;}

/* 카운트다운 */
.countdown-wrap{display:flex;align-items:center;justify-content:center;gap:5px;margin-bottom:14px;}
.cd-block{text-align:center;background:rgba(255,255,255,0.08);border-radius:8px;padding:8px 10px;min-width:50px;}
.cd-num{font-size:22px;font-weight:900;color:#fff;line-height:1;font-variant-numeric:tabular-nums;}
.cd-label{font-size:10px;color:rgba(255,255,255,0.50);margin-top:3px;}
.cd-sep{font-size:18px;font-weight:800;color:rgba(255,255,255,0.35);margin-bottom:14px;}

/* 진행 바 */
.progress-wrap{margin-bottom:14px;}
.progress-label{display:flex;justify-content:space-between;font-size:11px;color:rgba(255,255,255,0.55);margin-bottom:6px;}
.progress-bar{height:6px;background:rgba(255,255,255,0.10);border-radius:3px;overflow:hidden;}
.progress-fill{height:100%;background:linear-gradient(90deg,#FF6B35,#F59E0B);border-radius:3px;transition:width 1.2s ease;width:0%;}

.event-desc{font-size:12px;color:rgba(255,255,255,0.65);line-height:1.7;margin-bottom:12px;padding:10px 12px;background:rgba(255,255,255,0.05);border-radius:8px;border-left:2px solid #FF6B35;}
.event-desc strong{color:#fff;}
.event-desc .boost{color:#F59E0B;font-weight:700;}

.btn-event-notify{width:100%;height:40px;background:rgba(255,107,53,0.15);border:1.5px solid rgba(255,107,53,0.40);border-radius:10px;font-size:13px;font-weight:700;color:#FF6B35;cursor:pointer;font-family:inherit;transition:all 0.2s;}
.btn-event-notify:hover{background:rgba(255,107,53,0.28);border-color:#FF6B35;}
.btn-event-notify.notified{background:rgba(16,185,129,0.15);border-color:#10B981;color:#10B981;}

/* QnA 실시간 미리보기 */
.qna-preview-card{background:rgba(255,255,255,0.06);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.12);border-radius:16px;overflow:hidden;}
.qna-preview-header{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:space-between;}
.qna-preview-title{font-size:13px;font-weight:700;color:#fff;display:flex;align-items:center;gap:6px;}
.live-dot-sm{width:7px;height:7px;border-radius:50%;background:#EF4444;animation:pulse2 1.2s ease-in-out infinite;flex-shrink:0;}
.qna-count{font-size:11px;color:rgba(255,255,255,0.45);}
.qna-feed{padding:10px 12px;display:flex;flex-direction:column;gap:8px;max-height:190px;overflow:hidden;}
.qna-item{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:10px;padding:10px 12px;animation:slideIn 0.4s ease;}
@keyframes slideIn{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:translateY(0);}}
.qna-item-top{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.qna-avatar{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;flex-shrink:0;}
.qna-user{font-size:11px;font-weight:600;color:rgba(255,255,255,0.80);}
.qna-category{margin-left:auto;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:600;}
.qna-q{font-size:12px;color:rgba(255,255,255,0.70);line-height:1.5;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.qna-answer-row{display:flex;align-items:center;gap:6px;}
.qna-answer-avatar{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;flex-shrink:0;}
.qna-answer-text{font-size:11px;color:rgba(255,255,255,0.55);font-style:italic;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}

.hero-bottom{position:absolute;bottom:0;left:0;right:0;height:60px;background:linear-gradient(to bottom,transparent,rgba(244,245,247,0.5));pointer-events:none;}

/* ── 반응형 ── */
@media(max-width:1024px){
  .hero-right{width:300px;}
  .hero-title{font-size:34px;}
}
@media(max-width:768px){
  .navbar{padding:0 16px;gap:10px;}
  .nav-links .nav-link{display:none;}
  .hero-inner{flex-direction:column;padding:40px 20px 60px;}
  .hero-right{width:100%;}
  .hero-title{font-size:26px;}
  .hero-sub{font-size:14px;}
  .hero-search{flex-direction:column;}
  .hero-search input,.btn-hero-cta{width:100%;}
  .hero-text-slider{min-height:150px;}
  .hero-stats{gap:8px;}
  .stat-chip{padding:10px 12px;flex:1;min-width:calc(50% - 4px);}
}

/* ── 더보기 버튼 브릿지 ── */
.more-bridge{
  display:flex;
  justify-content:center;
  align-items:center;
  height:165px;
  /*background:linear-gradient(to bottom,#16213E 0%,#F4F5F7 100%);*/
  background:linear-gradient(10deg,#0D1B2E 0%,#1A2B4A 40%,#0F3460 70%,#16213E 100%);
}
.more-bridge::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");}
.btn-more-main{
  display:flex;align-items:center;gap:8px;
  background:#fff;
  border:2px solid #E8EBF0;
  border-radius:50px;
  padding:12px 32px;
  font-size:14px;font-weight:700;color:#1A2B4A;
  cursor:pointer;font-family:inherit;
  box-shadow:0 4px 20px rgba(26,43,74,0.10);
  transition:all 0.25s;
  z-index: 2;
}
.btn-more-main:hover{
  border-color:#FF6B35;color:#FF6B35;
  box-shadow:0 6px 28px rgba(255,107,53,0.18);
  transform:translateY(-2px);
}
.btn-more-main .arrow-icon{
  font-size:18px;
  transition:transform 0.3s;
  display:inline-block;
}
.btn-more-main.open .arrow-icon{transform:rotate(180deg);}

.chatbot-icon {
    width: 80px;
    height: 80px;
    position: fixed;
    right: 40px;
    bottom: 30px;
    cursor: pointer;
    z-index: 20;
    border: 2px solid #E8EBF0;
    border-radius: 50%;
    background-color: #d3d8ea;
}
.chatbot-icon img {
    width: 80px;
    height: 80px;
}

@media(max-width:768px){
  .more-bridge {
    height:180px;
  }
  .hero-bottom {
    display: none;
  }
  .chatbot-icon {
    right: 20px;
    width: 60px;
    height: 60px;
  }
  .chatbot-icon img {
    width: 60px;
    height: 60px;
  }
}
@media(max-width:1200px){
  .hero-bottom {
    display: none;
  }
}