:root {
  --bg: #ffffff;
  --text: #0b2a33;
  --accent: #0f6b6b; /* soft teal */
  --accent-2: #f0a64a; /* warm gold */
  --muted: #6b7a7a;
  --container: 1100px;
  --header-container: 1400px;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: 100px;
  padding-bottom: 120px;
}
main {
  min-height: 100vh;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}
.header-container {
  max-width: max-content;
  margin: 0 auto;
  padding: 1rem;
}
.site-header {
  border-bottom: 1px solid #e6efef;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 1.5rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: fit-content;
}
.brand-text {
  font-size: 0.80rem;
  font-weight: 700;
  line-height: 1.15;
}
.logo {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  white-space: nowrap;
  flex-grow: 1;
  justify-content: flex-start;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: var(--accent);
}

/* Dropdown menus */
.dropdown {
  position: relative;
  display: inline-block;
}

.main-nav a,
.dropdown-toggle {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.main-nav a[aria-current="page"],
.dropdown-toggle:hover {
  background-color: var(--accent);
  color: #fff;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: ' ▼';
  font-size: 0.6rem;
  margin-left: 0.25rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e6efef;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  z-index: 1000;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a,
.submenu-section a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover,
.submenu-section a:hover {
  background-color: #f5f5f5;
}

.submenu-section {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.submenu-section h3 {
  margin: 0.5rem 1rem 0.25rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.nested-menu {
  padding-left: 1.5rem;
  background: #fafafa;
}

.nested-menu a {
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}
.hero {
  background: linear-gradient(
    90deg,
    rgba(15, 107, 107, 0.06),
    rgba(240, 166, 74, 0.03)
  );
  padding: 3rem 0;
  text-align: center;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.home-featured-image {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.lead {
  color: var(--muted);
  margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}
.features article {
  background: #fff;
  border: 1px solid #eef6f6;
  padding: 1rem;
  border-radius: 8px;
}
.cta {
  background: #fff8f0;
  border-top: 4px solid var(--accent-2);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem auto;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer {
  border-top: 1px solid #e6efef;
  padding: 1rem 0;
  background: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Officers Grid */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.officer-card {
  background: #fff;
  border: 1px solid #eef6f6;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.officer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.officer-image {
  width: 100%;
  height: 250px;
  background: #f5f5f5;
  overflow: hidden;
}

.officer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.officer-info {
  padding: 1.5rem;
}

.officer-name {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
  color: var(--text);
}

.officer-position {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* Past Grands Grid */
.past-grands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.past-grand-card {
  background: #fff;
  border: 1px solid #eef6f6;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.past-grand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.past-grand-image {
  width: 100%;
  height: 250px;
  background: #f5f5f5;
  overflow: hidden;
}

.past-grand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-grand-info {
  padding: 1.5rem;
}

.past-grand-name {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
  color: var(--text);
}

.past-grand-year {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* Page Infobox (like Wikipedia) */
.page-infobox {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
  width: 280px;
  border: 1px solid #e6efef;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-infobox img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Content */
.faq-content {
  width: 100%;
  margin: 0;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef6f6;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.faq-item p:first-child {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}
