/* ==========================================================
   영클 원어민영어회화 - Landing Page Styles
   ========================================================== */

:root {
  --color-primary: #C0161A;
  --color-primary-dark: #970F12;
  --color-cream: #F5F0EB;
  --color-cream-dark: #EAE1D6;
  --color-text: #201A18;
  --color-text-muted: #6B6260;
  --color-white: #FFFFFF;
  --color-kakao: #FEE500;
  --color-kakao-text: #391B1B;
  --color-gold: #B8860B;

  --font-base: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, sans-serif;

  --container-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 16px rgba(32, 26, 24, 0.06);
  --shadow-md: 0 12px 32px rgba(32, 26, 24, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-line {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-cream {
  background: var(--color-cream);
  color: var(--color-primary-dark);
}

.btn-cream:hover {
  background: var(--color-white);
}

.btn-kakao {
  background: var(--color-kakao);
  color: var(--color-kakao-text);
}

.btn-kakao:hover {
  filter: brightness(0.97);
}

/* ---------- Section shared ---------- */
.section {
  padding: 96px 0;
}

.section-eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 1.02rem;
}

/* ==========================================================
   1. Header / Navigation
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32, 26, 24, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.logo-text em {
  font-style: normal;
  color: var(--color-primary);
}

.nav-desktop .nav-list {
  display: flex;
  gap: 36px;
}

.nav-desktop .nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav-desktop .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-desktop .nav-list a:hover::after {
  width: 100%;
}

.nav-desktop .nav-list a.is-active {
  color: var(--color-primary);
}

.nav-desktop .nav-list a.is-active::after {
  width: 100%;
}

/* ---------- Dropdown (desktop) ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-toggle .caret {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown:focus-within .nav-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  background: var(--color-white);
  border-top: 1px solid rgba(32, 26, 24, 0.06);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  padding: 12px 24px 20px;
}

.nav-mobile li a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(32, 26, 24, 0.06);
}

.nav-mobile .mobile-call {
  color: var(--color-primary);
}

/* ---------- Dropdown (mobile) ---------- */
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  border: none;
  background: none;
  border-bottom: 1px solid rgba(32, 26, 24, 0.06);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
}

.mobile-dropdown-toggle .caret {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.mobile-dropdown.is-open .mobile-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.mobile-dropdown.is-open .mobile-dropdown-toggle {
  color: var(--color-primary);
}

.nav-mobile .mobile-submenu {
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mobile-dropdown.is-open .mobile-submenu {
  max-height: 200px;
}

.mobile-submenu li a {
  padding: 12px 0 12px 16px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(32, 26, 24, 0.06);
}

/* ==========================================================
   2. Hero
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2A0D0E 0%, #140607 100%);
  color: var(--color-white);
  padding: 140px 0 120px;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 8, 8, 0.75) 0%, rgba(30, 10, 11, 0.6) 45%, rgba(12, 5, 5, 0.85) 100%),
    radial-gradient(60% 55% at 50% 15%, rgba(192, 22, 26, 0.35), rgba(0, 0, 0, 0) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--color-cream);
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================
   2b. Page banner (서브페이지 상단 배너)
   ========================================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2A0D0E 0%, #140607 100%);
  color: var(--color-white);
  padding: 76px 0 64px;
  text-align: center;
}

.page-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.page-banner-inner {
  position: relative;
  z-index: 2;
}

.page-banner .eyebrow {
  margin-bottom: 18px;
}

.page-banner h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

/* ==========================================================
   4. Features
   ========================================================== */
.features {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.feature-card {
  padding: 40px 24px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================================
   5. Curriculum
   ========================================================== */
.curriculum {
  background: var(--color-cream);
  text-align: center;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.curriculum-grid li {
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  padding: 22px 12px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.curriculum-grid li:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-4px);
}

/* ---------- Curriculum full grid (커리큘럼 페이지) ---------- */
.curriculum-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: left;
}

.curriculum-photo-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.curriculum-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

button.curriculum-photo-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.curriculum-photo-card.is-active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.curriculum-photo-card.is-active .info h3 {
  color: var(--color-primary);
}

/* ---------- Course gallery (커리큘럼 탭 하위 과정 이미지) ---------- */
.course-gallery {
  margin-top: 48px;
}

.course-gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.course-gallery-heading h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.course-gallery-heading h3 em {
  font-style: normal;
  color: var(--color-primary);
}

.course-gallery-count {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.course-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.course-card .course-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.course-card .course-level {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(192, 22, 26, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.course-card .course-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.course-card .course-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card .course-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--color-text);
  line-height: 1.5;
}

.course-card .course-features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 800;
  flex-shrink: 0;
}

.curriculum-photo-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.curriculum-photo-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curriculum-photo-card .info {
  padding: 16px 18px 20px;
}

.curriculum-photo-card .info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.curriculum-photo-card .info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- Audience link cards (초중고/성인 바로가기) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.audience-card {
  display: block;
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.audience-card .audience-eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.audience-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.audience-card .audience-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* ---------- Intro split (텍스트 + 이미지 2단) ---------- */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-split .intro-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-split .intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-split .intro-text .section-eyebrow,
.intro-split .intro-text .section-title,
.intro-split .intro-text .section-desc {
  text-align: left;
}

.intro-split .intro-text .section-desc {
  margin-bottom: 0;
}

/* ---------- Recommended curriculum chips (초중고/성인 페이지) ---------- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-grid li a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-grid li a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================
   6. Class guide
   ========================================================== */
.guide {
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.guide-card {
  padding: 44px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-cream-dark);
}

.guide-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.guide-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ==========================================================
   7. Reviews
   ========================================================== */
.reviews {
  background: var(--color-cream);
  text-align: center;
}

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

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.review-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ---------- Review marquee (후기 카드 자동 스크롤) ---------- */
.review-marquee {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.review-marquee-track {
  display: inline-flex;
  gap: 20px;
  animation: review-marquee-scroll 42s linear infinite;
  will-change: transform;
}

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

@keyframes review-marquee-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.review-mini-card {
  flex: 0 0 300px;
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.review-mini-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.review-mini-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.review-mini-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-gold);
}

/* ==========================================================
   11. Blog feed (네이버 블로그 최신글)
   ========================================================== */
.blog-section {
  background: linear-gradient(160deg, #2A0D0E 0%, #140607 100%);
  color: var(--color-white);
  text-align: center;
}

.blog-section .section-title {
  color: var(--color-white);
}

.blog-section .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.blog-tabs.is-error {
  display: none;
}

.blog-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
}

.blog-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.blog-grid.is-error {
  display: none;
}

.blog-card {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  color: var(--color-white);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-card-category {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(192, 22, 26, 0.25);
  border: 1px solid rgba(192, 22, 26, 0.5);
  color: #FF9EA0;
  font-size: 0.72rem;
  font-weight: 700;
}

.blog-card-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cream);
}

.blog-skeleton {
  height: 158px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.06) 63%);
  background-size: 400% 100%;
  animation: blog-skeleton-shimmer 1.4s ease infinite;
}

@keyframes blog-skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.blog-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Trial class cards (체험수업 미리보기) ---------- */
.trial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trial-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.trial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.trial-card-img {
  background: var(--color-cream);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trial-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trial-card-body {
  padding: 20px 22px 24px;
}

.trial-card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trial-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.trial-cta {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================
   7b. FAQ accordion
   ========================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary {
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 26px 22px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ==========================================================
   8. CTA
   ========================================================== */
.cta-section {
  background: var(--color-text);
  color: var(--color-white);
  padding: 88px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 34px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================
   9. Footer
   ========================================================== */
.site-footer {
  background: #16110F;
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 0;
  text-align: center;
}

.footer-brand {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-info {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.footer-nav a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================
   10. Step flow (강사 채용과정 / 과정 진행 방식 등 단계형 안내)
   ========================================================== */
.step-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.step-flow-item {
  position: relative;
  flex: 1 1 170px;
  max-width: 220px;
  background: var(--color-white);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-flow-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-flow-num {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
}

.step-flow-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-flow-item p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.step-flow-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  color: var(--color-cream-dark);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------- Curriculum card icon (사진 대신 아이콘 + 설명 카드) ---------- */
.curriculum-photo-card .icon {
  font-size: 2rem;
  padding: 24px 18px 4px;
}

/* ---------- 결과 샘플 링크 카드 (상담문의 페이지) ---------- */
.result-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .step-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .step-flow-item {
    max-width: none;
  }

  .step-flow-item:not(:last-child)::after {
    content: '↓';
    top: auto;
    bottom: -18px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ---------- Floating call button ---------- */
.floating-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: transform 0.2s ease;
}

.floating-call:hover {
  transform: scale(1.08);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .curriculum-grid,
  .curriculum-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid,
  .intro-split {
    grid-template-columns: 1fr;
  }

  .intro-split .intro-photo {
    order: -1;
  }

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

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

  .carousel-slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .nav-call {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 88px 0 72px;
  }

  .page-banner {
    padding: 60px 0 48px;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .course-gallery-grid {
    grid-template-columns: 1fr;
  }

  .trial-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-slide img {
    height: 300px;
  }
}
