/* ================================
   Men's Covenant Page Styling
   ================================ */
.men-covenant {
  max-width: 840px;                  /* slightly narrower for readability */
  margin: 3rem auto;
  padding: 2.5rem;
  background: linear-gradient(180deg, #ffffff, #f9f9f9);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  position: relative;
}

/* -------------------------------
   Header
   ------------------------------- */
.covenant-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.covenant-header::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--primary-green);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.covenant-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.12);
  letter-spacing: 0.5px;
}

.covenant-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* -------------------------------
   Description & Sections
   ------------------------------- */
.covenant-description,
.covenant-meeting,
.covenant-projects,
.covenant-donations {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 1.5rem auto;
  max-width: 700px;
  text-align: center;
}

.covenant-description ul,
.covenant-meeting ul,
.covenant-projects ul,
.covenant-donations ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.covenant-description li,
.covenant-meeting li,
.covenant-projects li,
.covenant-donations li {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 0.85rem 1.5rem;
  margin: 0.5rem 0;
  text-align: center;
  width: fit-content;
  min-width: 60%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}
.covenant-description li::before,
.covenant-meeting li::before,
.covenant-projects li::before,
.covenant-donations li::before {
  content: "◆";
  color: var(--primary-green);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.covenant-description li:hover,
.covenant-meeting li:hover,
.covenant-projects li:hover,
.covenant-donations li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  background: var(--light-gray);
}

/* -------------------------------
   Contact
   ------------------------------- */
.covenant-contact {
  margin-top: 2rem;
  text-align: center;
}
.covenant-contact::before {
  content: "Contact";
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-green-dark);
}

.contact-phone {
  font-size: 0.95rem;
  color: var(--text-body);
  display: block;
  margin-top: 0.25rem;
}

/* -------------------------------
   Gallery
   ------------------------------- */
.covenant-gallery {
  margin-top: 2.5rem;
  text-align: center;
}

#gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-thumb {
  width: 140px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.gallery-thumb:hover {
  transform: scale(1.15);
  z-index: 2;
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
#gallery-thumbs:hover .gallery-thumb:not(:hover) {
  transform: scale(0.9);
  opacity: 0.7;
}

/* -------------------------------
   Lightbox
   ------------------------------- */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.lightbox-close {
  position: absolute;
  top: -12px; right: -12px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lightbox-close:hover {
  color: var(--primary-green);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.lightbox-nav button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 0 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.lightbox-nav button:hover {
  color: var(--primary-green);
  transform: scale(1.1);
}

