@charset "utf-8";

:root {
  /* ----- Hopefluent refined tone ----- */
  --hopefluent-red:       #8C2F39;   /* burgundy – primary accent, links, headings   */
  --hopefluent-midred:    #A64B54;   /* soft rose – borders, rules                   */
  --hopefluent-vividred:  #B23A48;   /* vivid burgundy – hover / active state        */
  --hopefluent-maroon:    #5C1E26;   /* deep maroon – small headings                 */
  --hopefluent-dark:      #2E2A2B;   /* warm charcoal – body text                    */
  --hopefluent-pale:      #F7F2F1;   /* warm off-white – panels, footer              */
  --hopefluent-white:     #FFFFFF;
  --hopefluent-dashed:    #D4C2C4;   /* soft divider                                 */
  --hopefluent-muted:     #8C7B7D;   /* muted text                                   */
  --hopefluent-gold:      #C9A66B;   /* warm gold accent                             */

  --hopefluent-font: 'Roboto', "Times New Roman", "DFKai-sb", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--hopefluent-font);
  color: var(--hopefluent-dark);
  background: var(--hopefluent-white);
  line-height: 1.6;
}

a { text-decoration: none; color: var(--hopefluent-red); }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   TOP NOTICE STRIP
   ========================================================= */
.top-notice {
  background: var(--hopefluent-maroon);
  color: var(--hopefluent-white);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 0;
  border-bottom: 3px solid var(--hopefluent-gold);
}
.top-notice p { margin: 0; line-height: 1.5; }
.top-notice a {
  color: #F5E6D3;
  font-weight: bold;
  text-decoration: underline;
}
.top-notice a:hover { color: var(--hopefluent-gold); }

/* =========================================================
   MAIN HEADER
   ========================================================= */
.main-header {
  position: sticky;              /* ← stays pinned to the top */
  top: 0;                        /* ← sticks at the very top edge */
  z-index: 100;                  /* ← sits above content */
  background: var(--hopefluent-white);
  border-bottom: 3px solid var(--hopefluent-dark);
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);   /* subtle depth when floating */
  transition: box-shadow 0.2s ease;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo img { height: 70px; width: auto; }

/* =========================================================
   PRIMARY NAVIGATION
   ========================================================= */
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 1.15rem;
  font-weight: bold;
}
.primary-nav a {
  color: var(--hopefluent-red);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--hopefluent-vividred);
  border-bottom-color: var(--hopefluent-gold);
}

/* =========================================================
   CONTENT AREA  (sidebar + article)
   ========================================================= */
.content-area {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 40px 20px;
  background: var(--hopefluent-white);
}

/* ---------- Sidebar ---------- */
.sidebar { flex: 0 0 240px; }

#navrightmenu ul { list-style: none; }
#navrightmenu li {
  border-bottom: 1px solid var(--hopefluent-dashed);
}
#navrightmenu a {
  display: block;
  padding: 12px 14px;
  color: var(--hopefluent-red);
  font-weight: bold;
  font-size: 1.125rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#navrightmenu a:hover,
#navrightmenu a.active {
  background: var(--hopefluent-pale);
  color: var(--hopefluent-vividred);
  border-left-color: var(--hopefluent-gold);
}

/* ---------- Article ---------- */
.main-content { flex: 1; min-width: 0; }
.main-content h1 {
  font-size: 1.8rem;
  color: var(--hopefluent-red);
  border-bottom: 1px solid var(--hopefluent-dashed);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.main-content p {
  font-size: 1.15rem;
  text-align: justify;
  color: var(--hopefluent-dark);
  margin-bottom: 1.1em;
}
.main-content p:last-child { margin-bottom: 0; }
.main-content h2 { color: var(--hopefluent-vividred); }
.main-content h3 { color: var(--hopefluent-midred); }
.main-content h4 { color: var(--hopefluent-maroon); }

/* ===== Fee table (Member fee) ===== */
.fee-table {
  width: 100%;
  max-width: 600px;
  margin: 16px 0 24px;
  border-collapse: collapse;
  background: #fff;
}
.fee-table th,
.fee-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hopefluent-dashed);
  text-align: center;
  font-size: 0.95rem;
}
.fee-table th {
  background: var(--hopefluent-red);
  color: #fff;
  font-weight: bold;
}
.fee-table tr:nth-child(even) td {
  background: var(--hopefluent-pale);
}
.fee-table td:first-child { text-align: left; }

/* ===== Document link list ===== */
.doc-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.doc-list li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px dashed var(--hopefluent-dashed);
  position: relative;
  line-height: 1.6;
}
.doc-list li::before {
  content: "\f0f6";
  font-family: "FontAwesome";
  color: var(--hopefluent-midred);
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 0.95rem;
}
.doc-list a { color: var(--hopefluent-black); font-weight: 500; }
.doc-list a:hover { color: var(--hopefluent-vividred); text-decoration: underline; }

/* ===== Content figure ===== */
.content-figure {
  margin: 20px 0;
  text-align: center;
}
.content-figure img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hopefluent-dashed);
  padding: 6px;
  background: #fff;
}
.content-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--hopefluent-muted);
}

