/* ============================================================
   자기발전소 독학기숙 아카데미 - Design System
   Premium Study Academy CSS
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
  /* Primary Colors - Clean neutral + green accent */
  --primary: #1F2937;
  --primary-dark: #111827;
  --primary-darker: #0a0a0f;
  --primary-light: #4B5563;
  --primary-lighter: #F3F4F6;
  --accent: #22c55e;
  --accent-light: #86efac;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #0a0a0a;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --section-padding: 80px;
  --container-max: 1280px;
  --container-padding: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-header: 1000;
  --z-modal: 2000;
  --z-floating: 3000;
  --z-toast: 4000;

  /* Header */
  --header-height: 80px;
}


/* Lucide icon defaults */
.ico { width: 16px; height: 16px; vertical-align: -2px; }
.quick-link-icon i, .quick-link-icon svg { width: 32px; height: 32px; stroke: var(--accent); }
.feature-icon i, .feature-icon svg { width: 40px; height: 40px; stroke: var(--accent); }
.widget-chip .ico { width: 16px; height: 16px; }
.header-cta .ico { width: 15px; height: 15px; }
.quick-info-icon i, .quick-info-icon svg { width: 20px; height: 20px; }

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-500); }
.text-dark { color: var(--gray-900); }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.fw-black { font-weight: 900; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: all var(--transition);
  background: transparent;
  height: var(--header-height);
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
}

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

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.header.scrolled .nav-link {
  color: var(--gray-700);
}

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

.header.scrolled .nav-link:hover {
  color: var(--primary);
}

.nav-item.has-dropdown .nav-link::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -2px;
  transition: transform var(--transition);
}

.nav-item.dropdown-open .nav-link::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: var(--z-dropdown);
}

.nav-item.dropdown-open .dropdown,
.nav-item:hover .dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.dropdown a:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-left: 24px;
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.header.scrolled .header-cta {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.header.scrolled .hamburger span {
  background: var(--gray-800);
}

body.mobile-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

body.mobile-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 5;
  }

  body.mobile-open .nav {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-open .hamburger span {
    background: var(--white);
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 16px 24px;
    justify-content: center;
  }

  .header.scrolled .nav-link {
    color: var(--white);
  }

  .dropdown {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    transition: max-height 0.4s ease;
  }

  .nav-item.dropdown-open .dropdown {
    max-height: 500px;
    transform: none;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 12px 24px;
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    padding-left: 24px;
  }

  .header-cta {
    display: none !important;
  }

  body.mobile-open .header-cta {
    display: inline-flex !important;
    margin-top: 24px;
  }
}


/* ============================================================
   4. HERO SLIDER
   ============================================================ */
.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-wrapper {
  height: 100%;
}

.hero-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-slider .swiper-slide:not(.swiper-slide-active) .hero-slide-content {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.hero-slider .swiper-slide.swiper-slide-active .hero-slide-content {
  opacity: 1 !important;
  visibility: visible;
  transition: opacity 0.5s 0.3s;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-slide-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-slide-content h1 span {
  color: var(--accent);
}

.hero-slide-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-slide-content .hero-btns,
.hero-slide-content .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--white);
  width: 32px;
  border-radius: var(--radius-full);
}

.hero-fraction {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  white-space: nowrap;
}

.hero-fraction .current {
  font-weight: 800;
  color: var(--white);
  font-size: 1.1rem;
}

.hero-prev,
.hero-next {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-prev:hover,
.hero-next:hover {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--white);
}

.hero-play-stop {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-play-stop:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  opacity: 0.6;
  animation: bounceDown 2s infinite;
  cursor: pointer;
}

.hero-scroll-down i {
  font-size: 1rem;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   5. QUICK LINKS BAR
   ============================================================ */
.quick-links-section {
  padding-top: 24px;
}

.quick-links {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border-right: 1px solid var(--gray-100);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.quick-link:last-child {
  border-right: none;
}

.quick-link:hover {
  transform: translateY(-4px);
  background: var(--gray-50);
}

.quick-link-icon {
  width: 72px;
  height: 72px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  transition: all var(--transition);
  overflow: visible;
}
.quick-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.quick-link:hover .quick-link-icon img {
  transform: scale(1.1);
}

.quick-link-title {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
}

.quick-link-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}


/* ============================================================
   6. SECTION COMMONS
   ============================================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-top: 12px;
  line-height: 1.6;
}

.section-dark {
  background: var(--gray-900);
  color: var(--white);
}

.section-gray {
  background: var(--gray-50);
}


/* ============================================================
   7. FEATURE TABS SECTION
   ============================================================ */
.feature-tabs {
  background: var(--gray-50);
  padding: var(--section-padding) 0 24px;
}

.feature-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature-tab-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.feature-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.feature-slider {
  overflow: hidden;
}

.feature-slider .swiper-slide {
  height: auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 400px;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

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

.feature-card-img {
  overflow: hidden;
  height: 100%;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.05);
}

.feature-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.feature-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.feature-card-body p {
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.6;
}

.feature-card-body ul {
  margin-top: 16px;
}

.feature-card-body ul li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-card-body ul li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-content {
  display: none;
}

.feature-content.active {
  display: block;
}


/* ============================================================
   8. ACHIEVEMENT / STATS SECTION
   ============================================================ */
.achievement {
  background: var(--primary-darker);
  color: var(--white);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.achievement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

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

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

.achievement-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

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

.achievement-stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.achievement-stat-number .unit {
  font-size: 1.5rem;
  font-weight: 600;
}

.achievement-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 8px;
}

.achievement-list {
  overflow: hidden;
  position: relative;
}

.achievement-scroll {
  overflow: hidden;
  height: 280px;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}

.achievement-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.achievement-card-badge {
  background: var(--accent);
  color: var(--primary-darker);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.achievement-card-univ {
  font-weight: 700;
  font-size: 1rem;
}

.achievement-card-dept {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 2px;
}

.achievement-card-name {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-left: auto;
}


/* ============================================================
   9. MANAGEMENT PARALLAX SECTION (GSAP)
   ============================================================ */
.management {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.management-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.management-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.3);
}

.management-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.88) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.management-header {
  text-align: center;
  color: var(--white);
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.management-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
}

