/* ============================================
   아이비그린 학원 홈페이지 스타일시트
   색상: 진한 초록(#5BA832) + 노랑/주황(#F5A623)
   ============================================ */

/* ---- CSS 변수 ---- */
:root {
  --green: #5BA832;
  --green-dark: #4a8c28;
  --green-light: #7dc44a;
  --green-bg: #f0f9e8;
  --yellow: #F5A623;
  --yellow-dark: #d4891a;
  --yellow-light: #ffc654;
  --yellow-bg: #fff9ee;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-700: #495057;
  --gray-900: #212529;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: .3s ease;
  --font: 'Noto Sans KR', sans-serif;
}

/* ---- 리셋 & 기본 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---- 공통 유틸 ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 90px 0; }
.section-alt { background: var(--gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-title .green { color: var(--green); }
.section-title .yellow { color: var(--yellow); }
.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- 버튼 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: .97rem;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,168,50,.35);
}
.btn-kakao {
  background: #FEE500;
  color: #3C1E1E;
  border-color: #FEE500;
  justify-content: center;
}
.btn-kakao:hover {
  background: #F0D800;
  border-color: #F0D800;
  color: #3C1E1E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254,229,0,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); padding: 16px; font-size: 1.05rem; }

/* ============================================
   HEADER / NAV
   ============================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,168,50,.12);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 50px; object-fit: contain; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--green);
  background: var(--green-bg);
}
.nav-cta {
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  margin-left: 8px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,168,50,.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
#hero {
  background: linear-gradient(135deg, #1a4a08 0%, #2d7a12 40%, #4a9e20 70%, #5BA832 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 90px 60px 56px;
  position: relative;
  overflow: hidden;
  gap: 32px;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: var(--yellow);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; left: 10%; background: var(--white); opacity: .06; }
.shape-3 { width: 150px; height: 150px; top: 30%; left: 50%; }

/* 왼쪽 콘텐츠 */
.hero-content {
  flex: 1;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,.2);
  border: 1px solid rgba(245,166,35,.4);
  color: #ffe082;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  word-break: keep-all;
}
.hero-title .highlight-yellow { color: var(--yellow); }
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  line-height: 1.8;
  word-break: keep-all;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.4rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-label { display: block; font-size: .75rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.25); flex-shrink: 0; }

/* 오른쪽 로고 */
.hero-image {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-logo-wrap {
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 36px;
  animation: float 4s ease-in-out infinite;
}
.hero-logo-big { width: 200px; object-fit: contain; display: block; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   NOTICE STRIP
   ============================================ */
.notice-strip {
  background: var(--yellow);
  padding: 14px 0;
  overflow: hidden;
}
.notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.notice-icon { color: var(--white); font-size: 1.1rem; }
.notice-text {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .notice-strip { padding: 10px 0; }
  .notice-inner { flex-wrap: wrap; gap: 4px 8px; justify-content: center; padding: 0 14px; }
  .notice-text { white-space: normal; text-align: center; font-size: .8rem; line-height: 1.6; overflow: visible; }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}
.about-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: var(--white);
  flex-shrink: 0;
}
.about-icon.green-bg { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.about-icon.yellow-bg { background: linear-gradient(135deg, var(--yellow-dark), var(--yellow)); }
.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: keep-all;
}
.about-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.75;
  word-break: keep-all;
}

/* ============================================
   SUBJECTS
   ============================================ */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
