@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary-color: #0c2b5c;     /* Deep Navy (Government trust) */
  --primary-light: #183e74;    /* Medium Navy */
  --secondary-color: #0266cc;  /* Government Blue */
  --secondary-light: #ebf5ff;  /* Light Blue Background */
  --accent-red: #d11515;       /* Accent Red (Alert/Protection) */
  --accent-red-light: #fee2e2; /* Light Red BG */
  --accent-teal: #0d9488;      /* Safe/Psychological Support Teal */
  --accent-teal-light: #ccfbf1;/* Light Teal BG */
  
  --bg-main: #ffffff;
  --bg-sub: #f8fafc;
  --bg-dark: #0f172a;
  
  --text-main: #1e293b;
  --text-sub: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* System status */
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Typography */
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  /* Shadow & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 25px -5px rgba(12, 43, 92, 0.08), 0 10px 10px -5px rgba(12, 43, 92, 0.04);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout constraints */
  --max-width: 1200px;
  --header-height: 100px;
}

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

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

body {
  font-family: var(--font-ko);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

/* Screen reader only utility (SEO & Accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile warning banner */
.mobile-warning-banner {
  display: none;
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(209, 21, 21, 0.15);
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  -webkit-animation: marquee 25s linear infinite;
  animation-iteration-count: infinite !important;
  -webkit-animation-iteration-count: infinite !important;
  padding-left: 24px;
  will-change: transform;
}

@-webkit-keyframes marquee {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); }
}

@keyframes marquee {
  0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); }
}

/* Header & GNB */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background-color: var(--bg-sub);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-sub);
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gov-symbol {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.gov-symbol::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #0266cc 50%, #d11515 50%);
  border-radius: 50%;
}

.top-menu {
  display: flex;
  gap: 16px;
}

.top-menu a:hover {
  color: var(--secondary-color);
}

.main-header {
  height: 70px;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

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

.logo-symbol {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 35% 35%, #d11515 45%, #0c2b5c 55%);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-symbol::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: #fff;
  transform: rotate(-30deg);
  opacity: 0.2;
}

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

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.7rem;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* Global Navigation */
.gnb {
  display: flex;
  gap: 32px;
  height: 100%;
}

.gnb-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.gnb-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.gnb-item:hover .gnb-link,
.gnb-item.active .gnb-link {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* Submenu Dropdown on Hover */
.submenu {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 200px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.gnb-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.submenu-link:hover {
  background-color: var(--secondary-light);
  color: var(--secondary-color);
  padding-left: 24px;
}

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

.btn-search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-sub);
  color: var(--text-sub);
  transition: var(--transition-fast);
}

.btn-search-toggle:hover {
  background-color: var(--secondary-light);
  color: var(--secondary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  position: relative;
  height: 520px;
  background-color: var(--primary-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--text-white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45) contrast(1.05);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(12, 43, 92, 0.9) 30%, rgba(2, 102, 204, 0.4) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  color: #38bdf8;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  font-weight: 300;
}

/* Hero Search Panel */
.hero-search-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-search-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.search-input-wrapper input {
  flex: 1;
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.search-input-wrapper input::placeholder {
  color: var(--text-light);
}

.btn-search-submit {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 0 24px;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-search-submit:hover {
  background-color: var(--primary-light);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-tags span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-tags span:hover {
  background-color: #38bdf8;
  color: var(--primary-color);
}

/* Quick Menus Section */
.quick-services {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  padding-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 35px -5px rgba(12, 43, 92, 0.15);
  border-color: rgba(2, 102, 204, 0.2);
}

.service-card:hover::before {
  background-color: var(--secondary-color);
}

.service-card-red:hover::before {
  background-color: var(--accent-red);
}

.service-card-teal:hover::before {
  background-color: var(--accent-teal);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.service-icon-blue {
  background-color: var(--secondary-light);
  color: var(--secondary-color);
}

.service-icon-red {
  background-color: var(--accent-red-light);
  color: var(--accent-red);
}

.service-icon-teal {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  flex: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-red .service-link {
  color: var(--accent-red);
}

.service-card-teal .service-link {
  color: var(--accent-teal);
}

.service-link::after {
  content: '→';
  transition: var(--transition-fast);
}

.service-card:hover .service-link::after {
  transform: translateX(4px);
}

/* Notice & Press Section */
.board-section {
  background-color: var(--bg-sub);
}

.board-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}

.board-container {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.board-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  gap: 24px;
}

.board-tab-btn {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-fast);
}

.board-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.board-content {
  display: none;
}

.board-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.board-list li {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

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

.board-item-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.board-item-title {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.board-list li:hover .board-item-title {
  color: var(--secondary-color);
  text-decoration: underline;
}

.board-item-date {
  font-size: 0.85rem;
  font-family: var(--font-en);
  color: var(--text-light);
}

.btn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sub);
  width: 100%;
  transition: var(--transition-fast);
}

.btn-more:hover {
  background-color: var(--bg-sub);
  color: var(--primary-color);
  border-color: var(--text-light);
}

/* Sidebar Callouts */
.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-card-blue {
  background: linear-gradient(135deg, #0c2b5c 0%, #1c4d8c 100%);
}

.sidebar-card-teal {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.sidebar-card-pattern {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 6rem;
  opacity: 0.15;
  pointer-events: none;
}

.sidebar-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.sidebar-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.btn-sidebar-action {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  z-index: 2;
}

.btn-sidebar-action:hover {
  background-color: rgba(255, 255, 255, 1);
  color: var(--primary-color);
}

.sidebar-card-teal .btn-sidebar-action:hover {
  color: #0f766e;
}

/* Center Banner Section */
.center-banner {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 40px 0;
  position: relative;
}

.center-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.center-banner-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.center-banner-text p {
  font-size: 0.95rem;
  opacity: 0.85;
}

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

.btn-banner-white {
  background-color: var(--bg-main);
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-banner-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-banner-outline {
  border: 1.5px solid var(--bg-main);
  color: var(--text-white);
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-banner-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Statistics Section */
.stats-section {
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-icon {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 12px;
  display: inline-block;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-sub);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-sub);
}

/* Policy Guide Cards */
.policy-section {
  background-color: var(--bg-sub);
}

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

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.policy-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.policy-img-placeholder {
  height: 180px;
  background-color: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary-color);
  position: relative;
}

.policy-img-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12,43,92,0) 60%, rgba(12,43,92,0.15));
}

.policy-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.policy-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.policy-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.policy-card-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  flex: 1;
}

.policy-action {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-policy-download {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* FAQ Accordion Section */
.faq-section {
  background-color: var(--bg-main);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--secondary-color);
  background-color: var(--bg-sub);
  border-radius: var(--radius-md);
}

.faq-icon-arrow {
  font-size: 0.9rem;
  transition: transform var(--transition-normal);
  color: var(--text-light);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--secondary-color);
}

.faq-item.active .faq-question {
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
  background-color: var(--bg-sub);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.faq-item.active .faq-answer {
  max-height: 300px; /* arbitrary height for animation transition */
  padding: 20px;
  border-left: 3px solid var(--secondary-color);
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-sub);
}

/* Footer styling */
footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

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

.footer-nav a {
  color: #cbd5e1;
  font-weight: 500;
}

.footer-nav a.highlight {
  color: #ef4444; /* Privacy policy color highlight */
  font-weight: 600;
}

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

.footer-middle {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info p {
  margin-bottom: 8px;
}

.footer-info strong {
  color: #cbd5e1;
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.gov-call-center {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: left;
  width: fit-content;
}

.gov-call-center h5 {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.gov-call-center span {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.78rem;
}

/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-container {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-main);
  z-index: 2;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--secondary-light);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.modal-title-icon-red {
  background-color: var(--accent-red-light);
  color: var(--accent-red);
}

.btn-modal-close {
  font-size: 1.6rem;
  color: var(--text-light);
  line-height: 1;
  transition: var(--transition-fast);
}

.btn-modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 30px;
}

/* Modal Form Styles */
.form-step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.form-step-indicator::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  background-color: var(--bg-main);
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-sub);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition-fast);
}

.step-node.active .step-number {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-white);
}

