:root{
  --bg:#f7f9fc;
  --surface:#ffffff;
  --surface2:#f1f5fb;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#42526a;
  --line:rgba(16,24,40,.12);
  --accent:#6b4ba3;        /* refined purple */
  --accent2:#1b6ea8;       /* medical blue */
  --accent3:#2aa6a3;       /* teal */
  --shadow: 0 12px 28px rgba(16,24,40,.10);
  --shadow2: 0 6px 18px rgba(16,24,40,.08);
  --radius:20px;
  --max:1200px;
  --header-h:84px;
  color-scheme: light;
}

*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(27,110,168,.10), transparent 62%),
    radial-gradient(900px 520px at 88% 8%, rgba(107,75,163,.10), transparent 62%),
    radial-gradient(700px 420px at 50% 100%, rgba(42,166,163,.08), transparent 62%),
    linear-gradient(180deg, #ffffff, #f7f9fc 35%, #ffffff);
  color:var(--text);
}

a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:16px;top:16px;width:auto;height:auto;background:#fff;padding:10px 12px;border-radius:12px;z-index:9999;border:1px solid var(--line);box-shadow:var(--shadow2)}

.site-header{
  position:sticky;top:0;z-index:1000;
  height:var(--header-h);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand img{height:44px;width:auto;display:block}
.brand .name strong{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: .01em;
  font-size: 16px;
  line-height: 1.05;
  display:block;
}
.brand .name span{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  display:block;
  margin-top:4px;
}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav a{
  text-decoration:none;
  color:rgba(11,18,32,.86);
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{
  background: rgba(27,110,168,.08);
  color: rgba(11,18,32,1);
}
.nav a[aria-current="page"]{
  background: rgba(107,75,163,.10);
  color: rgba(11,18,32,1);
}

/* --- Nav dropdown --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown > .nav-link {
  text-decoration: none;
  color: rgba(11,18,32,.86);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.nav-dropdown > .nav-link:hover {
  background: rgba(27,110,168,.08);
}
.nav-dropdown > .dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px 6px;
  z-index: 100;
}
.nav-dropdown:hover > .dropdown-menu {
  display: block !important;
}
.nav-dropdown > .dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(11,18,32,.86);
  text-decoration: none;
  transition: background .15s;
}
.nav-dropdown > .dropdown-menu a:hover {
  background: rgba(27,110,168,.08);
}

.nav-toggle{display:none}
.nav-toggle button{
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  padding:10px 12px;border-radius:12px;
  font-weight:700;
  box-shadow:var(--shadow2);
}

.nav-mobile{
  display:none;
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
}
.nav-mobile .container{
  padding:12px 22px 18px;
  display:grid;
  gap:10px;
}
.nav-mobile a{
  text-decoration:none;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.80);
  font-weight:650;
}

.nav-mobile.open{display:block}

/* --- Hero with side ads --- */
.hero-with-ads {
  display: flex;
  align-items: stretch;
  background: #0b1220;
  border-bottom: 1px solid var(--line);
  height: clamp(420px, 72vh, 820px);
}
.hero-sponsor {
  flex: 0 0 180px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0b1220;
  padding: 0;
}
.hero-sponsor a { display: block; line-height: 0; width: 100%; height: 100%; }
.hero-sponsor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.hero-sponsor img:hover { opacity: 1; }

@media (max-width: 1100px) {
  .hero-sponsor { flex: 0 0 140px; }
}
@media (max-width: 860px) {
  .hero-with-ads { flex-direction: column; }
  .hero-sponsor { display: none; }
}

.hero-video{
  position:relative;
  flex: 1;
  width:100%;
  height: 100%;
  overflow:hidden;
  background: #0b1220;
}
.hero-video video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit: contain;   /* show whole video */
  transform:none;
  filter:saturate(1.02) contrast(1.02);
}
.hero-video .overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(1200px 520px at 50% 10%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(11,18,32,.20), rgba(11,18,32,.55) 65%, rgba(247,249,252,.92));
  pointer-events:none;
}
.hero-video .hero-content{
  position:relative;
  height:100%;
  display:flex;
  align-items:flex-end;
  padding: 46px 0;
}

.hero-card{
  width:min(760px, 100%);
  padding:22px 22px;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255,255,255,.86);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card h1{
  margin:0 0 8px 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -.01em;
}
.hero-card p{
  margin:0;
  color: var(--muted);
  font-size: 15px;
  line-height:1.55;
}

main{padding: 34px 0 70px}

.section{
  margin: 26px 0 0 0;
}
.section h2{
  margin:0 0 12px 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 26px;
  letter-spacing: -.01em;
}
.section h3{
  margin:22px 0 10px 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
}
.section p, .section li{
  color: rgba(11,18,32,.86);
  line-height: 1.7;
  font-size: 15px;
}

