* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { transition: color 0.2s ease, opacity 0.2s ease; }

/* ===== HEADER ===== */
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  background-color: #2c2c2c;
}

header img {
  height: 100px;
  width: auto;
}

header h1 {
  color: white;
  font-size: 1.4rem;
}

.header-sub {
  color: #aaa;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 20px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

/* ===== NAV BAR ===== */
nav {
  background-color: #3a3a3a;
  position: sticky;
  top: 0;
  z-index: 300;           /* high z-index so dropdown shows above slider */
  transition: background 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0 30px;
}

nav ul li a {
  display: block;
  padding: 14px 18px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

nav ul li a:hover {
  background-color: #555;
}

/* ===== DROPDOWN ===== */
nav ul li {
  position: relative;
}

.dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #3a3a3a;
  min-width: 170px;
  z-index: 400;           /* above everything */
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.dropdown li a {
  padding: 12px 18px;
  white-space: nowrap;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ===== FONTS ===== */
h1, h2, h3 { font-family: 'Playfair Display', serif; }
body        { font-family: 'Inter', sans-serif; }

/* ===== FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SLIDING BANNER ===== */
.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: visible;      /* NOT hidden — hidden clips the dropdown */
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;       /* images clipped here instead */
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 14px 18px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.dot.active {
  background: white;
}

/* ===== INTRO STRIP ===== */
#intro {
background: #1e1512;
color: #c8bfa8;
text-align: center;
padding: 46px 40px;
font-size: 1.08rem;
line-height: 1.9;
letter-spacing: 0.01em;
}
#intro p {
  max-width: 700px;
  margin: 0 auto;
}
#intro strong {
  color: #f0ece3;
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* ===== TWO-COLUMN LAYOUT ===== */
#main-content {
display: grid;
grid-template-columns: 1fr 300px;
gap: 48px;
max-width: 1100px;
margin: 64px auto;
padding: 0 30px;
}

/* ===== SECTION HEADING ===== */
.section-heading {
font-family: 'Playfair Display', serif;
font-size: 1.6rem;
color: #2b1f14;
margin-bottom: 24px;
padding-bottom: 10px;
border-bottom: 3px solid #b8860b;
display: inline-block;
}

/* ===== BLOG CARDS ===== */
#blog { display: flex; flex-direction: column; gap: 28px; }

.blog-card {
display: grid;
grid-template-columns: 200px 1fr;
background: #fff;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
border: 1px solid #e8e0d0;
transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 22px rgba(43,31,20,0.13);
}
.blog-card-img {
background-size: cover;
background-position: center;
min-height: 160px;
}
.blog-card-body {
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 7px;
}
.blog-date {
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #9a8e7a;
}
.blog-card-body h3 {
font-family: 'Playfair Display', serif;
font-size: 1.05rem;
color: #2b1f14;
line-height: 1.35;
}
.blog-card-body p {
font-size: 0.9rem;
color: #6a6050;
line-height: 1.6;
flex: 1;
}
.blog-read-more {
font-size: 0.8rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #b8860b;
text-decoration: none;
align-self: flex-start;
border-bottom: 1px solid transparent;
transition: border-color 0.2s;
}
.blog-read-more:hover { border-color: #b8860b; }

/* ===== SIDEBAR ===== */
#sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
background: #fff;
border: 1px solid #d8cfc0;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(43,31,20,0.06);
}

.widget-title {
background: #7a4f2d;
color: #f5f0e8;
font-family: 'Playfair Display', serif;
font-size: 0.95rem;
padding: 12px 16px;
margin: 0;
}

