/* =========================================
   Hanam High School — Design Tokens & Theme
   ========================================= */
:root {
  color-scheme: light;
  --bg: #f8f9fc;
  --bg-alt: #f1f4f9;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --border: #e2e8f0;

  /* School Identity Colors: Navy + Magnolia Cream + Forsythia Gold */
  --navy-950: #081326;
  --navy-900: #0f2547;
  --navy-800: #1a3a6e;
  --navy-700: #255095;
  --gold-500: #e5a91a;
  --gold-400: #f4c44e;
  --gold-soft: rgba(229, 169, 26, 0.14);

  --primary: #1a3a6e;
  --primary-hover: #0f2547;
  --accent: #d99b10;

  --shadow-sm: 0 1px 3px rgba(15, 37, 71, 0.06), 0 1px 2px rgba(15, 37, 71, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 37, 71, 0.08), 0 4px 10px -4px rgba(15, 37, 71, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(8, 19, 38, 0.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1220;
  --bg-alt: #0f1a2d;
  --surface: #142238;
  --surface-elevated: #192944;
  --text: #f3f6fb;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --border: #253654;
  --primary: #60a5fa;
  --primary-hover: #93c5fd;
  --accent: #f4c44e;
  --gold-soft: rgba(244, 196, 78, 0.16);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #050b16 0%, #0d1d38 55%, #081326 100%);
}

[data-theme="dark"] .day-tab.active,
[data-theme="dark"] .day-tab:hover,
[data-theme="dark"] .pill.active,
[data-theme="dark"] .pill:hover,
[data-theme="dark"] .notice-tab.active,
[data-theme="dark"] .notice-tab:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

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

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

button,
input {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: 8px;
}

/* =========================================
   Utility Bar & Header
   ========================================= */
.utility-bar {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utility-badge {
  background: rgba(244, 196, 78, 0.16);
  color: var(--gold-400);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(10, 18, 32, 0.88);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-crest {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-ko {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-en {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-list a:hover {
  color: var(--primary);
  background: var(--gold-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-segmented {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  gap: 2px;
}

.theme-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.theme-seg-btn:hover {
  color: var(--text);
}

.theme-seg-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-seg-btn[aria-pressed="true"] {
  background: #2563eb;
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
  border-radius: 10px;
}

.btn-primary {
  background: var(--gold-500);
  color: #0b162a;
  box-shadow: 0 8px 18px rgba(229, 169, 26, 0.28);
}

.btn-primary:hover {
  background: var(--gold-400);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 0 18px;
}

.mobile-nav-list a {
  display: block;
  padding: 10px 8px;
  font-weight: 600;
  border-radius: 8px;
}

.mobile-nav-list a:hover {
  background: var(--bg-alt);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1b36 0%, #163362 55%, #0f2547 100%);
  color: #ffffff;
  padding: 68px 0 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 380px;
  height: 380px;
  background: #3b82f6;
  top: -120px;
  right: 8%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: #e5a91a;
  bottom: -110px;
  left: -40px;
  opacity: 0.22;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 44px;
}

.hero-motto-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fde68a;
  margin-bottom: 20px;
}

.hero-motto-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-title .highlight {
  color: var(--gold-400);
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: #dbeafe;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.campus-showcase-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.showcase-tag {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-400);
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.campus-illustration {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.metric {
  background: rgba(8, 19, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}

.metric span {
  font-size: 0.75rem;
  color: #bfdbfe;
}

/* =========================================
   Quick Links Strip
   ========================================= */
.quick-links {
  margin-top: -38px;
  position: relative;
  z-index: 10;
}

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

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
}

.quick-icon {
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
}

.quick-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
}

.quick-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* =========================================
   Sections & Cards
   ========================================= */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.card-subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}

/* Daily Grid: Meal + Calendar */
.daily-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

.calorie-badge {
  background: var(--gold-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.day-tab {
  padding: 9px 0;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.day-tab.active,
.day-tab:hover {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.meal-list {
  display: grid;
  gap: 10px;
}

.meal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.meal-tag {
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.meal-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.allergy-info {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pill.active,
.pill:hover {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.schedule-date {
  min-width: 68px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
}

.schedule-date strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
}

.schedule-date span {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.schedule-info strong {
  display: block;
  font-size: 0.96rem;
}

.schedule-info small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.schedule-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.schedule-badge.exam {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.schedule-badge.event {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

[data-theme="dark"] .schedule-badge.exam {
  color: #fca5a5;
}

[data-theme="dark"] .schedule-badge.event {
  color: #93c5fd;
}

/* =========================================
   Notices Board
   ========================================= */
.search-inline input {
  width: 260px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.search-inline input:focus {
  outline: 2px solid var(--gold-500);
  border-color: transparent;
}

.notice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.notice-tab {
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.notice-tab.active,
.notice-tab:hover {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

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

.notice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.notice-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.notice-cat {
  background: var(--gold-soft);
  color: var(--accent);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.notice-date {
  color: var(--text-soft);
}

.notice-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
}

.notice-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-more {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

/* =========================================
   About & Timeline
   ========================================= */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.symbols-stack {
  display: grid;
  gap: 16px;
}

.symbol-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.symbol-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}

.symbol-icon.magnolia {
  background: rgba(244, 114, 182, 0.14);
}

.symbol-icon.forsythia {
  background: rgba(250, 204, 21, 0.2);
}

.symbol-icon.crest {
  background: rgba(37, 99, 235, 0.14);
}

.symbol-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.symbol-card h4 {
  margin: 3px 0 6px;
  font-size: 1.05rem;
}

.symbol-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.timeline {
  margin-top: 22px;
  border-left: 2px solid var(--border);
  padding-left: 22px;
  display: grid;
  gap: 22px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--surface);
}

.timeline-year {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* =========================================
   Clubs Grid
   ========================================= */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.club-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.club-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.club-emoji {
  font-size: 1.8rem;
}

.club-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.club-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.club-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.club-schedule {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* =========================================
   Location Section
   ========================================= */
.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.location-address {
  font-size: 1.05rem;
  margin: 14px 0 18px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.transport-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.transport-list dt {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.transport-list dd {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.map-pin-card {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  border: 1px solid var(--border);
}

[data-theme="dark"] .map-pin-card {
  background: linear-gradient(145deg, #162742, #0f1b30);
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 37, 71, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 37, 71, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .map-road {
  background: rgba(148, 163, 184, 0.25);
}

.road-h {
  left: 0;
  right: 0;
  top: 56%;
  height: 22px;
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.road-v {
  top: 0;
  bottom: 0;
  left: 38%;
  width: 18px;
}

.map-marker {
  position: absolute;
  top: 34%;
  left: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.25);
}

.marker-label {
  background: var(--navy-900);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.marker-label strong {
  display: block;
  font-size: 0.85rem;
}

.marker-label small {
  font-size: 0.72rem;
  color: #fde68a;
}

.subway-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: #8b5cf6;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-ko {
  color: #ffffff;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 18px;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
}

/* =========================================
   Modal & Toast
   ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 19, 38, 0.65);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--gold-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.modal-body {
  padding-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.global-search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 14px;
}

.search-results-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
}

.search-result-item:hover {
  border-color: var(--gold-500);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 600;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1024px) {
  .hero-container,
  .daily-grid,
  .about-layout,
  .location-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .utility-text {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

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

  .notice-grid,
  .clubs-grid {
    grid-template-columns: 1fr;
  }

  .search-inline input {
    width: 100%;
  }

  .theme-seg-btn .seg-label,
  .search-btn-label {
    display: none;
  }

  .theme-seg-btn {
    padding: 5px 8px;
  }
}
