

/* ===== DESIGN SYSTEM: Korean Business — Bright & Professional ===== */

:root {
  /* Primary */
  --primary: #003366;
  --primary-dark: #002244;
  --primary-light: #004488;
  --primary-bg: rgba(0, 51, 102, 0.06);

  /* Accent */
  --accent-gold: #c8a951;
  --accent-gold-light: #d4b96a;
  --accent-gold-bg: rgba(200, 169, 81, 0.1);

  /* Status */
  --color-green: #2e7d32;
  --color-green-bg: #e8f5e9;
  --color-red: #c62828;
  --color-red-bg: #ffebee;
  --color-amber: #e65100;
  --color-amber-bg: #fff3e0;

  /* Text */
  --text-dark: #1a1a1a;
  --text-medium: #555555;
  --text-light: #888888;
  --text-muted: #aaaaaa;

  /* Background */
  --bg-white: #ffffff;
  --bg-light: #f7f8fa;
  --bg-section: #f0f2f5;
  --bg-input: #f9fafb;

  /* Border */
  --border-color: #e0e3e8;
  --border-light: #eef0f3;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Misc */
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, serif;
  --font-inter: 'Inter', var(--font-sans);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3), 0 0 0 8px rgba(0, 51, 102, 0.08); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }
.lang-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-sans);
}
.lang-selector option { color: var(--text-dark); background: white; }

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 42px; width: auto; }
.nav-menu { display: flex; gap: 0; align-items: center; flex-wrap: nowrap; }
.nav-menu > li { position: relative; flex: 0 0 auto; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-menu > li > a:hover { color: var(--primary); }
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after { transform: scaleX(1); }
.nav-menu > li > a.active { color: var(--primary); }
.nav-menu > li > a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn-nav-login {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-nav-login:hover { color: var(--primary); }
.btn-nav-signup {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-nav-signup:hover { background: var(--primary-light); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ===== HERO (Bright Version) ===== */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #e8edf5 0%, #f0f4f9 50%, #eef1f8 100%);
  overflow: hidden;
}
.hero::before {
  content: none;
}
.hero-logo {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  object-fit: contain;
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(200, 169, 81, 0.06);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 72px 24px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--accent-gold);
  border-radius: 50px;
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(200, 169, 81, 0.08);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 17px;
  color: var(--text-medium);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.2);
}
.btn-hero-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 51, 102, 0.3);
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  background: white;
}
.btn-hero-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== STATS (Bright Version) ===== */
.stats-section {
  background: var(--bg-white);
  padding: 56px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border-color);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-number .suffix { font-size: 22px; color: var(--accent-gold); }
.stat-label {
  font-size: 14px;
  color: var(--text-medium);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-header .underline {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--accent-gold);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services-section { background: var(--bg-light); }
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.service-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  flex: 0 1 calc((100% - 56px) / 3);
  min-width: 280px;
  max-width: 420px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img { height: 200px; overflow: hidden; }
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.service-card-body p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.8;
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.service-card-link:hover { gap: 10px; }

/* ===== ABOUT ===== */
.about-section { background: white; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .about-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.about-text h2 span { color: var(--primary); }
.about-text p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.about-list li .check {
  width: 22px;
  height: 22px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.about-image .overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.about-image .overlay-badge strong {
  display: block;
  font-size: 28px;
  color: var(--accent-gold);
  font-family: var(--font-serif);
}

/* ===== NEWS ===== */
.news-section { background: var(--bg-light); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.news-panel {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.news-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--primary);
}
.news-panel-header h3 { font-size: 18px; font-weight: 700; }
.news-tabs { display: flex; gap: 4px; }
.news-tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.news-tab.active { background: var(--primary); color: white; }
.news-tab:hover:not(.active) { color: var(--primary); background: var(--primary-bg); }
.news-more {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.notice-list { padding: 8px 0; }
.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  cursor: pointer;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--bg-light); }
.notice-item .notice-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-right: 10px;
  flex-shrink: 0;
}
.badge-notice { background: var(--primary); color: white; }
.badge-update { background: var(--accent-gold); color: white; }
.badge-event { background: var(--color-green); color: white; }
.notice-item .title {
  font-size: 14px;
  color: var(--text-dark);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-item .date {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 16px;
  flex-shrink: 0;
}
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 12px; color: white; font-weight: 500; }

/* ===== PARTNERS ===== */
.partners-section { background: white; padding: 60px 0; }
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-logo {
  height: 40px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all var(--transition);
}
.partner-logo:hover { opacity: 0.8; filter: grayscale(0%); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #e8edf5 0%, #dce3f0 100%);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.2);
}
.btn-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 51, 102, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #f3f5f8;
  color: var(--text-medium);
  padding: 56px 0 0;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}