/* 2과목 전용 - 넉넉하게 2열 */
.subjects-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 36px;
}
/* 3과목 - 영어독서논술 / 국어독서논술 / 스피치 */
.subjects-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.subject-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}
.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.subject-card.featured {
  border: 2px solid var(--green);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.subject-card.featured:hover { transform: scale(1.03) translateY(-8px); }

.subject-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--yellow);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.subject-badge-top.speech-badge {
  background: linear-gradient(135deg, #8e44ad, #c0392b);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(142,68,173,.5); }
  50% { box-shadow: 0 0 0 6px rgba(142,68,173,0); }
}

.subject-header {
  padding: 36px 28px 24px;
  text-align: center;
  color: var(--white);
}
.english-header { background: linear-gradient(135deg, #1e6abf, #3d8fe0); }
.korean-header { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.reading-header { background: linear-gradient(135deg, var(--yellow-dark), var(--yellow)); }
.speech-header { background: linear-gradient(135deg, #8e44ad, #c0392b); }

.subject-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.subject-header h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.subject-header p { font-size: .88rem; opacity: .85; font-weight: 500; }

.subject-body { padding: 24px 28px; }
.subject-list { display: flex; flex-direction: column; gap: 12px; }
.subject-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--gray-700);
}
.subject-list li .fa-check-circle { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.english-header ~ .subject-body .subject-list li .fa-check-circle { color: #3d8fe0; }
.reading-header ~ .subject-body .subject-list li .fa-check-circle { color: var(--yellow-dark); }

/* 과목 설명 박스 */
.subject-desc-box {
  background: var(--gray-100);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 18px;
}
.english-header ~ .subject-body .subject-desc-box {
  border-left-color: #3d8fe0;
}
.subject-desc-box.speech-desc {
  border-left-color: #8e44ad;
  background: #f9f3fc;
}
/* 스피치 체크 아이콘 */
.speech-check { color: #8e44ad !important; }
/* 스피치 대상 배지 */
.target-badge.speech-target-badge {
  background: #f3e8fd;
  color: #7d3c98;
}

.subject-target {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: .9rem;
  color: var(--text-light);
}
.target-badge {
  background: var(--green-bg);
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ============================================
   FEATURES
   ============================================ */
.features-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
  transition: all var(--transition);
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover { padding-left: 12px; }
.feature-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--green-bg);
  line-height: 1;
  flex-shrink: 0;
  width: 70px;
  text-align: right;
  letter-spacing: -.03em;
  -webkit-text-stroke: 2px var(--green-light);
}
.feature-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-content h3 i { color: var(--green); }
.feature-content p { font-size: .95rem; color: var(--text-light); line-height: 1.8; word-break: keep-all; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(245,166,35,.15);
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner h2 span { color: var(--yellow); }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.contact-info-side {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--white);
}
.contact-info-side h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  font-size: .85rem;
  opacity: .75;
  margin-bottom: 4px;
}
.contact-list a, .contact-list span {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.6;
}
.contact-list a:hover { color: var(--yellow); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.form-group .req { color: var(--green); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91,168,50,.15);
}
.form-group input.error,
.form-group select.error { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.15); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636e72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.checkbox-group { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .93rem;
  font-weight: 500;
  color: var(--gray-700);
  user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 20px; height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  font-size: .75rem;
  color: var(--white);
  font-weight: 700;
}

.form-note {
  text-align: center;
  font-size: .82rem;
  color: var(--gray-500);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============================================
   CONTACT SIMPLE (버튼 전용)
   ============================================ */
.contact-simple-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-simple-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
}
.cs-divider {
  height: 1px;
  background: var(--gray-100);
}
.cs-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  min-width: 72px;
  flex-shrink: 0;
}
.cs-value {
  font-size: .95rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.cs-value a {
  display: block;
  color: var(--gray-700);
  font-weight: 600;
  transition: color var(--transition);
}
.cs-value a:hover { color: var(--green); }
.cs-addr { word-break: keep-all; }

.cs-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 1.05rem;
  border-radius: 12px;
}
.cs-kakao-note {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-400);
  margin-top: 10px;
}

@media (max-width: 600px) {
  .contact-simple-wrap { padding: 32px 24px; }
  .cs-item { flex-direction: column; gap: 4px; }
  .cs-label { min-width: auto; }
}

/* ============================================
   LOCATION
   ============================================ */
/* 정보 바 (지도 위) */
.loc-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin-bottom: 0;
}
.loc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-right: 1px solid var(--gray-200);
}
.loc-info-item:last-child { border-right: none; }
.loc-info-item > i {
  color: var(--green);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.loc-info-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.loc-info-item strong {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.loc-info-item span {
  font-size: .88rem;
  color: var(--gray-800);
  line-height: 1.55;
  word-break: keep-all;
}
.loc-info-item a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.loc-info-item a:hover { color: var(--green-dark); }

/* 지도 */
.map-container {
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  border-top: none;
}

/* 지도 하단 버튼 행 */
.map-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.btn-outline-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  color: var(--green);
  font-size: .92rem;
  font-weight: 600;
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
#footer { background: #1c2e14; color: rgba(255,255,255,.8); }
.footer-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 48px;
}
.footer-logo { height: 60px; object-fit: contain; margin-bottom: 14px; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.55); }
.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--yellow); }
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-contact i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ============================================
   FLOAT BUTTONS
   ============================================ */
