/* assets/css/main.css */
/* i.study 수리탐구 직영 교육원 - 개선된 스타일시트 */

/* ========== 폰트 및 전역 스타일 ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

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

:root {
  /* 전문적이고 신뢰감 있는 컬러 팔레트 */
  --primary-color: #1a365d;
  --secondary-color: #2563eb;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  /* 그림자 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ========== SVG 아이콘 시스템 ========== */
.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon-svg svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.icon-svg.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-svg.icon-xl {
  width: 48px;
  height: 48px;
}

.feature-icon-svg {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature-icon-svg svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.direction-icon-svg {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 10px;
  flex-shrink: 0;
}

.direction-icon-svg svg {
  width: 22px;
  height: 22px;
  fill: var(--primary-color);
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ========== 로딩 화면 ========== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== 알림 시스템 ========== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--success-color);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: none;
  z-index: 1001;
  animation: slideIn 0.3s ease;
}

.notification.error {
  background: var(--error-color);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========== 헤더 ========== */
.header {
  background: var(--bg-primary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.header-info {
  text-align: right;
}

.header-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.header-opening {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: var(--accent-color);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ========== 히어로 섹션 ========== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    var(--bg-primary),
    var(--bg-secondary)
  );
}

.hero-books {
  margin: 20px auto 32px;
  display: flex;
  justify-content: center;
}

.books-img {
  width: 480px;
  height: auto;
  max-width: 90%;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  line-height: 1.3;
}

.hero-message {
  margin-bottom: 32px;
}

.hero-question {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hero-warning {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.3;
}

/* ========== 이시용 대표 소개 섹션 ========== */
.ceo-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.ceo-profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.ceo-image {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.ceo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.ceo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceo-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ceo-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
}

.ceo-title {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ceo-youtube h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.youtube-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.channel-tag {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.youtube-views {
  font-size: 14px;
  color: var(--text-secondary);
}

.youtube-views strong {
  color: var(--secondary-color);
  font-weight: 700;
}

.ceo-youtube-summary {
  font-size: 14px;
  color: var(--text-secondary);
}

.ceo-youtube-summary strong {
  color: var(--secondary-color);
  font-weight: 700;
}

.ceo-highlight {
  padding: 16px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 640px) {
  .ceo-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ceo-image {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .youtube-channels {
    justify-content: center;
  }

  .ceo-name {
    font-size: 24px;
  }
}

/* CEO 프로필 링크 */
.ceo-profile-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.ceo-profile-link:hover {
  transform: translateY(-4px);
}

.ceo-profile-link:hover .ceo-profile {
  box-shadow: var(--shadow-lg);
}

.ceo-more {
  margin-top: 16px;
  text-align: center;
}

.ceo-more span {
  display: inline-block;
  padding: 12px 24px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ceo-profile-link:hover .ceo-more span {
  background: var(--primary-color);
  color: white;
}

/* ========== 전국 제휴 학원 섹션 ========== */
.partners-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.partner-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.2s ease;
}

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

.partner-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.partner-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.partners-highlight {
  text-align: center;
  padding: 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partners-highlight {
    font-size: 16px;
    padding: 16px;
  }
}

/* ========== 신뢰 지표 ========== */
.trust-section {
  padding: 40px 0;
  background: var(--bg-secondary);
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.trust-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.trust-unit {
  font-size: 18px;
  font-weight: 500;
}

.trust-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========== 수리탐구 시그니처 배너 ========== */
.signature-banner-section {
  padding: 0 0 40px;
  background: var(--bg-secondary);
}

.signature-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.1);
}

.signature-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.signature-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 54, 93, 0.15);
  border-color: var(--secondary-color);
}

.banner-content {
  flex: 1;
}

.banner-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-color);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.banner-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.banner-title .highlight {
  color: var(--secondary-color);
  position: relative;
}

.banner-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary-color);
  opacity: 0.3;
}

.banner-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.banner-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

