/* ============================================
   Rich English - Main Styles
   Yellow-Green Gradient Theme
   중복 제거 및 통합 완료
   ============================================ */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Base Colors */
  --yellow: #FFC107;
  --yellow-dark: #FFA000;
  --yellow-light: #FFF8E1;
  --green: #4CAF50;
  --green-dark: #2E7D32;
  --green-light: #E8F5E9;
  --blue: #2196F3;
  --blue-dark: #1565C0;
  --blue-light: #E3F2FD;

  /* Primary Colors - Yellow 메인 */
  --primary: #FFC107;
  --primary-dark: #FFA000;
  --primary-light: #FFF8E1;
  --secondary: #4CAF50;
  --accent: #2196F3;

  /* Gradients - Yellow 중심 */
  --gradient-primary: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
  --gradient-green: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  --gradient-blue: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);

  --gradient-yellow-green: linear-gradient(135deg, #FFC107 0%, #4CAF50 100%);
  --gradient-yellow-blue: linear-gradient(135deg, #FFC107 0%, #2196F3 100%);
  --gradient-green-blue: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);

  --gradient-tricolor: linear-gradient(135deg, #FFC107 0%, #4CAF50 50%, #2196F3 100%);
  --gradient-tricolor-reverse: linear-gradient(135deg, #2196F3 0%, #4CAF50 50%, #FFC107 100%);

  --gradient-hero: linear-gradient(135deg, #FFA000 0%, #FFC107 30%, #FFD54F 100%);

  /* Text & Background */
  --text: #2E2E2E;
  --text-light: #5A5A5A;
  --bg: #FAFAFA;
  --white: #ffffff;

  /* Shadows - Yellow 메인 */
  --shadow: 0 4px 20px rgba(255, 193, 7, 0.25);
  --shadow-lg: 0 10px 40px rgba(255, 193, 7, 0.35);
  --shadow-green: 0 4px 20px rgba(76, 175, 80, 0.2);
  --shadow-blue: 0 4px 20px rgba(33, 150, 243, 0.2);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }

.highlight {
  background: var(--gradient-tricolor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--gradient-yellow-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-green);
  color: white;
  box-shadow: var(--shadow-green);
}
.btn-secondary:hover {
  background: var(--gradient-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--gradient-primary);
  color: var(--text);
  font-weight: 700;
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   Header
   ============================================ */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  color: var(--yellow-dark);
}

.logo img { height: 128px; max-height: 128px; width: auto; }

.logo .rich {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
}

/* ✅ 데스크탑 네비게이션 반응형 (메뉴 길 때 자동 축소) */
@media (min-width: 969px) and (max-width: 1400px) {
  .nav { gap: 12px; }
  .nav-link,
  .nav .btn { font-size: 14px; }
}
@media (min-width: 969px) and (max-width: 1150px) {
  .nav { gap: 8px; }
  .nav-link,
  .nav .btn { font-size: 13px; }
  .nav .btn { padding: 8px 14px; }
  .logo img { height: 80px; max-height: 80px; }
}
/* nav 안 버튼 줄바꿈 방지 */
.nav .btn { white-space: nowrap; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-tricolor);
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover,
.nav-link.active { color: var(--primary); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: rgba(26, 35, 126, 0.85);
  padding: 100px 0;
  color: white;
}
.hero-content { max-width: 700px; }
.hero-title { font-size: 48px; margin-bottom: 20px; }

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.3);
}
.hero-description {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 15px; margin-bottom: 50px; }

.hero-stats { display: flex; gap: 50px; }
.stat { text-align: center; }
.stat-number {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.2);
}
.stat-label { font-size: 14px; opacity: 0.9; }

/* ============================================
   Section Styles
   ============================================ */
section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 36px; margin-bottom: 15px; color: var(--text); }
.section-subtitle { font-size: 16px; color: var(--text-light); }

/* ============================================
   Features
   ============================================ */
.features { background: white; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
  border: 1px solid rgba(255, 193, 7, 0.15);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #FFF8E1 0%, #E8F5E9 50%, #E3F2FD 100%);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
  box-shadow: var(--shadow);
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--yellow-dark); }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* ============================================
   Reviews
   ============================================ */
