/* C:\Users\infomax\.gemini\antigravity\brain\c97b956b-3da4-45a3-b2d0-6611d6d50ed6\style.css */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #3b82f6;
  --secondary-hover: #2563eb;
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --error: #ef4444;
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.08);
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(79, 70, 229, 0.05), 0 8px 10px -6px rgba(79, 70, 229, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(59, 130, 246, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--slate-50);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* Header / Navigation */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav ul li a {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
}

nav ul li a:hover {
  color: var(--primary);
}

.nav-btn {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.nav-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 680px;
  margin: 0 auto 40px auto;
}

/* Welfare finder / Self-diagnostic Tool */
#welfare-finder-container {
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(145deg, #4f46e5 0%, #3b82f6 100%);
  padding: 4px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.wf-card {
  background: #ffffff;
  border-radius: 21px;
  padding: 36px 28px;
}

.wf-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.wf-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 6px 0;
  letter-spacing: -0.7px;
}

.wf-header p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 28px;
}

.wf-step {
  display: none;
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wf-step.active {
  display: block;
}

.wf-label {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 18px;
}

.wf-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-option-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.wf-option-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.wf-option-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.wf-option-btn.selected .wf-opt-title {
  color: #ffffff;
}

.wf-option-btn.selected .wf-opt-desc {
  color: rgba(255,255,255,0.7);
}

.wf-opt-icon {
  font-size: 24px;
  background: #ffffff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.wf-opt-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.wf-opt-desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Diagnostic Results */
.wf-result {
  display: none;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wf-success-badge {
  display: inline-block;
  background: var(--success);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.wf-result-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.wf-result-header p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.wf-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.wf-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  transition: var(--transition);
}

.wf-card-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.06);
}

.wf-item-header {
  margin-bottom: 12px;
}

.wf-item-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  display: block;
}

.wf-item-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}

.wf-btn-group {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  margin-top: 14px;
}

.wf-btn-guide {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.wf-btn-guide:hover {
  background: #e2e8f0;
}

.wf-btn-gov {
  background: #2563eb;
  color: #ffffff !important;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wf-btn-gov:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.wf-reset-btn {
  width: 100%;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
}

.wf-reset-btn:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
}

/* Articles Section */
.recent-articles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px 24px;
  border-top: 1px solid #e2e8f0;
}

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

.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--slate-500);
  font-size: 14px;
  margin-top: 4px;
}

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

.article-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  border-color: var(--primary);
}

.article-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.article-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.45;
}

.article-excerpt {
  font-size: 13.5px;
  color: var(--slate-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.article-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  text-decoration: underline;
}

/* Individual Article Page Layout */
.article-wrapper {
  max-width: 800px;
  margin: 60px auto 100px auto;
  padding: 0 24px;
}

.article-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-header .cat-badge {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--slate-500);
  font-size: 13px;
}

.article-meta span strong {
  color: var(--slate-700);
}

.article-body {
  font-size: 16.5px;
  color: var(--slate-800);
  line-height: 1.85;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 16px 0;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  letter-spacing: -0.5px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin: 28px 0 12px 0;
}

.article-body p {
  margin-bottom: 20px;
}

/* Callout Box */
.note-box {
  background-color: var(--slate-100);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--slate-700);
}

.note-box ul {
  list-style-type: none;
  padding-left: 0;
}

.note-box ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.note-box ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Custom Table Style */
.custom-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
}

.custom-table th {
  background-color: var(--slate-100);
  color: var(--slate-800);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid #cbd5e1;
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--slate-700);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.gov-link-block {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

.gov-link-block p {
  font-size: 14px;
  color: #1e3a8a;
  margin-bottom: 14px;
  font-weight: 700;
}

.gov-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2563eb;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.gov-link-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

/* Legal Pages Template */
.legal-wrapper {
  max-width: 800px;
  margin: 60px auto 100px auto;
  padding: 0 24px;
}

.legal-wrapper h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
  letter-spacing: -0.5px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 12px 0;
}

.legal-content p {
  color: var(--slate-700);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--slate-700);
  font-size: 15px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

/* Footer / Trust Details */
footer {
  background-color: var(--dark);
  color: #94a3b8;
  font-size: 13px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand p {
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 30px 24px;
  text-align: center;
}

.footer-trust-info {
  max-width: 1200px;
  margin: 0 auto 16px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: #64748b;
  font-size: 12px;
}

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

.copyright {
  font-size: 11px;
  color: #475569;
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-container nav, .nav-container .nav-btn {
    display: none;
  }
  .hero {
    padding: 50px 24px 30px 24px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .wf-card {
    padding: 24px 16px;
  }
  .wf-header h2 {
    font-size: 20px;
  }
  .wf-btn-group {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-header h1 {
    font-size: 26px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 24px;
  }
}
