/* ================================================
   KADCC — Korean Academy of Dental CAD/CAM
   Design System & Global Styles
   ================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --primary:       #1e40af;
  --primary-light: #3b82f6;
  --primary-dark:  #1e3a8a;
  --accent:        #0ea5e9;
  --gold:          #d97706;
  --gold-light:    #fbbf24;

  --dark:          #0f172a;
  --dark-2:        #1e293b;
  --dark-3:        #334155;
  --light:         #f1f5f9;
  --light-2:       #e2e8f0;
  --white:         #ffffff;

  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;

  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;

  --nav-height:    80px;
  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow:        0 1px 8px rgba(15,23,42,.08);
  --shadow-md:     0 4px 20px rgba(15,23,42,.12);
  --shadow-lg:     0 8px 40px rgba(15,23,42,.16);
  --transition:    .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.75; }

/* ---------- Layout ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section        { padding: 80px 0; }
.section-gray   { padding: 80px 0; background: var(--light); }
.section-dark   { padding: 80px 0; background: var(--dark); color: var(--white); }
.section-blue   { padding: 80px 0; background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-dark .section-header p,
.section-blue .section-header p { color: rgba(255,255,255,.75); }

.divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin: 16px auto 0;
}
.section-blue .divider { background: rgba(255,255,255,.5); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.2;
}
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-logo .logo-abbr { display: none; }
.nav-logo .logo-text { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--light);
  color: var(--primary);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--light); color: var(--primary); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-btn {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30,64,175,.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block;
  padding: 12px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--light-2);
}
.mobile-link:hover { color: var(--primary); }
.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  background: none;
  width: 100%;
  border-bottom: 1px solid var(--light-2);
  cursor: pointer;
}
.mobile-dropdown-toggle .chevron { transition: transform var(--transition); }
.mobile-dropdown.open .chevron { transform: rotate(180deg); }
.mobile-dropdown-links { display: none; padding-left: 16px; }
.mobile-dropdown.open .mobile-dropdown-links { display: block; }
.mobile-dropdown-links a {
  display: block;
  padding: 10px 0;
  font-size: .88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--light-2);
}
.mobile-lang { display: flex; gap: 8px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content-center {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hero-content-center .hero-eyebrow {
  justify-content: center;
}
.hero-content-center p {
  margin-left: auto;
  margin-right: auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.hero-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 6px; }
.hero-card p { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(30,64,175,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(30,64,175,.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: 24px; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Feature Card */
.feature-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-icon.blue  { background: rgba(30,64,175,.1); }
.feature-icon.cyan  { background: rgba(14,165,233,.1); }
.feature-icon.gold  { background: rgba(215,119,6,.1); }
.feature-icon.green { background: rgba(16,185,129,.1); }

/* Event Card */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.event-card-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}
.event-card-header .event-type {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 8px;
}
.event-card-header h3 { margin-bottom: 0; }
.event-card-body { padding: 24px 28px; }
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-muted);
}
.event-meta-item .icon { width: 20px; text-align: center; }

/* Board Member Card */
.board-card-vacant {
  opacity: .5;
  border-style: dashed;
  border-color: var(--light-2);
}
.board-card-vacant:hover { transform: none; box-shadow: none; }
.role.vacant { background: var(--light); color: var(--text-muted); }
.board-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.board-card[onclick] { cursor: pointer; }
.board-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.board-card[onclick]:hover { transform: translateY(-3px); }

/* Board Member Modal */
.board-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.board-modal-overlay.open { opacity: 1; pointer-events: all; }
.board-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.board-modal-overlay.open .board-modal { transform: none; }
.board-modal-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.board-modal-avatar {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: #fff;
}
.board-modal-body { padding: 24px 28px 32px; }
.board-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.board-modal-close:hover { background: rgba(0,0,0,.7); }
.board-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 800;
  margin: 0 auto 14px;
}
.board-card .role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(30,64,175,.08);
  color: var(--primary);
  margin-bottom: 8px;
}
.board-card .role.president { background: rgba(215,119,6,.1); color: var(--gold); }
.board-card .name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.board-card .affiliation { font-size: .8rem; color: var(--text-muted); }

