* { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #111;
      color: #fff;
      scroll-behavior: smooth;
      font-size: 21px;

    }
    header {
      background: #222;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    header h1 {
      color: #f39c12;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 1rem;
    }
    nav a {
      text-decoration: none;
      color: #fff;
      font-weight: bold;
    }

    .slideshow {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
    }
    .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }
    .slide.active {
      opacity: 1;
    }
    .slide-caption {
      position: absolute;
      bottom: 15%;
      left: 10%;
      background: rgba(0,0,0,0.5);
      padding: 1rem 2rem;
      border-radius: 8px;
      max-width: 80%;
    }
    .slide-caption h2 {
      color: #f39c12;
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }
    .slide-caption p {
      font-size: 1rem;
    }

    @media (max-width: 768px) {
      .slide-caption {
        left: 5%;
        bottom: 10%;
      }
      .slide-caption h2 {
        font-size: 1.4rem;
      }
      .slide-caption p {
        font-size: 0.9rem;
      }
    }


    .slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5);
  color: #f39c12;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}
.slideshow-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.slideshow-btn.prev {
  left: 10px;
}
.slideshow-btn.next {
  right: 10px;
}


    .faq-button {
      display: inline-block;
      margin-top: 2rem;
      padding: 0.75rem 1.5rem;
      background-color: #f39c12;
      color: #000;
      font-weight: bold;
      text-decoration: none;
      border-radius: 6px;
      transition: background 0.3s ease;
    }
    .faq-button:hover {
      background-color: #e67e22;
    }

    .hero {
      padding: 4rem 2rem;
      text-align: center;
      background: linear-gradient(to right, #000, #333);
    }

    .section {
      padding: 3rem 2rem;
    }

    .card-container {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
    }
    .card {
      background: #222;
      padding: 1rem;
      border-radius: 8px;
      width: 250px;
      text-align: center;
      transition: transform 0.3s;
    }
    .card img {
      max-width: 100%;
      height: 250px;
      object-fit: cover;
      border-radius: 4px;
      margin-bottom: 0.5rem;
    }
    .card:hover {
      transform: scale(1.05);
    }

    .timeline-wrapper {
      position: relative;
    }
    .timeline {
      position: relative;
      max-width: 1000px;
      margin: auto;
      padding: 2rem 0;
    }
    .timeline::after {
      content: '';
      position: absolute;
      width: 6px;
      background-color: #f39c12;
      top: 0;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
    }
    .timeline-item {
      padding: 1rem 2rem;
      position: relative;
      width: 50%;
      animation: fadeInUp 1s ease-out;
    }
    .timeline-item .content {
      background: #222;
      padding: 1rem;
      border-radius: 8px;
    }
    .timeline-item.left { left: 0; }
    .timeline-item.right { left: 50%; }
    .timeline-item::before {
      content: '';
      position: absolute;
      top: 15px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: #f39c12;
      z-index: 1;
    }
    .timeline-item.left::before { right: -10px; }
    .timeline-item.right::before { left: -10px; }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media screen and (max-width: 768px) {
      .timeline::after { left: 10px; }
      .timeline-item { width: 100%; padding-left: 3rem; }
      .timeline-item.right { left: 0; }
    }

    .x-overlay {
      position: absolute;
      top: 0;
      left: 0;
      font-size: 10vw;
      color: red;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      z-index: 2;
      transition: opacity 1s ease-in-out;
      pointer-events: none;
    }

    .timeline.hidden { display: none; }
    .timeline.fade-in { animation: fadeInUp 1s ease forwards; }

    @keyframes strikeX {
      0% { transform: scale(0.5) rotate(0deg); opacity: 0; }
      50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
      100% { transform: scale(1) rotate(360deg); opacity: 1; }
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      max-width: 500px;
      margin: auto;
    }

    input, textarea {
      padding: 0.75rem;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      background: #fff;
      color: #000;
    }

    footer {
      background: #111;
      padding: 1rem;
      text-align: center;
      font-size: 0.875rem;
      color: #777;
    }

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #f39c12;
}
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none;
    background: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Parallax section */
.parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  background-image: url('images/parallax.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 2rem;
}

.parallax-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
  max-width: 80%;
}

.parallax-caption h2 {
  color: #f39c12;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.parallax-caption p {
  font-size: 1rem;
  color: #fff;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 2s ease; /* slower fade-in */
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section {
  background-color: #f39c12; /* same gold color as logo */
  color: #111; /* dark text for contrast */
  padding: 4rem 2rem;
  text-align: center;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-section p {
  max-width: 800px;
  margin: auto;
  font-size: 1.3rem;
  line-height: 1.6;
}

footer a.footer-link,
footer a.footer-link:visited {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer a.footer-link:hover {
  color: #f39c12 !important;
  text-decoration: none;
}

pre code {
  display: block;
  background: #1e1e1e;
  color: #f1f1f1;
  padding: 1rem;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.6;
}

/* HORACE BUTLER PAGE STYLES */

body.horace-butler {
  background-color: #111;
  color: #f4f4f4;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  padding: 0;
  margin: 0;
}

main.section {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

h2, h3 {
  color: #ffa500;
  margin-top: 2rem;
}

a {
  color: #4fc3f7;
  text-decoration: underline;
}

a:hover {
  color: #ffcc00;
}

pre code {
  background-color: #222;
  color: #eee;
  padding: 1rem;
  display: block;
  border-radius: 8px;
  margin-top: 1rem;
  font-family: monospace;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 1rem;
}

.figure-photo {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card a:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* BLACK HISTORY MONTHLY BANNER HOME NAV */

.home-link {
  text-decoration: none;   /* removes underline */
  color: inherit;          /* keeps same color as <h1> */
} 


/* ABOUT BLACK HISTORY MONTHLY PARALLAX SECTION */

.about-section h2 {
  color: #000;  /* black */
}

body.dark .about-section h2 {
  color: #fff;  /* white, if you want to toggle a dark mode */
}

/* ========== Monthly Feature ========== */
.monthly-feature {
  background: #111;
  padding: 2.5rem 2rem;
}

.monthly-feature__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.monthly-feature__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.monthly-feature__kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f39c12; /* gold accent to match site */
  margin-bottom: 0.25rem;
}

.monthly-feature h2 {
  margin: 0.25rem 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
  color: #fff; /* force white for the headline here */
}

.monthly-feature__info p {
  color: #ddd;
}

.monthly-feature__actions {
  margin-top: 1rem;
}

.monthly-feature .button,
.monthly-feature .button:visited {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: #f39c12;
  color: #111;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.monthly-feature .button:hover {
  background: #e67e22;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .monthly-feature__wrap {
    grid-template-columns: 1fr;
  }
  .monthly-feature__image {
    order: -1;
  }
}

.monthly-feature {
  text-align: center;
}
.monthly-feature__info {
  text-align: left; /* optional: keep text aligned left inside its column */
}


/* Paragraph spacing only in main content, but NOT in cards */
.section p,
.post p,
.about-section p,
.monthly-feature__info p {
  margin-bottom: 1.2em;
}

/* Exclude card text */
.card p {
  margin-bottom: 0; /* keep card text tight */
}

