/* ==========================================================================
   Kumon Hyogensai 2026 "Fanfare!" - Master Stylesheet
   Design Inspiration: images/banner.png (Navy, Ochre Gold, Slate Blue, Cream)
   ========================================================================== */

:root {
  /* Color Palette */
  --navy-dark: #14273E;
  --navy-primary: #1E3652;
  --navy-light: #2A486C;
  --gold-primary: #C49F5A;
  --gold-light: #DFBF7C;
  --gold-dark: #A27F3B;
  --slate-blue: #9BB0C1;
  --slate-light: #EBF0F4;
  --cream-bg: #FAF7F2;
  --cream-card: #FFFFFF;
  --text-dark: #1C2836;
  --text-muted: #5C6B7A;
  --text-light: #F4F6F8;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(30, 54, 82, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 54, 82, 0.1);
  --shadow-lg: 0 16px 40px rgba(30, 54, 82, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(196, 159, 90, 0.25);

  /* Typography */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Shippori Mincho', 'Georgia', serif;
  --font-en: 'Cormorant Garamond', 'Times New Roman', serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-gold {
  color: var(--gold-primary);
}

.hidden {
  display: none !important;
}

/* Background Animated Music Notes */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-note {
  position: absolute;
  color: rgba(196, 159, 90, 0.15);
  font-family: var(--font-en);
  user-select: none;
  animation: floatNote 18s infinite ease-in-out;
}

.note-1 {
  top: 15%;
  left: 5%;
  font-size: 3rem;
  animation-delay: 0s;
}

.note-2 {
  top: 40%;
  right: 8%;
  font-size: 4rem;
  animation-delay: -4s;
}

.note-3 {
  top: 70%;
  left: 8%;
  font-size: 3.5rem;
  animation-delay: -8s;
}

.note-4 {
  top: 85%;
  right: 12%;
  font-size: 2.5rem;
  animation-delay: -12s;
}

.note-5 {
  top: 30%;
  left: 88%;
  font-size: 5rem;
  animation-delay: -2s;
}

@keyframes floatNote {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.12;
  }

  50% {
    transform: translateY(-30px) rotate(12deg);
    opacity: 0.3;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 159, 90, 0.2);
  z-index: 1000;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  height: 66px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 10px rgba(30, 54, 82, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1;
  letter-spacing: 0.5px;
}

.logo-ja {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-primary);
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
  background: rgba(196, 159, 90, 0.1);
}

.nav-fav {
  background: var(--navy-primary);
  color: var(--gold-light);
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
}

.nav-fav:hover {
  background: var(--navy-dark);
  color: #FFFFFF;
}

.fav-badge {
  background: var(--gold-primary);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Mobile Nav Toggle */
.nav-controls {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 54, 82, 0.08);
  color: var(--navy-primary);
  font-size: 1.1rem;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--navy-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: var(--cream-card);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: right 0.35s ease;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-light);
}

.drawer-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.drawer-close {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
}

.drawer-link:hover {
  background: rgba(196, 159, 90, 0.1);
  color: var(--gold-dark);
}

/* ==========================================================================
   HERO SECTION (Banner Inspired Design)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  padding-top: 130px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #FBF8F3 0%, var(--cream-bg) 100%);
  overflow: hidden;
}

.hero-bg-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.circle-graphic {
  position: absolute;
  border-radius: 50%;
}

.circle-1 {
  width: 450px;
  height: 450px;
  bottom: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(30, 54, 82, 0.08) 0%, rgba(30, 54, 82, 0) 70%);
}

.circle-2 {
  width: 320px;
  height: 320px;
  top: 10%;
  left: -80px;
  background: radial-gradient(circle, rgba(196, 159, 90, 0.15) 0%, rgba(196, 159, 90, 0) 70%);
}

.circle-3 {
  width: 220px;
  height: 220px;
  bottom: 20%;
  left: 20%;
  border: 1px solid rgba(155, 176, 193, 0.25);
}

.staff-lines {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.12;
  transform: rotate(-3deg);
}

.staff-lines div {
  width: 100%;
  height: 1px;
  background-color: var(--navy-primary);
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(196, 159, 90, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: 30px;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Official Festival Banner Styling */
.hero-official-banner {
  max-width: 820px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(30, 54, 82, 0.15);
  border: 3px solid var(--gold-primary);
  background: #FAF7F2;
  transition: var(--transition-normal);
}