/* ===== MINI CALENDAR ===== */
.cal-header {
background: #2b1f14;
color: #f5f0e8;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
}
.cal-header h3 { font-family: 'Playfair Display', serif; font-size: 0.95rem; margin: 0; }
.cal-nav {
background: none; border: none; color: #c8bfa8;
font-size: 1.1rem; cursor: pointer; padding: 2px 6px;
transition: color 0.2s;
}
.cal-nav:hover { color: #b8860b; }
.cal-grid { padding: 12px; }
.cal-days-header {
display: grid; grid-template-columns: repeat(7,1fr);
margin-bottom: 4px;
}
.cal-days-header span {
text-align: center; font-size: 0.68rem;
letter-spacing: 0.06em; text-transform: uppercase;
color: #9a8e7a; padding: 3px 0;
}
.cal-cells { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; }
.cal-cell {
aspect-ratio: 1; display: flex; align-items: center;
justify-content: center; font-size: 0.8rem;
border-radius: 50%; color: #2b1f14; position: relative;
}
.cal-cell.empty { color: transparent; }
.cal-cell.today { background: #b8860b; color: white; font-weight: 700; }
.cal-cell.has-event { color: #5a6e4a; font-weight: 700; }
.cal-cell.has-event::after {
content: ''; position: absolute; bottom: 2px;
width: 4px; height: 4px; background: #5a6e4a; border-radius: 50%;
}

/* ===== EVENTS WIDGET ===== */
.events-list { list-style: none; padding: 10px 0; margin: 0; }
.events-list li {
display: flex; gap: 12px; padding: 10px 16px;
border-bottom: 1px solid #f0ece3;
transition: background 0.15s;
}
.events-list li:last-child { border-bottom: none; }
.events-list li:hover { background: #faf7f2; }
.event-badge {
flex-shrink: 0; width: 42px; text-align: center;
background: #faf7f2; border: 1px solid #d8cfc0;
border-radius: 4px; padding: 4px 2px;
}
.ev-day { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #2b1f14; line-height: 1; }
.ev-mon { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9a8e7a; margin-top: 2px; }
.event-detail { flex: 1; }
.event-detail strong { display: block; font-size: 0.85rem; color: #2b1f14; font-family: 'Playfair Display', serif; line-height: 1.3; margin-bottom: 2px; }
.event-detail span { font-size: 0.78rem; color: #9a8e7a; }
.widget-more {
display: block; text-align: center; padding: 10px;
font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
color: #b8860b; text-decoration: none; border-top: 1px solid #d8cfc0;
transition: background 0.15s;
}
.widget-more:hover { background: #faf7f2; }

/* ===== FOOTER ===== */
footer {
background: #2b1f14;
color: #9a8e7a;
padding: 28px 40px;
text-align: center;
font-size: 0.88rem;
line-height: 2;
margin-top: auto; /* pins footer to the bottom of the viewport on short pages */
}
footer a { color: #c8bfa8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #b8860b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
#main-content {
  grid-template-columns: 1fr;
  padding: 0 16px;
  margin: 28px auto;
}
.blog-card {
  grid-template-columns: 1fr;
}
.blog-card-img { min-height: 180px; }
}


/* Small hero banner used at the top of every inner page instead
   of the homepage's sliding banner. */
.page-hero {
  background: linear-gradient(180deg, #1e1512 0%, #241a15 100%);
  color: #f0ece3;
  text-align: center;
  padding: 64px 30px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.page-hero p {
  color: #c8bfa8;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Generic content wrapper — same max-width & spacing rhythm as
   #main-content on the homepage. */
.page-content {
  max-width: 820px;
  margin: 64px auto;
  padding: 0 30px 20px;
}
.page-content .section-heading {
  margin-bottom: 32px;
}
.page-content p {
  color: #4a4030;
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 20px;
  max-width: 700px;
}
.page-content p:last-child { margin-bottom: 0; }

.page-content ul.plain-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-content ul.plain-list li {
  padding: 16px 20px;
  border: 1px solid #e8e0d0;
  border-left: 4px solid #b8860b;
  border-radius: 6px;
  background: #fff;
  color: #4a4030;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(43,31,20,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.page-content ul.plain-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(43,31,20,0.1);
  background: #fdfbf7;
}
.page-content ul.plain-list li strong {
  color: #2b1f14;
  font-family: 'Playfair Display', serif;
  margin-right: 6px;
}

/* Reusable card grid (used by Merchandise) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 20px;
}
.info-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(43,31,20,0.13);
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #2b1f14;
  margin-bottom: 6px;
}
.info-card span.role {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 0.88rem;
  color: #6a6050;
  line-height: 1.6;
  margin: 0;
}

/* Simple contact / membership form */
.simple-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(43,31,20,0.06);
}
.simple-form label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a4f2d;
  margin-bottom: 6px;
  display: block;
}
.simple-form input,
.simple-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8cfc0;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #2b1f14;
  background: #fdfbf7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.simple-form input:focus,
.simple-form textarea:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.15);
  background: #fff;
}
.simple-form textarea { resize: vertical; min-height: 120px; }
.simple-form button {
  align-self: flex-start;
  background: #b8860b;
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.simple-form button:hover { background: #9a6f08; transform: translateY(-1px); }
.simple-form button:active { transform: translateY(0); }

/* ===== CONTACT PAGE ===== */
.contact-content {
  text-align: center;
}
.contact-content .section-heading {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.contact-content > p {
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 44px;
}
.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 30px;
  padding: 11px 22px;
  color: #7a4f2d;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(43,31,20,0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-method:hover {
  background: #b8860b;
  color: #fff;
  border-color: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184,134,11,0.28);
}

.contact-form-wrap {
  display: flex;
  justify-content: center;
}
.contact-form-wrap .simple-form {
  width: 100%;
  max-width: 520px;
  margin: 0;
  text-align: left;
}

/* ===== COMMITTEE GRID ===== */
.committee-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 30px;
  margin-top: 20px;
}

.committee-card {
  flex: 0 1 calc((100% - 60px) / 3); /* 3 per row, accounting for 2 gaps of 30px */
  max-width: calc((100% - 60px) / 3);
  position: relative;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(43,31,20,0.08);
  padding: 65px 22px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(43,31,20,0.16);
}

.committee-photo {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  background: #f0ece3 center/cover no-repeat;
  border: 4px solid #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8860b;
  overflow: hidden !important;
}
.committee-photo svg { width: 46px; height: 46px; }
.committee-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  display: block !important;
}

.committee-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #2b1f14;
  margin-bottom: 8px;
}

.committee-role {
  display: inline-block;
  background: #b8860b;
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.committee-desc {
  font-size: 0.88rem;
  color: #6a6050;
  line-height: 1.65;
  text-align: left;
}

.committee-bio {
  margin-bottom: 16px;
}
.committee-bio summary {
  cursor: pointer;
  list-style: none;
  color: #b8860b;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}
.committee-bio summary::-webkit-details-marker { display: none; }
.committee-bio summary::after {
  content: '+';
  font-size: 1rem;
  line-height: 1;
}
.committee-bio[open] summary::after { content: '–'; }
.committee-bio summary:hover { color: #9a6f08; }
.committee-bio[open] summary { margin-bottom: 10px; }
.committee-contact {
  border-top: 1px solid #f0ece3;
  padding-top: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
}
.committee-contact a {
  color: #7a4f2d;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.committee-contact a:hover { color: #b8860b; }

@media (max-width: 900px) {
  .committee-card {
    flex-basis: calc((100% - 30px) / 2); /* 2 per row */
    max-width: calc((100% - 30px) / 2);
  }
}
@media (max-width: 600px) {
  .committee-card {
    flex-basis: 100%; /* 1 per row */
    max-width: 100%;
  }

/* ===== NEWSLETTER LINKS ===== */
.page-content ul.plain-list li a {
  color: inherit;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.page-content ul.plain-list li a:hover { color: #b8860b; }

/* ===== PDF VIEWER MODAL ===== */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.94);
  z-index: 1000;
  flex-direction: column;
}
.pdf-modal.open { display: flex; }

.pdf-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #f0ece3;
}
.pdf-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}
.pdf-modal-close {
  background: none;
  border: none;
  color: #f0ece3;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s ease;
}
.pdf-modal-close:hover { color: #b8860b; }

.pdf-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  min-height: 0;
  position: relative;
}
.pdf-canvas-wrap {
  position: relative;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pdfCanvas {
  max-height: 80vh;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 2px;
}
.pdf-status {
  position: absolute;
  color: #f0ece3;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.pdf-nav-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #f0ece3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pdf-nav-btn:hover { background: #b8860b; }
.pdf-nav-btn:disabled { opacity: 0.3; cursor: default; background: rgba(255,255,255,0.1); }

.pdf-modal-bottom {
  text-align: center;
  padding: 14px;
  color: #c8bfa8;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

@media (max-width: 700px) {
  .pdf-nav-btn { width: 40px; height: 40px; font-size: 1rem; }
  .pdf-modal-top { padding: 12px 16px; }
  .pdf-modal-title { font-size: 0.95rem; }
}

}