.reviews { background: linear-gradient(180deg, #FAFAFA 0%, #FFFEF5 100%); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 193, 7, 0.15);
  transition: all 0.3s;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }

.review-avatar,
.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-yellow-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.review-name { font-weight: 600; }
.review-meta { font-size: 12px; color: var(--text-light); }
.review-rating { color: #FFC107; margin-bottom: 15px; }

.review-content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-preview,
.pricing,
.pricing-section { background: white; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  border: 2px solid rgba(255, 193, 7, 0.15);
  transition: all 0.3s;
}
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--gradient-tricolor) border-box;
  transform: scale(1.05);
}
.pricing-card.popular:hover { transform: scale(1.08) translateY(-10px); }

.popular-badge,
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-tricolor);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.pricing-name { font-size: 24px; margin-bottom: 20px; color: var(--yellow-dark); }
.pricing-price { margin-bottom: 30px; }

.pricing-price .price,
.price-amount {
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price .period,
.price-period,
.price-currency { font-size: 14px; color: var(--text-light); }

.pricing-features { list-style: none; margin-bottom: 30px; text-align: left; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i { color: var(--green); margin-right: 10px; }

.pricing-note { text-align: center; margin-top: 40px; color: var(--text-light); }
.pricing-note p { margin: 10px 0; font-size: 14px; }
.pricing-note i { color: var(--primary); margin-right: 5px; }

/* 비-Popular 수업료 카드 색상 (#246267 기반) */
.pricing-card:not(.popular) {
  border-color: rgba(36, 98, 103, 0.18);
  box-shadow: 0 14px 32px rgba(36, 98, 103, 0.10);
}
.pricing-card:not(.popular) .pricing-name { color: #246267; }
.pricing-card:not(.popular) .pricing-price .price,
.pricing-card:not(.popular) .price-amount {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #246267;
  color: #246267;
}
.pricing-card:not(.popular) .pricing-features i { color: #246267; }

.pricing-card .btn,
.pricing-card .btn-primary {
  border-radius: 999px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.pricing-card:not(.popular) .btn,
.pricing-card:not(.popular) .btn-primary {
  background-color: #246267;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(36, 98, 103, 0.35);
}
.pricing-card.popular .btn,
.pricing-card.popular .btn-primary {
  background-color: #f3cf71;
  color: #246267;
  box-shadow: 0 6px 18px rgba(243, 207, 113, 0.5);
}
.pricing-card .btn:hover,
.pricing-card .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ============================================
   Pricing Info
   ============================================ */
.pricing-info { background: linear-gradient(180deg, #FAFAFA 0%, #FFFEF5 100%); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.info-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.info-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-green-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
  box-shadow: var(--shadow-green);
}

.info-card h3 { margin-bottom: 15px; color: var(--yellow-dark); }
.info-card ul { list-style: none; text-align: left; }
.info-card li { padding: 8px 0; font-size: 14px; color: var(--text-light); }

/* ============================================
   CTA Section
   ============================================ */
.cta {
  background: var(--gradient-tricolor);
  padding: 80px 0;
  text-align: center;
  color: white;
}
.cta h2 { font-size: 36px; margin-bottom: 15px; }

.cta .highlight {
  background: linear-gradient(135deg, #FFE082 0%, #FFF59D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
  filter: brightness(1.3);
}
.cta p { font-size: 18px; opacity: 0.95; margin-bottom: 30px; }

.cta .btn-primary { background: white; color: var(--yellow-dark); font-weight: 700; }
.cta .btn-primary:hover { background: var(--gradient-primary); color: white; }

/* ============================================
   Page Header
   ============================================ */
.page-header {
  position: relative;
  padding: 70px 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background-color: #4f746f;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.06) 120px, transparent 260px),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.20) 0, rgba(0, 0, 0, 0.12) 140px, transparent 280px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 2px, transparent 2px, transparent 10px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 120px 120px;
}
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { font-size: 16px; opacity: 0.9; }

/* ============================================
   오늘의 피드백 섹션
   ============================================ */
.feedback-section { padding: 100px 0; background: #FFF8DB; }

.feedback-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.feedback-left .feedback-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.3;
}
.feedback-left .feedback-title span { color: var(--primary-dark); }

.feedback-desc {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.feedback-card-modern {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* header */
.fb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.fb-teacher { font-weight: 700; font-size: 18px; }
.fb-dots span {
  width: 10px; height: 10px; background: var(--primary); border-radius: 50%;
  display: inline-block; margin-left: 6px;
}

/* body */
.fb-body { display: flex; flex-direction: column; gap: 18px; }
.fb-msg-block { margin-bottom: 4px; }
.fb-label { font-weight: 700; color: #333; margin-bottom: 6px; font-size: 14px; }
.fb-msg { padding: 12px 16px; background: #f0f0f0; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.fb-msg.correct { background: #e6ffe6; }
.fb-list { padding-left: 18px; font-size: 14px; color: #444; }
.fb-list li { margin: 6px 0; }

/* footer */
.fb-footer { display: flex; margin-top: 20px; gap: 10px; }
.fb-input { flex: 1; background: #f0f0f0; padding: 12px 15px; border-radius: 12px; font-size: 14px; color: #555; }
.fb-send {
  background: var(--primary);
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.fb-send:hover { background: var(--primary-dark); }
.wrong { color: #e53935; font-weight: 700; }
.right { color: #43a047; font-weight: 700; }

/* ============================================
   Notice Section
   ============================================ */
.notice-section { background: white; padding: 60px 0; }

.notice-list { max-width: 800px; margin: 0 auto; }
.notice-item {
  background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.15);
}
.notice-header { display: flex; align-items: center; padding: 20px; cursor: pointer; gap: 15px; }

.notice-badge { padding: 4px 12px; border-radius: 15px; font-size: 12px; font-weight: 600; }
.badge-info { background: var(--gradient-primary); color: var(--text); font-weight: 700; }
.badge-warning { background: var(--gradient-green); color: white; }
.badge-danger { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); color: white; }

.notice-title { flex: 1; font-size: 16px; font-weight: 500; }
.notice-date { font-size: 14px; color: var(--text-light); }

.notice-toggle { color: var(--primary); transition: transform 0.3s; }
.notice-item.active .notice-toggle { transform: rotate(180deg); }

.notice-content { display: none; padding: 0 20px 20px; border-top: 1px solid rgba(255, 193, 7, 0.15); }
.notice-item.active .notice-content { display: block; }
.notice-content p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ============================================
   Curriculum Section
   ============================================ */
.curriculum-section,
.textbooks-section,
.process-section { background: white; }

.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.level-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 193, 7, 0.15);
}
.level-header {
  padding: 30px;
  background: var(--gradient-tricolor);
  color: white;
  text-align: center;
}
.level-header h3 { font-size: 24px; margin-bottom: 5px; }
.level-code { opacity: 0.9; font-size: 14px; }

.level-body { padding: 30px; background: white; }

.level-description { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

.level-skills h4 { font-size: 14px; margin-bottom: 10px; color: var(--yellow-dark); }
.level-skills ul { list-style: none; }
.level-skills li { padding: 5px 0; font-size: 13px; color: var(--text-light); }
.level-skills i { color: var(--green); margin-right: 8px; }

/* ============================================
   Textbooks
   ============================================ */
.textbooks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.textbook-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.textbook-image {
  width: 80px;
  height: 100px;
  background: var(--gradient-yellow-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
  box-shadow: var(--shadow);
}

.textbook-info h3 { font-size: 18px; margin-bottom: 5px; color: var(--yellow-dark); }
.textbook-level { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 10px; }
.textbook-description { font-size: 14px; color: var(--text-light); }

/* ============================================
   Process
   ============================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-item { text-align: center; }

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.process-item h3 { font-size: 16px; margin-bottom: 10px; color: var(--yellow-dark); }
.process-item p { font-size: 14px; color: var(--text-light); }

/* ============================================
   Teachers (UNIFIED)
   - styles.css에서만 사용
   - 영상 hover 오버레이 제거
   - 영상 버튼은 전문분야 밑에만
   - 이름/전문분야 fallback 통일
   ============================================ */
.teacher-section,
.teachers-list-section { background: white; }

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.criteria-card {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
  border-radius: 15px;
  border: 1px solid rgba(255, 193, 7, 0.2);
}
.criteria-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
  box-shadow: var(--shadow);
}
.criteria-card h3 { margin-bottom: 15px; color: var(--yellow-dark); }
.criteria-card ul {
  list-style: disc !important;
  padding-left: 1.4rem;
  margin: 0.5rem 0 0;
  text-align: left;
}
.criteria-card li {
  padding: 5px 0;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-light);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* 카드 */
.teacher-card {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 193, 7, 0.15);
  transition: all 0.3s;
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 상단 이미지 */
.teacher-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
  cursor: zoom-in;
}
.teacher-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  background: #ffffff;
}
.teacher-image-wrap:hover img { transform: scale(1.08); }

/* ✅ 영상 hover 오버레이 완전 제거 */
.teacher-video-overlay,
.teacher-image-wrap:hover .teacher-video-overlay {
  display: none !important;
  opacity: 0 !important;
}

/* 하단 */
.teacher-bottom {
  padding: 18px 20px 22px;
  text-align: center;
}

/* 이름 */
.teacher-name {
  margin: 2px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  word-break: break-word;
}
.teacher-name:empty::before {
  content: "Rich English Teacher";
  opacity: .9;
}

/* 전문분야 */
.teacher-bottom .teacher-specialty {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
  word-break: break-word;
}
.teacher-bottom .teacher-specialty:empty::before {
  content: "English Instructor";
  opacity: .85;
}

/* 영상 버튼(전문분야 밑에만) */
.teacher-video-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
}

/* Teachers Pagination */
.teachers-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.teachers-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}
.teachers-page-btn:hover {
  background: #f3cf71;
  color: #1f2933;
  border-color: rgba(0,0,0,0.12);
}
.teachers-page-btn.is-active {
  background: #246267;
  color: #ffffff;
  border-color: #246267;
  box-shadow: 0 4px 12px rgba(36, 98, 103, 0.35);
}
.teachers-page-btn[disabled] {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* Lightbox */
.teacher-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.teacher-lightbox.active { display: flex; }
.teacher-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}

/* ============================================
   Trial Form
   ============================================ */
.trial-section { background: white; padding: 60px 0; }

.trial-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.trial-info h2 {
  font-size: 28px;
  margin-bottom: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trial-benefits { list-style: none; margin-bottom: 40px; }

.trial-benefits li { display: flex; gap: 15px; margin-bottom: 20px; }
.trial-benefits i { font-size: 24px; color: var(--primary); margin-top: 5px; }

.trial-benefits strong { display: block; margin-bottom: 5px; color: var(--yellow-dark); }
.trial-benefits p { font-size: 14px; color: var(--text-light); }

.trial-contact {
  background: linear-gradient(135deg, #FFF8E1 0%, #E8F5E9 50%, #E3F2FD 100%);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 193, 7, 0.2);
}
.trial-contact h3 { margin-bottom: 10px; color: var(--yellow-dark); }
.trial-contact p { font-size: 14px; color: var(--text-light); margin-bottom: 5px; }
.trial-contact i { width: 20px; color: var(--primary); }

.trial-form-container {
  background: linear-gradient(135deg, #FFFEF5 0%, #F5FEF5 50%, #F0F8FF 100%);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.trial-form h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  background: var(--gradient-tricolor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--yellow-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ============================================
   Footer (4단 레이아웃)
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, #f4e4c1 0%, #e8d4a0 100%);
  padding: 60px 0 20px;
  color: #2c3e50;
}
.site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* 1단: 로고 영역 */
.footer-col.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo-wrap {
  width: 256px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrap img {
  width: 256px;
  height: 256px;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

.footer-logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: #2E7D32;
  text-align: left;
  width: 100%;
}

.footer-desc { font-size: 0.95rem; line-height: 1.6; color: #555; margin: 0; }

/* 2단, 3단, 4단: 공통 */
.footer-col { display: flex; flex-direction: column; }

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #2E7D32;
}

/* 2단: 회사 정보 */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}
.footer-contact i {
  color: #2E7D32;
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* 3단, 4단: 링크 */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li { line-height: 1.4; }

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover { color: #2E7D32; padding-left: 8px; }

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #2E7D32;
}
.footer-links a:hover::before { opacity: 1; left: -12px; }

/* Footer 하단 */
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #666; }

/* ============================================
   SNS Floating Buttons
   ============================================ */
.sns-floating-container {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sns-floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: floatIn 0.5s ease;
  position: relative;
}
.sns-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.sns-floating-btn i { font-size: 26px; }

/* SNS 버튼별 색상 */
.sns-btn-kakao, .sns-btn-카카오톡 { background: #FEE500; color: #3C1E1E; }
.sns-btn-naver, .sns-btn-네이버-블로그 { background: #03C75A; }
.sns-btn-line { background: #00B900; }
.sns-btn-wechat { background: #07C160; }
.sns-btn-whatsapp { background: #25D366; }
.sns-btn-telegram { background: #0088cc; }
.sns-btn-messenger { background: #0084FF; }
.sns-btn-email { background: #EA4335; }
.sns-btn-phone, .sns-btn-전화 { background: #34B7F1; }

/* 툴팁 */
.sns-floating-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sns-floating-btn:hover::before { opacity: 1; }

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

/* ============================================
   섹션 배너 (2단 이미지 배너) - UNIFIED
   - 중복 제거 & 통일 (section-banner 한 번만 정의)
   ============================================ */
.section-banner {
  width: 100%;
  padding: 32px 0;
  background: #f9fafb;
}

.section-banner .container,
.section-banner .banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}

.section-banner .banner-inner{
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.banner-grid-2,
.section-banner .banner-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.banner-card,
.section-banner .banner-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.banner-card img,
.section-banner .banner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

/* background-image 카드도 지원 */
.section-banner .banner-visual {
  position: relative;
  width: 100%;
  padding: 10px;
  border-radius: 18px;
  background-color: #ffffff;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain !important;
  aspect-ratio: 1 / 1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}
.section-banner .banner-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-col.footer-brand { grid-column: 1 / -1; }

  /* Header */
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .nav.active {
    display: flex;
  }
  .nav-link { padding: 10px 0; }

  /* Logo */
  .logo img { height: 84px; max-height: 84px; }

  /* Grids */
  .features-grid,
  .reviews-grid,
  .pricing-grid,
  .teachers-grid,
  .criteria-grid,
  .levels-grid,
  .textbooks-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }

  /* Trial */
  .trial-wrapper { grid-template-columns: 1fr; gap: 40px; }

  /* Banner */
  .banner-grid-2,
  .section-banner .banner-grid-2 { grid-template-columns: 1fr; }

  /* Feedback */
  .feedback-container { grid-template-columns: 1fr; gap: 40px; }
  .feedback-left { text-align: center; }
  .feedback-left .feedback-title { font-size: 32px; }
}

@media (max-width: 768px) {
  /* SNS */
  .sns-floating-container { right: 20px; bottom: 20px; gap: 12px; }
  .sns-floating-btn { width: 50px; height: 50px; }
  .sns-floating-btn i { font-size: 22px; }
  .sns-floating-btn::before { display: none; }

  /* Pagination */
  .teachers-pagination { gap: 4px; }
  .teachers-page-btn { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12px; }

  /* Banner */
  .section-banner { padding: 60px 0; }
  .section-banner .banner-inner { padding: 18px; border-radius: 20px; }
  .section-banner .banner-visual { aspect-ratio: 3 / 4; padding: 10px; }

  /* Teachers image ratio mobile */
  .teacher-image-wrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  /* Footer */
  .site-footer { padding: 40px 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-logo-text { font-size: 2rem; }
  .footer-title { font-size: 1rem; margin-bottom: 16px; }

  /* Grids */
  .features-grid,
  .reviews-grid,
  .pricing-grid,
  .teachers-grid,
  .criteria-grid,
  .levels-grid,
  .textbooks-grid,
  .process-grid,
  .info-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero-stats { flex-direction: column; gap: 15px; }

  /* Section */
  .section-title { font-size: 28px; }
}

/* ===== Teachers: Search Bar (colors kept) ===== */
.teacher-searchbar{
  max-width: 980px;
  margin: 14px auto 18px;
  text-align: center;
}
.teacher-searchbar__badge{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.teacher-searchbar__row{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.teacher-searchbar__field{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 0 12px;
  height: 42px;
  min-width: 260px;
}
.teacher-searchbar__field i{
  opacity: .7;
}
.teacher-searchbar__field input,
.teacher-searchbar__field select{
  border: 0;
  outline: 0;
  height: 100%;
  background: transparent;
  width: 100%;
  font-size: 14px;
}
.teacher-searchbar__result{
  margin-top: 8px;
  font-size: 12px;
  opacity: .8;
}

/* mobile */
@media (max-width: 680px){
  .teacher-searchbar__field{ min-width: 100%; border-radius: 14px; }
  .teacher-searchbar__row .btn{ width: 48%; }
}


/* ============================================
   Mobile Hamburger Menu Styles
   ============================================ */

/* 모바일 메뉴 버튼 기본 스타일 강화 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary, #FFC107);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn:hover {
  color: var(--primary-dark, #FFA000);
  transform: scale(1.1);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu-btn i {
  transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
  transform: rotate(90deg);
}

/* 모바일 화면에서 햄버거 버튼 표시 및 네비게이션 슬라이드 메뉴 */
@media (max-width: 968px) {
  /* 햄버거 버튼 표시 */
  .mobile-menu-btn {
    display: block;
  }

  /* 네비게이션 슬라이드 메뉴 */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 0 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* 메뉴 활성화 시 */
  .nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: white;
    padding: 80px 0 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }

  /* 네비게이션 링크 스타일 */
  .nav-link,
  .nav .btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    text-align: left;
    border-radius: 0;
    margin: 0;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--primary-light, #FFF8E1);
    color: var(--primary, #FFC107);
    border-left: 4px solid var(--primary, #FFC107);
    padding-left: calc(2rem - 4px);
  }

  .nav .btn-primary {
    margin: 1rem;
    width: calc(100% - 2rem);
    text-align: center;
    border-radius: 8px;
    border: none;
    background: var(--gradient-primary);
  }

  .nav .btn-primary:hover {
    background: var(--gradient-yellow-green);
    color: white;
  }

  /* 메뉴 오버레이 */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* 메뉴 열림 시 스크롤 방지 */
  body.menu-open {
    overflow: hidden;
  }

  /* 헤더 높이 조정 */
  .header {
    padding: 1rem 0;
  }

  .header-content {
    justify-content: space-between;
  }
}

/* 더 작은 모바일 화면 (전체 너비 메뉴) */
@media (max-width: 576px) {
  .nav {
    width: 100%;
    right: -100%;
  }

  .nav.active {
    right: 0;
  }
}

/* 헤더 스크롤 효과 */
.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

/* 접근성 개선 */
.mobile-menu-btn:focus {
  outline: 2px solid var(--primary, #FFC107);
  outline-offset: 2px;
}

.nav-link:focus {
  outline: 2px solid var(--primary, #FFC107);
  outline-offset: -2px;
}

/* 부드러운 전환 효과 */
* {
  -webkit-tap-highlight-color: transparent;
}

.nav-link,
.mobile-menu-btn,
.btn {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}


/* ===== Feedback Card: Level Test Result 확장 스타일 ===== */
.fb-date{
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  font-weight: 600;
}
.fb-doc-title{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.fb-meta-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 8px;
}
@media (max-width: 520px){
  .fb-meta-grid{ grid-template-columns: 1fr; }
}

.fb-meta-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  font-size: 12px;
}
.fb-meta-item .k{
  color: rgba(0,0,0,0.55);
  font-weight: 700;
}
.fb-meta-item .v{
  color: rgba(0,0,0,0.88);
  font-weight: 800;
  text-align: right;
}

/* 내용이 길어지므로 본문만 스크롤 */
.fb-body-scroll{
  max-height: 360px;      /* 필요하면 320~420 사이로 조절 */
  overflow: auto;
  padding-right: 6px;
}

/* 섹션 소제목 */
.fb-subhead{
  margin: 10px 0 6px;
  font-weight: 900;
}

/* 평가 리스트 가독성 */
.fb-assess li strong{
  font-weight: 900;
}

/* Teacher’s Note 강조 박스 */
.fb-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
}
.fb-note .fb-msg{
  margin: 6px 0 0;
}

/* 마무리 문구 */
.fb-closing{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0,0,0,0.72);
  font-style: italic;
  line-height: 1.45;
}


/* =========================================================
   Public notice.html - 이미지/영상이 잘리지 않도록 + 반응형
   아래 블록을 styles.css 맨 아래에 추가하세요.
   ========================================================= */

.notice-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 16px 70px;
}

.notice-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-item{
  border: 1px solid rgba(255, 193, 7, .35);
  border-radius: 14px;
  overflow: hidden;
  background: #fffef7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.notice-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.notice-badges{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.notice-badge{
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255, 193, 7, .18);
}
.notice-badge.type{
  background: rgba(59, 130, 246, .14);
  border-color: rgba(59, 130, 246, .22);
}
.notice-badge.important{
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .25);
}

.notice-title{
  font-weight: 800;
  color: #0b1120;
  flex: 1;
}

.notice-date{
  font-size: 12px;
  color: rgba(15,23,42,.55);
  margin-left: auto;
}

.notice-body{
  display: none;
  padding: 0 16px 18px;
}
.notice-item.open .notice-body{
  display: block;
}

.notice-content{
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.06);
  overflow: visible; /* ★ 큰 이미지가 잘리지 않게 */
}

/* ★ 핵심: 큰 이미지/영상/iframe이 “짤리지 않고” 화면에 맞게 */
.notice-content img,
.notice-content video,
.notice-content iframe{
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
}

.notice-content img{
  object-fit: contain;
  border-radius: 12px;
}

.notice-content video{
  border-radius: 12px;
}

/* 유튜브 등 embed는 비율 유지 */
.notice-content .re-embed{
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  margin: 12px 0;
}
.notice-content .re-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 긴 URL/텍스트 줄바꿈 */
.notice-content{
  word-break: break-word;
}


/* =========================================================
   Public notice.html - 이미지/영상이 잘리지 않도록 + 반응형
   ✅ 전역 오염 방지: 반드시 .notice-wrap 내부로 스코프!
   ========================================================= */

.notice-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 16px 70px;
}

.notice-wrap .notice-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-wrap .notice-item{
  border: 1px solid rgba(255, 193, 7, .35);
  border-radius: 14px;
  overflow: hidden;
  background: #fffef7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.notice-wrap .notice-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.notice-wrap .notice-badges{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.notice-wrap .notice-badge{
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255, 193, 7, .18);
}
.notice-wrap .notice-badge.type{
  background: rgba(59, 130, 246, .14);
  border-color: rgba(59, 130, 246, .22);
}
.notice-wrap .notice-badge.important{
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .25);
}

.notice-wrap .notice-title{
  font-weight: 800;
  color: #0b1120;
  flex: 1;
}

.notice-wrap .notice-date{
  font-size: 12px;
  color: rgba(15,23,42,.55);
  margin-left: auto;
}

/* ✅ 여기부터가 문제였던 부분: 전역 .notice-body를 금지하고 스코프만 적용 */
.notice-wrap .notice-body{
  display: none;
  padding: 0 16px 18px;
}
.notice-wrap .notice-item.open .notice-body{
  display: block;
}

.notice-wrap .notice-content{
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.06);
  overflow: visible;
  word-break: break-word;
}

.notice-wrap .notice-content img,
.notice-wrap .notice-content video,
.notice-wrap .notice-content iframe{
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
}

.notice-wrap .notice-content img{ object-fit: contain; border-radius: 12px; }
.notice-wrap .notice-content video{ border-radius: 12px; }

.notice-wrap .notice-content .re-embed{
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  margin: 12px 0;
}
.notice-wrap .notice-content .re-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}