/* ==========================================================================
   1. UNIVERSAL RESET & VIEWPORT LOCK
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevents standard browser window scrollbars */
}

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

:root {
  --link-blue: #0066cc;
}

/* Global Link Styling */
a {
  color: var(--link-blue);
  text-decoration: underline;
}

/* ==========================================================================
   2. MAIN TABLE & PANEL LAYOUT
   ========================================================================== */
#mainTable {
  width: 100%;
  height: calc(100% - 50px); /* 50px offset accommodates bottom navbar height */
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
}

/* Green LH column: flush top/left/bottom, 20% width */
#leftPanel, .site-sidebar {
  width: 20%;
  vertical-align: top;
  padding: 15px;
  background-color: #c0dbc0; /* Green */
}

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

.level2title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222222;
  margin: 0 auto 16px auto;
  padding-top: 10px;
  text-align: center;
}

* ==========================================================================
   3. LEFT PANEL CATEGORY LIST (Centered Pill Buttons)
   ========================================================================== */
#controls {
  text-align: center;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 15px auto 0 auto;
  max-width: 85%;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list li a {
  display: block;
  padding: 10px 14px;
  color: #1a331a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  background-color: transparent;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* The inner span maintains exact horizontal centering for the text */
.category-list li a span {
  display: inline-block;
  position: relative; /* Anchor point for the arrow */
}

/* Hover state for unselected items */
.category-list li a:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: #000000;
}

/* Active / Selected Category Pill */
.category-list li.active a {
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Arrow anchored exactly 14px to the left of the text label */
.category-list li.active a span::before {
  content: "›";
  position: absolute;
  right: 100%;         /* Places arrow immediately outside the left edge of the text */
  margin-right: 6px;   /* Fixed 6px gap between arrow and first letter */
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.2rem;
  color: #1e5631;
}

/* ==========================================================================
   4. FAQ COMPONENT & WHITE CONTENT BOX
   ========================================================================== */
/* White Panel Container inside the Tan Panel */
.faq-content-box {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 15px auto;
  max-width: 900px;
}

.faq-category {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* FAQ Accordion Buttons & Answers */
.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);
}

.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;
}

.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;
}

.faq-a[hidden] {
  display: none;
}

/* ==========================================================================
   5. STANDARDIZED FIXED BOTTOM NAVBAR
   ========================================================================== */
.bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #000000; /* Fixed black bar background */
  z-index: 1000;
}

.bottom-navbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}

.bottom-navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bottom-navbar a:hover {
  color: #c0dbc0;
  background-color: #34495e;
}

.faq-content-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}