.footer-info .footer-logo { height: 36px; margin-bottom: 20px; }
.footer-info p { font-size: 13px; line-height: 2; color: var(--text-light); }
.footer-info p strong { color: var(--text-medium); font-weight: 500; margin-right: 8px; }
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-light);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-light); transition: color var(--transition); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== FLOATING BUTTON ===== */
.floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
  transition: all var(--transition);
  animation: floatPulse 2s ease-in-out infinite;
}
.floating-btn:hover { background: var(--primary-light); transform: scale(1.1); }
.floating-btn svg { width: 24px; height: 24px; fill: white; }
.floating-btn .tooltip {
  position: absolute;
  right: 68px;
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.floating-btn:hover .tooltip { opacity: 1; }

/* ===== GENERATOR PAGE — BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-danger {
  background: var(--color-red-bg);
  color: var(--color-red);
  border: 1.5px solid #ef9a9a;
}
.btn-danger:hover { background: #ffcdd2; }

/* ===== GENERATOR — CARDS ===== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== GENERATOR — HERO ===== */
.gen-hero {
  padding: 2rem 0 1rem;
  text-align: center;
}
.gen-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}
.gen-hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
}
.gen-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.gen-hero-title span { color: var(--primary); }
.gen-hero-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ===== GENERATOR — INPUT AREA ===== */
.textarea-container { position: relative; }
.textarea-main {
  width: 100%;
  min-height: 300px;
  padding: 1.5rem;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-family: var(--font-inter);
  font-size: 0.9rem;
  line-height: 1.8;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.textarea-main:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
}
.textarea-main::placeholder { color: var(--text-muted); }

/* ===== GENERATOR — PROGRESS ===== */
.progress-container {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-section);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(4px);
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ===== GENERATOR — STAT CARDS ===== */
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-inter);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card .stat-label {
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== GENERATOR — QUESTION CARD ===== */
.question-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.question-card:hover { box-shadow: var(--shadow-md); }
.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 1rem;
}
.passage-text {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  white-space: pre-wrap;
}
.passage-text .blank {
  display: inline;
  padding: 2px 14px;
  border-bottom: 2.5px solid var(--accent-gold);
  margin: 0 2px;
  min-width: 100px;
  font-weight: 600;
}
.question-prompt { font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; }
.choices-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.choice-item {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: default;
  transition: background 0.2s ease;
  color: var(--text-medium);
}
.choice-item.correct {
  background: var(--color-green-bg);
  color: var(--color-green);
  border: 1.5px solid #a5d6a7;
  font-weight: 700;
}
.answer-section {
  padding: 1.25rem;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.answer-label {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}
.answer-explanation {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-medium);
}

/* ===== GENERATOR — VERIFICATION TABLE ===== */
.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.report-table thead { background: var(--bg-light); }
.report-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}
.report-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
}
.report-table tbody tr { transition: background 0.2s ease; }
.report-table tbody tr:hover { background: var(--bg-light); }
.report-table tbody tr:last-child td { border-bottom: none; }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-pass { background: var(--color-green-bg); color: var(--color-green); }
.badge-fail { background: var(--color-red-bg); color: var(--color-red); }
.badge-warn { background: var(--color-amber-bg); color: var(--color-amber); }

/* ===== REPORT SUMMARY ===== */
.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ===== TABS ===== */
.tab-list {
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.tab-item {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-light);
  background: transparent;
  border: none;
  flex: 1;
  text-align: center;
}
.tab-item:hover { color: var(--text-dark); background: var(--bg-white); }
.tab-item:disabled { opacity: 0.4; cursor: not-allowed; }
.tab-item.active {
  background: var(--primary);
  color: white;
}

/* ===== SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ===== LOG ===== */
.log-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease;
}
.log-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.log-status.done { background: var(--color-green); box-shadow: 0 0 6px var(--color-green); }
.log-status.processing { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.log-status.error { background: var(--color-red); box-shadow: 0 0 6px var(--color-red); }

/* ===== FILE UPLOAD ===== */
.file-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* ===== EXPORT ===== */
.export-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4c8cf; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a4ab; }

/* ===== NAV USER LINK ===== */
.nav-user-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-user-link:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}
.nav-user-icon { font-size: 16px; }
.nav-user-name { white-space: nowrap; }

/* Mobile-only menu items: hidden on desktop */
.mobile-only-menu { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .services-grid .service-card { flex: 0 1 calc((100% - 28px) / 2); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-inner { height: 60px; }
  .nav-logo img { height: 34px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { height: auto; padding: 14px 24px; }
  .nav-menu > li > a::after { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-only-menu { display: block; }
  .mobile-only-menu > a {
    border-top: 1px solid var(--border-light);
    color: var(--primary);
    font-weight: 600;
  }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 300px; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item:not(:last-child)::after { display: none; }
  .services-grid { max-width: 480px; margin: 0 auto; }
  .services-grid .service-card { flex: 0 1 100%; max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .about-image img { height: 260px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .floating-btn { width: 48px; height: 48px; bottom: 20px; right: 20px; }
  .report-summary { grid-template-columns: repeat(2, 1fr); }
  .report-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