.management-header p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  font-size: 1.1rem;
}

.management-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.management-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.management-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.management-card:hover {
  border-color: rgba(34, 197, 94, 0.15);
  background: rgba(255, 255, 255, 0.14);
}

.management-card-step {
  color: var(--accent);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}

.management-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.management-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Management card animations handled by GSAP gsap.from() */


/* ============================================================
   10. FACILITY GALLERY SECTION
   ============================================================ */
.facility-gallery {
  padding: var(--section-padding) 0;
}

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

.facility-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.facility-card:hover img {
  transform: scale(1.05);
}

.facility-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  transition: all var(--transition);
}

.facility-card:hover .facility-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 70%
  );
}

.facility-card-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.facility-card-title {
  font-size: 1.3rem;
  font-weight: 700;
}


/* ============================================================
   11. REVIEW CAROUSEL
   ============================================================ */
.reviews {
  background: var(--gray-50);
  padding: var(--section-padding) 0;
  overflow: hidden;
}

/* ---- Marquee Wrap ---- */
.review-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-marquee-row {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.review-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.review-marquee-row.reverse .review-marquee-track {
  animation: marquee-scroll-reverse 40s linear infinite;
}

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

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

@keyframes marquee-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---- Review Card ---- */
.review-card {
  background: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 360px;
  max-width: 420px;
  flex-shrink: 0;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.2);
}

.review-card-univ {
  display: block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.review-card-text {
  color: var(--gray-600);
  line-height: 1.75;
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 12px;
}

.review-card-info {
  font-size: 0.78rem;
  color: var(--gray-400);
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}


/* ============================================================
   12. BOARD / NOTICE SECTION
   ============================================================ */
.boards {
  padding: var(--section-padding) 0;
}

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

.board {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

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

.board-header h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
}

.board-header a {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--transition);
}

.board-header a:hover {
  opacity: 0.7;
}

.board-header a::after {
  content: '\2192';
}

.board-list {
  padding: 0;
}

.board-list li {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-50);
}

.board-list li:last-child {
  border-bottom: none;
}

.board-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-700);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.board-list li a:hover {
  color: var(--primary);
}

.board-list li .date {
  font-size: 0.8rem;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-left: 16px;
}

.board-list li .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}


/* ============================================================
   EVENT HERO SLIDE
   ============================================================ */
.hero-slide-overlay--dark {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
}
.hero-event-badge {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(34,197,94,0.2); }
}
.hero-event-benefits {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-event-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1rem;
  color: #fff;
}
.hero-event-benefit i, .hero-event-benefit svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
}
.hero-event-benefit strong {
  color: #22c55e;
}

/* ============================================================
   ACHIEVEMENT CARD LOGOS
   ============================================================ */
.achievement-card-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================================
   REVIEW CARD STARS
   ============================================================ */
.review-card-stars {
  color: #FBBF24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* ============================================================
   MANAGEMENT CARD ICONS
   ============================================================ */
.management-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: visible;
}
.management-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(34,197,94,0.2));
}
.management-card-icon i, .management-card-icon svg {
  width: 28px;
  height: 28px;
  color: #22c55e;
}

/* ============================================================
   PRICING COMPARISON
   ============================================================ */
.pricing-compare {
  background: var(--gray-50);
}
.pricing-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  margin-bottom: 40px;
}
.pricing-chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}
.pricing-bar-fill {
  width: 100%;
  background: var(--gray-300);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  transition: height 1s ease;
}
.pricing-chart-bar.highlight .pricing-bar-fill {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}
.pricing-bar-value {
  font-weight: 800;
  font-size: 1rem;
  color: var(--gray-700);
  white-space: nowrap;
}
.pricing-chart-bar.highlight .pricing-bar-value {
  color: #fff;
}
.pricing-bar-label {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--gray-700);
  line-height: 1.4;
}
.pricing-bar-label small {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.8rem;
}
.pricing-chart-bar.highlight .pricing-bar-label {
  color: #22c55e;
  font-weight: 800;
}
.pricing-saving {
  text-align: center;
  background: #fff;
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 20px 32px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  max-width: 600px;
}
.pricing-saving-badge {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 4px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.pricing-saving-text {
  font-size: 1.05rem;
  color: var(--gray-700);
}
.pricing-saving-text strong {
  color: #22c55e;
  font-weight: 800;
}

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-form-section {
  background: var(--primary-darker);
  color: #fff;
}
.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-form-left h2 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
}
.contact-form-left p {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.contact-form-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.contact-form-benefits li i, .contact-form-benefits li svg {
  width: 18px;
  height: 18px;
  color: #22c55e;
}
.contact-form {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.8);
}
.contact-form-field input,
.contact-form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.contact-form-field input::placeholder {
  color: rgba(255,255,255,0.4);
}
.contact-form-field input:focus,
.contact-form-field select:focus {
  outline: none;
  border-color: #22c55e;
}
.contact-form-field select option {
  background: #1f2937;
  color: #fff;
}
.contact-form-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 1.1rem;
  padding: 16px;
}
.contact-form-privacy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin: 0;
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta {
  background: var(--primary-darker);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
}

.cta p {
  opacity: 0.8;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   14. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
}

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

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-darker);
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

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

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

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

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

.btn-kakao:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: none;
}

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

.btn-phone {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  border: none;
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn i {
  font-size: 1em;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

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

.footer-brand-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-400);
  display: block;
  margin-top: 4px;
}

.footer-info {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--gray-400);
  margin-top: 12px;
}

