:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #047857;
  --primary-dark: #022c22;
  --primary-soft: #d1fae5;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(2, 44, 34, 0.08);
  --radius: 28px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.topbar { display: none; }
.topbar-inner, .header-inner, .split-head, .content-grid, .widgets-grid, .two-col, .hero-grid, .footer-grid { display: grid; gap: 24px; }
.topbar-inner { grid-template-columns: 1fr auto; padding: 10px 0; align-items: center; }
.hide-mobile { display: block; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { grid-template-columns: minmax(0, 1.45fr) auto; align-items: center; padding: 12px 0; }
.brand-wrap, .nav-wrap, .footer-brand, .form-brand-head { display: flex; align-items: center; gap: 14px; }
.brand-wrap { min-width: 0; }

.brand-logo,
.brand-logo .custom-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.brand-logo img,
.brand-logo .custom-logo,
.custom-logo-link img,
.custom-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
.site-header .custom-logo-link {
  margin: 0;
}
.brand-text {
  min-width: 0;
  max-width: 680px;
  flex: 1 1 auto;
}
.site-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  display: block;
  letter-spacing: -.03em;
  line-height: 1.08;
  word-break: normal;
  overflow-wrap: anywhere;
  margin: 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-nav .menu {
  align-items: center;
}

.footer-brand img { width: 58px; height: 58px; object-fit: contain; }
.site-tagline { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.nav-wrap { position: relative; }
.primary-nav { position: relative; }
.menu, .footer-menu { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; flex-wrap: wrap; align-items: center; }
.menu li { position: relative; }
.menu a, .footer-menu a { font-weight: 700; color: #334155; }
.menu a:hover, .footer-menu a:hover { color: var(--primary); }
.menu .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(15, 23, 42, .14);
  border-radius: 18px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}
.menu .sub-menu li { width: 100%; }
.menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}
.menu .sub-menu a:hover { background: var(--surface-alt); }
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { display: flex; }

.mobile-menu-toggle,
.mobile-menu-close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: #fff;
}
.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  display: block;
}
.mobile-menu-close {
  display: none;
}

