/* Worship Guides Header Section */
.worship-guide-header {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(to bottom, #f9fdf9, #f1f1f1);
  border-bottom: 2px solid var(--primary-green);
  max-width: 1000px;
  margin: 0 auto 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.worship-guide-header .section-image {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.worship-guide-header .section-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.worship-guide-header .section-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.worship-guide-header h2 {
  font-family: var(--font-serif-primary);
  font-size: 2.2rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.worship-guide-header h3 {
  font-family: var(--font-serif-secondary);
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 1rem;
}

.worship-guide-header p {
  font-family: var(--font-sans-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

/* Overlay mode */
.section-image.overlay-mode {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.section-image.overlay-mode img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-image.overlay-mode .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: #ffffff;
  color: #222;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  max-width: 80%;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.section-image.overlay-mode .overlay-text::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 14px;
  background: rgba(0,0,0,0.15);
  z-index: -1;
}

.section-image.overlay-mode .overlay-text h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-green);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

.section-image.overlay-mode .overlay-text h3 {
  font-family: var(--font-serif-secondary);
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-image.overlay-mode .overlay-text h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-green);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  opacity: 0.7;
}

.section-image.overlay-mode .overlay-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

@media (max-width: 768px) {
  .worship-guide-header {
    padding: 2rem 1rem;
  }
  .worship-guide-header h2 {
    font-size: 1.8rem;
  }
  .worship-guide-header h3 {
    font-size: 1.2rem;
  }
  .worship-guide-header p {
    font-size: 1rem;
  }
  .section-image.overlay-mode .overlay-text {
    font-size: 0.95rem;
    padding: 1rem;
    max-width: 95%;
  }
  .section-image.overlay-mode .overlay-text h2 {
    font-size: 1.6rem;
  }
  .section-image.overlay-mode .overlay-text h3 {
    font-size: 1.2rem;
  }
}

/* Worship Guides Content Section */
.worship-guides-content {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.worship-guides-content h2 {
  font-family: var(--font-serif-primary);
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.worship-guides-content h3 {
  font-family: var(--font-serif-secondary);
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.worship-guides-content h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-green);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  opacity: 0.7;
}

.guide-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.guide-button {
  width: 100%;
  max-width: 180px;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-sans-primary);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-button.guide-available {
  background: #fff;
  border: 1px solid var(--primary-green);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.guide-button.guide-available a {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 1.1rem;
}

.guide-button.guide-available:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.guide-button.guide-unavailable {
  background: #f5f5f5;
  border: 1px solid #ccc;
  color: #999;
  cursor: not-allowed;
}

.guide-button.guide-unavailable span {
  font-size: 1.1rem;
  color: #999;
}

@media (max-width: 768px) {
  .guide-buttons {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  .guide-button {
    padding: 0.75rem;
  }
}
/* Archive Section */
.worship-guides-archive {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.worship-guides-archive h2 {
  font-family: var(--font-serif-primary);
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.worship-guides-archive h3 {
  font-family: var(--font-serif-secondary);
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.worship-guides-archive h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-green);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  opacity: 0.7;
}

/* Group layouts */
.year-buttons,
.month-buttons,
.date-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Archive buttons styled as links */
.archive-button {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  font-family: var(--font-sans-primary);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.archive-button:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-2px);
}

/* Available guide links */
.date-buttons .guide-available {
  border: 1px solid var(--primary-green);
}

/* Back link variant */
.archive-button.back-link {
  background: #f5f5f5;
  border: 1px solid #ccc;
  color: #666;
  font-weight: 500;
  position: relative;
  padding-left: 2rem; /* space for arrow icon */
}

.archive-button.back-link::before {
  content: "←";
  position: absolute;
  left: 0.75rem;
  font-size: 1rem;
  color: #666;
}

.archive-button.back-link:hover {
  background: #e0e0e0;
  color: #333;
  transform: none; /* no lift effect */
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .year-buttons,
  .month-buttons,
  .date-buttons {
    gap: 0.5rem;
  }
  .archive-button,
  .date-buttons .guide-available {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}
