/* ==========================================================================
   GLOBAL LAYOUT & VIEWPORT LOCK
   ========================================================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevents standard browser window scrollbars */
}

body {
  background: #f2e1ae; /* Tan main background */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ==========================================================================
   MAIN TABLE STRUCTURE
   ========================================================================== */
/* Main table fills full window; 50px offset accommodates bottom navbar height */
#mainTable {
  width: 100%;
  height: calc(100% - 50px);
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
}

/* Green LH column: flush top/left/bottom, 20% width */
#leftPanel {
  width: 20%;
  vertical-align: top;
  padding: 15px;
  background: #c0dbc0; /* Green */
  box-sizing: border-box;
}

/* Right main panel */
#rightPanel {
  width: 80%;
  vertical-align: top;
  padding: 20px 25px;
  background: #f2e1ae; /* Tan */
  box-sizing: border-box;
  overflow-y: auto; /* Enables scrolling for right panel content */
}

/* Left Panel Navigation Links */
.faq-nav-list {
  list-style-type: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.faq-nav-list li {
  margin-bottom: 8px;
}

.faq-nav-list a {
  color: #1a331a;
  text-decoration: none;
  font-weight: bold;
}

.faq-nav-list a:hover {
  text-decoration: underline;
}

/* Page Title Alignment */
.level2title {
  text-align: center;
}

/* ==========================================================================
   FAQ COMPONENT STYLES
   ========================================================================== */
/* Category Container (Centered in Right Panel) */
.faq-category {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.faq-cat-header h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #222222;
  border-bottom: 2px solid #333333;
  padding-bottom: 5px;
}

/* Item Outer Container */
.faq-item {
  margin-bottom: 12px;
  border: 1px solid #b8a676;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Question Button (Always Visible) */
.faq-q {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background-color: #2b3a42; /* Primary dark background */
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: block;
}

.faq-q:hover {
  background-color: #3b4d57;
}

/* Answer Body (Contrasting Revealed Block) */
.faq-a {
  background-color: #f0f4f8; /* Light contrasting background */
  color: #111111;
  padding: 14px 16px;
  border-top: 1px solid #cccccc;
}

.faq-a p {
  margin: 0;
  line-height: 1.5;
}

/* Hide toggle target natively */
.faq-a[hidden] {
  display: none;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #000000; /* Black bar background */
  z-index: 1000;
  box-sizing: border-box;
}

.bottom-navbar {
  display: flex;
  align-items: center;
  justify-content: space-around; /* Spreads links evenly across full bar */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.bottom-navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 6px 12px;
}

.bottom-navbar a:hover {
  color: #c0dbc0;
  text-decoration: underline;
}
