:root {
    --navy: #2a3681;
    --teal: #097e93;
    --sky: #24a8de;
    --green: #1bae4b;
    --orange: #e76f24;
    --text: #16242b;
    --text-muted: #5c6b72;
    --border: #e2e8ea;
    --bg-soft: #f4f8f7;
    --bg-soft-2: #eef4f2;
    --white: #ffffff;

    --container-w: 1280px;
    --gap: 28px;
    --radius: 12px;
    --radius-lg: 14px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: 'Lora', Georgia, serif; margin: 0; }
  a { color: var(--teal); text-decoration: none; }
  a:hover { color: #065f70; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; }
  ul { list-style: none; margin: 0; padding: 0; }

  .container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 64px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .15s ease;
  }
  .btn:hover { opacity: .9; }
  .btn-primary { background: var(--teal); color: var(--white); }
  .btn-primary:hover { color: var(--white); }
  .btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
  }
  .btn-outline:hover { color: var(--white); }
  .btn-sm { padding: 11px 22px; font-size: 14px; }

  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .section-head h2 {
    font-size: 25px;
    color: var(--navy);
    font-weight: 700;
  }
  .section-head a {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .site-header .logo img { max-height: 40px; width: auto; }
  .site-header .logo { flex: 0 1 auto; min-width: 0; }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .main-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: #243944;
  }
  .main-nav a:hover { color: var(--teal); }

  .header-actions { display: flex; align-items: center; gap: 12px; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---------- Hero ---------- */
  .hero {
    background: var(--navy);
    padding: 88px 64px 96px;
    display: flex;
    align-items: center;
    gap: 56px;
  }
  .hero-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 560px;
  }
  .hero-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: #bcd6cd;
    text-transform: uppercase;
    font-weight: 700;
  }
  .hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--white);
    font-weight: 700;
  }
  .hero-content p {
    font-size: 16.5px;
    line-height: 1.65;
    color: #c7d6da;
    margin: 0;
  }
  .hero-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
  .hero-art { flex: 1 1 0; display: flex; justify-content: center; }

  /* ---------- Featured event ---------- */
  .event-card {
    display: flex;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .event-card__media {
    width: 340px;
    flex-shrink: 0;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
  }
  .event-card__body {
    flex: 1;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
  }
  .event-card__eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .event-card__body h3 { font-size: 23px; color: var(--text); font-weight: 700; }
  .event-card__body p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }
  .event-card__body .btn { align-self: flex-start; margin-top: 8px; background: var(--teal); }

  /* ---------- News grid ---------- */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
  }
  .news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
  }
  .news-card__media {
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .news-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
  .news-card__date { font-size: 12px; color: var(--text-muted); font-weight: 600; }
  .news-card__body h3 { font-size: 16px; color: var(--text); font-weight: 700; line-height: 1.4; }
  .news-card__body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

  /* ---------- Documents ---------- */
  .docs-section { background: var(--bg-soft); }
  .docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  .doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
  }
  .doc-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--bg-soft-2);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .doc-card__title { font-size: 14.5px; font-weight: 700; color: var(--text); }
  .doc-card__meta { font-size: 12.5px; color: var(--text-muted); }

  section.section { padding: 80px 64px 72px; }
  section.section + section.section { padding-top: 0; }

  /* ---------- Footer ---------- */
  .site-footer { background: var(--navy); padding: 56px 64px 32px; }
  .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
  }
  .footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
  .footer-brand__logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
  }
  .footer-brand__logo img { max-height: 46px; width: auto; }
  .footer-social { display: flex; gap: 12px; }
  .footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-contact { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
  .footer-contact__label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7fd4c9;
  }
  .footer-contact span:not(.footer-contact__label) { color: #dce8ea; font-size: 13.5px; line-height: 1.55; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #7d95a0;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .container,
    .site-header,
    .hero,
    section.section,
    .docs-section,
    .site-footer { padding-left: 24px; padding-right: 24px; }

    .main-nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--white);
      border-bottom: 1px solid var(--border);
      max-height: 0;
      overflow: hidden;
      transition: max-height .25s ease;
      visibility: hidden;
    }
    .main-nav.is-open { max-height: min(70vh, 420px); overflow-y: auto; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px; }
    .main-nav li { width: 100%; }
    .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }

    .hero { flex-direction: column; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 32px; }
    .hero-art svg { width: 260px; height: 260px; }

    .event-card { flex-direction: column; }
    .event-card__media { width: 100%; padding: 28px; }
    .event-card__body { padding: 28px; }

    section.section { padding: 56px 24px 48px; }
    section.section + section.section { padding-top: 0; }
    .docs-section { padding: 56px 24px; }
  }

  @media (max-width: 560px) {
    .site-header { padding: 12px 16px; gap: 12px; }
    .site-header .logo img { max-height: 34px; }
    .header-actions { gap: 8px; flex-shrink: 0; }
    .header-actions .btn-sm { padding: 10px 12px; font-size: 12px; }
    .nav-toggle { width: 44px; height: 44px; flex-shrink: 0; }
    .main-nav ul { padding-left: 16px; padding-right: 16px; }
    .hero, section.section, .docs-section, .site-footer { padding-left: 20px; padding-right: 20px; }
    .hero { padding-top: 42px; padding-bottom: 48px; gap: 28px; }
    .hero-content { gap: 18px; min-width: 0; }
    .hero-eyebrow { font-size: 10.5px; line-height: 1.5; }
    .hero-content h1 { font-size: 27px; }
    .hero-content p { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
    .hero-art svg { width: min(220px, 100%); height: auto; }
    .section-head { align-items: flex-start; }
    .section-head h2 { font-size: 22px; }
    .news-grid, .docs-grid { grid-template-columns: minmax(0, 1fr); }
    .event-card__body { padding: 24px 20px; }
    .event-card__body h3 { font-size: 21px; }
    .doc-card { min-width: 0; }
    .doc-card > div:last-child { min-width: 0; overflow-wrap: anywhere; }
    .footer-top { gap: 32px; }
  }

  @media (max-width: 360px) {
    .site-header { gap: 8px; padding-left: 12px; padding-right: 12px; }
    .site-header .logo img { max-height: 30px; }
    .header-actions .btn-sm { padding: 9px 10px; font-size: 11px; }
    .hero, section.section, .docs-section, .site-footer { padding-left: 16px; padding-right: 16px; }
  }

/* Bổ sung cho dữ liệu thật; CSS chính lấy nguyên từ HTML người dùng. */
.news-card__media img,.cover img{width:100%;height:100%;object-fit:cover}.event-card__media{overflow:hidden}.event-card__media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.event-card__media{position:relative}.news-card h3{overflow-wrap:anywhere}.event-card h3{overflow-wrap:anywhere}.article-cover{height:auto!important}.article-cover img{width:100%;height:auto;max-height:620px;object-fit:contain;background:#eef4f2}.article-body{overflow-wrap:anywhere}.article-body img{max-width:100%;height:auto}.article-body pre{white-space:pre;overflow:auto;background:#f4f8f7;padding:18px;border-radius:8px}.article-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.article-body td,.article-body th{padding:10px;border:1px solid #dbe4e7}.article-body ul{list-style:disc;padding-left:24px}.article-body ol{padding-left:24px}.article-body li{margin-bottom:7px}.toolbar input{min-width:0}.toolbar button{white-space:nowrap}.chips a{display:inline-block;border:1px solid #dce6e8;padding:9px 14px;border-radius:30px;background:#fff;font:600 12px/1.4 Manrope,system-ui,sans-serif;color:#5c6b72}.chips a.active,.chips a:hover{background:#097e93;color:white;border-color:#097e93}.cms-pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin-top:28px}.cms-pagination a,.cms-pagination span{padding:8px 13px;border:1px solid #e2e8ea;border-radius:7px;color:#097e93;font-size:13px}.cms-pagination .current{background:#097e93;color:white;border-color:#097e93}.cms-pagination .disabled{color:#9aa8ae}.cms-empty{border:1px dashed #cadbdf;background:#f4f8f7;color:#5c6b72;padding:26px;border-radius:12px;line-height:1.8}.cards .cms-empty{grid-column:1/-1}.cms-alert{padding:14px 18px;background:#e7f5ee;color:#236347;border-radius:8px;margin:16px 0;font-size:14px}.cms-alert.error{background:#fff0f0;color:#a33333}.cms-alert ul{list-style:disc;padding-left:22px}.cms-comment{padding:20px 0;border-top:1px solid #e2e8ea}.cms-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.cms-comment small{color:#5c6b72}.cms-honeypot{display:none}.cms-banner{width:100%;height:auto;max-height:460px;object-fit:cover}.cms-details{margin:24px 0;background:#f4f8f7;border:1px solid #dce7e9;border-radius:10px;padding:20px;font-size:15px}.cms-details h2{margin-top:0}.cms-meta-foot{font-size:12px;color:#5c6b72;margin:0 0 15px}.main-nav ul{flex-wrap:wrap;row-gap:8px}.site-header{gap:22px}.main-nav a{white-space:nowrap}.article-body h2,.article-body h3{scroll-margin-top:100px}.inline-toc a{display:block;margin-top:9px}.article-tags .tag{font-size:12px}.footer-contact a{color:#dce8ea}.cms-search-summary{font-size:14px;color:#5c6b72;margin-top:12px}@media(max-width:680px){.toolbar{flex-wrap:wrap}.toolbar input{flex-basis:100%}.toolbar select{flex:1}.cms-pagination{gap:5px}.article-tools{flex-wrap:wrap}.site-header{gap:12px}}@media print{.comments,.cms-pagination,.article-tools,.inline-toc{display:none!important}}

/* Footer dùng chung theo ảnh tham chiếu. */
.site-footer{background:#2f3883;padding:56px 48px 24px}
.site-footer .footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:48px;flex-wrap:wrap}
.site-footer .footer-brand{max-width:430px;gap:20px}
.site-footer .footer-brand__logo img{width:420px;max-width:100%;height:auto;max-height:none}
.site-footer .footer-social{display:flex;gap:14px}
.site-footer .footer-social a,.site-footer .footer-social__icon{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.3);border-radius:50%;color:#f4f7ff}
.site-footer .footer-social a:hover{background:rgba(255,255,255,.12);border-color:#7fd4c9}
.site-footer .footer-contact{width:340px;max-width:100%;display:flex;flex-direction:column;gap:18px}
.site-footer .footer-contact__label{color:#7fd4c9;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.site-footer .footer-contact span:not(.footer-contact__label),.site-footer .footer-contact a{font-size:16px;line-height:1.65;color:#dce3f1}
.site-footer .footer-bottom{margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.14);color:#8998b2;font-size:14px}
@media(max-width:960px){.site-footer{padding:40px 24px 24px}.site-footer .footer-brand__logo img{width:360px}}
@media(max-width:640px){.site-footer{padding:32px 16px 22px}.site-footer .footer-top{gap:30px}.site-footer .footer-brand,.site-footer .footer-contact{width:100%}.site-footer .footer-brand__logo img{width:100%;max-width:360px}.site-footer .footer-bottom{margin-top:30px;padding-top:20px}.site-footer .footer-contact span:not(.footer-contact__label),.site-footer .footer-contact a{font-size:14px}}

/* Navigation and sections from the approved mockup. */
:root{--feature-image-width:320px;--feature-image-ratio:4/3}
.cms-member-cta{display:inline-flex;align-items:center;justify-content:center;padding:13px 24px;border-radius:8px;background:var(--teal);color:#fff;font-size:14.5px;font-weight:700;white-space:nowrap}.cms-member-cta:hover{color:#fff;opacity:.9}
html{scroll-padding-top:160px}body{overflow-wrap:break-word}button,input{font:inherit}button,a,input{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:8px;z-index:300;transform:translateY(-160%);background:white;padding:12px;border:2px solid var(--teal);border-radius:8px}.skip-link:focus{transform:none}
.site-header{display:block;padding:0;gap:0;background:white;position:sticky;top:0;z-index:100;border-bottom:1px solid var(--border)}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 48px;max-width:1700px;margin:auto}
.site-header .logo{flex:0 1 340px;min-width:150px}.site-header .logo img{width:340px;height:auto;max-height:64px;object-fit:contain}
.header-tools{display:flex;align-items:center;gap:24px;min-width:0}.search-form{display:flex;align-items:center;width:300px;height:42px;border:1px solid #cbd5e1;border-radius:8px;background:white;overflow:hidden}.search-form:focus-within{box-shadow:0 0 0 3px #097e9320;border-color:var(--teal)}.search-form button{display:flex;align-items:center;justify-content:center;width:44px;height:40px;flex-shrink:0;border:0;background:transparent;color:#657489}.search-form input{width:100%;min-width:0;padding:9px 10px 9px 0;border:0;outline:none;background:transparent;font-size:14px;color:var(--text)}
.language-switch{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px;color:#63717f}.language-switch button{padding:6px 0;background:transparent;border:0;color:#546373}.language-switch button[aria-pressed=true]{color:var(--teal);font-weight:800}
.mobile-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--border);border-radius:8px;background:var(--bg-soft);color:var(--navy);flex-shrink:0}
.site-header .main-nav{position:static;max-height:none;visibility:visible;overflow:visible;background:#edf8f9;width:100%;padding:0;border-top:1px solid #edf1f4;transform:none}
.site-header .main-nav .nav-list{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:24px;list-style:none;margin:0 auto;max-width:1500px;padding:8px 40px;flex-wrap:nowrap}
.nav-item{position:relative;flex:0 0 auto;min-width:0}.nav-item-row{display:flex;align-items:center;gap:2px}.site-header .main-nav .nav-link{display:inline-flex;align-items:center;gap:8px;padding:12px 3px;border:0;color:var(--navy);font-size:14px;font-weight:700;white-space:nowrap}.site-header .main-nav .nav-link:hover{color:var(--teal)}.nav-link.is-active{background:#d8eef1;border-radius:7px;border-bottom:2px solid var(--teal)!important;padding:10px!important;min-height:42px}.dropdown-toggle{display:inline-flex;align-items:center;justify-content:center;padding:5px;width:24px;height:32px;background:none;border:0;border-radius:4px;color:var(--navy)}.chevron{width:12px;height:12px;transition:transform .15s}.dropdown-toggle[aria-expanded=true] .chevron{transform:rotate(180deg)}
.nav-login{border-left:1px solid #badce2;margin-left:14px;padding-left:24px}.nav-login .nav-link{color:var(--teal)!important}
.site-header .main-nav .dropdown-panel{position:absolute;left:0;top:calc(100% + 6px);display:block;min-width:230px;padding:8px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 12px 28px #16242b15;z-index:120}.site-header .main-nav .dropdown-panel[hidden]{display:none}.site-header .main-nav .dropdown-panel li{width:100%}.site-header .main-nav .dropdown-panel a{display:block;white-space:normal;padding:11px 12px;border:0;border-radius:6px;font-size:13px;color:var(--text)}.site-header .main-nav .dropdown-panel a:hover{background:#edf8f9;color:var(--teal)}.nav-login .dropdown-panel{left:auto;right:0}
.hero{padding:72px max(40px,calc((100vw - 1480px)/2));min-height:460px}.hero-content{max-width:620px}.hero h1{font-size:clamp(30px,3.3vw,46px)}.hero-art svg{max-width:100%;height:auto}
section.section{padding:64px 40px 48px;max-width:1560px;margin:0 auto}section.section+section.section{padding-top:8px}.section-head{margin-bottom:16px}.section-head h2{font-size:26px}.section-head a{font-size:13px}
.event-card{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg-soft);gap:0;min-height:240px}
/* One shared image box for both Sự kiện and Cập nhật khoa học. */
.event-card .event-card__media{position:relative;flex:0 0 var(--feature-image-width);width:var(--feature-image-width);padding:0;aspect-ratio:var(--feature-image-ratio);overflow:hidden;background:#eaf4f4;align-self:center}.event-card .event-card__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.event-card__body{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:28px 32px;min-width:0;flex:1}.event-card__body h3{font-size:22px;color:var(--navy)}.event-card__body p{font-size:14px}.event-card__body .btn{font-size:13px;padding:11px 18px}.event-card__eyebrow{color:var(--teal)}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.news-card{min-width:0;color:var(--text)}.news-card__media{height:auto;aspect-ratio:16/7;overflow:hidden}.news-card__media img{width:100%;height:100%;object-fit:cover}.news-card__body{padding:20px}.news-card__body h3{font-size:18px;line-height:1.45;color:var(--navy)}.news-card__body p{font-size:13px;line-height:1.75}.news-card__date{font-size:12px;color:#788497}.news-card{transition:box-shadow .15s,transform .15s}.news-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #2a368110}
.training-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.training-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;min-width:0}.training-card>img{width:100%;aspect-ratio:16/6;object-fit:cover}.training-card>div{padding:20px}.training-card h3{font-size:20px;color:var(--navy)}.training-card p{color:var(--text-muted);font-size:13px;line-height:1.7}.training-card .btn{font-size:13px;padding:10px 17px}
.docs-section{border-radius:0}.doc-card{min-width:0}.doc-card__title{font-size:14px}.membership-section{max-width:1560px;padding:0 40px 24px;margin:0 auto}.membership-banner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;border-radius:14px;background:#eaf7f8;padding:30px 40px;min-height:190px}.membership-banner>div{position:relative;z-index:1;max-width:880px}.membership-banner h2{font-size:36px;color:var(--navy)}.membership-banner p{font-size:14px;line-height:1.7;margin:8px 0 16px}.membership-banner>img{position:absolute;right:0;top:0;height:100%;width:340px;object-fit:cover;opacity:.75;pointer-events:none}.membership-banner .btn{font-size:13px;padding:11px 20px}
.faq-toggle{position:fixed;bottom:24px;right:24px;z-index:90;display:flex;align-items:center;gap:8px;padding:13px 18px;border:0;border-radius:28px;background:var(--teal);color:white;box-shadow:0 4px 15px #16242b20;font-size:13px;font-weight:700}
dialog{width:min(640px,calc(100% - 32px));max-height:80dvh;border:1px solid var(--border);border-radius:16px;padding:26px;color:var(--text);box-shadow:0 24px 70px #16242b30}dialog::backdrop{background:#16242b80}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-head h2{font-size:24px;color:var(--navy)}.dialog-close{border:0;background:var(--bg-soft);font-size:26px;width:38px;height:38px;border-radius:8px;color:var(--navy)}dialog p{line-height:1.7}#search-results{display:grid;gap:10px}#search-results a{display:block;padding:13px;background:var(--bg-soft);border-radius:8px;font-size:14px;line-height:1.5}details{border-bottom:1px solid var(--border);padding:16px 0}summary{cursor:pointer;font-weight:600;font-size:14px}
@media(min-width:769px) and (max-width:1200px){.site-header .main-nav .nav-list{gap:10px;padding:8px 20px}.site-header .main-nav .nav-link{font-size:12px}.nav-login{margin-left:4px;padding-left:12px}.header-top{padding:16px 24px}.event-card .event-card__media{--feature-image-width:260px}.event-card__body{padding:22px}.hero{padding:56px 30px}.hero-content{max-width:520px}.hero-art svg{width:300px}}
@media(max-width:1100px){html{scroll-padding-top:180px}.header-top{flex-wrap:wrap;gap:14px;padding:14px 20px}.site-header .logo{flex:1 0 100%;min-width:0}.site-header .logo img{width:300px;max-height:52px}.header-tools{width:100%;gap:12px;flex-wrap:wrap}.search-form{flex:1 1 180px;width:auto}.language-switch{margin-right:auto;gap:6px;font-size:12px}.mobile-toggle{display:flex}.site-header .main-nav{display:none;max-height:65dvh;overflow-y:auto}.site-header .main-nav.is-open{display:block;max-height:65dvh;visibility:visible;overflow-y:auto}.site-header .main-nav .nav-list{display:block;padding:8px 20px}.nav-item{width:100%;border-bottom:1px solid #d8e9ed}.nav-item-row{justify-content:space-between;gap:12px}.site-header .main-nav .nav-link{flex:1;padding:13px 8px;min-height:44px;font-size:14px}.nav-link.is-active{flex:0 0 auto}.dropdown-toggle{width:44px;height:44px}.nav-login{padding-left:0;margin-left:0;border-left:0}.site-header .main-nav .dropdown-panel{position:static;box-shadow:none;min-width:0;border:0;border-left:2px solid #badce2;border-radius:0;margin:0 0 10px 18px;padding:4px 8px}.hero{padding:40px 24px;min-height:0;gap:28px;flex-direction:column;align-items:stretch}.hero-content{max-width:none}.hero-art svg{width:220px;height:220px}.hero h1{font-size:32px}.hero-content p{font-size:15px}.hero-actions .btn,.hero-actions .cms-member-cta{font-size:13px;padding:11px 15px}.event-card{flex-direction:column}.event-card .event-card__media{flex:none;width:100%;aspect-ratio:4/3;height:auto;min-height:0}.event-card__body{padding:24px}.event-card__body h3{font-size:21px}.news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.training-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}section.section{padding:40px 24px 32px}.section-head h2{font-size:23px}.membership-section{padding:0 24px 24px}.membership-banner{padding:26px 24px}.membership-banner h2{font-size:30px}.membership-banner>img{opacity:.18}.faq-toggle{right:16px;bottom:16px}}
@media(max-width:520px){.header-top{padding:12px 16px}.header-tools{gap:10px}.search-form{flex:1 1 calc(100% - 55px);order:1}.mobile-toggle{order:2}.language-switch{order:3;margin-left:auto;margin-right:0}.site-header .main-nav .nav-list{padding:8px 16px}.hero{padding:36px 20px}.hero-art{display:none}.hero h1{font-size:29px}.hero-content{gap:18px}.news-grid,.training-grid,.docs-grid{grid-template-columns:minmax(0,1fr)}section.section{padding:36px 20px 28px}.section-head{gap:8px}.section-head h2{font-size:22px}.event-card__body{padding:22px 20px}.membership-section{padding:0 20px 20px}.membership-banner{padding:24px 20px}.membership-banner h2{font-size:28px}.site-footer{padding-bottom:80px}.news-card__media{aspect-ratio:16/8}.training-card>img{aspect-ratio:16/7}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}


/* Bridge existing database-backed category/detail/member views. */
body .site-header{position:sticky;display:block;top:0;width:100%;z-index:100;padding:0;gap:0}
body main{padding-top:0}body .main-nav{position:relative;top:auto}
body .cms-member-cta{display:inline-flex;background:var(--teal);color:white;padding:12px 22px;border-radius:8px;font-weight:700}
body .main-nav ul.nav-list{flex-wrap:wrap;justify-content:center}
body .new-home{max-width:1440px;margin:0 auto}
body .news-card .cover{height:210px;overflow:hidden}body .news-card .cover img{height:100%;width:100%;object-fit:cover}
body .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body .cms-empty{padding:24px;border:1px dashed var(--border);border-radius:12px;color:var(--text-muted)}
body .lock-badge{display:inline-block;padding:5px 9px;margin:8px 0;background:#edf3f4;color:var(--teal);border-radius:5px;font-size:12px;font-weight:700}
body .site-footer{margin-top:40px}body .member-logout{background:none;border:0;padding:12px 18px;color:var(--teal);font:inherit;width:100%;text-align:left}
body .member-logout:hover{background:var(--bg-soft)}
@media(max-width:1100px){body .main-nav ul.nav-list{display:block}body .site-header .main-nav{position:relative}body .main-nav:not(.is-open){display:none}body .main-nav.is-open{display:block;max-height:70vh;overflow:auto}body .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body .cards{grid-template-columns:1fr}body .facets{padding:12px}body .header-top{gap:14px}body .site-header .logo img{width:210px;height:auto}body .language-switch{font-size:11px}body .wrap{padding-left:18px;padding-right:18px}}