.float-call {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 56px; height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(91,168,50,.5);
  z-index: 900;
  transition: all var(--transition);
}
.float-call:hover {
  background: var(--green-dark);
  transform: scale(1.1);
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px; height: 46px;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  z-index: 900;
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(.9);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-icon { font-size: 3.5rem; color: var(--green); margin-bottom: 16px; }
.modal h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }

/* ============================================
   IB 교육 섹션
   ============================================ */

/* IB 소개 배너 */
.ib-intro-banner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: linear-gradient(135deg, #f0f9e8, #e8f5ff);
  border: 1.5px solid rgba(91,168,50,.2);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 56px;
}
.ib-intro-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  flex-shrink: 0;
}
.ib-intro-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.ib-intro-text p {
  font-size: .96rem;
  color: var(--text-light);
  line-height: 1.85;
  word-break: keep-all;
}
.ib-intro-text p strong { color: var(--green-dark); font-weight: 700; }

/* IB 학습자 프로파일 */
.ib-profile-section { margin-bottom: 56px; }
.ib-profile-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ib-profile-title i { color: var(--green); }
.ib-profile-title span { color: var(--green); }
.ib-profile-desc {
  font-size: .93rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.ib-profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ib-profile-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: default;
}
.ib-profile-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.ib-profile-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}
.ib-profile-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
  line-height: 1.3;
}
.ib-profile-item span {
  display: block;
  font-size: .75rem;
  color: var(--green);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 8px;
}
.ib-profile-item p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* IB + 수업 연결 */
/* ib-connect 구버전 클래스 (미사용 유지용) */

/* ============================================
   IB–SUBJECT LINK (심플 버전)
   ============================================ */
.ib-link-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 40px;
  border: 1px solid var(--gray-200);
}
.ib-link-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-500);
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.ib-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

/* 과목 헤더 */
.ib-link-subject {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 20px;
  color: var(--white);
  text-align: center;
}
.ib-link-korean  { background: #5BA832; }
.ib-link-english { background: #D49000; }
.ib-link-speech  { background: #8e44ad; }

/* 열 구분선 */
.ib-link-col {
  border-right: 1px solid var(--gray-200);
}
.ib-link-col:last-child { border-right: none; }

/* 항목 행들 */
.ib-link-rows {
  padding: 8px 0;
}

/* 각 항목 행 */
.ib-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--gray-100);
}
.ib-link-row:last-child { border-bottom: none; }

.ib-link-method {
  font-size: .84rem;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}
.ib-link-arrow {
  font-size: .78rem;
  color: var(--gray-300);
  flex-shrink: 0;
}
.ib-link-trait {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-800);
}

/* ============================================
   PHILOSOPHY BANNER (독서→논술→스피치)
   ============================================ */
.philosophy-banner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(135deg, #1a4a08, #5BA832);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 8px;
}
.philosophy-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 18px 24px;
  flex: 1 1 140px;
  align-self: stretch;
}
.philosophy-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--yellow);
  flex-shrink: 0;
}
.philosophy-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
}
.philosophy-text span {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
}
.philosophy-arrow {
  font-size: 1.2rem;
  color: var(--yellow);
  padding: 0 4px;
  flex-shrink: 0;
  align-self: center;
}
.philosophy-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-left: 8px;
  text-align: center;
  align-self: stretch;
  flex: 1 1 140px;
}
.philosophy-result i { font-size: 1.6rem; color: var(--white); }
.philosophy-result span { font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1.4; }