.hero-official-banner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px rgba(30, 54, 82, 0.22);
}

.official-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.hero-sub-school {
  font-family: var(--font-en);
  letter-spacing: 4px;
  font-size: 0.95rem;
  color: var(--slate-blue);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-main-en {
  font-family: var(--font-en);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1;
  text-shadow: 2px 4px 12px rgba(30, 54, 82, 0.1);
  background: linear-gradient(135deg, var(--navy-primary) 30%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-ja-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-dark);
  letter-spacing: 3px;
  margin-top: 4px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* Countdown Card */
.countdown-card {
  background: var(--cream-card);
  padding: 20px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196, 159, 90, 0.2);
  display: inline-block;
  margin-bottom: 36px;
}

.countdown-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
}

.countdown-val {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.7rem;
  color: var(--slate-blue);
  text-transform: uppercase;
  font-weight: 600;
}

.countdown-colon {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-top: -12px;
}

/* Hero Actions Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--navy-light), var(--navy-primary));
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--navy-dark);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
}

.btn-outline {
  background: var(--cream-card);
  color: var(--navy-primary);
  border: 1px solid var(--slate-blue);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: rgba(196, 159, 90, 0.05);
}

.btn-tour {
  background: linear-gradient(135deg, #1E3652, #2B4C7E);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.btn-tour:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #2B4C7E, #1E3652);
  color: #FFFFFF;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(155, 176, 193, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--slate-blue);
  opacity: 0.4;
}

/* Greeting Section */
.greeting-section {
  padding: 60px 0 30px;
  background: var(--cream-bg);
}

.greeting-card {
  background: var(--cream-card);
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196, 159, 90, 0.25);
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  transition: var(--transition-normal);
}

.greeting-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.greeting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), var(--navy-primary));
}

.greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.greeting-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy-primary);
  margin-bottom: 24px;
}

.greeting-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.greeting-lead {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.greeting-body p {
  margin-bottom: 16px;
}

.greeting-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed rgba(196, 159, 90, 0.3);
  display: flex;
  justify-content: flex-end;
}

.greeting-author {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
}

/* Greeting Dedicated Page Styles */
.greeting-page-hero {
  padding-top: 40px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FBF8F3 0%, var(--cream-bg) 100%);
}

.greeting-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.greeting-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
  background: var(--cream-card);
  color: var(--navy-primary);
  border: 1px solid rgba(196, 159, 90, 0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.greeting-nav-btn:hover,
.greeting-nav-btn.active {
  background: var(--navy-primary);
  color: var(--gold-light);
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-md);
}

.greeting-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.greeting-full-card {
  background: var(--cream-card);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196, 159, 90, 0.25);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  scroll-margin-top: 120px;
}

.greeting-full-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.greeting-card-side-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--navy-primary), var(--navy-dark));
}

.greeting-card-side-accent.accent-gold {
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
}

.greeting-card-inner {
  padding: 44px 48px;
}

.greeting-card-header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(155, 176, 193, 0.25);
  position: relative;
}

.author-avatar-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(30, 54, 82, 0.15);
  flex-shrink: 0;
}

.author-avatar-badge.avatar-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--navy-dark);
}

.author-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-role-tag {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.author-role-tag.tag-gold {
  color: var(--gold-dark);
}

.author-display-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy-primary);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.author-title-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.quote-watermark {
  position: absolute;
  right: 0;
  top: -10px;
  font-size: 4rem;
  color: rgba(196, 159, 90, 0.12);
  pointer-events: none;
}

.greeting-content-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-dark);
}

.greeting-intro-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 20px;
}

.greeting-content-body p {
  margin-bottom: 20px;
  text-indent: 1em;
}