.step-node.active {
  color: var(--secondary-color);
  font-weight: 700;
}

.step-node.complete .step-number {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
}

.form-group {
  margin-bottom: 20px;
}

.form-group.half-width {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label span {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  background-color: var(--bg-sub);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: var(--bg-main);
  box-shadow: 0 0 0 3px rgba(2, 102, 204, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.form-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--secondary-color);
}

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--text-sub);
  user-select: none;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-sub);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-form-cancel {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--transition-fast);
}

.btn-form-cancel:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.btn-form-submit {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  background-color: var(--secondary-color);
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-form-submit:hover {
  background-color: var(--primary-light);
}

.modal-step-section {
  display: none;
}

.modal-step-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards;
  border-left: 4px solid var(--secondary-color);
}

.toast.toast-success {
  border-left-color: var(--success);
}

.toast.toast-error {
  border-left-color: var(--danger);
}

.toast-icon {
  font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero {
    height: auto;
    padding: 80px 0;
  }
  .hero-badge {
    justify-content: center;
  }
  .hero-search-box {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-services {
    margin-top: -30px;
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  header {
    height: 60px;
    display: flex;
    align-items: center;
  }
  .top-bar {
    display: none;
  }
  .main-header {
    height: 100%;
    width: 100%;
  }
  .main-header .container {
    width: 100%;
  }
  .gnb {
    display: none; /* Hide GNB on mobile, we can trigger mobile drawer if needed */
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-warning-banner {
    display: block !important;
  }
  .logo {
    max-width: calc(100% - 60px);
    gap: 8px;
  }
  .logo img {
    height: 34px !important;
  }
  .logo-title {
    font-size: 1rem !important;
  }
  .logo-subtitle {
    display: none !important;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Board item stacking to prevent overflow */
  .board-item-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .board-item-title {
    white-space: normal !important;
    width: 100%;
    min-width: 0;
  }
  .board-item-date {
    font-size: 0.8rem;
    align-self: flex-end;
  }

  /* Half-width form inputs stacking */
  .form-group.half-width {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Toast notification resizing */
  .toast {
    min-width: unset !important;
    width: 100% !important;
    max-width: calc(100vw - 48px) !important;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-middle {
    grid-template-columns: 1fr;
  }
  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
  .gov-call-center {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