.hr{
  height:1px;background:var(--line);margin:18px 0 6px 0;border:0
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow2);
}
.card.soft{
  background: linear-gradient(180deg, #fff, rgba(27,110,168,.03));
}

.grid{display:grid;gap:16px}
.grid.two{grid-template-columns: repeat(2, minmax(0,1fr))}
@media (max-width:900px){.grid.two{grid-template-columns:1fr}}

.kv{display:flex;flex-direction:column;gap:6px}
.kv .k{
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.kv .v{
  color: rgba(11,18,32,.92);
  font-weight: 650;
  font-size: 15px;
}

.list-cols{
  columns:2;
  column-gap:28px;
}
@media (max-width:820px){.list-cols{columns:1}}

.img-frame{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow2);
}
.img-frame img{display:block;width:100%;height:auto}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(107,75,163,.12), rgba(27,110,168,.10));
  color: rgba(11,18,32,.95);
  text-decoration:none;
  font-weight:800;
  box-shadow: var(--shadow2);
}
.btn:hover{filter:brightness(1.02)}

.form{
  display:grid;gap:12px;
}
.input, textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  font:inherit;
  background:#fff;
  box-shadow: inset 0 1px 0 rgba(16,24,40,.04);
}
textarea{min-height:140px;resize:vertical}

.site-footer{
  border-top:1px solid var(--line);
  background: #ffffff;
}
.footer-inner{
  padding: 26px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer-left{
  color: rgba(11,18,32,.78);
  font-size: 13px;
}
.footer-links{
  display:flex;gap:12px;flex-wrap:wrap;
  color: rgba(11,18,32,.72);
  font-size: 13px;
}
.footer-links a{opacity:.95;text-decoration:none}
.footer-links a:hover{text-decoration:underline}

@media (max-width:980px){
  .nav{display:none}
  .nav-toggle{display:block}
}


/* --- Embedded portal (Member / Dues) --- */
.iframe-wrap{
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.iframe-wrap iframe{
  width: 100%;
  display: block;
  border: 0;
  background: var(--surface);
  min-height: 820px; /* fallback */
  height: 82vh;
}
@media (max-width: 720px){
  .iframe-wrap iframe{ min-height: 900px; height: 84vh; }
}

/* Removed hero title card overlay */
.hero-card,.hero-content{display:none!important;}
/* === Mobile Hamburger Menu === */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 9999;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Dropdown card panel below header */
  header nav {
    display: none;
    position: absolute !important;
    top: 100% !important;
    right: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: 80vh;
    overflow-y: auto;
    margin: 8px 0 0 0 !important;
    background: rgba(8,15,30,.97) !important;
    border: 1px solid rgba(148,163,184,.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.6) !important;
    padding: 16px 20px !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 9990 !important;
  }

  header nav.open {
    display: flex !important;
  }

  /* Top-level links */
  header nav > a {
    margin-left: 0 !important;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    color: #e5e7eb !important;
    text-decoration: none;
    border-radius: 10px;
    display: block;
    text-align: left;
    transition: background 0.15s;
  }
  header nav > a:hover {
    background: rgba(56,189,248,.1);
  }
  header nav > a::after {
    display: none !important;
  }

  /* Dropdown wrappers */
  header nav .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
  }
  header nav .nav-dropdown > .nav-link {
    margin-left: 0 !important;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 14px;
    color: #e5e7eb !important;
    text-decoration: none;
    border-radius: 10px;
    display: block;
    text-align: left;
    transition: background 0.15s;
  }
  header nav .nav-dropdown > .nav-link:hover {
    background: rgba(56,189,248,.1);
  }
  header nav .nav-dropdown > .nav-link::after {
    display: none !important;
  }

  /* Sub-menus */
  header nav .nav-dropdown > .dropdown-menu {
    position: static !important;
    display: none !important;
    background: rgba(15,23,42,.5) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 10px !important;
    backdrop-filter: none !important;
    padding: 6px 8px !important;
    min-width: auto !important;
    margin: 0 8px 6px 8px;
  }
  header nav .nav-dropdown.open > .dropdown-menu {
    display: flex !important;
    flex-direction: column;
  }
  header nav .nav-dropdown:hover > .dropdown-menu {
    display: none !important;
  }
  header nav .nav-dropdown.open:hover > .dropdown-menu {
    display: flex !important;
  }
  header nav .nav-dropdown > .dropdown-menu a {
    font-size: 13px;
    color: #94a3b8 !important;
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: 0 !important;
    display: block;
    text-align: left;
    transition: background 0.15s;
  }
  header nav .nav-dropdown > .dropdown-menu a:hover {
    color: #e5e7eb !important;
    background: rgba(56,189,248,.1) !important;
  }
  header nav .nav-dropdown > .dropdown-menu::before {
    display: none !important;
  }

  /* Dividers between all nav items */
  header nav > a + a,
  header nav > a + .nav-dropdown,
  header nav > .nav-dropdown + a,
  header nav > .nav-dropdown + .nav-dropdown {
    border-top: 1px solid rgba(148,163,184,.12);
  }
}

/* --- Video archive list --- */
.archive-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}
.archive-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.archive-entry:first-child {
  border-top: 1px solid var(--line);
}
.archive-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.archive-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.15s;
}
.archive-title:hover {
  color: var(--accent);
  text-decoration: underline;
}