.greeting-highlight-p {
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(196, 159, 90, 0.08);
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--gold-primary);
  text-indent: 0 !important;
}

.greeting-card-signature {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.signature-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
  margin-bottom: 12px;
}

.signature-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.sig-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sig-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-primary);
}

@media (max-width: 768px) {
  .greeting-card-inner {
    padding: 28px 24px;
  }

  .author-display-name {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 2px;
  }

  .author-avatar-badge {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   CATEGORY BANNERS & SECTIONS
   ========================================================================== */

.section {
  padding: 70px 0;
}

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

.section-header.center {
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--navy-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Grid */
.category-banners {
  padding-top: 10px;
  padding-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--cream-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(196, 159, 90, 0.15);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EE 100%);
}

.cat-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 54, 82, 0.06);
  color: var(--navy-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.cat-card:hover .cat-icon {
  background: var(--navy-primary);
  color: var(--gold-primary);
}

.cat-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROGRAMS & BOOTHS SECTION
   ========================================================================== */

.programs-section {
  background: #F5F1E8;
  border-top: 1px solid rgba(196, 159, 90, 0.2);
  border-bottom: 1px solid rgba(196, 159, 90, 0.2);
}

.controls-card {
  background: var(--cream-card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-blue);
  font-size: 1.1rem;
}

.search-box input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--slate-light);
  border-radius: 30px;
  background: var(--cream-bg);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--navy-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(30, 54, 82, 0.08);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-blue);
  font-size: 1.1rem;
  display: none;
}

.search-clear-btn.active {
  display: block;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-primary);
  min-width: 60px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  background: var(--slate-light);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.pill:hover {
  background: rgba(196, 159, 90, 0.15);
  color: var(--gold-dark);
}

.pill.active {
  background: var(--navy-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(30, 54, 82, 0.2);
}

.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-light);
  font-size: 0.9rem;
}

.results-count strong {
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.reset-filter-btn {
  font-size: 0.85rem;
  color: var(--slate-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-filter-btn:hover {
  color: var(--navy-primary);
}

/* Programs Grid & Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--cream-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196, 159, 90, 0.12);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--navy-dark);
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 12px;
  color: #FFFFFF;
}

.venue-badge {
  background: rgba(30, 54, 82, 0.85);
  backdrop-filter: blur(4px);
}

.type-badge {
  background: rgba(196, 159, 90, 0.9);
  backdrop-filter: blur(4px);
  color: var(--navy-dark);
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--slate-blue);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition-fast);
}

.card-fav-btn:hover,
.card-fav-btn.active {
  background: #FFFFFF;
  color: var(--gold-primary);
  transform: scale(1.1);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--slate-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-place {
  display: flex;
  align-items: center;
  gap: 4px;

}

.card-more-link {
  font-weight: 700;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--cream-card);
  border-radius: 16px;
  margin-top: 20px;
}

.empty-icon {
  font-size: 3.5rem;
  color: var(--slate-blue);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.4rem;
  color: var(--navy-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   TIMETABLE SECTION
   ========================================================================== */

.stage-tabs-wrapper {
  margin-bottom: 24px;
}

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

.stage-tab {
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
  background: var(--cream-card);
  color: var(--navy-primary);
  border: 1px solid var(--slate-blue);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-tab:hover {
  background: rgba(196, 159, 90, 0.15);
  border-color: var(--gold-primary);
}

.stage-tab.active {
  background: var(--navy-primary);
  color: var(--gold-light);
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}

.timetable-card {
  background: var(--cream-card);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196, 159, 90, 0.2);
  overflow: hidden;
}

.timetable-header {
  padding: 24px 30px;
  background: var(--navy-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.stage-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.stage-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 10px;
}

.day-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 20px;
}

.day-btn {
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.day-btn.active {
  background: var(--gold-primary);
  color: var(--navy-dark);
}

.timeline-list {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--cream-bg);
  border-left: 4px solid var(--gold-primary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.timeline-item:hover {
  background: #F4EFE6;
  transform: translateX(4px);
}

.timeline-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MAP & ACCESS SECTION
   ========================================================================== */

.map-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.map-visual-card {
  background: var(--cream-card);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196, 159, 90, 0.2);
}

.map-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.map-visual-header h3 {
  font-size: 1.3rem;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.map-visual-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Aerial photo school map container */
.school-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(196, 159, 90, 0.3);
  background: var(--navy-dark);
}

.school-map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.4s ease;
}

/* Hotspot Pins overlaid on aerial map */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.pin-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 54, 82, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-light);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pin-marker::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  animation: pinPulse 2s infinite;
  pointer-events: none;
}

@keyframes pinPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.map-pin:hover {
  z-index: 30;
}

.map-pin:hover .pin-marker {
  transform: scale(1.25);
  background: var(--gold-primary);
  color: var(--navy-dark);
  border-color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Pin Tooltips */
.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 27, 42, 0.94);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--gold-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 40;
}

