/* ═══════════════════════════════════════
   스마트 공부방 - Main Stylesheet
   Warm, Friendly, Educational Design
   ═══════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A25;
  --primary-light: #FFF3EE;
  --accent: #FFB347;
  --dark: #2D3748;
  --text: #4A5568;
  --text-light: #718096;
  --border: #E8EAF0;
  --bg: #FFFBF7;
  --bg-alt: #FFF8F3;
  --white: #ffffff;
  --success: #38A169;
  --danger: #E53E3E;
  --warning: #D69E2E;
  --shadow: 0 2px 8px rgba(255,107,53,0.08);
  --shadow-lg: 0 8px 30px rgba(255,107,53,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Inter', sans-serif;
  --max-width: 1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overscroll-behavior-y: none; }
body {
  font-family: var(--font-ko);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; }

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════
   HEADER
   ══════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 38px; width: 152px; object-fit: fill; display: block; transition: var(--transition); }
.logo-img-white { display: none; }
.logo-img-dark { display: block; }

/* Navigation */
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; color: var(--text); font-weight: 500; font-size: 0.95rem;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition);
  border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 10px 20px; color: var(--text);
  font-size: 0.9rem; transition: var(--transition);
}
.dropdown li a:hover { background: var(--primary-light); color: var(--primary); padding-left: 24px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  padding: 6px 14px; border: 1.5px solid var(--border);
  border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  color: var(--text); font-family: var(--font-en);
  transition: var(--transition);
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }

/* Mobile Toggle */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 24px; position: relative; padding: 0;
}
.mobile-toggle span {
  display: block; width: 100%; height: 2px; background: var(--dark);
  position: absolute; left: 0; transition: var(--transition);
}
.mobile-toggle span:nth-child(1) { top: 2px; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 20px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 11px; }

/* ══════════════════════════════════
   HERO SLIDER (이미지 전용)
   ══════════════════════════════════ */
/* ══════════════════════════════════
   HERO (전체화면 슬라이더)
   ══════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-title { color: var(--white); margin-bottom: 24px; }
.hero-title .line1 { display: block; font-size: 1.3rem; font-weight: 400; opacity: 0.9; margin-bottom: 8px; letter-spacing: 1px; }
.hero-title .line2 { display: block; font-size: 3rem; font-weight: 800; letter-spacing: -1px; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn-primary { background: var(--white); color: var(--primary); border-color: var(--white); }
.hero-buttons .btn-primary:hover { background: transparent; color: var(--white); }
.hero-buttons .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero-buttons .btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 1.5rem; z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}
.hero-indicators {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition); border: none;
}
.hero-dot.active { background: var(--white); transform: scale(1.3); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(0,0,0,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white); width: 48px; height: 48px;
  border-radius: 50%; font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(0,0,0,0.45); border-color: var(--white); transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 28px; }
.hero-next { right: 28px; }

/* ══════════════════════════════════
   STATS
   ══════════════════════════════════ */
.stats-section {
  background: var(--white); padding: 60px 0;
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item { padding: 20px; }
.stat-value-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-number {
  font-size: 3rem; font-weight: 800; color: var(--primary);
  font-family: var(--font-en); line-height: 1;
}
.stat-suffix { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.95rem; color: var(--text-light); margin-top: 8px; font-weight: 500; }

/* ══════════════════════════════════
   SECTIONS
   ══════════════════════════════════ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { margin-bottom: 16px; position: relative; display: inline-block; }
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--primary); margin: 16px auto 0; border-radius: 2px;
}
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Services Grid (Home) ── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  text-align: center; transition: var(--transition);
  text-decoration: none; color: var(--text); position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lg);
  border-color: var(--primary); color: var(--text);
}
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }
.service-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 20px; transition: var(--transition);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.card-arrow {
  position: absolute; bottom: 16px; right: 16px;
  color: var(--primary); opacity: 0; transition: var(--transition);
}
.service-card:hover .card-arrow { opacity: 1; }

/* ── Partners Grid ── */
.partners-section { background: var(--bg-alt); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  text-decoration: none; color: var(--text); transition: var(--transition);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.partner-name { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; font-family: var(--font-en); }
.partner-logo-wrap { height: 56px; display: flex; align-items: center; margin-bottom: 16px; }
.partner-logo { max-height: 48px; max-width: 160px; width: auto; object-fit: contain; display: block; }
.partner-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0; text-align: center; color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; font-size: 2rem; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.cta-section .btn-primary { background: var(--white); color: var(--primary); border-color: var(--white); }
.cta-section .btn-primary:hover { background: transparent; color: var(--white); }

/* ══════════════════════════════════
   HERO SLIDER (이미지 전용, 텍스트 없음)
   ══════════════════════════════════ */

/* Slides container */
.hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

/* Indicators (dots) — 슬라이더 하단 */
.hero-indicators {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: var(--transition); border: none;
}
.hero-dot.active { background: var(--white); transform: scale(1.3); }

/* Prev / Next arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(0,0,0,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white); width: 44px; height: 44px;
  border-radius: 50%; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(0,0,0,0.4); border-color: var(--white); transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ══════════════════════════════════
   PAGE BANNER
   ══════════════════════════════════ */
.page-banner {
  background-size: cover; background-position: center;
  padding: 0; text-align: center; color: var(--white);
  position: relative; min-height: 320px;
  display: flex; align-items: center;
}
.page-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,20,60,0.62) 0%, rgba(0,20,60,0.5) 100%);
}
.page-banner-content {
  position: relative; z-index: 1;
  width: 100%; padding: 140px 24px 60px;
}
.page-title { color: var(--white); font-size: 2.2rem; margin-bottom: 12px; }
.page-subtitle { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 20px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.4); font-size: 0.7rem; }
.breadcrumb .current { color: var(--white); }

