@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');

:root {
  --sidebar-bg: #0d1b3e;
  --sidebar-hover: #152b52;
  --sidebar-text: #c8d6e5;
  --sidebar-active: #4a90d9;
  --accent: #4a90d9;
  --accent-dark: #3672b8;
  --header-bg: #ffffff;
  --body-bg: #f5f7fa;
  --card-bg: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7e;
  --salvation-gold: #d4a843;
  --border-light: #e1e8ef;
}
* { box-sizing: border-box; }
body { font-family: 'PT Sans', Tahoma, Arial, sans-serif; font-size: 16px; color: var(--text-primary); background-color: var(--sidebar-bg); margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Top header bar */
.top-header { border-bottom: none !important; background: #0d1b3e;  padding: 18px 20px; display: flex; align-items: center; justify-content: center; }
.top-header .header-text-link { font-size: 48px; font-weight: 700; color: #ffffff; text-decoration: none; letter-spacing: 1px; }
.top-header .header-text-link:hover { color: var(--accent); text-decoration: none; }
.top-header .header-tagline { color: #ffffff; font-size: 28px; font-weight: bold; vertical-align: middle; margin-right: 12px; }
.top-header img { vertical-align: middle; }

/* Layout */
.page-wrapper { display: flex; flex: 1; margin: 0; min-height: 0; }
.top-header, .page-wrapper, .site-footer { max-width: 1100px; margin: 0 auto; }

/* Sidebar */
.sidebar { width: 230px; min-width: 230px; background: var(--sidebar-bg); padding: 0; overflow-y: auto; flex-shrink: 0; align-self: stretch; }
.sidebar .sidebar-heading { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; padding: 15px 18px 8px; margin: 0; font-weight: 700; }
.sidebar .nav-link { color: var(--sidebar-text); font-size: 14px; padding: 7px 18px; display: block; border-left: 3px solid transparent; transition: all 0.15s ease; }
.sidebar .nav-link:hover { background: var(--sidebar-hover); color: #fff; border-left-color: var(--accent); text-decoration: none; }
.sidebar .nav-link.active { color: #fff; background: #152b52; border-left-color: var(--accent); font-weight: 700; }

/* Mobile sidebar toggle */
.sidebar-toggle { display: none; background: var(--sidebar-bg); color: #fff; border: none; padding: 10px 15px; font-size: 14px; width: 100%; text-align: left; cursor: pointer; }
.sidebar-toggle:hover { background: var(--sidebar-hover); }

/* Main content */
.main-content { flex: 1; padding: 25px 30px; max-width: 800px; background: var(--body-bg); }
.content-card { background: var(--card-bg); border-radius: 8px; padding: 22px 25px; margin-bottom: 18px; border: 1px solid var(--border-light); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.content-card h5 { color: var(--accent-dark); font-weight: 700; margin-bottom: 10px; font-size: 16px; }
.content-card h5 img { margin-right: 5px; vertical-align: middle; }
.content-card p, .content-card ul { font-size: 15px; line-height: 1.65; color: var(--text-primary); margin-bottom: 8px; }
.content-card ul { padding-left: 20px; }

/* Resource listings */
.resource-heading { color: var(--accent-dark); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.resource-heading img { margin-right: 5px; vertical-align: middle; }
.resource-list { font-size: 14px; line-height: 1.8; }
.resource-list a { color: var(--accent); }

/* Article content */
.article-content { font-family: 'PT Sans', 'Times New Roman', serif; font-size: 17px; line-height: 1.7; }
.article-content h1 { font-size: 48px; color: var(--text-primary); margin-bottom: 5px; font-weight: 400; }
.article-content h2 { font-size: 26px; color: var(--accent-dark); margin-top: 25px; font-weight: 400; }
.article-content h3 { font-size: 21px; color: var(--text-primary); margin-top: 20px; font-weight: 400; }
.article-content p, .article-content li, .article-content blockquote { font-size: 17px !important; line-height: 1.7 !important; }
.article-content p { margin-bottom: 12px; }
.article-content em { font-style: italic; }
.article-content blockquote { border-left: 3px solid var(--accent); margin: 15px 0; padding: 5px 15px; color: var(--text-secondary); }

/* Marquee */
.marquee-bar { border: none !important; background: var(--header-bg); text-align: center; padding: 8px 0; }
.marquee-bar marquee { color: var(--accent); font-style: italic; font-family: 'Times New Roman', serif; font-size: 14px; }

/* Footer */
.site-footer { background: var(--sidebar-bg); color: var(--sidebar-text); text-align: center; padding: 18px; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--salvation-gold); text-decoration: none; }

.site-footer .salvation-link { color: var(--salvation-gold); text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer .salvation-link:hover { color: #fff; }

/* Construction banner */
.construction-banner { background: var(--sidebar-bg); color: var(--sidebar-text); text-align: center; padding: 7px; font-size: 13px; font-weight: 700; border: none !important; box-shadow: none !important; outline: none !important; }

/* TOC / Chapter links */
.toc-list { font-size: 14px; line-height: 2; }
.toc-list a { color: var(--accent); }
.chapter-nav { font-size: 14px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border-light); }

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar { display: none; width: 100%; min-width: 100%; position: absolute; z-index: 1000; }
  .sidebar.show { display: block; }
  .sidebar-toggle { display: block; }
  .page-wrapper { flex-direction: column; }
  .main-content { padding: 15px; max-width: 100%; }
  .top-header .header-text-link { font-size: 22px; }
  .top-header .header-tagline { font-size: 14px; }
  .top-header img { height: 35px !important; }
  .content-card { padding: 15px; }
}


.header-inner { text-align: center; }
.header-subtitle { margin: 4px 0 0; font-size: 14px; color: #c8d6e5; font-weight: 400; letter-spacing: 0.5px; }