.pin-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 27, 42, 0.94) transparent transparent transparent;
}

.pin-tooltip strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.pin-tooltip span {
  font-size: 0.72rem;
  color: var(--slate-light);
}

.map-pin:hover .pin-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip positioned downwards for top pins like Hall to prevent top cropping */
.pin-hall .pin-tooltip,
.pin-tooltip.tooltip-bottom {
  top: calc(100% + 10px);
  bottom: auto;
  transform: translateX(-50%) translateY(-6px);
}

.pin-hall:hover .pin-tooltip,
.map-pin.tooltip-bottom:hover .pin-tooltip {
  transform: translateX(-50%) translateY(0);
}

.pin-hall .pin-tooltip::after,
.pin-tooltip.tooltip-bottom::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent rgba(15, 27, 42, 0.94) transparent;
}

/* Distinct Translucent Venue Pin Color Variations */
.pin-koudou .pin-marker {
  background: rgba(139, 38, 62, 0.72);
  border-color: #F4C430;
}

.pin-scc .pin-marker {
  background: rgba(30, 54, 82, 0.72);
  border-color: #C49F5A;
}

.pin-hall .pin-marker {
  background: rgba(75, 46, 131, 0.72);
  border-color: #E2B714;
}

.pin-nakaniwa .pin-marker {
  background: rgba(46, 111, 64, 0.72);
  border-color: #A3D9A5;
}

.pin-sonota .pin-marker {
  background: rgba(217, 107, 39, 0.72);
  border-color: #FFD166;
}

/* Quick Venue Chips Bar */
.map-chips-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.map-chip-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  background: var(--cream-bg);
  color: var(--navy-primary);
  border: 1px solid var(--slate-blue);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-chip-btn:hover {
  background: var(--navy-primary);
  color: var(--gold-light);
  border-color: var(--navy-primary);
}