/* ══════════════════════════════════
   ABOUT PAGES
   ══════════════════════════════════ */
/* Overview */
.overview-content { display: flex; flex-direction: column; gap: 48px; }
.company-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.info-table th { width: 160px; background: var(--bg-alt); color: var(--dark); font-weight: 600; font-size: 0.9rem; }
.info-table td { font-size: 0.95rem; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

.overview-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.highlight-item {
  text-align: center; padding: 32px 20px;
  background: var(--bg-alt); border-radius: var(--radius);
}
.highlight-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.highlight-item h4 { margin-bottom: 8px; }
.highlight-item p { font-size: 0.9rem; color: var(--text-light); }

/* ceo-sign */
.ceo-sign { margin-top: 40px; font-size: 1.1rem; text-align: right; }

/* Timeline */
.timeline { max-width: 800px; margin: 0 auto; }
.timeline-year-group { margin-bottom: 20px; position: relative; padding-left: 100px; }
.timeline-year {
  position: absolute; left: 0; top: 0;
  font-size: 1.8rem; font-weight: 800; color: var(--primary);
  font-family: var(--font-en);
}
.timeline-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 5px 0; position: relative;
  border-left: 2px solid var(--border); padding-left: 24px;
}
.timeline-dot {
  position: absolute; left: -6px; top: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--white);
}
.timeline-content {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 8px; flex: 1;
}
.timeline-month {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 6px; border-radius: 4px; font-size: 0.65rem;
  font-weight: 600; white-space: nowrap; flex-shrink: 0;
  width: 110px; text-align: left;
}
.timeline-text { font-size: 0.95rem; flex: 1; min-width: 0; }

@media (max-width: 600px) {
  .timeline-month { font-size: 0.65rem; width: 110px; }
  .timeline-text { width: 100%; flex: none; }
  .timeline-content { align-items: flex-start; }
}

