html {
  scroll-padding-top: 190px; /* Adjust this to the height of your fixed navbar */
}

.core-values {
  max-width: 700px; /* match .history width */
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #1a1a1a; /* same dark background */
  color: #e0e0d8; /* soft off-white */
  font-family: 'Merriweather', serif; /* match History page font */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(38, 115, 75, 0.6); /* emerald glow */
  line-height: 1.6;
}

.core-values h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #26a64b; /* emerald green */
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(38, 166, 75, 0.8);
}

/* Accordion Styles */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(46, 139, 87, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 12px rgba(46, 139, 87, 0.2);
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  color: #2e8b57;
  font-size: 1.25rem;
  text-align: left;
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: rgba(46, 139, 87, 0.1);
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease,
    opacity 0.4s ease;
}

.accordion-item.active .accordion-content {
  padding: 1rem 1.5rem;
  max-height: 1000px; /* enough to show full content */
  opacity: 1;
}

@keyframes emeraldGlow {
  0% { text-shadow: 0 0 6px rgba(46, 139, 87, 0.3), 0 0 12px rgba(46, 139, 87, 0.3); }
  50% { text-shadow: 0 0 10px rgba(46, 139, 87, 0.7), 0 0 20px rgba(46, 139, 87, 0.5); }
  100% { text-shadow: 0 0 6px rgba(46, 139, 87, 0.3), 0 0 12px rgba(46, 139, 87, 0.3); }
}

.accordion-item.active .accordion-header {
  animation: emeraldGlow 1.5s ease-in-out;
}

.accordion-item.active {
  box-shadow: 0 0 15px rgba(46, 139, 87, 0.3);
}

/* CTA Container */
.cta-container.bottom-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Shimmer Animation - outer glow only */
@keyframes emeraldShimmer {
  0% {
    box-shadow: 0 0 6px rgba(46, 139, 87, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(46, 139, 87, 0.7);
  }
  100% {
    box-shadow: 0 0 6px rgba(46, 139, 87, 0.4);
  }
}

/* CTA BUTTON – beliefs 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;
  }
}