/* ============================================
   SUBJECT META (정원 표시)
   ============================================ */
.subject-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 8px;
}
.subject-limit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}
.subject-limit i { font-size: .85rem; }
.subject-limit strong { font-size: 1rem; }
.korean-limit { background: rgba(91,168,50,.12); color: var(--green-dark); }
.english-limit { background: rgba(30,106,191,.12); color: #1e6abf; }

/* ============================================
   IB 교육 섹션 (전면 개편)
   ============================================ */
.ib-intro-banner {
  display: flex;
  align-items: center;
  gap: 36px;
  background: linear-gradient(135deg, #1a4a08, #2d7a12, #5BA832);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 52px;
  color: var(--white);
  text-align: center;
  justify-content: center;
  flex-direction: column;
}
.ib-intro-left { flex-shrink: 0; }
.ib-badge-large {
  width: 90px; height: 90px;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.4);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: .05em;
}
.ib-intro-right { text-align: center; }
.ib-intro-right h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.ib-intro-right p { font-size: .95rem; line-height: 1.8; opacity: .9; margin-bottom: 18px; }
.ib-intro-right strong { color: var(--yellow); }
.ib-keywords { justify-content: center; }
.ib-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ib-keywords span {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.ib-keywords span i { color: var(--yellow); }

/* IB 프로파일 */
.ib-profile-section { margin-bottom: 52px; }
.ib-profile-header { text-align: center; margin-bottom: 32px; }
.ib-profile-header h3 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.ib-profile-header p { font-size: .95rem; color: var(--text-light); }

.ib-profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ib-profile-card {
  background: var(--card-bg, #f8f9fa);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.ib-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--green));
  border-radius: 0 0 4px 4px;
}
.ib-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-color: var(--card-color, var(--green));
}
.ibc-num {
  position: absolute;
  top: 10px; right: 12px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--card-color, var(--green));
  opacity: .5;
}
.ibc-icon {
  font-size: 1.8rem;
  color: var(--card-color, var(--green));
  margin-bottom: 10px;
  display: block;
}
.ib-profile-card strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
  line-height: 1.3;
}
.ib-profile-card em {
  display: block;
  font-size: .75rem;
  font-style: normal;
  color: var(--card-color, var(--green));
  font-weight: 600;
  margin-bottom: 8px;
}
.ib-profile-card p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}
/* 텍스트 묶음 (데스크탑에서는 block, 모바일 가로형에서 flex) */
.ibc-text {
  display: contents; /* 데스크탑: strong·em이 원래대로 block 흐름 유지 */
}

/* IB 수업 연결 — ib-link-* 클래스로 대체됨 (하단 참조) */

/* ============================================
   DIRECTOR (원장 소개)
   ============================================ */
#director.section { padding: 52px 0; }

.dr-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

/* 상단 이름 + 한마디 */
.dr-top {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
  background: linear-gradient(120deg, var(--green-bg) 0%, #f8fdf4 100%);
  border-bottom: 1px solid var(--gray-200);
}
.dr-identity { flex-shrink: 0; }
.dr-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 4px;
  letter-spacing: .03em;
}
.dr-title {
  font-size: .78rem;
  color: var(--green-dark);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}
.dr-quote {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
  padding-left: 32px;
  border-left: 2px solid var(--green-light);
  word-break: keep-all;
  font-style: italic;
}

/* 하단 학력·경력·자격 */
.dr-bottom {
  padding: 0 36px;
}
.dr-section {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.dr-section:last-child { border-bottom: none; }
.dr-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: none;
  padding-top: 3px;
  white-space: nowrap;
}
.dr-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dr-content > span {
  font-size: .84rem;
  color: var(--gray-700);
  line-height: 1.5;
  word-break: keep-all;
}
.dr-content em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  margin-right: 4px;
  opacity: .8;
}

