/* ================================
   창호 (Changho) Header & Footer Design System
   LearnToday - 2026
   ================================ */

:root {
  /* Header Variables */
  --header-height: 140px;

  /* Changho Colors (fallbacks if changho-patterns.css not loaded) */
  --changho-paper: #F8FAFC;
  --changho-wood: #475569;
  --changho-wood-dark: #334155;
  --changho-wood-light: #94A3B8;
  --changho-accent: #1a365d;
  --changho-accent-dark: #0f2442;
  --changho-dark: #1E293B;
  --changho-dark-light: #334155;
  --changho-paper-dark: #F1F5F9;
  --changho-ease: cubic-bezier(0.25, 1, 0.5, 1);

  /* Spacing */
  --nav-gap: 8px;
}

/* ================================
   Main Header Structure - Changho
   ================================ */

.header {
  --changho-wood: #475569;
  --changho-wood-dark: #334155;
  --changho-wood-light: #94A3B8;
  --changho-paper: #F8FAFC;
  --changho-accent: #1a365d;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1400px;
  z-index: 9999;
  background: var(--changho-paper, #F8FAFC);
  border: 2px solid var(--changho-wood, #475569);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 var(--changho-wood-light, #94A3B8),
    inset 0 -1px 0 var(--changho-wood-dark, #334155),
    0 4px 16px rgba(139, 115, 85, 0.12);
  padding: 0 32px;
  transition: border-width 0.3s ease, box-shadow 0.3s ease;
}

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

/* ================================
   Logo Section
   ================================ */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  height: 5rem;
  flex-shrink: 0;
}

.logo img {
  height: 15rem;
  width: auto;
  max-width: 900px;
  object-fit: cover;
  object-position: center;
}

/* ================================
   Navigation Section
   ================================ */

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu > a {
  padding: 10px 14px;
  color: var(--changho-dark, #2C3E50);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.4s var(--changho-ease);
}

.nav-menu > a:hover {
  background: rgba(184, 149, 106, 0.15);
  color: var(--changho-wood-dark, #334155);
}

/* ================================
   Dropdown Menu
   ================================ */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--changho-dark, #2C3E50);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s var(--changho-ease);
  font-family: inherit;
}

.dropdown-toggle:hover {
  background: rgba(184, 149, 106, 0.15);
  color: var(--changho-wood-dark, #334155);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border: 2px solid var(--changho-wood, #475569);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
  padding: 8px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

/* Hover or JS .show class to open dropdown */
.dropdown:hover .dropdown-content,
.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Focus styles (keyboard accessibility) */
.dropdown-toggle:focus {
  outline: 2px solid var(--changho-accent, #1a365d);
  outline-offset: 2px;
}

.dropdown-content:not(.partner-mega) a:focus {
  background: var(--changho-wood, #475569);
  color: white;
  outline: none;
}

.dropdown-content:not(.partner-mega) a {
  display: block;
  padding: 12px 16px;
  color: var(--changho-dark, #2C3E50);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-content:not(.partner-mega) a:hover {
  background: var(--changho-wood, #475569);
  color: white;
}

/* ================================
   Header Actions
   ================================ */

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

.lang-toggle {
  padding: 8px 14px;
  background: var(--changho-accent, #1a365d);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.4s var(--changho-ease);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.lang-toggle:hover {
  transform: translateY(-2px);
  background: var(--changho-accent-dark, #0f2442);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* ================================
   Store Button (에듀테크 구매)
   ================================ */

.store-btn {
  padding: 8px 14px;
  background: transparent;
  color: var(--changho-wood, #475569);
  text-decoration: none;
  border: 1px solid var(--changho-wood, #475569);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.4s var(--changho-ease);
  white-space: nowrap;
}

.store-btn:hover {
  background: var(--changho-wood, #475569);
  color: white;
  transform: translateY(-2px);
}

/* Mobile store button */
.mobile-store-btn {
  justify-content: center;
  margin-top: 12px;
  width: 100%;
}

/* ================================
   Purchase Button (도입 문의)
   ================================ */

.purchase-btn {
  padding: 8px 14px;
  background: var(--changho-accent, #1a365d);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.4s var(--changho-ease);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
  white-space: nowrap;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  background: var(--changho-accent-dark, #0f2442);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* ================================
   Mobile Toggle Button
   ================================ */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(184, 149, 106, 0.15);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--changho-accent, #1a365d);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ================================
   Mobile Menu Content
   ================================ */

.mobile-menu-content {
  --changho-wood: #475569;
  --changho-wood-dark: #334155;
  --changho-wood-light: #94A3B8;
  --changho-accent: #1a365d;
  display: none;
}

.mobile-menu-content.active {
  display: block;
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
  border: 2px solid var(--changho-wood, #475569);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
  padding: 20px;
  z-index: 9998;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-menu > a {
  padding: 14px 20px;
  color: var(--changho-dark, #2C3E50);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-nav-menu > a:hover {
  background: rgba(184, 149, 106, 0.15);
  color: var(--changho-wood-dark, #334155);
}

/* Mobile dropdown */
.mobile-dropdown-toggle {
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--changho-dark-light, #34495E);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-dropdown-toggle::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: #94A3B8;
}

.mobile-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.mobile-dropdown-toggle:hover {
  background: rgba(71, 85, 105, 0.08);
}

.mobile-dropdown-content {
  display: none;
  padding-left: 16px;
  margin-top: 8px;
}

.mobile-dropdown-content.active {
  display: block;
}

.mobile-dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 4px;
}

.mobile-dropdown-content a:hover {
  background: rgba(26, 54, 93, 0.1);
  color: var(--changho-accent, #1a365d);
}

/* ================================
   Responsive Design
   ================================ */

/* Breakpoint: 1024px - reduce sizes, prepare for mobile */
@media (max-width: 1024px) {
  .header {
    padding: 0 20px;
  }

  .nav-menu {
    gap: 4px;
  }

  .nav-menu > a,
  .dropdown-toggle {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 8px;
  }

  .store-btn,
  .purchase-btn,
  .lang-toggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

/* Breakpoint: 960px - switch to mobile hamburger */
@media (max-width: 960px) {
  .header {
    width: calc(100% - 32px);
    top: 12px;
    padding: 10px 16px;
  }

  .logo {
    height: 2.5rem;
  }

  .logo img {
    height: 7.5rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .purchase-btn {
    display: none;
  }

  .store-btn:not(.mobile-store-btn) {
    display: none;
  }
}

/* ================================
   Body Padding for Fixed Header
   ================================ */

body {
  padding-top: var(--header-height);
}

/* ================================
   Accessibility
   ================================ */

.nav-menu a:focus,
.dropdown-toggle:focus,
.lang-toggle:focus,
.mobile-toggle:focus {
  outline: 2px solid var(--changho-accent, #1a365d);
  outline-offset: 2px;
}

/* ================================
   Performance
   ================================ */

.logo,
.nav-menu a,
.lang-toggle,
.dropdown-content a {
  -webkit-tap-highlight-color: transparent;
}

/* ================================
   Legacy Support - unified-header
   (For backward compatibility)
   ================================ */

.unified-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1400px;
  z-index: 9999;
  background: var(--changho-paper, #F8FAFC);
  border: 2px solid var(--changho-wood, #475569);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  padding: 0 32px;
}

.unified-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  padding: 0;
  height: auto;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  height: 5rem;
  flex-shrink: 0;
}

.logo-image {
  height: 15rem;
  width: auto;
  max-width: 900px;
  object-fit: cover;
  object-position: center;
}

.logo-text {
  display: none;
}

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

.header-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: auto;
  white-space: nowrap;
}

.header-nav .nav-menu a {
  padding: 10px 14px;
  color: var(--changho-dark, #2C3E50);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.4s var(--changho-ease);
}

.header-nav .nav-menu a:hover {
  background: rgba(184, 149, 106, 0.15);
  color: var(--changho-wood-dark, #334155);
}

/* Legacy dropdown support */
.edutech-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-trigger {
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--changho-dark, #2C3E50);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s var(--changho-ease);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-trigger:hover {
  background: rgba(184, 149, 106, 0.15);
  color: var(--changho-wood-dark, #334155);
}

/* ================================
   Partner Mega Menu – v2 (logo-based)
   ================================ */

/* --- Canva Featured Banner --- */
.partner-mega-featured {
  grid-column: 1 / -1;
  padding: 0 4px 8px;
}

.partner-mega-featured a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #5b21b6 0%, #1e40af 50%, #0e7490 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.partner-mega-featured a::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.partner-mega-featured a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

.partner-mega-featured .pm-f-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.partner-mega-featured .pm-f-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.partner-mega-featured .pm-f-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.partner-mega-featured .pm-f-desc {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.partner-mega-featured .pm-f-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.25);
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* --- Desktop 3-col grid --- */
.partner-mega {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  min-width: 620px;
  padding: 6px;
}

.partner-mega-col {
  padding: 6px 10px;
}

.partner-mega-col:not(:last-child) {
  border-right: 1px solid #e2e8f0;
}

.partner-mega-label {
  display: block;
  padding: 5px 8px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  border-radius: 6px;
}

.partner-mega-label--exclusive {
  color: #92400e;
  background: rgba(184, 149, 106, 0.12);
}

.partner-mega-label--official {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
}

.partner-mega-label--reseller {
  color: #475569;
  background: rgba(100, 116, 139, 0.07);
}

/* --- Partner link with logo --- */
.partner-mega-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #1e293b;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.partner-mega-col a:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateX(3px);
}

.partner-mega-col a .pm-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-mega-col a .pm-emoji {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* --- Mobile: Featured Banner --- */
.mobile-partner-mega .pm-mobile-featured {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.pm-mobile-featured a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #5b21b6 0%, #1e40af 50%, #0e7490 100%);
  border-radius: 10px;
  text-decoration: none;
  color: white !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pm-mobile-featured a:hover {
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.35);
}

.pm-mobile-featured .pm-f-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
  background: white;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pm-mobile-featured .pm-f-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.25);
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* --- Mobile grid --- */
.mobile-partner-mega {
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  padding: 4px 0;
}

.mobile-dropdown-content.mobile-partner-mega.active {
  display: grid;
}

.mobile-partner-mega .partner-mega-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.65rem;
}

.mobile-partner-mega .partner-mega-label:first-child {
  margin-top: 0;
}

.mobile-partner-mega a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.15s;
}

.mobile-partner-mega a:hover {
  background: rgba(26, 54, 93, 0.06);
  color: #1e293b;
}

.mobile-partner-mega a .pm-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-partner-mega a .pm-emoji {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* --- Tablet breakpoint --- */
@media (max-width: 1024px) {
  .partner-mega {
    min-width: 400px;
    grid-template-columns: 1fr 1fr;
  }
  .partner-mega-col:nth-child(3) {
    border-right: none;
  }
  .partner-mega-col:nth-child(4) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
  }
  .partner-mega-col:nth-child(4) a {
    display: inline-flex;
    padding: 6px 10px;
  }
}

/* --- Small mobile --- */
@media (max-width: 480px) {
  .mobile-partner-mega {
    grid-template-columns: 1fr 1fr;
    gap: 2px 4px;
  }
  .mobile-partner-mega a {
    padding: 7px 8px;
    font-size: 0.82rem;
  }
  .mobile-partner-mega a .pm-logo {
    width: 18px;
    height: 18px;
  }
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border: 2px solid var(--changho-wood, #475569);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
  padding: 16px;
  min-width: 650px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.mega-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--changho-dark, #2C3E50);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
}

.dropdown-item:hover {
  background: var(--changho-wood, #475569);
  color: white;
}

.dropdown-item:hover .dropdown-item-content h4,
.dropdown-item:hover .dropdown-item-content p {
  color: white;
}

.dropdown-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dropdown-item-content {
  flex: 1;
  min-width: 0;
}

.dropdown-item-content h4 {
  margin: 0 0 2px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  transition: color 0.2s ease;
}

.dropdown-item-content p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
  transition: color 0.2s ease;
}

/* Language toggle in header-contact */
.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  padding: 8px 14px;
  background: var(--changho-accent, #1a365d);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.4s var(--changho-ease);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
  width: auto;
  height: auto;
}

.language-toggle:hover {
  transform: translateY(-2px);
  background: var(--changho-accent-dark, #0f2442);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* Legacy mobile toggle */
.unified-header .mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(184, 149, 106, 0.15);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  width: auto;
  height: auto;
}

.unified-header .mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--changho-accent, #1a365d);
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .unified-header {
    padding: 0 20px;
  }

  .mega-dropdown {
    min-width: 500px;
  }

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

@media (max-width: 960px) {
  .unified-header {
    width: calc(100% - 32px);
    top: 12px;
    padding: 10px 16px;
  }

  .header-logo {
    height: 2.5rem;
  }

  .logo-image {
    height: 7.5rem;
  }

  .header-nav {
    display: none;
  }

  .unified-header .mobile-toggle {
    display: flex;
  }
}

/* ================================
   Footer Section - Changho Style
   ================================ */

.footer-section {
  --changho-wood: #475569;
  --changho-wood-dark: #334155;
  --changho-wood-light: #94A3B8;
  --changho-paper-dark: #F1F5F9;
  --changho-accent: #1a365d;
  padding: 80px 0 40px;
  background: var(--changho-paper-dark, #F1F5F9);
  position: relative;
  border-top: 4px solid var(--changho-wood, #475569);
  box-shadow: inset 0 2px 0 var(--changho-wood-light, #94A3B8);
}

.footer-section::before {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--changho-wood, #475569);
  border-radius: 6px;
  overflow: hidden;
}

.footer-card {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-right: 2px solid var(--changho-wood, #475569);
  border-radius: 0;
  padding: 36px;
  box-shadow: none;
  transition: all 0.4s var(--changho-ease);
  position: relative;
  overflow: hidden;
}
.footer-card:last-child {
  border-right: none;
}

.footer-card::before {
  display: none;
}

.footer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.12);
}

.footer-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--changho-dark, #2C3E50);
  margin: 0 0 12px 0;
}

.footer-card .tagline {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 28px 0;
}

.footer-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--changho-dark, #2C3E50);
  margin: 0 0 12px 0;
}

.footer-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--changho-wood, #475569);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--changho-dark, #2C3E50);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--changho-wood, #475569);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.form-group input {
  padding: 12px 16px;
  background: rgba(26, 54, 93, 0.05);
  border: 1px solid rgba(26, 54, 93, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
  transition: all 0.2s;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus {
  border-color: var(--changho-accent, #1a365d);
  background: rgba(26, 54, 93, 0.08);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.newsletter-btn {
  padding: 14px 28px;
  background: var(--changho-accent, #1a365d);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s var(--changho-ease);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
}

/* Company Info */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--changho-accent, #1a365d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  margin: 0;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(26, 54, 93, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--changho-accent, #1a365d);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--changho-accent-dark, #0f2442);
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-card {
    padding: 28px;
    border-right: none;
    border-bottom: 2px solid var(--changho-wood, #475569);
  }
  .footer-card:last-child { border-bottom: none; }

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

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ================================
   Legacy Footer Support
   (footer-bento, footer-brand)
   ================================ */

.footer-bento {
  padding: 80px 0 40px;
  background: var(--changho-paper-dark, #F1F5F9);
}

.footer-brand h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--changho-dark, #2C3E50);
  margin: 0 0 12px 0;
}

/* ================================
   Announcement Bar
   ================================ */

.announcement-bar {
  background: var(--changho-wood, #475569);
  color: white;
  padding: 10px 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  display: none;
  animation: slideDown 0.5s ease-out forwards;
}

.announcement-bar.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.announcement-content {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-right: 30px;
  line-height: 1.4;
}

.announcement-content a {
  color: white;
  text-decoration: underline;
  margin-left: 5px;
}

.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Adjust header position when announcement is present */
body.has-announcement .header {
  top: calc(16px + 44px);
  transition: top 0.3s ease;
}

/* ================================
   Announcement Popup Modal
   ================================ */

.notice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10002;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.notice-modal-overlay.visible {
  display: flex;
  animation: fadeIn 0.3s ease-out forwards;
}

.notice-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.1s;
}

.notice-modal-header {
  background: var(--changho-accent, #1a365d);
  padding: 24px;
  color: white;
  position: relative;
}

.notice-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-modal-body {
  padding: 24px;
}

.notice-message {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.notice-contact {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.notice-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

.notice-contact-item:last-child {
  margin-bottom: 0;
}

.notice-contact-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--changho-accent, #1a365d);
}

.notice-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.notice-btn-close {
  padding: 10px 20px;
  background: var(--changho-accent, #1a365d);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.notice-btn-close:hover {
  background: var(--changho-accent-dark, #0f2442);
}

.notice-btn-hide {
  padding: 10px 20px;
  background: transparent;
  color: #64748b;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.notice-btn-hide:hover {
  color: #334155;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  body.has-announcement .header {
    top: calc(12px + 60px);
  }
}
