/* History Section Styling */
.history {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #1a1a1a; /* dark background for a moody occult feel */
  color: #e0e0d8; /* soft off-white text for easy reading */
  font-family: 'Merriweather', serif; /* a classic but readable serif font */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(38, 115, 75, 0.6); /* subtle emerald glow */
  line-height: 1.6;
}

.history h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #26a64b; /* deep emerald green accent */
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(38, 166, 75, 0.8);
}

.history p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.history strong {
  color: #88c070; /* lighter green highlight for important text */
}

/* Optional: Add a subtle shimmer/glow on hover over the section */
.history:hover {
  box-shadow: 0 0 20px rgba(38, 166, 75, 1), 0 0 40px rgba(38, 166, 75, 0.7);
  transition: box-shadow 0.4s ease-in-out;
}

/* CTA BUTTON – history page only */
.cta-container {
  margin: 40px 0;
}

.cta-container:not(.bottom-nav) {
  text-align: center;
}

.cta-button {
  flex: 1 1 0; /* Equal width distribution */
  padding: 14px 0;
  min-width: 160px;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Cinzel', serif;
  color: #eaeaea;
  background: linear-gradient(135deg, #0a0f0a, #133d29);
  border: 2px solid #2ecc71;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.4), inset 0 0 8px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
}

.cta-button:hover::before {
  animation: shimmer 1.5s ease forwards;
}

@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}

.cta-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #133d29, #1a6b47);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.8), inset 0 0 12px rgba(46, 204, 113, 0.5);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.6), inset 0 0 6px rgba(46, 204, 113, 0.4);
}

.cta-container a.cta-button + a.cta-button {
  margin-left: 0; /* Gap handles spacing */
}

/* Equal-width buttons aligned perfectly with history content */
.cta-container.bottom-nav {
  display: flex;
  justify-content: space-between; /* Edges match container */
  align-items: center;
  gap: 1.5rem;
  max-width: 700px; /* Match #history content box width */
  margin: 2rem auto 4rem;
  padding: 0; /* No extra padding so edges line up exactly */
}

/* Mobile-friendly: stack buttons with equal height and centered text */
@media (max-width: 600px) {
  .cta-container.bottom-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
    padding: 0.75rem 1rem;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* minimum height for consistency */
    box-sizing: border-box;
  }

  /* Make buttons same height */
  .cta-container.bottom-nav {
    align-items: stretch;
  }
}