.footer-info span {
  display: block;
}

.footer-title {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-400);
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.footer-contact-item i {
  width: 20px;
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--gray-500);
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-600);
  color: var(--gray-400);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(31, 41, 55, 0.1);
}


/* ============================================================
   16. SUB-PAGE HEADER / BANNER
   ============================================================ */
.page-header {
  height: 300px;
  background: var(--primary-darker);
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
              linear-gradient(135deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.75) 100%);
  pointer-events: none;
}

.page-header::after {
  content: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.page-header .breadcrumb a:hover {
  color: var(--white);
}

.page-header .breadcrumb .separator {
  font-size: 0.7rem;
  opacity: 0.5;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
}

.page-header h1 span {
  color: var(--white);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-size: 1.05rem;
}


/* ============================================================
   17. SUB-PAGE LAYOUT: SIDEBAR + CONTENT
   ============================================================ */
.page-layout {
  padding: 80px 0;
}

/* 2-column flex layout - applied to the container that holds sidebar + content */
.page-layout > .container,
.page-layout .page-layout-inner {
  display: flex;
  gap: 48px;
}

/* Pattern A: aside.sidebar-nav (about, management, pricing pages) */
.sidebar-nav:not(ul) {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: flex-start;
}

.sidebar-nav-title {
  font-weight: 800;
  font-size: 1.2rem;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 8px;
  color: var(--gray-900);
}

.sidebar-nav:not(ul) > a {
  display: block;
  padding: 12px 16px;
  color: var(--gray-600);
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-nav:not(ul) > a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.sidebar-nav:not(ul) > a.active {
  background: var(--primary-lighter);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Pattern B: aside.sidebar > ul.sidebar-nav (facility pages) */
aside.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: flex-start;
}

.sidebar-title {
  font-weight: 800;
  font-size: 1.2rem;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 8px;
  color: var(--gray-900);
}

aside.sidebar ul.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

aside.sidebar ul.sidebar-nav li a {
  display: block;
  padding: 12px 16px;
  color: var(--gray-600);
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

aside.sidebar ul.sidebar-nav li a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

aside.sidebar ul.sidebar-nav li a.active {
  background: var(--primary-lighter);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Content area - both patterns */
.content-area,
.page-content {
  flex: 1;
  min-width: 0;
}


/* ============================================================
   18. GALLERY GRID + LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all var(--transition);
  border: none;
  z-index: 5;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition);
  border: none;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}


/* ============================================================
   19. PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pricing-card.featured {
  border-color: var(--primary);
}

.pricing-card.featured::before {
  content: '추천';
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: var(--primary-darker);
  padding: 6px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-type {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-room {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.pricing-price span {
  font-size: 1.2rem;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 4px;
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li .check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  display: block;
}

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

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

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

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

.pricing-card.featured .pricing-btn {
  background: var(--primary);
  color: var(--white);
}

.pricing-card.featured .pricing-btn:hover {
  background: var(--primary-dark);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--gray-500);
  font-size: 0.9rem;
}


/* ============================================================
   20. ADMISSION STEPS TIMELINE
   ============================================================ */
.admission-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 48px;
  padding: 0 32px;
}

.admission-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.admission-step {
  text-align: center;
  position: relative;
  flex: 1;
  padding: 0 8px;
}

.admission-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
}

.admission-step h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.admission-step p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.admission-step-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}


/* ============================================================
   21. SMART FORM WIZARD
   ============================================================ */
.smart-form {
  max-width: 800px;
  margin: 0 auto;
}

.smart-form-progress {
  display: flex;
  margin-bottom: 48px;
  position: relative;
}

.smart-form-step-indicator {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 40px;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

.smart-form-step-indicator::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
  transition: all var(--transition);
}

.smart-form-step-indicator::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.smart-form-step-indicator:last-child::after {
  display: none;
}

.smart-form-step-indicator.active {
  color: var(--primary);
  font-weight: 600;
}

.smart-form-step-indicator.active::before {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
}

.smart-form-step-indicator.completed {
  color: var(--success);
}

.smart-form-step-indicator.completed::before {
  background: var(--accent);
  color: var(--primary-darker);
  content: '\2713';
}

.smart-form-step-indicator.completed::after {
  background: var(--accent);
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeInStep 0.4s ease;
}

.form-step.active {
  display: block;
}

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

/* Chip Group */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  color: var(--gray-600);
}

.chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.chip.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--white);
  color: var(--gray-800);
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--white);
  color: var(--gray-800);
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--white);
  color: var(--gray-800);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

/* Room Select Grid */
.room-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.room-select-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.room-select-card:hover {
  border-color: var(--primary-light);
}

.room-select-card.selected {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.room-select-card-type {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.room-select-card-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.room-select-card-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
}

.room-select-card-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
}

.btn-next {
  background: var(--primary);
  color: var(--white);
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

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

.btn-prev {
  background: var(--white);
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

.btn-prev:hover {
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn-submit {
  background: #FEE500;
  color: #3C1E1E;
  padding: 16px 48px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
}

.btn-submit:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* Validation */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-input.valid,
.form-textarea.valid,
.form-select.valid {
  border-color: var(--success);
}

.form-help {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}


/* ============================================================
   22. AI CHATBOT WIDGET
   ============================================================ */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-floating);
}

/* ---- Toggle Button ---- */
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.chatbot-toggle .chatbot-toggle-close { display: none; }
.chatbot.open .chatbot-toggle .chatbot-toggle-icon { display: none; }
.chatbot.open .chatbot-toggle .chatbot-toggle-close { display: flex; }
.chatbot.open .chatbot-toggle { background: var(--gray-600); }

.chatbot-toggle::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--white);
  animation: chatbot-pulse 2s infinite;
}

.chatbot.open .chatbot-toggle::after { display: none; }

