/* -------------------- */
/* Reset */
body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  background: #f5f5f5;
  color: #333;
}

/* -------------------- */
/* Layout */
.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* -------------------- */
/* Sidebar */
.sidebar {
  background-color: #002b5c; /* Dark ISBA blue */
  color: #fff;
  width: 240px;
  padding: 30px 20px;
  flex-shrink: 0;
  position: fixed; /* sticky for scrolling */
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar h2 {
  font-size: 1.8em;
  margin-bottom: 1.5em;
  color: #ffffff;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 20px 0;
}

.sidebar ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #f4c542; /* Gold accent */
}

/* Sidebar open class for mobile toggle */
.sidebar.open {
  left: 0;
}

/* -------------------- */
/* Sidebar toggle button - visible on all screens */
.sidebar-toggle {
  display: block;
  background: #002b5c;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1.2em;
  cursor: pointer;
  width: auto;
  text-align: center;
  position: fixed;
  top: 20px;
  left: 20px;
  border-radius: 4px;
  z-index: 1100;
}

/* -------------------- */
/* Main content */
.content {
  flex-grow: 1;
  margin-left: 260px; /* space for fixed sidebar */
  padding: 50px 60px;
  background: #ffffff;
  border-left: 4px solid #002b5c;
  transition: margin-left 0.3s ease;
}

/* -------------------- */
/* Typography */
h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #002b5c;
}

h2 {
  font-size: 2.2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #002b5c;
}

h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #002b5c;
}

a {
  color: #0056b3;
  text-decoration: underline;
}

/* Bylaws section numbering */
.bylaws h2::before {
  counter-increment: section;
  content: counter(section, upper-alpha) ". ";
  font-weight: bold;
  color: #002b5c;
}

/* -------------------- */
/* Paragraphs and lists */
p {
  margin: 0 0 20px 0;
  line-height: 1.7;
}

.content p + ul {
  margin-top: 5px;
}

.content ul {
  margin-left: 30px;
  margin-bottom: 20px;
  line-height: 1.7;
  list-style-type: disc;
  list-style-position: inside;
}

.content ul li::marker {
  font-size: 1.2em;
  color: #002b5c;
}

.content ul li {
  color: inherit;
}

/* -------------------- */
/* Homepage first paragraph highlight */
.content.home p:first-of-type {
  font-size: 1.3em;
  line-height: 1.9;
  font-weight: 500;
  color: #002b5c;
  margin-bottom: 25px;
  background-color: #e6f0fa;
  padding: 15px 20px;
  border-left: 4px solid #002b5c;
  border-radius: 4px;
}

/* -------------------- */
/* Board members layout */
.board-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.board-member {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.board-member p {
  margin: 0;
}

.board-member img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #002b5c;
}

/* -------------------- */
/* Responsive adjustments */
@media screen and (max-width: 900px) {
  /* Sidebar adjustments */
  .sidebar {
    position: fixed;
    left: -260px;   /* hidden by default */
    top: 0;
    height: 100%;
    width: 240px;
    padding: 30px 20px;
  }

  /* Content adjustments: extra left padding for readability */
  .content {
    margin-left: 0;
    padding: 30px 20px 30px 40px;
    border-left: none;
  }

  body {
    flex-direction: column;
  }

  /* Board members stack on mobile */
  .board-member {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .board-member img {
    width: 100px;
    height: 100px;
  }
}

/* Further small-screen adjustments */
@media screen and (max-width: 600px) {
  h1 { font-size: 2.2em; }
  h2 { font-size: 1.8em; }
  h3 { font-size: 1.5em; }
}