.action-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.signature-banner:hover .action-arrow {
  transform: translateX(4px);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .signature-banner {
    flex-direction: column;
    gap: 20px;
    padding: 28px 24px;
    text-align: center;
  }

  .banner-title {
    font-size: 20px;
  }

  .banner-desc {
    font-size: 14px;
  }

  .banner-action {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .signature-banner {
    padding: 24px 20px;
  }

  .banner-title {
    font-size: 18px;
  }

  .banner-badge {
    font-size: 11px;
    padding: 4px 12px;
  }
}

/* ========== 누적테스트 미리보기 섹션 ========== */
.cumulative-preview {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cumulative-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.preview-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.preview-title .highlight {
  color: #fbbf24;
}

.preview-desc {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.preview-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

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

.preview-stat .stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}

.preview-stat .stat-text {
  font-size: 14px;
  opacity: 0.9;
}

.preview-button {
  display: inline-block;
  padding: 16px 24px;
  background: #fbbf24;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.preview-button:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.preview-visual {
  display: flex;
  justify-content: center;
}

.test-structure-mini {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px 24px;
  width: 280px;
  text-align: center;
  color: #1a365d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.structure-header {
  background: #1a365d;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

.monthly-test-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 24px;
}

.structure-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.test-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fc;
  border-radius: 12px;
  border-left: 4px solid #1a365d;
}

.section-label {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
}

.section-count {
  font-size: 24px;
  font-weight: 700;
  color: #1a365d;
}

.structure-footer {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.4;
}

/* ========== CTA 섹션 ========== */
.cta-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.cta-intro {
  text-align: center;
  margin-bottom: 40px;
}

.cta-intro h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.cta-intro p {
  font-size: 16px;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cta-button:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cta-button.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.cta-button.primary:hover {
  background: #2d4a7c;
  border-color: #2d4a7c;
}

.cta-content {
  text-align: left;
}

.cta-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cta-button.primary .cta-title {
  color: white;
}

.cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-button.primary .cta-desc {
  color: rgba(255, 255, 255, 0.9);
}

.cta-arrow {
  font-size: 20px;
  color: var(--text-secondary);
}

.cta-button.primary .cta-arrow {
  color: white;
}

/* ========== 서브 링크 ========== */
.sub-link-container {
  text-align: center;
  margin-top: 24px;
}

.sub-link {
  display: inline-block;
  padding: 14px 28px;
  color: var(--primary-color);
  background: var(--bg-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sub-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* ========== 특징 섹션 ========== */
.features-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.feature-method {
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: inline-block;
}

/* ========== 오시는 길 섹션 ========== */
.location-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-map-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.location-map-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.location-map-link:hover .location-map-img {
  transform: scale(1.02);
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 40px 20px 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-map-link:hover .map-overlay {
  opacity: 1;
}

.map-overlay-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-address h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.location-address p {
  font-size: 16px;
  color: var(--text-secondary);
}

.location-directions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.direction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.direction-icon {
  font-size: 24px;
}

.direction-item span:last-child {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.location-naver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #03c75a;
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.location-naver-btn:hover {
  background: #02b350;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .location-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location-map-img {
    height: 200px;
  }
}

/* ========== 하단 정보 ========== */
.footer-section {
  padding: 40px 0;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

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

.footer-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.footer-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.phone-btn:hover {
  background: #2d4a7c;
  transform: translateY(-2px);
}

.kakao-btn {
  background: #FEE500;
  color: #3C1E1E;
}

.kakao-btn:hover {
  background: #F5DC00;
  transform: translateY(-2px);
}

/* ========== 플로팅 카카오톡 버튼 ========== */
.floating-kakao {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #FEE500;
  color: #3C1E1E;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99;
  transition: all 0.3s ease;
}

.floating-kakao:hover {
  background: #F5DC00;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.kakao-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kakao-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 480px) {
  .floating-kakao {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .footer-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .footer-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== 잔여석 배지 ========== */
.seats-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.seats-icon {
  font-size: 18px;
}

.seats-text {
  font-size: 16px;
  font-weight: 500;
}

.seats-text strong {
  font-size: 20px;
  font-weight: 800;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* ========== 모달 ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.close {
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  color: var(--text-secondary);
}

.close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

/* ========== 폼 스타일 ========== */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-button:hover {
  background: #2d4a7c;
}

/* ========== 정보 박스 ========== */
.info-box {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.info-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.info-box li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* ========== 반응형 ========== */
@media (max-width: 640px) {
  .logo-img {
    height: 28px;
  }

  .header-title {
    font-size: 14px;
  }

  .header-opening {
    font-size: 11px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-question {
    font-size: 22px;
  }

  .hero-warning {
    font-size: 26px;
  }

  .books-img {
    width: 380px;
    max-width: 85%;
  }

  .preview-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .preview-title {
    font-size: 24px;
  }

  .preview-desc {
    font-size: 16px;
  }

  .preview-stats {
    justify-content: center;
    gap: 24px;
  }

  .preview-stat .stat-number {
    font-size: 32px;
  }

  .test-structure-mini {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .monthly-test-title {
    font-size: 20px;
  }

  .section-count {
    font-size: 20px;
  }

  .trust-number {
    font-size: 28px;
  }

  .trust-label {
    font-size: 12px;
  }

  .cta-title {
    font-size: 16px;
  }

  .cta-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .trust-indicators {
    gap: 12px;
  }

  .trust-item {
    padding: 20px 12px;
  }

  .cumulative-preview {
    padding: 40px 0;
  }

  .preview-title {
    font-size: 20px;
  }

  .preview-desc {
    font-size: 15px;
  }

  .preview-stats {
    gap: 20px;
  }

  .preview-stat .stat-number {
    font-size: 28px;
  }

  .preview-button {
    padding: 12px 20px;
    font-size: 13px;
  }

  .test-structure-mini {
    padding: 24px 16px;
  }

  .monthly-test-title {
    font-size: 18px;
  }

  .test-section {
    padding: 12px 16px;
  }

  .section-count {
    font-size: 18px;
  }

  .structure-footer {
    font-size: 11px;
  }
}

/* ========== 상단 공지 배너 ========== */
.top-banner {
  background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
  color: white;
  padding: 12px 20px;
  text-align: center;
  position: relative;
}

.top-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-banner-icon {
  font-size: 16px;
}

.top-banner-text {
  font-size: 14px;
  font-weight: 500;
}

.top-banner-text strong {
  font-weight: 700;
}

.top-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  color: #1a365d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.top-banner-link:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
}

.top-banner-close:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .top-banner {
    padding: 10px 40px 10px 16px;
  }

  .top-banner-content {
    flex-direction: column;
    gap: 8px;
  }

  .top-banner-text {
    font-size: 13px;
  }
}