@keyframes chatbot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* ---- Speech Bubble Guide ---- */
.chatbot-bubble {
  position: absolute;
  bottom: 10px;
  right: 72px;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 30px 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-800);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

.chatbot-bubble.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* 말풍선 꼬리 (오른쪽 삼각형) */
.chatbot-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  box-shadow: 3px -3px 6px rgba(0, 0, 0, 0.06);
}

.chatbot-bubble-text {
  cursor: pointer;
}
.chatbot-bubble-text:hover {
  color: var(--accent);
}

.chatbot-bubble-close {
  position: absolute;
  top: 2px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.2s;
}
.chatbot-bubble-close:hover {
  color: var(--gray-700);
}

/* 챗봇 열린 상태에서 숨김 */
.chatbot.open .chatbot-bubble { display: none; }

/* ---- Panel ---- */
.chatbot-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot.open .chatbot-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ---- Header ---- */
.chatbot-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-avatar svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.chatbot-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin: 0;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover { opacity: 1; }

/* ---- Messages Area ---- */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.chatbot-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: keep-all;
  animation: chatbot-msg-in 0.3s ease;
}

@keyframes chatbot-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-msg.bot {
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chatbot-msg.user {
  background: var(--accent);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Typing indicator */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 80px;
}

.chatbot-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: chatbot-typing-bounce 1.4s infinite;
}

.chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ---- Quick Replies ---- */
.chatbot-quick-replies {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.chatbot-quick-replies.hidden { display: none; }

.chatbot-quick-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.chatbot-quick-btn .ico { width: 14px; height: 14px; }

.chatbot-quick-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---- Interest Grid (6-button onboarding) ---- */
.chatbot-interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 12px;
}

.chatbot-interest-grid .chatbot-interest-btn {
  border-radius: var(--radius-md);
  padding: 12px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--gray-50);
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.chatbot-interest-grid .chatbot-interest-btn:hover {
  border-color: var(--accent);
  background: rgba(34,197,94,0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

.chatbot-interest-grid .chatbot-interest-btn .ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Suggest Links (AI response page recommendations) ---- */
.chatbot-suggest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-suggest-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(34,197,94,0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(34,197,94,0.2);
  transition: all var(--transition);
}

.chatbot-suggest-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.chatbot-suggest-link .ico {
  width: 12px;
  height: 12px;
}

/* ---- Follow-up Question Buttons ---- */
.chatbot-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-followup-btn {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition);
}

.chatbot-followup-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Input Area ---- */
.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.chatbot-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: border-color var(--transition);
}

.chatbot-input-wrap:focus-within { border-color: var(--accent); }

.chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 80px;
  line-height: 1.4;
  color: var(--gray-800);
}

.chatbot-input::placeholder { color: var(--gray-400); }

.chatbot-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.chatbot-send:disabled { background: var(--gray-300); cursor: not-allowed; }
.chatbot-send:not(:disabled):hover { background: #16a34a; }
.chatbot-send svg { width: 16px; height: 16px; }

.chatbot-disclaimer {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 8px;
}

/* Floating Top Button */
.floating-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-600);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  z-index: calc(var(--z-floating) - 1);
  opacity: 0;
  pointer-events: none;
}

.floating-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}


/* ============================================================
   23. ACCORDION / FAQ
   ============================================================ */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

.accordion-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--gray-800);
  font-family: inherit;
  gap: 16px;
  transition: color var(--transition);
}

.accordion-question:hover {
  color: var(--primary);
}

.accordion-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--gray-400);
  flex-shrink: 0;
  font-weight: 400;
}