.access-info-card {
  background: var(--navy-primary);
  color: #FFFFFF;
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.access-info-card h3 {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.access-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access-list li {
  display: flex;
  gap: 16px;
}

.access-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.access-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.access-list p {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.5;
}

/* ==========================================================================
   BUS TIMETABLE WIDGET
   ========================================================================== */

.bus-timetable-card {
  background: var(--cream-card);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196, 159, 90, 0.2);
  overflow: hidden;
  margin-top: 28px;
  grid-column: 1 / -1;
}

.bus-card-header {
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bus-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bus-badge-summary {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(196, 159, 90, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(196, 159, 90, 0.4);
  padding: 4px 12px;
  border-radius: 14px;
}

.bus-controls-bar {
  padding: 16px 28px;
  background: var(--cream-bg);
  border-bottom: 1px solid rgba(196, 159, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.bus-tabs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bus-tab {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  background: var(--cream-card);
  color: var(--navy-primary);
  border: 1px solid var(--slate-blue);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bus-tab:hover {
  background: rgba(196, 159, 90, 0.15);
  border-color: var(--gold-primary);
}

.bus-tab.active {
  background: var(--navy-primary);
  color: var(--gold-light);
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}

.bus-count-info {
  font-size: 0.88rem;
  color: var(--navy-primary);
  font-weight: 600;
}

.bus-count-info strong {
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.bus-hourly-list {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.bus-hour-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FAF7F2;
  border: 1px solid rgba(196, 159, 90, 0.15);
  transition: var(--transition-fast);
}

.bus-hour-row:hover {
  background: #F4EFE6;
  border-color: rgba(196, 159, 90, 0.3);
}

.bus-hour-label {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bus-minutes-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bus-min-badge {
  padding: 6px 14px;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--navy-dark);
  border: 1px solid rgba(196, 159, 90, 0.25);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bus-min-badge:hover {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}

/* ==========================================================================
   FAVORITES SECTION
   ========================================================================== */

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

.fav-empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--cream-card);
  border-radius: 16px;
  border: 1px dashed var(--slate-blue);
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 27, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--cream-card);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--navy-dark);
}

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

.modal-badge-group {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  gap: 8px;
}

.modal-body {
  padding: 28px;
}

.modal-sub {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-place-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--slate-light);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--navy-primary);
  margin-bottom: 20px;
}

.modal-desc-box {
  background: var(--cream-bg);
  padding: 20px;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-fav {
  background: var(--navy-primary);
  color: var(--gold-light);
  flex: 1;
}

.btn-fav.active {
  background: var(--gold-primary);
  color: var(--navy-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 3000;
  transition: var(--transition-fast);
}

.toast-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
}

/* ==========================================================================
   FOOTER & BACK TO TOP
   ========================================================================== */

.footer {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 50px 0 30px;
  border-top: 3px solid var(--gold-primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--slate-blue);
  margin-top: 4px;
}

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

.footer-nav a {
  color: var(--slate-light);
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--gold-primary);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

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

.back-to-top:hover {
  background: var(--gold-primary);
  color: var(--navy-dark);
  transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .hero-main-en {
    font-size: 4.2rem;
  }

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

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

  .nav-controls {
    display: flex;
  }

  /* Mobile Hero Section Optimization */
  .hero {
    min-height: auto;
    padding-top: 95px;
    padding-bottom: 40px;
  }

  .hero-container {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 14px;
    margin-bottom: 16px;
  }

  .hero-sub-school {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    line-height: 1.4;
    word-break: break-word;
  }

  .hero-ja-title {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .hero-description br {
    display: none;
  }

  .countdown-card {
    width: 100%;
    max-width: 350px;
    padding: 14px 16px;
    margin-bottom: 28px;
    box-sizing: border-box;
  }

  .countdown-grid {
    gap: 6px;
  }

  .countdown-item {
    min-width: 42px;
  }

  .countdown-val {
    font-size: 1.5rem;
  }

  .countdown-colon {
    font-size: 1.3rem;
    margin-top: -8px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 36px;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 12px;
    padding-top: 20px;
    width: 100%;
    max-width: 100%;
    justify-content: space-around;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.72rem;
    text-align: center;
  }

  .stat-divider {
    height: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Bus Timetable Mobile Centering & Layout */
  .bus-card-header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 18px 20px;
    gap: 10px;
  }

  .bus-card-header h3 {
    justify-content: center;
    text-align: center;
  }

  .bus-badge-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bus-controls-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 20px;
    gap: 12px;
  }

  .bus-tabs-group {
    width: 100%;
    justify-content: center;
  }

  .bus-tab {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .bus-count-info {
    text-align: center;
    width: 100%;
    margin-top: 2px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .hero-ja-title {
    font-size: 1.2rem;
  }

  .countdown-card {
    padding: 12px 10px;
  }

  .countdown-item {
    min-width: 36px;
  }

  .countdown-val {
    font-size: 1.35rem;
  }

  .countdown-lbl {
    font-size: 0.62rem;
  }

  .hero-stats {
    gap: 6px;
  }

  .stat-num {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .bus-hourly-list {
    padding: 14px 10px;
  }

  .bus-hour-row {
    padding: 10px 12px;
    gap: 12px;
    grid-template-columns: 74px 1fr;
  }

  .bus-hour-label {
    font-size: 1.1rem;
  }

  .bus-min-badge {
    padding: 5px 11px;
    font-size: 0.98rem;
  }
}