/* ===== Document group heading ===== */
.doc-group {
  font-size: 1.15rem;
  color: var(--hopefluent-vividred);
  border-bottom: 1px solid var(--hopefluent-dashed);
  padding-bottom: 6px;
  margin: 28px 0 10px;
}
.doc-group:first-of-type { margin-top: 0; }

/* ===== Qualifications numbered list ===== */
.qual-list {
  margin: 16px 0 0 1.4em;
  padding: 0;
}
.qual-list > li {
  margin-bottom: 12px;
  line-height: 1.7;
}
.qual-abbr {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}
.qual-abbr li {
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--hopefluent-gold);
  font-family: "Courier New", monospace;
  color: var(--hopefluent-red);
  font-size: 0.95rem;
}

/* ===== Site map grid ===== */
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 32px;
  margin: 20px 0;
}
.sitemap-group h2 {
  font-size: 1.05rem;
  color: var(--hopefluent-red);
  border-bottom: 2px solid var(--hopefluent-gold);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.sitemap-group ul { list-style: none; padding: 0; margin: 0; }
.sitemap-group li {
  padding: 5px 0 5px 18px;
  position: relative;
}
.sitemap-group li::before {
  content: "\f105";
  font-family: "FontAwesome";
  color: var(--hopefluent-midred);
  position: absolute;
  left: 0;
  top: 6px;
}
.sitemap-group a { color: var(--hopefluent-red); }
.sitemap-group a:hover { color: var(--hopefluent-vividred); text-decoration: underline; }

/* ===== External link list ===== */
.link-list {
  margin: 16px 0 0 1.4em;
  padding: 0;
}
.link-list > li { margin-bottom: 10px; line-height: 1.6; }
.link-list a { color: var(--hopefluent-red); font-weight: 500; }
.link-list a:hover { color: var(--hopefluent-vividred); text-decoration: underline; }
.link-list a::after {
  content: "\f08e";
  font-family: "FontAwesome";
  font-size: 0.75em;
  margin-left: 4px;
  color: var(--hopefluent-muted);
}

/* =========================================================
   FOOTER  (fully centred)
   ========================================================= */
.site-footer {
  background: var(--hopefluent-pale);
  color: var(--hopefluent-dark);
  padding: 20px 20px 16px;
  border-top: 3px solid var(--hopefluent-dark);
  border-bottom: 3px solid var(--hopefluent-dark);
  font-size: 1.05rem;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}
.footer-col h4 { display: none; }
.footer-col a {
  display: inline-block;
  padding: 0 20px;
  color: var(--hopefluent-red);
  font-weight: bold;
  border-right: 1px solid var(--hopefluent-dashed);
}
.footer-col a:last-child { border-right: none; }
.footer-col a:hover { color: var(--hopefluent-vividred); text-decoration: underline; }

.footer-copyright {
  max-width: 1200px;
  margin: 16px auto 0;
  padding-top: 12px;
  border-top: 1px dashed var(--hopefluent-dashed);
  text-align: center;
  color: var(--hopefluent-dark);
  font-size: 0.8rem;
}
.footer-copyright p {
  margin: 4px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-copyright a {
  color: var(--hopefluent-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.footer-copyright a:hover { color: var(--hopefluent-vividred); text-decoration: underline; }
.footer-copyright img { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* =========================================================
   LOGIN
   ========================================================= */
#login-message { margin-top: 10px; font-weight: bold; }
.login-button {
  display: inline-block;
  background: #E8DEDC;
  color: var(--hopefluent-red);
  padding: 15px 30px;
  border: 2px solid #E8DEDC;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.login-button:hover { background: #D9C9C7; }

/* =========================================================
   UTILITIES
   ========================================================= */
.hide  { display: none; }
.clear { clear: both; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .header-inner { justify-content: center; text-align: center; }
  .primary-nav ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .content-area { flex-direction: column; padding: 24px 16px; }
  .sidebar { flex: 1 1 auto; width: 100%; }
  .main-content h1 { font-size: 1.4rem; }
  .footer-col { flex-wrap: wrap; row-gap: 8px; }
  .footer-col a { border-right: none; padding: 0 14px; }
}

/* ===== Collapsible document accordion ===== */
.doc-accordion {
  border-bottom: 1px solid var(--hopefluent-dashed);
  margin-bottom: 12px;
}
.doc-accordion > summary {
  cursor: pointer;
  list-style: none;               /* hide default triangle in some browsers */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--hopefluent-vividred);
  transition: color 0.2s;
  user-select: none;
}
.doc-accordion > summary::-webkit-details-marker { display: none; }   /* Chrome/Safari */
.doc-accordion > summary::before {
  content: "\f105";               /* FontAwesome angle-right */
  font-family: "FontAwesome";
  display: inline-block;
  color: var(--hopefluent-gold);
  font-size: 1rem;
  transition: transform 0.2s;
}
.doc-accordion[open] > summary::before {
  transform: rotate(90deg);       /* points down when open */
}
.doc-accordion > summary:hover {
  color: var(--hopefluent-red);
}
.doc-accordion[open] > summary {
  border-bottom: 1px solid var(--hopefluent-dashed);
  margin-bottom: 12px;
}
/* The .doc-group class inside <summary> loses its own bottom border */
.doc-accordion > summary.doc-group {
  margin: 0;
  padding: 12px 4px;
  border-bottom: none;
}