/* News Card */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.news-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  width: fit-content;
}
.cat-notice  { background: rgba(30,64,175,.08); color: var(--primary); }
.cat-event   { background: rgba(14,165,233,.1); color: #0284c7; }
.cat-seminar { background: rgba(16,185,129,.1); color: #059669; }
.cat-news    { background: rgba(215,119,6,.1);  color: var(--gold); }
.news-card h4 { font-size: .95rem; line-height: 1.4; }
.news-card .news-date { font-size: .78rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-control.error { border-color: var(--danger); }
.error-msg {
  display: block;
  font-size: .78rem;
  color: var(--danger);
  margin-top: 4px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* Alert */
.alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 500;
  align-items: center;
  gap: 10px;
}
.alert.show { display: flex; }
.alert-success { background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.alert-danger  { background: rgba(239,68,68,.08); color: #dc2626; border: 1px solid rgba(239,68,68,.15); }
.alert-info    { background: rgba(30,64,175,.08); color: var(--primary); border: 1px solid rgba(30,64,175,.15); }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(14,165,233,.12) 0%, transparent 70%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.page-header .breadcrumb a:hover { color: var(--white); }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 8px; }
.page-header p  { color: rgba(255,255,255,.7); font-size: 1rem; }

/* ---------- Tabs / Filters ---------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover  { border-color: var(--primary-light); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- Badge / Tag ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-blue  { background: rgba(30,64,175,.1); color: var(--primary); }
.badge-cyan  { background: rgba(14,165,233,.1); color: #0284c7; }
.badge-gold  { background: rgba(215,119,6,.1);  color: var(--gold); }
.badge-green { background: rgba(16,185,129,.1); color: #059669; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.stat-card .num {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .label { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.8); margin-bottom: 36px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .abbr {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 800;
}
.footer-brand .name { font-size: .9rem; font-weight: 700; color: var(--white); }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h5 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

/* ---------- Registration Page ---------- */
.reg-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.reg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.reg-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.info-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h4 { margin-bottom: 14px; color: var(--primary); }
.info-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
}
.info-item .icon { color: var(--primary); flex-shrink: 0; }

/* ---------- News / Events List ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}
.news-row:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.news-row .category { flex-shrink: 0; }
.news-row .content { flex: 1; }
.news-row h4 { font-size: .95rem; margin-bottom: 4px; }
.news-row .meta { font-size: .78rem; color: var(--text-muted); }
.news-row .pin-icon { color: var(--danger); font-size: .8rem; }

/* ---------- Board Page ---------- */
.role-section { margin-bottom: 48px; }
.role-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* ---------- Admin Panel ---------- */
.admin-wrap {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  background: var(--light);
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.sidebar-section { padding: 0 12px 20px; }
.sidebar-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 0 8px 8px;
  display: block;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--light); color: var(--primary); }
.sidebar-link.active { background: rgba(30,64,175,.1); color: var(--primary); }
.admin-main { flex: 1; padding: 32px; overflow-y: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.panel-header h2 { font-size: 1.4rem; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.kpi-card .kpi-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.kpi-card .kpi-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* Admin Table */
.admin-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.table-search {
  flex: 1;
  min-width: 160px;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-family: inherit;
  outline: none;
}
.table-search:focus { border-color: var(--primary-light); }
select.table-filter {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  outline: none;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light); }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.status-pending   { background: rgba(245,158,11,.1); color: #b45309; }
.status-confirmed { background: rgba(16,185,129,.1); color: #059669; }
.status-cancelled { background: rgba(100,116,139,.1); color: #475569; }

/* Toggle */
.toggle-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.toggle-pill input { display: none; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--light-2);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.toggle-pill input:checked ~ .toggle-track { background: var(--success); }
.toggle-pill input:checked ~ .toggle-track::after { transform: translateX(20px); }
.toggle-label { font-size: .88rem; font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- Reveal Animation ---------- */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--light-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .kpi-grid   { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reg-layout { grid-template-columns: 1fr; }
  .reg-sidebar { position: static; }
  .admin-sidebar { width: 200px; }
}
@media (max-width: 768px) {
  .section, .section-gray, .section-dark, .section-blue { padding: 56px 0; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .lang-btn { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-main { padding: 20px; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .reg-card { padding: 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .page-header { padding: 40px 0; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid   { grid-template-columns: 1fr 1fr; }
  .filter-tabs { gap: 6px; }
}