/* Location */
/* Location Map */
.location-map-wrap { position: relative; margin-bottom: 40px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.location-map-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.location-map-link { display: block; position: relative; }
.location-map-overlay {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--primary); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.location-map-link:hover .location-map-overlay { background: var(--primary-dark); transform: translateY(-2px); }

/* Location CTA */
.location-cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 768px) { .location-cta-row { grid-template-columns: 1fr; } }
.location-map-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; text-decoration: none;
  padding: 16px 20px; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.location-map-cta-naver {
  background: #2DB400;
}
.location-map-cta-naver:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(45,180,0,0.4); color: #fff; }
.location-map-cta-kakao {
  background: linear-gradient(135deg, #FAE100, #e6ce00);
  color: #3C1E1E !important;
}
.location-map-cta-kakao:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(250,225,0,0.5); color: #3C1E1E !important; }

.location-content { display: grid; grid-template-columns: 1fr; gap: 0; }
.location-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.loc-item { display: flex; gap: 16px; margin-bottom: 24px; }
.loc-item:last-child { margin-bottom: 0; }
.loc-item i { color: var(--primary); font-size: 1.2rem; margin-top: 4px; flex-shrink: 0; }
.loc-item strong { display: block; color: var(--dark); margin-bottom: 4px; }
.loc-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.text-muted { color: var(--text-light); font-size: 0.85rem; }

/* ══════════════════════════════════
   BUSINESS
   ══════════════════════════════════ */
.business-list { display: flex; flex-direction: column; gap: 40px; }
.business-card {
  display: flex; gap: 40px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; transition: var(--transition);
}
.business-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.business-card-icon {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.business-num {
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  font-family: var(--font-en); letter-spacing: 1px; margin-bottom: 8px; display: block;
}
.business-card-body h3 { margin-bottom: 8px; font-size: 1.4rem; }
.business-subtitle { color: var(--text-light); margin-bottom: 16px; }
.feature-list { margin: 20px 0; }
.feature-list li { padding: 8px 0; font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px; }
.feature-list li i { color: var(--success); margin-top: 4px; flex-shrink: 0; }

/* Business Detail */
.detail-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.side-nav { position: sticky; top: 100px; }
.side-nav h4 { margin-bottom: 16px; color: var(--dark); }
.side-nav ul { border-left: 2px solid var(--border); }
.side-nav li a {
  display: block; padding: 12px 20px; color: var(--text);
  font-size: 0.9rem; border-left: 2px solid transparent;
  margin-left: -2px; transition: var(--transition);
}
.side-nav li a:hover { color: var(--primary); background: var(--primary-light); }
.side-nav li.active a { color: var(--primary); border-left-color: var(--primary); font-weight: 600; background: var(--primary-light); }
.detail-icon { font-size: 3rem; color: var(--primary); margin-bottom: 24px; }
.detail-desc { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; }
.features-detail { display: flex; flex-direction: column; gap: 24px; }
.feature-detail-item { display: flex; gap: 16px; padding: 20px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.feature-detail-icon { color: var(--primary); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.feature-detail-item h4 { margin-bottom: 6px; font-size: 1rem; }
.feature-detail-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.detail-cta { margin-top: 48px; }

/* ══════════════════════════════════
   SOLUTIONS
   ══════════════════════════════════ */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text); transition: var(--transition);
  display: flex; flex-direction: column;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.solution-card-header {
  padding: 28px 28px 0; border-bottom: none;
}
.solution-card-header h3 { font-family: var(--font-en); font-size: 1.3rem; color: var(--dark); }
.solution-logo-wrap { height: 96px; display: flex; align-items: center; justify-content: center; }
.solution-logo { max-height: 88px; max-width: 208px; width: auto; object-fit: contain; display: block; }
.solution-logo.solution-logo-sm { max-height: 71px; max-width: 168px; }
.solution-detail-logo-sm { max-height: 90px !important; max-width: 288px !important; }
.solution-card-body { padding: 16px 28px; flex: 1; }
.solution-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.solution-card-footer { padding: 0 28px 24px; }
.more-link { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* Solution Detail */
.solution-detail { max-width: 800px; margin: 0 auto; }
.solution-detail-logo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin-bottom: 40px; padding: 32px 40px; background: #ffffff; border-radius: 16px; border: 1.5px solid var(--border); }
.solution-detail-logo img { max-height: 100px; max-width: 320px; width: auto; object-fit: contain; }
.solution-name-ko { margin: 10px 0 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.solution-logo-wrap .solution-name-ko { font-size: 0.85rem; font-weight: 600; color: var(--text); margin: 6px 0 0; text-align: center; }
.solution-description { font-size: 1.1rem; line-height: 2; margin-bottom: 40px; }
.solution-detail-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.solution-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 32px; }
.sol-feat-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid #e8eef6;
  border-radius: 12px; padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(0,52,153,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.sol-feat-card:hover { box-shadow: 0 6px 24px rgba(0,52,153,0.13); transform: translateY(-2px); }
.sol-feat-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #1d4ed8; font-size: 1.15rem;
}
.sol-feat-card strong { display: block; font-size: 0.88rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.sol-feat-card p { font-size: 0.8rem; color: #64748b; line-height: 1.65; margin: 0; }
@media (max-width: 768px) { .solution-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .solution-features-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════ */
.portfolio-client { font-size: 0.88rem; color: var(--text-light); }
.portfolio-desc { font-size: 0.88rem; color: var(--text-light); }
.portfolio-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.portfolio-body .client { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.portfolio-body p { font-size: 0.9rem; color: var(--text-light); }

/* Empty State */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--text-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 1.1rem; }

/* ══════════════════════════════════
   CAREERS
   ══════════════════════════════════ */
.talent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.talent-card {
  position: relative; overflow: hidden;
  text-align: center; padding: 48px 28px 36px;
  border-radius: 20px; transition: var(--transition);
  color: #fff;
}
.talent-card:nth-child(1) { background: linear-gradient(145deg, #1a56db, #0e3fa5); }
.talent-card:nth-child(2) { background: linear-gradient(145deg, #0891b2, #0e6895); }
.talent-card:nth-child(3) { background: linear-gradient(145deg, #059669, #047152); }
.talent-card:nth-child(4) { background: linear-gradient(145deg, #7c3aed, #5b21b6); }
.talent-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.talent-card::after {
  content: ''; position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.talent-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.talent-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 24px;
  position: relative; z-index: 1;
}
.talent-card h3 { margin-bottom: 12px; font-size: 1.2rem; color: #fff; position: relative; z-index: 1; }
.talent-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.7; position: relative; z-index: 1; }

/* Process Steps */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step {
  text-align: center;
  padding: 32px 16px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.step-num {
  font-size: 2rem; font-weight: 800; color: var(--primary);
  font-family: var(--font-en); margin-bottom: 12px;
}
.process-step h4 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.85rem; color: var(--text-light); }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
.benefit-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-radius: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  font-weight: 600; font-size: 0.95rem; color: var(--dark);
  transition: var(--transition);
}
.benefit-item:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
/* 아이콘 색상만 구분 */
.benefit-item:nth-child(1) i { color: #1976d2; }
.benefit-item:nth-child(2) i { color: #e53935; }
.benefit-item:nth-child(3) i { color: #f4a100; }
.benefit-item:nth-child(4) i { color: #e65100; }
.benefit-item:nth-child(5) i { color: #8e24aa; }
.benefit-item:nth-child(6) i { color: #00897b; }
.benefit-item:nth-child(7) i { color: #039be5; }
.benefit-item:nth-child(8) i { color: #3949ab; }
.benefit-item:nth-child(9) i { color: #43a047; }
.benefit-item i { font-size: 1.2rem; flex-shrink: 0; }

/* ── Job Tabs ── */
.job-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.job-tab {
  padding: 8px 20px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.job-tab:hover { border-color: var(--primary); color: var(--primary); }
.job-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ── Job Cards ── */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.job-card.open { border-color: var(--primary); }

.job-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; cursor: pointer; gap: 16px;
}
.job-card-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
.job-card-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.job-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin: 0; }

.job-dept {
  padding: 4px 0; border-radius: 4px; font-size: 0.78rem; font-weight: 700;
  width: 90px; text-align: center; flex-shrink: 0; display: inline-block;
}
.dept-sales { background: #e3f2fd; color: #1565c0; }
.dept-tech  { background: #e8f5e9; color: #2e7d32; }
.job-status { font-size: 0.8rem; color: var(--success); font-weight: 600; white-space: nowrap; }
.job-status i { font-size: 0.5rem; vertical-align: middle; margin-right: 3px; }
.job-toggle-icon { color: var(--text-light); transition: var(--transition); }
.job-card.open .job-toggle-icon { transform: rotate(180deg); color: var(--primary); }

.job-card-body { display: none; border-top: 1px solid var(--border); padding: 28px; background: var(--bg); }
.job-card.open .job-card-body { display: block; }
.job-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.job-section h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.job-desc { font-size: 0.9rem; line-height: 1.9; color: var(--text); }
.job-card-footer { text-align: center; padding-top: 8px; border-top: 1px solid var(--border); }

/* ── Apply Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--white); border-radius: var(--radius);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-header h3 { font-size: 1.1rem; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.modal-header h3 i { color: var(--primary); }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); padding: 4px; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.apply-position-label {
  background: var(--primary-light); color: var(--primary);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
}
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
  transition: var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.apply-privacy-notice {
  font-size: 0.8rem; color: var(--text-light); background: var(--bg-alt);
  padding: 10px 14px; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.6;
}
.apply-success { text-align: center; padding: 32px 0; }
.apply-success i { font-size: 3rem; color: var(--success); margin-bottom: 16px; display: block; }
.apply-success h4 { font-size: 1.2rem; margin-bottom: 8px; }
.apply-success p { color: var(--text-light); }
.apply-error { color: var(--danger); padding: 12px; background: #fff5f5; border-radius: var(--radius-sm); }

/* ══════════════════════════════════
   FAQ
   ══════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; background: var(--white);
  border: none; cursor: pointer; font-size: 1rem;
  font-weight: 600; color: var(--dark); text-align: left;
  font-family: inherit; transition: var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-q { flex-shrink: 0; color: var(--primary); font-weight: 800; font-family: var(--font-en); }
.faq-arrow { margin-left: auto; transition: var(--transition); color: var(--text-light); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 24px 20px;
  font-size: 0.95rem; line-height: 1.8; color: var(--text);
  gap: 12px;
}
.faq-item.open .faq-answer { display: flex; }
.faq-a { flex-shrink: 0; color: var(--accent); font-weight: 800; font-family: var(--font-en); }
.faq-contact-cta { text-align: center; margin-top: 48px; padding: 32px; background: var(--bg-alt); border-radius: var(--radius); }
.faq-contact-cta p { margin-bottom: 16px; font-size: 1.05rem; }

/* ══════════════════════════════════
   CONTACT
   ══════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: inherit; transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.required { color: var(--danger); }
.form-result { padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 16px; font-weight: 500; }
.form-result.success { background: #e3fcef; color: #006644; }
.form-result.error { background: #ffebe6; color: #bf2600; }
.contact-info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; }
.contact-info-card h4 { margin-bottom: 24px; }
.ci-item { display: flex; gap: 14px; margin-bottom: 20px; }
.ci-item:last-child { margin-bottom: 0; }
.ci-item i { color: var(--primary); font-size: 1.1rem; margin-top: 4px; flex-shrink: 0; }
.ci-item strong { display: block; color: var(--dark); margin-bottom: 2px; font-size: 0.85rem; }
.ci-item p { font-size: 0.9rem; color: var(--text); margin: 0; }

/* ══════════════════════════════════
   LEGAL
   ══════════════════════════════════ */
.legal-content { line-height: 1.9; }
.legal-content h3 { margin: 32px 0 16px; font-size: 1.2rem; }
.legal-content h4 { margin: 24px 0 12px; font-size: 1.05rem; }
.legal-content p { margin-bottom: 12px; }
.legal-content ol { margin: 16px 0; padding-left: 24px; list-style: decimal; }
.legal-content ol li { margin-bottom: 8px; }

/* ══════════════════════════════════
   ERROR PAGE
   ══════════════════════════════════ */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding-top: 72px;
}
.error-content { text-align: center; }
.error-content h1 { font-size: 8rem; color: var(--primary); font-family: var(--font-en); line-height: 1; }
.error-content p { font-size: 1.2rem; color: var(--text-light); margin: 16px 0 32px; }

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo .logo-text { color: var(--white); font-size: 1.3rem; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.5); }
.footer-logo-box { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.9); border-radius: 4px; padding: 1px 2px; }
.footer-logo-img { height: 25px; width: auto; display: block; }
.footer-desc { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; }
.footer-brand-title { color: var(--white); font-size: 0.95rem; font-weight: 600; margin: -4px 0 20px; }
.footer-logo { margin-top: -11px; }
.footer-links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; }
.footer-contact i { color: var(--primary); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-bottom-inner .copyright { text-align: center; }
.footer-bottom-inner > *:last-child { text-align: right; }
.footer-legal { display: flex; gap: 12px; font-size: 0.8rem; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--white); }
.footer-legal .privacy-link { font-weight: 700; color: rgba(255,255,255,0.8); }
.footer-legal .divider { color: rgba(255,255,255,0.2); }
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.admin-link { color: rgba(255,255,255,0.2); font-size: 0.75rem; }
.admin-link:hover { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .overview-highlights { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .talent-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; border-left: none; border-bottom: 2px solid var(--border); }
  .side-nav li a { border-left: none; border-bottom: 2px solid transparent; margin-left: 0; margin-bottom: -2px; }
  .side-nav li.active a { border-left-color: transparent; border-bottom-color: var(--primary); }
  .location-content { grid-template-columns: 1fr; }
  .greeting-content { grid-template-columns: 1fr; }
  .greeting-image { display: none; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .header-inner { height: 64px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white); overflow-y: auto; padding: 16px 24px 24px;
    animation: slideDown 0.3s ease; z-index: 2000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 64px);
  }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  .main-nav.open .nav-list { flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
  .main-nav.open .nav-item { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .main-nav.open .nav-link {
    display: flex; align-items: center; justify-content: center;
    width: 240px; height: 48px;
    font-size: 1rem; font-weight: 600; color: var(--dark);
    border: 1.5px solid var(--border); border-radius: 10px;
    background: #fff; text-align: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .main-nav.open .nav-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
  .main-nav.open .nav-link.active { color: var(--dark); border-color: var(--border); background: #fff; font-weight: 700; }
  /* 상담 문의 CTA - 모바일에서 항상 오렌지 유지 */
  .main-nav.open .nav-link-cta,
  .main-nav.open .nav-link-cta:hover,
  .main-nav.open .nav-link-cta:active,
  .main-nav.open .nav-link-cta:focus,
  .main-nav.open .nav-link-cta:visited,
  .main-nav.open .nav-link-cta.active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; font-weight: 700; }
  .main-nav.open .has-dropdown > .nav-link::after { display: none; }
  /* 드롭다운 숨김 */
  .main-nav.open .dropdown { display: none; }
  /* 열린 하위메뉴 */
  .main-nav.open .has-dropdown.mob-open .dropdown {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 10px 0 4px; min-width: auto;
    background: transparent;
  }
  .main-nav.open .dropdown li { list-style: none; }
  .main-nav.open .dropdown li a {
    display: flex; align-items: center; justify-content: center;
    width: 220px; height: 42px;
    font-size: 0.92rem; font-weight: 500; color: var(--text);
    border: 1.5px solid var(--border); border-radius: 8px;
    background: #f8fafc; text-align: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .main-nav.open .dropdown li a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
  .mobile-toggle { display: block; }

  .hero-title .line1 { font-size: 1rem; }
  .hero-title .line2 { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero { min-height: 80vh; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 2.2rem; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  h2 { font-size: 1.6rem; }

  .services-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .talent-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .overview-highlights { grid-template-columns: 1fr; }

  .business-card { flex-direction: column; padding: 28px; gap: 20px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom-inner > *:last-child { text-align: center; }
  .footer-legal { justify-content: center; }

  .page-banner { padding: 100px 0 40px; }
  .page-title { font-size: 1.8rem; }
}

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .talent-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .timeline-year-group { padding-left: 70px; }
  .timeline-year { font-size: 1.4rem; }
  .process-steps { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .location-map-wrap { border-radius: 8px; }
}

/* ══════════════════════════════════
   공부방 전용 스타일
   ══════════════════════════════════ */

/* 헤더 로고 */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { height: 42px; width: auto; display: block; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.site-header.scrolled .logo-text { color: var(--primary); }
.logo-img { display: none; }
.logo-img-main { height: 31px; width: auto; display: block; object-fit: contain; margin-left: -4px; }

/* 푸터 로고 배지 */
.footer-logo-badge { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 8px 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.footer-logo-img-main { height: 19px; width: auto; display: block; object-fit: contain; }

/* 상담 문의 버튼 강조 */
.nav-link-cta { background: var(--primary); color: #fff !important; border-radius: var(--radius-sm); padding: 7px 14px !important; }
.nav-link-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.nav-link-cta:active, .nav-link-cta:focus, .nav-link-cta:visited, .nav-link-cta.active { background: var(--primary) !important; color: #fff !important; }

/* 히어로 */
.hero-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,0.15); color:#fff; padding:6px 16px; border-radius:99px; font-size:0.85rem; font-weight:600; margin-bottom:16px; border:1px solid rgba(255,255,255,0.3); }
.hero-title .line1 { font-size:1.1rem; font-weight:400; }
.hero-title .line2 { font-size:2.8rem; font-weight:800; }

/* 과목 카드 (홈) */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.subject-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); transition: var(--transition); color: var(--text); }
.subject-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.subject-card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 14px; }
.subject-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.subject-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.subject-card-more { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* 특징 섹션 */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.feature-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.4rem; margin: 0 auto 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* 시간표 미리보기 */
.schedule-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.open-hours-box { display: inline-flex; align-items: center; gap: 10px; background: var(--primary-light); color: var(--primary); padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }
.schedule-mini { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.schedule-mini-header { background: var(--primary); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 0.95rem; }
.schedule-mini-row { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.schedule-mini-row .time { color: var(--primary); font-weight: 600; }
.schedule-mini-row.weekend { background: var(--bg-alt); }

/* 갤러리 미리보기 */
.gallery-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-preview-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--bg-alt); }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-preview-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.6)); padding: 20px 12px 10px; color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0; transition: opacity 0.2s; }
.gallery-preview-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 2rem; }

/* 공지 미리보기 */
.notice-preview-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.notice-preview-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.notice-preview-item:last-child { border-bottom: none; }
.notice-badge { background: var(--primary-light); color: var(--primary); font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.notice-title { flex: 1; font-size: 0.9rem; color: var(--dark); }
.notice-date { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; }

/* CTA 섹션 */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #FF8C42 100%); padding: 80px 0; }
.cta-content { text-align: center; color: #fff; }
.cta-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 1rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.8; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: #fff; color: var(--primary); font-weight: 700; border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition); }
.btn-cta-primary:hover { background: var(--dark); color: #fff; }
.btn-cta-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: 2px solid rgba(255,255,255,0.7); color: #fff; font-weight: 700; border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); }

/* 푸터 텍스트 로고 */
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-social a:hover { background: var(--primary); color: #fff; }

/* 페이지 배너 */
.page-banner { background: linear-gradient(135deg, var(--primary) 0%, #FF8C42 100%); padding: 100px 0 48px; color: #fff; }
.page-banner-img { background-size: cover; background-position: center; position: relative; padding: 0; }
.page-banner-img .page-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.38) 100%); }
.page-banner-img .page-banner-inner { position: relative; z-index: 1; padding: 100px 0 52px; }
.page-banner-inner { padding: 0; }
.page-banner-title { font-size: 2rem; font-weight: 800; color: #fff; }
.page-banner-sub { margin-top: 10px; color: rgba(255,255,255,0.88); font-size: 1rem; line-height: 1.6; }

/* 원장 인사말 */
.greeting-layout { display: block; max-width: 900px; margin: 0 auto; }
.greeting-layout.has-photo { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.greeting-photo { text-align: center; margin-bottom: 32px; }
.greeting-photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-light); }
.greeting-name { text-align: center; font-weight: 700; color: var(--dark); margin-top: 10px; font-size: 0.95rem; }
.greeting-content h2 { font-size: 1.5rem; margin-bottom: 20px; }
.greeting-content p { margin-bottom: 14px; line-height: 1.9; }

/* 공부방 소개 */
.overview-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.overview-info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.overview-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 10px 12px; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.info-table th { color: var(--text-light); font-weight: 500; width: 80px; }
.overview-desc h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.overview-subjects { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.subj-badge { padding: 6px 14px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; color: #fff; }
.subj-korean { background: #E53E3E; } .subj-english { background: #3182CE; } .subj-math { background: #805AD5; }
.subj-social { background: #38A169; } .subj-science { background: #DD6B20; }

/* 오시는 길 */
.location-map-wrap { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.location-map-img { width: 100%; display: block; }
.location-map-btns { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 8px; }
.map-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; }
.naver-btn { background: #03C75A; color: #fff; }
.kakao-btn { background: #FEE500; color: #000; }
.location-no-map { text-align: center; padding: 60px; color: var(--text-light); background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 32px; }
.location-no-map i { font-size: 3rem; display: block; margin-bottom: 12px; }
.location-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.location-info-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.location-info-card i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }
.location-info-card strong { display: block; font-size: 0.82rem; color: var(--text-light); margin-bottom: 4px; }
.location-info-card p, .location-info-card a { font-size: 0.95rem; color: var(--dark); }

/* 과목 목록 (subjects.ejs) */
.subjects-grid-lg { grid-template-columns: 1fr; gap: 16px; }
.subject-card-lg { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; padding: 24px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); transition: var(--transition); color: var(--text); }
.subject-card-lg:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.subject-card-icon-lg { width: 80px; height: 80px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.subject-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.subject-card-body .subtitle { font-size: 0.88rem; color: var(--text-light); margin-bottom: 10px; }
.subject-card-body .desc { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.subject-link { font-size: 0.85rem; font-weight: 600; }

/* 과목 상세 */
.subject-nav {
  display: flex; gap: 8px; margin-bottom: 32px;
  background: linear-gradient(90deg, #fff7f4 0%, #fff0eb 100%), url('/images/patterns/math-pattern.svg');
  background-size: cover, 220px 220px;
  background-blend-mode: normal, multiply;
  border: 1px solid #fde8de; border-radius: 14px; padding: 8px;
}
.subject-nav-item {
  flex: 1; text-align: center; padding: 16px 18px; border-radius: 10px;
  font-size: 1.05rem; font-weight: 700; color: var(--text); transition: var(--transition);
}
.subject-nav-item.active, .subject-nav-item:hover { color: #fff; background: var(--primary); box-shadow: 0 4px 14px rgba(255,107,53,0.35); }
.subject-detail { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.subject-detail-icon { width: 80px; height: 80px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.subject-detail-desc { font-size: 1rem; line-height: 1.9; margin-bottom: 28px; }
.subject-features h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.subject-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.subject-feature-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; }
.feature-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.subject-detail-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 시간표 */
.schedule-content table { width: 100%; border-collapse: collapse; }
.schedule-content th, .schedule-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: center; font-size: 0.88rem; }
.schedule-content th { background: var(--primary); color: #fff; font-weight: 600; }

/* 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-item-overlay { opacity: 0; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.65)); padding: 20px 12px 10px; transition: opacity 0.2s; }
.gallery-item-overlay span { color: #fff; font-size: 0.85rem; font-weight: 600; display: block; }
.gallery-item-overlay em { color: rgba(255,255,255,0.75); font-size: 0.75rem; font-style: normal; }

/* 공지사항 */
.notice-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.notice-item { border-bottom: 1px solid var(--border); background: #fff; cursor: pointer; }
.notice-item:last-child { border-bottom: none; }
.notice-item-header { display: flex; align-items: center; gap: 12px; padding: 8px 20px; }
.notice-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice-item-title { flex: 1; font-size: 0.95rem; color: var(--dark); font-weight: 500; }
.notice-item-date { font-size: 0.8rem; color: var(--text-light); }
.notice-arrow { color: var(--text-light); font-size: 0.8rem; transition: transform 0.2s; }
.notice-item.open .notice-arrow { transform: rotate(180deg); }
.notice-share-btn { background: none; border: none; cursor: pointer; color: #cbd5e1; font-size: 0.82rem; padding: 4px 6px; border-radius: 6px; transition: color .15s, background .15s; flex-shrink: 0; }
.notice-share-btn:hover { color: var(--primary); background: var(--primary-light); }
.notice-item-body { display: none; padding: 12px 20px 14px 60px; font-size: 0.9rem; color: var(--text); line-height: 1.8; border-top: 1px solid var(--border); background: var(--bg-alt); }
.notice-item.open .notice-item-body { display: block; }

/* 공지사항 페이지네이션 */
.notice-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--border); text-decoration: none; transition: all .15s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { color: #cbd5e1; cursor: default; pointer-events: none; }

/* 상담 문의 */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info h3, .contact-form-wrap h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 2px; }
.contact-info-item p { font-size: 0.9rem; color: var(--dark); }

/* 버튼 */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--primary); color: #fff; font-weight: 700; border-radius: var(--radius-sm); font-size: 0.95rem; border: 2px solid var(--primary); transition: var(--transition); cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: transparent; color: var(--primary); font-weight: 700; border-radius: var(--radius-sm); font-size: 0.95rem; border: 2px solid var(--primary); transition: var(--transition); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* 섹션 태그 */
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.section-desc { color: var(--text-light); font-size: 0.95rem; margin-top: 10px; }

/* 반응형 */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ── 스마트 학습 철학 섹션 ── */
.smart-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.smart-phil-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255,107,53,0.10);
  border-top: 4px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}
.smart-phil-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255,107,53,0.18);
}
.smart-phil-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, #FFB347 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  color: #fff;
}
.smart-phil-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.smart-phil-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}
.section-header .section-desc strong {
  color: var(--primary);
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .smart-philosophy-grid { grid-template-columns: 1fr 1fr; }
  .schedule-preview { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  /* greeting-layout is already block */
  .location-info-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .subject-card-lg { grid-template-columns: 60px 1fr; }
  .subject-features-grid { grid-template-columns: 1fr; }
  .subjects-grid-lg { grid-template-columns: 1fr; }
  .hero-title .line2 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 신뢰 지표 카드 ── */
.trust-cards-wrap {
  background: #f8f4f0;
  padding: 32px 0 40px;
}
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-card {
  background: linear-gradient(135deg, #FF6B35 0%, #E55A25 100%);
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(255,107,53,0.25);
  transition: transform .2s, box-shadow .2s;
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,107,53,0.35);
}
.trust-card-icon {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.trust-card-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.trust-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-top: 4px;
}
.trust-card-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ── 연혁 타임라인 ── */
.history-section { background: #fafafa; }
.section-header-center { text-align: center; margin-bottom: 48px; }
.section-header-center .section-title { font-size: 1.7rem; font-weight: 800; color: var(--dark); }
.section-header-center .section-sub { color: var(--text-light); margin-top: 8px; }
.history-timeline {
  position: relative;
  padding: 8px 0;
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: #e2e8f0;
  transform: translateX(-50%);
}
.history-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 32px);
  margin-bottom: 14px;
  position: relative;
}
.history-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 32px);
}
.history-dot {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 14px; height: 14px;
  background: #FF6B35;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #FF6B35;
  transform: translateX(-50%);
  z-index: 1;
}
.history-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  max-width: 340px;
  width: 100%;
}
.history-year {
  font-size: 1rem;
  font-weight: 800;
  color: #FF6B35;
  display: block;
  margin-bottom: 4px;
}
.history-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── PII 마스킹 ── */
.pii-mask {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 0.88em;
  color: #64748b;
  transition: background .15s;
  user-select: none;
  vertical-align: middle;
}
.pii-mask:hover { background: #e2e8f0; color: #334155; }
.pii-mask.revealed {
  background: #fff7ed;
  border-color: #fdba74;
  color: #1e293b;
  cursor: default;
  font-size: inherit;
}

@media (max-width: 768px) {
  .trust-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .history-timeline::before { left: 20px; }
  .history-item, .history-item.right {
    padding-left: 48px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .history-dot { left: 20px; }
  .history-card { max-width: 100%; }
}