/* 자격 — 2열, 세로로 먼저 채우기 */
.dr-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(8, auto);
  grid-auto-flow: column;
  gap: 4px 28px;
}
.dr-cert-grid > span {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.5;
  word-break: keep-all;
}

/* ============================================
   TIMETABLE (시간표)
   ============================================ */
.class-size-banner {
  background: linear-gradient(135deg, var(--green-bg), #e8f8d0);
  border: 1.5px solid rgba(91,168,50,.25);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 36px;
}
.class-size-item { display: flex; align-items: flex-start; gap: 20px; }
.cs-icon {
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem; flex-shrink: 0;
}
.cs-info strong { display: block; font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.cs-limit { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 6px; }
.cs-badge {
  padding: 3px 12px; border-radius: 50px;
  font-size: .8rem; font-weight: 700;
}
.green-badge { background: var(--green); color: var(--white); }
.blue-badge { background: #3d8fe0; color: var(--white); }
.cs-dot { color: var(--gray-500); }
.cs-info p { font-size: .88rem; color: var(--text-light); }

/* ============================================
   TIMETABLE — 새 디자인 (영어=노랑, 독서논술=초록, 특강=주황)
   ============================================ */

/* 범례 */
.tt-legend-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.tt-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
}
.tt-legend-dot {
  width: 16px; height: 16px;
  border-radius: 5px;
  display: inline-block;
  flex-shrink: 0;
}
.tt-legend-english { background: #F5A623; }
.tt-legend-reading  { background: #5BA832; }
.tt-legend-special  { background: #D21E3C; }

/* 테이블 래퍼 */
.tt-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  border: 1px solid var(--gray-200);
}

/* 메인 테이블 */
.tt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 620px;
}

/* 헤더 */
.tt-table thead tr {
  background: var(--green);
}
.tt-head-time {
  width: 88px;
  padding: 16px 12px;
  text-align: center;
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.2);
}
.tt-head-day {
  padding: 14px 8px;
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.15);
}
.tt-head-day:last-child { border-right: none; }
.tt-head-day .day-kr {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.tt-head-day .day-en {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  opacity: .75;
  letter-spacing: .06em;
}

/* 바디 행 */
.tt-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.tt-table tbody tr:hover { background: #f9fdf5; }
.tt-table tbody tr:last-child { border-bottom: none; }

/* 시간 셀 */
.tt-time {
  padding: 14px 10px;
  text-align: center;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  font-size: .82rem;
  color: var(--gray-700);
  white-space: nowrap;
  vertical-align: middle;
}
.tt-time b { display: block; font-size: .9rem; font-weight: 800; color: var(--green-dark); line-height: 1.3; }
.tt-tilde { display: block; font-size: .72rem; color: var(--gray-400); line-height: 1; }

/* 수업 셀 */
.tt-cell {
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid var(--gray-100);
  width: calc((100% - 88px) / 5); /* 시간 열 제외 5등분 */
}
.tt-cell:last-child { border-right: none; }

/* 빈 셀 */
.tt-empty span {
  color: var(--gray-300);
  font-size: 1.1rem;
  font-weight: 300;
}

/* 수업 카드 */
.tt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: transform .15s;
}
.tt-card:hover { transform: translateY(-2px); }

/* rowspan=2 셀 — 카드가 세로만 꽉 채우도록 */
.tt-cell-span {
  padding: 6px;
  height: 1px;        /* tbody td에서 % height 계산 활성화 트릭 */
  vertical-align: top;
}
.tt-card-tall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 90px;
  width: 100%;        /* 가로는 셀 너비 전체 */
  height: 100%;       /* 세로는 셀 전체 */
  min-height: 110px;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 10px 8px 8px;
}

.tt-icon {
  font-size: .95rem;
  line-height: 1;
}
.tt-name {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.tt-end-time {
  font-size: .68rem;
  font-weight: 500;
  opacity: .75;
  background: rgba(0,0,0,.08);
  padding: 1px 6px;
  border-radius: 20px;
  margin-top: 2px;
}

/* 과목별 카드 색상 */
.tt-english {
  background: rgba(245,166,35,.15);
  color: #b97400;
  border: 1.5px solid rgba(245,166,35,.45);
}
.tt-english .tt-icon { color: #E59B00; }

.tt-reading {
  background: rgba(91,168,50,.14);
  color: #3a7019;
  border: 1.5px solid rgba(91,168,50,.35);
}
.tt-reading .tt-icon { color: #5BA832; }

.tt-special {
  background: rgba(210,30,60,.12);
  color: #b0001f;
  border: 1.5px solid rgba(210,30,60,.35);
}
.tt-special .tt-icon { color: #D21E3C; }

/* 소반제 안내 */
.tt-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tt-badge-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.tt-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  flex: 1;
  min-width: 200px;
}
.tt-badge i { font-size: 1.3rem; }
.tt-badge strong { display: block; font-size: .9rem; font-weight: 800; }
.tt-badge span { font-size: .82rem; font-weight: 500; opacity: .8; }

.tt-badge-english {
  background: rgba(245,166,35,.12);
  border: 1.5px solid rgba(245,166,35,.35);
  color: #b97400;
}
.tt-badge-english i { color: #F5A623; }

.tt-badge-reading {
  background: rgba(91,168,50,.12);
  border: 1.5px solid rgba(91,168,50,.30);
  color: #3a7019;
}
.tt-badge-reading i { color: #5BA832; }

.tt-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.tt-note i { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ============================================
   SNS SECTION — 심플 리디자인
   ============================================ */
.insta-gradient { background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%); }
.blog-green { background: #03c75a; }
.blog-n { font-size: 1.4rem; font-weight: 900; color: var(--white); font-family: Arial, sans-serif; }

.sns-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sns-simple-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sns-simple-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sns-simple-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}
.sns-simple-meta strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.sns-simple-meta span {
  font-size: .8rem;
  color: var(--gray-400);
  font-weight: 500;
}
.sns-simple-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.sns-simple-list li {
  font-size: .9rem;
  color: var(--gray-600);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.sns-simple-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}
.sns-simple-btn {
  display: block;
  text-align: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  transition: all var(--transition);
}
.sns-simple-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
}

/* 푸터 SNS 아이콘 */
.footer-sns { display: flex; gap: 10px; margin-top: 14px; }
.footer-sns-link {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--white);
}
.footer-sns-link.insta { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.footer-sns-link.blog { background: #03c75a; }
.footer-sns-link:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
.br-mobile { display: none; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .subjects-grid { gap: 20px; }
  .subjects-grid-2 { gap: 24px; max-width: 100%; }
  .subjects-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-wrap { gap: 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-logo-wrap { grid-column: 1 / -1; }
  .ib-profile-grid { grid-template-columns: repeat(5, 1fr); }
  .director-wrap { grid-template-columns: 240px 1fr; gap: 32px; }
  .dr-top { gap: 24px; padding: 24px 28px; }
  .dr-bottom { padding: 0 28px; }
  .ib-connect-grid { gap: 14px; }
}

/* ============================================
   TABLET (≤900px)
   ============================================ */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    padding: 90px 32px 48px;
    text-align: center;
    min-height: auto;
    gap: 28px;
  }
  #hero { padding: 80px 36px 48px; gap: 24px; }
  .hero-title { font-size: 2rem; }
  .hero-logo-big { width: 150px; }
  .hero-logo-wrap { padding: 28px; }
  .hero-image { flex: 0 0 260px; }

  .subjects-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .subjects-grid-2 { grid-template-columns: 1fr; max-width: 500px; }
  .subjects-grid-3 { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .subject-card.featured { transform: none; }

  .loc-info-bar { grid-template-columns: repeat(2, 1fr); }
  .loc-info-item { border-bottom: 1px solid var(--gray-200); }
  .loc-info-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .loc-info-item:nth-child(even) { border-right: none; }
  .loc-info-item:last-child, .loc-info-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .contact-wrap { grid-template-columns: 1fr; }
  .ib-profile-grid { grid-template-columns: repeat(2, 1fr); }
  .ib-intro-banner { flex-direction: column; padding: 32px; gap: 20px; }
  .ib-connect-grid { grid-template-columns: 1fr; }

  .dr-top { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 24px; }
  .dr-title { white-space: normal; }
  .dr-bottom { padding: 0 24px; }
  .dr-cert-grid { grid-template-columns: 1fr 1fr; }

  .philosophy-banner { padding: 24px 20px; }
  .philosophy-step { padding: 14px 16px; min-width: 110px; }
}

/* ============================================
   MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  /* 네비게이션 */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 24px;
    gap: 2px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
  }
  .nav-menu.open { max-height: 520px; }
  .nav-link { width: 100%; padding: 10px 14px; border-radius: 8px; font-size: .92rem; }
  .nav-cta { width: 100%; text-align: center; justify-content: center; margin-left: 0; border-radius: 8px; padding: 11px 14px; margin-top: 4px; }

  /* 공통 섹션 */
  .section { padding: 48px 0; }
  .section-title { font-size: 1.55rem; word-break: keep-all; }
  .section-desc { font-size: .88rem; }
  .container { padding: 0 18px; }

  /* 히어로 */
  #hero { flex-direction: column; padding: 110px 20px 44px; text-align: center; gap: 24px; }
  .hero-content { max-width: 100%; }
  .hero-image { flex: none; }
  .hero-logo-big { width: 130px; }
  .hero-logo-wrap { padding: 24px; }
  .hero-badge { font-size: .78rem; padding: 6px 14px; }
  .hero-title { font-size: 2rem; line-height: 1.3; }
  .hero-desc { font-size: .9rem; }
  .hero-buttons { justify-content: center; flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons .btn { width: 100%; max-width: 260px; justify-content: center; }
  .hero-stats { gap: 14px; padding: 13px 18px; }
  .stat-num { font-size: 1.05rem; }
  .stat-label { font-size: .7rem; }
  .br-mobile { display: block; }

  /* 학원 소개 카드 */
  .about-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-card { padding: 20px 14px; }
  .about-icon { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 12px; }
  .about-card h3 { font-size: .95rem; }
  .about-card p { font-size: .82rem; }

  /* 수강 과목 */
  .subject-card { padding: 28px 22px; }

  /* IB 프로파일 — 모바일 가로형 */
  .ib-profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ib-profile-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--gray-100);
    background: var(--white);
    text-align: left;
  }
  .ib-profile-card:first-child { border-radius: 12px 12px 0 0; border-top: 1px solid var(--gray-100); }
  .ib-profile-card:last-child  { border-radius: 0 0 12px 12px; border-bottom: none; }
  .ib-profile-card::before { display: none; }
  .ib-profile-card:hover { transform: none; box-shadow: none; background: var(--card-bg, #f8f9fa); }
  .ibc-num { position: static; font-size: .68rem; opacity: .5; flex-shrink: 0; width: 20px; }
  .ibc-icon { font-size: 1.2rem; margin: 0; flex-shrink: 0; }
  .ib-profile-card strong { font-size: .88rem; margin: 0; }
  .ib-profile-card em { font-size: .72rem; margin: 0; }
  .ib-profile-card p { display: none; }
  .ibc-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
  .ib-profile-card strong { font-size: .86rem; }
  .ib-profile-card em { font-size: .71rem; }
  .ib-connect-wrap { padding: 20px 16px; }
  .ib-link-wrap { padding: 20px 14px; }
  .ib-link-grid { grid-template-columns: 1fr; }
  .ib-link-col { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .ib-link-col:last-child { border-bottom: none; }
  .ib-link-row { padding: 8px 12px; }
  .ib-link-method { font-size: .78rem; }
  .ib-link-trait { font-size: .82rem; }
  .ib-intro-banner { padding: 22px 20px; }
  .ib-connect-grid { grid-template-columns: 1fr; gap: 14px; }
  .philosophy-banner { flex-direction: column; gap: 10px; }
  .philosophy-arrow { transform: rotate(90deg); }
  .philosophy-step { padding: 12px 14px; min-width: 0; width: 100%; flex: none; align-self: auto; }
  .philosophy-result { width: 100%; flex: none; align-self: auto; margin-left: 0; }

  /* 원장 소개 */
  .dr-card { border-radius: 14px; }
  .dr-top { flex-direction: column; gap: 14px; padding: 20px 18px; }
  .dr-quote { padding-left: 14px; font-size: .83rem; }
  .dr-title { white-space: normal; font-size: .75rem; }
  .dr-name { font-size: 1.15rem; }
  .dr-bottom { padding: 0 18px; }
  .dr-section { grid-template-columns: 28px 1fr; gap: 12px; padding: 13px 0; }
  .dr-label { font-size: .6rem; }
  .dr-content > span { font-size: .8rem; }
  .dr-cert-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(8, auto); gap: 3px 16px; }
  .dr-cert-grid > span { font-size: .76rem; }

  /* 시간표 */
  .tt-legend-bar { gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
  .tt-legend-item { font-size: .78rem; }
  .timetable-scroll { border-radius: 10px; }
  .tt-table { min-width: 420px; }
  .tt-table th { font-size: .72rem; padding: 8px 4px; }
  .tt-time { padding: 10px 6px; font-size: .72rem; }
  .tt-card { min-width: 56px; padding: 7px 3px 5px; gap: 3px; border-radius: 8px; }
  .tt-icon { font-size: .8rem; }
  .tt-name { font-size: .66rem; }
  .tt-end-time { font-size: .58rem; }
  .tt-cell { padding: 5px 4px; }
  .class-size-banner { padding: 18px 20px; }
  .class-size-item { flex-direction: column; gap: 12px; }

  /* 상담 */
  .contact-wrap { gap: 20px; }
  .contact-info-side { padding: 24px 20px; }
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list { gap: 16px; }

  /* SNS */
  .sns-simple-grid { grid-template-columns: 1fr; gap: 14px; }
  .sns-simple-card { padding: 22px 18px 18px; }

  /* 지도 */
  .loc-info-bar { grid-template-columns: 1fr 1fr; }
  .loc-info-item { padding: 14px 14px; }
  .loc-info-item strong { font-size: .68rem; }
  .loc-info-item span { font-size: .8rem; }
  .map-btn-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .map-btn-row .btn-outline-green { justify-content: center; }

  /* 푸터 */
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; }
  .footer-logo-wrap { grid-column: auto; }
  .footer-logo { height: 48px; }
  .footer-tagline { font-size: .85rem; }
  .footer-col h4 { font-size: .9rem; }
  .footer-col li { font-size: .83rem; }

  /* CTA 배너 */
  .cta-banner h2 { font-size: 1.35rem; word-break: keep-all; }
  .cta-banner p { font-size: .85rem; }
  .notice-text { font-size: .8rem; }

  /* 특징 */
  .feature-item { gap: 16px; }
  .feature-num { font-size: 1.8rem; width: 46px; }
  .feature-text h3 { font-size: 1rem; }
  .feature-text p { font-size: .85rem; }
}

/* ============================================
   SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
  .container { padding: 0 16px; }

  #hero { padding: 108px 14px 32px; }
  .hero-title { font-size: 1.75rem; }
  .hero-logo-big { width: 110px; }
  .hero-logo-wrap { padding: 20px; }
  .hero-stats { padding: 11px 14px; gap: 10px; }
  .stat-num { font-size: .95rem; }
  .stat-divider { height: 22px; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-card { padding: 16px 12px; }
  .about-icon { width: 44px; height: 44px; font-size: 1.1rem; }

  .dr-cert-grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }

  .tt-table { min-width: 360px; }
  .tt-card { min-width: 48px; }
  .tt-name { font-size: .6rem; }

  .loc-info-bar { grid-template-columns: 1fr; }
  .loc-info-item { border-right: none !important; border-bottom: 1px solid var(--gray-200); padding: 12px 16px; }
  .loc-info-item:last-child { border-bottom: none; }

  .footer-main { padding: 32px 16px 24px; }
}