.header-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 14px 24px; font-weight: 800; transition: .2s ease;
}
.header-cta, .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 25px rgba(4, 120, 87, .18); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.hero-section {
  color: #fff;
  background: linear-gradient(135deg, #021812 0%, #065f46 45%, #047857 100%);
  overflow: hidden; position: relative; padding: 70px 0;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 30%);
}
.hero-grid { grid-template-columns: 1.2fr .8fr; align-items: center; position: relative; }
.hero-badge, .section-kicker, .pill {
  display: inline-flex; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-badge { padding: 10px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.hero-section h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.06; margin: 16px 0 0; font-weight: 900; letter-spacing: -.04em; }
.hero-text { max-width: 720px; color: rgba(255,255,255,.9); font-size: 18px; margin-top: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-panel {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  padding: 28px; border-radius: 32px; box-shadow: 0 24px 50px rgba(0,0,0,.12); backdrop-filter: blur(16px);
}
.hero-panel-kicker, .light { color: #bbf7d0; text-transform: uppercase; font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.hero-panel h2 { font-size: 30px; line-height: 1.15; margin: 8px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.stat-card { background: rgba(255,255,255,.1); padding: 18px; border-radius: 24px; }
.stat-card strong { display: block; font-size: 34px; font-weight: 900; }
.stat-card span { color: #dcfce7; font-size: 14px; }
.content-section { padding: 78px 0; }
.content-section.alt { background: var(--surface-alt); }
.center-head { text-align: center; }
.center-head h2, .split-head h2, .two-col h2, .page-hero h1 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 900; letter-spacing: -.03em; }
.section-kicker { color: var(--primary); background: transparent; }
.section-kicker.small { font-size: 12px; }
.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.info-card, .profile-card, .committee-card, .post-card, .white-panel, .widget {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.info-card, .committee-card, .white-panel, .widget { padding: 28px; }
.pill { background: var(--primary-soft); color: var(--primary); padding: 8px 14px; margin-bottom: 16px; }
.profile-card { overflow: hidden; }
.placeholder-media, .placeholder-banner {
  min-height: 240px; display: grid; place-items: center;
  background: linear-gradient(135deg, #d1fae5, #ecfeff); color: var(--primary-dark);
  font-size: 54px; font-weight: 900;
}
.profile-body, .post-card-body { padding: 28px; }
.profile-body h3, .committee-card h3, .post-card h2, .post-card h3 { margin: 8px 0 0; font-size: 28px; line-height: 1.15; }
.committee-photo { margin-bottom: 16px; border-radius: 22px; overflow: hidden; }
.committee-photo img { width: 100%; height: 260px; object-fit: cover; }
.avatar-circle {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 26px; font-weight: 900; margin-bottom: 16px;
}
.committee-card .role { color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.two-col { grid-template-columns: .95fr 1.05fr; }
.two-col.align-center { align-items: center; }
.list-panel .list-item { display: flex; gap: 16px; margin-bottom: 18px; }
.list-panel .list-item span {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 900; flex: 0 0 40px;
}
.split-head { grid-template-columns: 1fr auto; align-items: end; }
.content-grid { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
.sidebar-area { display: grid; gap: 24px; }
.post-card.compact { overflow: hidden; }
.post-card.compact img, .post-card.compact .placeholder-banner, .post-card img { width: 100%; min-height: 230px; object-fit: cover; }
.meta { color: #64748b; font-size: 14px; font-weight: 600; }
.widgets-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.registration-section { background: linear-gradient(135deg, #064e3b, #022c22); color: #fff; padding: 78px 0; }
.form-panel {
  background: #fff; color: var(--text); border-radius: 30px; padding: 28px; box-shadow: 0 22px 48px rgba(0,0,0,.16);
}
.professional-form-panel { position: relative; overflow: hidden; }
.professional-form-panel::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(4,120,87,.14), transparent 60%);
}
.form-brand-head { align-items: flex-start; margin-bottom: 22px; position: relative; z-index: 1; }
.company-brand-badge {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.company-brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.form-brand-head h3 { margin: 6px 0 8px; font-size: 28px; line-height: 1.2; }
.form-note { margin: 0; color: var(--muted); }
.fake-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 16px; position: relative; z-index: 1; }
.fake-form-grid input, .fake-form-grid textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; font: inherit; background: #f8fafc;
}
.fake-form-grid textarea { min-height: 160px; grid-column: 1 / -1; }
.form-actions-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.upload-box {
  border: 1px dashed #94a3b8;
  border-radius: 18px;
  padding: 14px 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upload-box span { font-weight: 800; color: var(--text); }
.upload-box small { color: var(--muted); }
.fake-form-grid button { grid-column: auto; border: 0; }

.form-success {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #dcfce7;
  color: #14532d;
  font-weight: 700;
  border: 1px solid #86efac;
  position: relative;
  z-index: 1;
}
.form-upload-box input[type="file"] {
  margin-top: 8px;
  font: inherit;
}

.page-hero.small { padding: 54px 0 16px; }
.site-footer { background: #020617; color: #cbd5e1; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 70px 0; }
.footer-brand h3 { margin: 0 0 4px; color: #fff; font-size: 24px; }
.footer-brand p, .footer-contact, .site-footer .widget, .site-footer .widget-title { color: #94a3b8; }
.footer-contact, .footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer h4 { color: #fff; margin-top: 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; color: #94a3b8; }
.widget-title { margin-top: 0; }
.entry-content img { border-radius: 20px; }
@media (max-width: 1100px) {
  .hero-grid, .header-inner, .two-col, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  .cards.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .cards.three, .cards.four, .widgets-grid, .stats-grid, .fake-form-grid, .form-actions-row { grid-template-columns: 1fr; }
  .site-title { font-size: 18px; }
  .brand-logo, .brand-logo .custom-logo-link, .custom-logo-link { width: 60px; height: 60px; flex-basis: 60px; }
  .footer-brand img { width: 50px; height: 50px; }
  .container { width: min(var(--container), calc(100% - 20px)); }
  .company-brand-badge { width: 74px; height: 74px; flex-basis: 74px; }
  .form-brand-head h3 { font-size: 24px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .header-cta { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .nav-wrap { justify-content: flex-end; align-items: center; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(78vw, 360px);
    height: 100vh;
    background: #020814;
    padding: 92px 28px 28px;
    transform: translateX(100%);
    transition: transform .28s ease, visibility .28s ease;
    z-index: 120;
    overflow-y: auto;
    box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
    visibility: hidden;
    pointer-events: none;
  }
  .bncf-mobile-overlay { display: none; }
  body.bncf-mobile-menu-open {
    overflow: hidden;
  }
  body.bncf-mobile-menu-open .primary-nav,
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .bncf-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, .44);
    z-index: 110;
    cursor: pointer;
  }
  body:not(.bncf-mobile-menu-open) .bncf-mobile-overlay {
    display: none;
  }
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: #fff;
    font-size: 52px;
    line-height: 1;
    z-index: 130;
    background: transparent;
    cursor: pointer;
  }
  .primary-nav .menu {
    display: block;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .primary-nav .menu > li {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .primary-nav .menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    pointer-events: auto;
  }
  .primary-nav .menu .sub-menu {
    position: static;
    display: none;
    margin: 0 0 16px;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    padding: 0 0 0 14px;
  }
  .primary-nav .menu > li.submenu-open > .sub-menu {
    display: block;
  }
  .primary-nav .menu .sub-menu li {
    border: 0;
  }
  .primary-nav .menu .sub-menu a {
    color: rgba(255,255,255,.82);
    padding: 10px 0;
    font-size: 16px;
  }
}

@media (max-width: 760px) { .primary-nav a, .mobile-menu-close, .bncf-mobile-overlay, .mobile-menu-toggle { -webkit-tap-highlight-color: transparent; } }