.accordion-item.active .accordion-question::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.accordion-item.active .accordion-question {
  color: var(--primary);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-answer-inner {
  padding: 0 0 20px;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 0.95rem;
}

.accordion-item.active .accordion-answer {
  max-height: 500px;
}


/* ============================================================
   24. NOTICE / BOARD PAGE
   ============================================================ */
.notice-list {
  border-top: 2px solid var(--gray-800);
}

.notice-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.notice-item:hover {
  background: var(--gray-50);
  padding-left: 8px;
  padding-right: 8px;
}

.notice-item-num {
  width: 50px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.notice-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 16px;
  min-width: 60px;
  flex-shrink: 0;
}

.notice-item-badge.important {
  background: var(--error);
  color: var(--white);
}

.notice-item-badge.normal {
  background: var(--gray-100);
  color: var(--gray-600);
}

.notice-item-badge.event {
  background: var(--primary-lighter);
  color: var(--primary);
}

.notice-item-title {
  flex: 1;
  font-weight: 500;
  color: var(--gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition);
}

.notice-item-title:hover {
  color: var(--primary);
}

.notice-item-title a {
  color: inherit;
}

.notice-item-date {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-left: 16px;
  flex-shrink: 0;
}

.notice-item-views {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-left: 16px;
  flex-shrink: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.pagination .prev,
.pagination .next {
  font-size: 0.85rem;
}


/* ============================================================
   25. SUCCESS / ACHIEVEMENT PAGE
   ============================================================ */
.success-hero {
  background: var(--primary-darker);
  color: var(--white);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.success-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.success-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.success-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.success-stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.success-stat-card-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.success-stat-card-label {
  opacity: 0.7;
  margin-top: 8px;
  font-size: 0.9rem;
}

.success-year-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.success-year-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
  background: var(--white);
}

.success-year-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.success-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.success-card-univ {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.success-card-dept {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.success-card-info {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 8px;
  background: var(--gray-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.success-cards-group {
  display: none;
}

.success-cards-group.active {
  display: block;
}

/* Year tabs in dark context (achievement section) */
.achievement .success-year-tabs {
  margin-bottom: 32px;
}

.achievement .success-year-tab {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.achievement .success-year-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.achievement .success-year-tab.active {
  background: var(--accent);
  color: var(--primary-darker);
  border-color: var(--accent);
}

/* Success cards in dark context */
.achievement .success-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.achievement .success-card:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.achievement .success-card-univ {
  color: #34d399;
}

.achievement .success-card-dept {
  color: rgba(255, 255, 255, 0.85);
}

.achievement .success-card-info {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   26. CHECKLIST PAGE
   ============================================================ */
.checklist-section {
  margin-bottom: 48px;
}

.checklist-title {
  font-size: 1.3rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
  color: var(--gray-900);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--gray-50);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.checklist-item:hover {
  background: var(--primary-lighter);
}

.checklist-item.checked {
  background: var(--primary-lighter);
}

.checklist-item.checked .checklist-item-text {
  text-decoration: line-through;
  color: var(--gray-400);
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-item.checked .checklist-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.checklist-item.checked .checklist-checkbox::after {
  content: '\2713';
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

.checklist-item-text {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.checklist-item-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-left: auto;
  flex-shrink: 0;
}


/* ============================================================
   27. DIRECTIONS / MAP PAGE
   ============================================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.directions-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.direction-card {
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.direction-card h4 {
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900);
}

.direction-card h4 i {
  color: var(--primary);
}

.direction-card p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 0.95rem;
}

.direction-card .highlight {
  color: var(--primary);
  font-weight: 600;
}

.direction-card ul {
  margin-top: 12px;
}

.direction-card ul li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.direction-card ul li::before {
  content: '\2022';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}


/* ============================================================
   28. MANAGEMENT DETAIL PAGE
   ============================================================ */
.mgmt-step-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mgmt-step-card {
  display: flex;
  gap: 32px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}

.mgmt-step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.mgmt-step-card-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  min-width: 80px;
  line-height: 1;
  flex-shrink: 0;
}

.mgmt-step-card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.mgmt-step-card-content p {
  color: var(--gray-600);
  line-height: 1.7;
}

.mgmt-step-card-content ul {
  margin-top: 12px;
}

.mgmt-step-card-content ul li {
  padding: 4px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mgmt-step-card-content ul li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}


/* ============================================================
   29. COMMUNITY / BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
  color: var(--gray-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 8px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
}


/* ============================================================
   30. ROOM TYPES PAGE
   ============================================================ */
.room-types {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.room-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.room-type:nth-child(even) {
  direction: rtl;
}

.room-type:nth-child(even) > * {
  direction: ltr;
}

.room-type-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.room-type-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-type-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.room-type-badge {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.room-type-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 12px 0;
}

.room-type-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
}

.room-type-info ul {
  margin-top: 16px;
}

.room-type-info ul li {
  padding: 8px 0;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.room-type-info ul li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}


/* ============================================================
   31. PLANNER / COLUMN CONTENT PAGES (PROSE)
   ============================================================ */
.content-page h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  color: var(--gray-900);
}

.content-page h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.content-page p {
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-page ul {
  list-style: disc;
}

.content-page ol {
  list-style: decimal;
}

.content-page li {
  padding: 4px 0;
  color: var(--gray-700);
  line-height: 1.7;
}

.content-page blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  color: var(--gray-700);
  font-style: italic;
}

.content-page img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.content-page th {
  background: var(--gray-50);
  padding: 12px;
  border: 1px solid var(--gray-200);
  font-weight: 600;
  text-align: left;
  font-size: 0.95rem;
}

.content-page td {
  padding: 12px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.content-page table tr:hover td {
  background: var(--gray-50);
}

.content-page .info-box {
  background: var(--primary-lighter);
  border: 1px solid rgba(31, 41, 55, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.content-page .info-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.content-page .warning-box {
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

/* Feature grid for content pages (about, etc.) */
.content-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 40px;
}

.content-page .feature-grid .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  grid-template-columns: unset;
  height: auto;
  padding: 32px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  gap: 0;
}

.content-page .feature-grid .feature-card:hover {
  background: var(--primary-lighter);
  border-color: rgba(31, 41, 55, 0.2);
}

.content-page .feature-grid .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.content-page .feature-grid .feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.content-page .feature-grid .feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

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

/* ============================================================
   31-B. PAGE-CONTENT TYPOGRAPHY (Facility sub-pages alias)
   ============================================================ */
.page-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  color: var(--gray-900);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.page-content p {
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.page-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

.content-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 32px;
}

.feature-list li {
  padding: 10px 0;
  color: var(--gray-700);
  line-height: 1.7;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

.gallery-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* Room type section cards (room-types.html) */
.room-type-section {
  margin-bottom: 32px;
}

.room-type-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.room-type-card.recommended {
  border: 2px solid var(--primary);
  position: relative;
}

.room-type-card.recommended::before {
  content: '추천';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
}

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

.room-type-info {
  padding: 32px;
}

.room-type-badge {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.room-type-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 16px;
}

.room-type-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
}

.room-type-features {
  list-style: none;
  padding: 0;
}

.room-type-features li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.room-type-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}


/* ============================================================
   32. SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* ============================================================
   33. MISCELLANEOUS
   ============================================================ */

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Image lazy load placeholder */
img[loading="lazy"] {
  background: var(--gray-100);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  z-index: var(--z-toast);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-lighter);
  color: var(--primary);
}

.badge-accent {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 32px 0;
}

/* Tab filter bar */
.tab-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Search bar for sub-pages */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  max-width: 480px;
}

.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  outline: none;
}

.search-bar button {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* Info cards grid */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

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

.info-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.info-card h4 {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Notice detail page */
.notice-detail {
  max-width: 900px;
  margin: 0 auto;
}

.notice-detail-header {
  border-bottom: 2px solid var(--gray-800);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.notice-detail-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.notice-detail-meta {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.notice-detail-body {
  line-height: 1.8;
  color: var(--gray-700);
  min-height: 300px;
}

.notice-detail-footer {
  margin-top: 48px;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
}

/* Swiper custom overrides */
.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--gray-700);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--primary);
  color: var(--white);
}

/* Counter animation helper */
.count-up {
  display: inline-block;
}


/* ============================================================
   34. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- Large Desktop (max-width: 1200px) ---- */
@media (max-width: 1200px) {
  :root {
    --section-padding: 72px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero-slide-content h1 {
    font-size: 3rem;
  }

  .achievement-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .achievement-stat-number {
    font-size: 3rem;
  }

  .management-cards {
    gap: 20px;
  }

  .management-card {
    padding: 32px;
  }

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

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

  .footer-inner > div:last-child {
    grid-column: 1 / -1;
  }
}


/* ---- Tablet Landscape / Small Desktop (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
    --container-padding: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-desc {
    font-size: 1rem;
  }

  .hero-slide-content h1 {
    font-size: 2.5rem;
  }

  .hero-slide-content p {
    font-size: 1.05rem;
  }

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

  .quick-link {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .quick-link:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .boards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card:hover {
    transform: translateY(-4px);
  }

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

  .management-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .management-card {
    padding: 28px;
  }

  .management-card-step {
    font-size: 2.5rem;
  }

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

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

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

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

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

  .room-type {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .room-type:nth-child(even) {
    direction: ltr;
  }

  .directions-info {
    grid-template-columns: 1fr;
  }

  .page-layout {
    padding: 60px 0;
  }

  .page-layout > .container,
  .page-layout .page-layout-inner {
    flex-direction: column;
    gap: 32px;
  }

  /* Pattern A: aside.sidebar-nav */
  .sidebar-nav:not(ul) {
    width: 100%;
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-nav-title {
    display: none;
  }

  .sidebar-nav:not(ul) > a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    border-radius: 0;
    flex-shrink: 0;
  }

  .sidebar-nav:not(ul) > a.active {
    border-left: none;
    border-bottom-color: var(--primary);
    background: transparent;
  }

  /* Pattern B: aside.sidebar > ul.sidebar-nav */
  aside.sidebar {
    width: 100%;
    position: static;
  }

  .sidebar-title {
    display: none;
  }

  aside.sidebar ul.sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    -webkit-overflow-scrolling: touch;
  }

  aside.sidebar ul.sidebar-nav li {
    flex-shrink: 0;
  }

  aside.sidebar ul.sidebar-nav li a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    border-radius: 0;
  }

  aside.sidebar ul.sidebar-nav li a.active {
    border-left: none;
    border-bottom-color: var(--primary);
    background: transparent;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .admission-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0;
  }

  .admission-steps::before {
    display: none;
  }

  .admission-step {
    flex: 0 0 calc(50% - 12px);
  }

  .mgmt-step-card {
    padding: 28px;
    gap: 24px;
  }

  .mgmt-step-card-num {
    font-size: 2.5rem;
    min-width: 60px;
  }

  .room-select-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ---- Tablet Portrait (max-width: 768px) ---- */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --header-height: 64px;
  }

  .header-cta {
    display: none !important;
  }

  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }

  .section-title {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-slide-content h1 {
    font-size: 2.8rem;
  }

  .hero-slide-content p {
    font-size: 1.05rem;
  }

  .hero-slide::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  }

  .contact-form-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-controls {
    bottom: 70px;
    gap: 10px;
  }

  .hero-prev,
  .hero-next,
  .hero-play-stop {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.85rem;
  }

  .hero-scroll-down {
    bottom: 20px;
  }

  .quick-links {
    border-radius: var(--radius);
  }

  .quick-link {
    padding: 24px 16px;
  }

  .quick-link-icon {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    overflow: visible;
    border-radius: 0;
  }

  .page-header {
    height: 240px;
    padding-bottom: 32px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .feature-tabs-nav {
    gap: 6px;
    margin-bottom: 32px;
  }

  .feature-tab-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

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

  .feature-card-img {
    aspect-ratio: 16 / 9;
    max-height: 240px;
    height: auto;
  }

  .feature-card-body {
    padding: 24px;
  }

  .achievement-stat-number {
    font-size: 2.5rem;
  }

  .achievement-stat-number .unit {
    font-size: 1.2rem;
  }

  .cta {
    padding: 60px 0;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }

  .footer-social {
    justify-content: center;
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

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

  .smart-form-progress {
    margin-bottom: 32px;
  }

  .smart-form-step-indicator {
    font-size: 0.75rem;
    padding-top: 36px;
  }

  .smart-form-step-indicator::before {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mgmt-step-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .mgmt-step-card-num {
    font-size: 2rem;
    min-width: auto;
  }

  .map-container {
    height: 300px;
  }

  .chatbot-panel {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 72px;
    height: 480px;
  }

  .notice-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .notice-item-num {
    display: none;
  }

  .notice-item-badge {
    margin-right: 0;
  }

  .notice-item-title {
    flex-basis: 100%;
    order: 3;
    white-space: normal;
  }

  .notice-item-date,
  .notice-item-views {
    margin-left: 0;
    font-size: 0.8rem;
  }

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

  .info-cards {
    grid-template-columns: 1fr;
  }

  .room-select-grid {
    grid-template-columns: 1fr;
  }

  .admission-step {
    flex: 0 0 100%;
  }
}


/* ---- Mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
    --container-padding: 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-label {
    font-size: 0.8rem;
    padding: 4px 16px;
  }

  .logo-img {
    height: 28px;
  }

  .hero {
    min-height: 460px;
  }

  .hero-slide-content h1 {
    font-size: 2.4rem;
  }

  .hero-slide-content p {
    font-size: 1rem;
  }

  .hero-slide::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.75) 100%);
  }

  .hero-slide-content .hero-btns,
  .hero-slide-content .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-slide-content .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-event-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
  .hero-event-benefits {
    gap: 10px;
  }
  .hero-event-benefit {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .pricing-chart {
    gap: 24px;
  }
  .pricing-chart-bar {
    width: 90px;
  }
  .pricing-bar-value {
    font-size: 0.8rem;
  }

  .contact-form-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .contact-form-left h2 {
    font-size: 1.6rem;
  }
  .contact-form-benefits {
    align-items: center;
  }
  .contact-form {
    padding: 24px;
  }

  .hero-controls {
    bottom: 60px;
    gap: 8px;
  }

  .hero-prev,
  .hero-next,
  .hero-play-stop {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.8rem;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .hero-pagination .swiper-pagination-bullet-active {
    width: 24px;
  }

  .hero-fraction {
    font-size: 0.8rem;
  }

  .hero-scroll-down {
    bottom: 16px;
    font-size: 0.6rem;
  }

  .review-card {
    min-width: 280px;
    max-width: 320px;
    padding: 22px 24px;
  }
  .review-marquee-track {
    gap: 14px;
  }
  .review-marquee-wrap {
    gap: 14px;
  }

  .quick-links-grid,
  .quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .quick-link {
    padding: 20px 12px;
  }

  .quick-link-title {
    font-size: 0.9rem;
  }

  .quick-link-desc {
    font-size: 0.75rem;
  }

  .page-header {
    height: 200px;
    padding-bottom: 24px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header .breadcrumb {
    font-size: 0.75rem;
  }

  .feature-tabs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .feature-tab-btn {
    flex-shrink: 0;
  }

  .review-card {
    min-width: 280px;
    padding: 24px;
  }

  .board-header {
    padding: 16px;
  }

  .board-list li {
    padding: 12px 16px;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 1.3rem;
  }

  .cta p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .chip {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .chatbot-toggle {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .chatbot-bubble {
    right: 62px;
    font-size: 0.8rem;
    padding: 8px 26px 8px 12px;
  }

  .chatbot-panel {
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    border-radius: var(--radius-lg);
  }

  .chatbot-quick-btn {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .floating-top {
    width: 40px;
    height: 40px;
    bottom: 84px;
  }

  .accordion-question {
    font-size: 0.95rem;
    padding: 16px 0;
  }

  .accordion-answer-inner {
    font-size: 0.9rem;
  }

  .success-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .success-stat-card {
    padding: 20px;
  }

  .success-stat-card-number {
    font-size: 2rem;
  }

  .success-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .success-card {
    padding: 16px;
  }

  .success-card-univ {
    font-size: 0.95rem;
  }

  .success-card-dept {
    font-size: 0.85rem;
  }

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

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

  .content-page h2 {
    font-size: 1.3rem;
    margin-top: 32px;
  }

  .content-page h3 {
    font-size: 1.1rem;
    margin-top: 24px;
  }

  .management-header h2 {
    font-size: 1.8rem;
  }

  .management-card {
    padding: 24px;
  }

  .management-card-step {
    font-size: 2rem;
  }

  .management-card h3 {
    font-size: 1.1rem;
  }

  .direction-card {
    padding: 24px;
  }

  .widget-body {
    padding: 20px;
  }

  .widget-header {
    padding: 20px;
  }

  .smart-form-step-indicator {
    font-size: 0;
  }

  .smart-form-step-indicator .step-label {
    display: none;
  }
}


/* ============================================================
   35. PRINT STYLES
   ============================================================ */
@media print {
  .header,
  .footer,
  .chatbot,
  .floating-top,
  .hero-controls,
  .hero-scroll-down,
  .hamburger,
  .sidebar-nav,
  .cta,
  .lightbox {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
  }

  .hero {
    height: auto;
    min-height: auto;
  }

  .section {
    padding: 24px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}


/* ============================================================
   36. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-down {
    animation: none;
  }
}

/* ============================================================
   BOTTOM FIXED CTA BAR (밀당PT style)
   ============================================================ */
.bottom-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  border-top: 2px solid #22c55e;
}
.bottom-cta-bar.visible {
  transform: translateY(0);
}
.bottom-cta-bar.hidden {
  transform: translateY(100%);
}

.bottom-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bottom-cta-close {
  position: absolute;
  top: 8px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.bottom-cta-close:hover {
  color: #fff;
}

/* Event row */
.bottom-cta-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px;
}

.bottom-cta-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timer-icon {
  font-size: 1.1rem;
}
.timer-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.timer-digits {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 2px;
}

.bottom-cta-badges {
  display: flex;
  gap: 8px;
}
.bottom-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}
.bottom-badge--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
.bottom-badge--orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}

/* Progress bar */
.bottom-cta-progress {
  height: auto;
  padding: 0 16px 4px;
}
@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Form row */
.bottom-cta-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 6px;
}

.bottom-cta-select,
.bottom-cta-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.bottom-cta-select option {
  background: #1e293b;
  color: #fff;
}
.bottom-cta-select:focus,
.bottom-cta-input:focus {
  outline: none;
  border-color: #22c55e;
}
.bottom-cta-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.bottom-cta-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 40px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(34,197,94,0.4);
}
.bottom-cta-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.5);
}
.bottom-cta-submit span {
  font-size: 1.1rem;
  font-weight: 800;
}
.bottom-cta-submit small {
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Privacy row */
.bottom-cta-privacy {
  padding: 4px 0 10px;
  text-align: center;
}
.bottom-cta-privacy label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bottom-cta-privacy input[type="checkbox"] {
  accent-color: #22c55e;
}

/* Body padding when bar is visible */
body.bottom-bar-active {
  padding-bottom: 200px;
}

/* --- Tablet --- */
@media (max-width: 768px) {
  .bottom-cta-event {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 8px 0 6px;
  }
  .bottom-cta-form {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 4px;
  }
  .bottom-cta-select,
  .bottom-cta-input {
    width: 100%;
    padding: 12px 14px;
  }
  .bottom-cta-submit {
    width: 100%;
    padding: 14px;
  }
  body.bottom-bar-active {
    padding-bottom: 260px;
  }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .bottom-cta-inner {
    padding: 0 12px;
  }
  .bottom-cta-timer {
    gap: 6px;
  }
  .timer-label {
    font-size: 0.72rem;
  }
  .timer-digits {
    font-size: 1rem;
    padding: 3px 8px;
  }
  .bottom-cta-badges {
    gap: 6px;
  }
  .bottom-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .bottom-cta-select,
  .bottom-cta-input {
    font-size: 0.88rem;
    padding: 11px 12px;
  }
  .bottom-cta-submit span {
    font-size: 1rem;
  }
  body.bottom-bar-active {
    padding-bottom: 280px;
  }
}

/* Chatbot toggle offset when bar is visible */
body.bottom-bar-active .chatbot-toggle {
  bottom: 160px;
}
@media (max-width: 768px) {
  body.bottom-bar-active .chatbot-toggle {
    bottom: 280px;
  }
}
@media (max-width: 480px) {
  body.bottom-bar-active .chatbot-toggle {
    bottom: 300px;
  }
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-ticker {
  background: var(--accent);
  color: #fff;
  padding: 11px 0;
  position: relative;
  z-index: 11;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.marquee-ticker-track {
  display: inline-flex;
  animation: ticker-scroll 25s linear infinite;
}
.marquee-ticker-item { padding: 0 14px; }
.marquee-ticker-sep { opacity: 0.4; padding: 0 6px; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SPOTS PROGRESS BAR (Bottom CTA)
   ============================================================ */
.spots-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.spots-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e 0%, #f59e0b 55%, #ef4444 100%);
  transition: width 1.5s ease;
}
.spots-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}
.spots-count strong {
  color: #fbbf24;
  font-size: 0.8rem;
}

/* ============================================================
   COUNT BOUNCE
   ============================================================ */
.achievement-stat-number.counted {
  animation: countBounce 0.4s ease;
}
@keyframes countBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ============================================================
   OPTIMAL ENVIRONMENT SECTION
   ============================================================ */
.optimal-env {
  background: var(--gray-50);
}
.optimal-env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.optimal-env-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.optimal-env-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.optimal-env-img {
  overflow: hidden;
  height: 240px;
}
.optimal-env-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.optimal-env-card:hover .optimal-env-img img {
  transform: scale(1.05);
}
.optimal-env-body {
  padding: 1.5rem;
}
.optimal-env-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.optimal-env-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .optimal-env-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .optimal-env-img {
    height: 200px;
  }
}

/* ============================================================
   CHAT PAINPOINT SECTION
   ============================================================ */
.chat-painpoint {
  background: var(--gray-50);
}
.chat-conversation {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 88%;
}
.chat-msg--user { align-self: flex-start; }
.chat-msg--bot { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-msg--user .chat-bubble {
  background: var(--white);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
}
.chat-msg--bot .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot .chat-bubble strong {
  color: #fde68a;
}
@media (max-width: 768px) {
  .chat-conversation { max-width: 100%; }
  .chat-msg { max-width: 92%; }
  .chat-bubble { font-size: 0.88rem; }
}

/* ============================================
   Mobile-responsive schedule & rules tables
   (checklist.html)
   ============================================ */

/* -- Schedule grid: stack columns on mobile -- */
@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .schedule-card {
    padding: 1.25rem !important;
  }

  /* Convert schedule table rows into stacked cards */
  .schedule-table {
    display: block !important;
  }

  .schedule-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .schedule-table tr {
    display: flex;
    flex-direction: column;
    border-bottom: none !important;
    border-radius: 8px;
    padding: 0.75rem 1rem !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }

  .schedule-table tr[style*="background:#f0fdf4"] {
    background: #f0fdf4 !important;
  }

  .schedule-table td {
    padding: 0 !important;
    display: block;
    width: auto !important;
  }

  .schedule-table td:first-child {
    font-size: 0.95rem;
    font-weight: 700 !important;
    color: var(--gray-800, #1f2937);
    margin-bottom: 0.2rem;
    white-space: nowrap;
  }

  .schedule-table td:last-child {
    font-size: 0.85rem;
    color: var(--gray-600, #4b5563);
    font-weight: 400 !important;
  }

  /* -- Rules tables: convert to card layout -- */
  .rules-table-wrap {
    overflow-x: visible !important;
  }

  .rules-table {
    display: block !important;
    border: none !important;
  }

  .rules-table thead {
    display: none !important;
  }

  .rules-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .rules-table tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200, #e5e7eb) !important;
    border-radius: 10px;
    padding: 1rem 1.15rem !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }

  .rules-table tbody tr[style*="background:var(--gray-50)"] {
    background: var(--gray-50, #f9fafb) !important;
  }

  .rules-table tbody tr[style*="background:#fef2f2"] {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
  }

  .rules-table tbody td {
    display: block;
    padding: 0 !important;
    width: auto !important;
  }

  /* Category label */
  .rules-table tbody td:first-child {
    font-size: 0.78rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--gray-500, #6b7280);
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem !important;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
  }

  .rules-table tbody tr[style*="background:#fef2f2"] td:first-child {
    color: #dc2626 !important;
    border-bottom-color: #fca5a5;
  }

  /* Content / description */
  .rules-table tbody td:nth-child(2) {
    font-size: 0.9rem;
    color: var(--gray-800, #1f2937);
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  /* Score / penalty */
  .rules-table tbody td:last-child {
    font-size: 0.82rem;
    font-weight: 600 !important;
    color: var(--gray-600, #4b5563);
    background: var(--gray-100, #f3f4f6);
    padding: 0.4rem 0.7rem !important;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.15rem;
  }

  .rules-table tbody tr[style*="background:#fef2f2"] td:last-child {
    background: #fee2e2 !important;
    color: #dc2626 !important;
  }

  /* Penalty action grid: stack on mobile */
  .penalty-action-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}
