/* ============================================
   IBT TOPIK - Common Styles
   Combined: variables + global + components + nav + cookie
   ============================================ */

/* ========== VARIABLES ========== */
:root {
  /* Colors - Primary */
  --primary: #2563EB;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;

  /* Colors - Accent */
  --accent: #F97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;

  /* Colors - Success */
  --success: #16A34A;
  --success-hover: #059669;
  --success-light: #dcfce7;

  /* Colors - Warning */
  --warning: #F59E0B;
  --warning-hover: #d97706;

  /* Colors - Neutral */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --background: #FFFFFF;
  --foreground: var(--gray-900);
  --muted: var(--gray-100);
  --muted-foreground: var(--gray-500);
  --border: var(--gray-200);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Container */
  --container-max-width: 1140px;
  --container-padding: var(--space-6);
}

/* ========== RESET & GLOBAL ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.3s ease;
}

/* ========== UTILITIES ========== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
}

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

.section-desc {
  font-size: 18px;
  color: var(--gray-500);
  margin-top: 16px;
  max-width: 600px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.6);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* ========== HEADER WRAPPER ========== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-spacer {
  height: 114px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  height: 42px;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.header-wrapper.scrolled .top-bar {
  height: 0;
  opacity: 0;
}

.top-bar-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 42px;
}

.top-bar-item {
  display: inline-block;
  font-size: 13px;
  line-height: 42px;
  color: var(--gray-500);
  padding: 0 16px;
  border-right: 1px solid var(--gray-200);
  transition: color 0.2s ease;
}

.top-bar-item:hover {
  color: var(--primary);
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 42px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0 16px;
  transition: color 0.2s ease;
}

.lang-selector:hover {
  color: var(--primary);
}

.lang-selector .lang-flag {
  font-size: 1rem;
}

.lang-selector .lang-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.lang-selector:hover .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.lang-dropdown li a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.lang-dropdown li a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

/* ========== MAIN HEADER ========== */
.main-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  transition: border-color 0.3s ease;
}

.header-wrapper.scrolled .main-header {
  border-bottom-color: transparent;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Header Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.header-logo-icon span {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

/* Main Navigation - Centered */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.main-nav > li > a:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.main-nav > li > a.active {
  color: var(--primary);
  font-weight: 700;
}

.main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.main-nav > li > a:hover::after,
.main-nav > li > a.active::after {
  width: calc(100% - 28px);
}

/* My Page Button - moved to header-actions */

/* Header Right Actions */
.header-actions {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-signup {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-signup:hover {
  background: var(--primary-light);
}

.btn-mypage {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border-radius: 6px;
  transition: all 0.3s ease;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
}

.mobile-menu-panel.active {
  display: flex;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a {
  display: block;
  padding: 16px 20px;
  color: var(--gray-800);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background: var(--gray-50);
}

.mobile-menu-footer {
  padding: 20px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-top: 1px solid var(--gray-200);
}

.mobile-auth-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-auth-buttons a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-auth-buttons .btn-login-mobile {
  background: var(--primary);
  color: white;
}

.mobile-auth-buttons .btn-signup-mobile {
  background: var(--primary);
  color: white;
  border: none;
}

.mobile-auth-buttons .btn-signup-mobile:hover {
  background: var(--primary-hover);
}

.btn-mypage-mobile {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--gray-700);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-mypage-mobile:hover {
  background: var(--gray-800);
}

.mobile-lang-section {
  background: white;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--gray-200);
}

.mobile-lang-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-weight: 600;
}

.mobile-lang-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-lang-list li {
  border: none;
}

.mobile-lang-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  color: var(--gray-500);
  font-size: 11px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-lang-list li a .lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-lang-list li a:hover,
.mobile-lang-list li a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}

.mobile-lang-list li a.active {
  font-weight: 700;
}

/* ========== LEGACY NAV SUPPORT ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  backdrop-filter: blur(20px);
}

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

.gnb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gnb-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.gnb-logo-icon span {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gnb-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 60%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Legacy Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 998;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-inner {
  padding: 12px 20px 24px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-menu-links a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-links a:last-child {
  border-bottom: none;
}

.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-auth-mypage {
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
}

.mobile-auth-login {
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary);
  color: white;
}

.mobile-auth-signup {
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.mobile-lang-selector {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.mobile-lang-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.mobile-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--gray-50);
  transition: all 0.2s;
}

.mobile-lang-item:hover {
  background: var(--gray-100);
}

.mobile-lang-item.active {
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

.mobile-lang-flag {
  font-size: 18px;
}

.mobile-lang-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.mobile-lang-item.active .mobile-lang-name {
  color: var(--primary);
}

/* ========== COOKIE CONSENT ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s ease-out;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cookie-message {
  flex: 1;
  min-width: 200px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

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

.cookie-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.cookie-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-link:hover {
  color: white;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon span {
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: white;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  max-width: 300px;
}

.footer-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav-list a:hover {
  color: white;
}

.footer-business-info {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
}

.business-info-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
}

.business-info-content .divider {
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Footer Alternative Structure */
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.footer-column-title {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .main-nav {
    gap: 2px;
  }
  .main-nav > li > a {
    font-size: 13px;
    padding: 8px 10px;
  }
  .header-actions .btn-login,
  .header-actions .btn-signup,
  .header-actions .btn-mypage {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  /* Hide desktop nav elements */
  .main-nav {
    display: none;
  }
  .header-actions {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 32px;
  }
  .section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  /* Header */
  .header-spacer {
    height: 72px;
  }
  .top-bar {
    display: none;
  }
  .header-container {
    padding: 0 20px;
  }
  .header-logo-text {
    font-size: 18px;
  }
  /* Cookie */
  .cookie-banner {
    padding: 16px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cookie-icon {
    display: none;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 32px;
  }
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-business-info {
    padding: 20px 0;
  }
  .business-info-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .business-info-content .divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .section-desc {
    font-size: 15px;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .container {
    padding: 0 16px;
  }
}
