/* ============================================
   Bethel Presbyterian Church /connect/adults/men/events Mobile Stylesheet
   ============================================ */

.page-section {
  width: 100%;
  margin: 0 auto 3rem;
  box-sizing: border-box;
}

.section-wrapper.mens-events {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------------------
   Title
   --------------------- */
.mens-events__title {
  font-family: var(--font-serif-primary);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 2rem;
  text-align: center;
}

.mens-events__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-green), var(--primary-complement));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.mens-events__empty {
  text-align: center;
  font-size: 1.8rem;
  color: #666;
  padding: 3rem;
  font-style: italic;
}

/* ---------------------
   Event Cards List
   --------------------- */
.mens-events__list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ---------------------
   Event Card
   --------------------- */
.event-card {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 2rem;
  border: 2px solid rgba(58, 107, 53, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------------------
   Event Header
   --------------------- */
.event-card__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(58, 107, 53, 0.15);
  text-align: center;
}

.event-card__title {
  font-family: var(--font-serif-primary);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.event-card__audience {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-green) 0%, #2d5229 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------------------
   Event Description
   --------------------- */
.event-card__description {
  font-family: var(--font-sans-secondary);
  font-size: 1.8rem;
  line-height: 2.8rem;
  color: #444;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

/* ---------------------
   When & Where Wrapper (stacked on mobile)
   --------------------- */
.event-card__when-where {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---------------------
   Date & Time
   --------------------- */
.event-card__datetime,
.event-card__location {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border-left: 5px solid var(--primary-green);
}

.event-card__icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.event-card__datetime-text,
.event-card__location-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-card__day {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-green);
}

.event-card__date {
  font-weight: 600;
  font-size: 1.7rem;
  color: #333;
}

.event-card__time {
  color: #666;
  font-size: 1.6rem;
}

/* ---------------------
   Location
   --------------------- */
.event-card__location-name {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-green);
}

.event-card__location-address {
  color: #555;
  font-size: 1.6rem;
  line-height: 2.4rem;
}

.event-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--primary-complement);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.75rem 1.5rem;
  background: rgba(58, 107, 53, 0.1);
  border-radius: 8px;
}

.event-card__map-link::after {
  content: " \2197";
  font-size: 1.4rem;
}

/* ---------------------
   Event Details
   --------------------- */
.event-card__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(58, 107, 53, 0.1);
}

.event-card__activities h4,
.event-card__speaker h4,
.event-card__bring h4,
.event-card__rsvp h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.event-card__activities ul,
.event-card__bring ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-card__activities li,
.event-card__bring li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  color: #444;
  line-height: 2.4rem;
}

.event-card__activities li::before,
.event-card__bring li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.6rem;
}

/* ---------------------
   Guest Speaker
   --------------------- */
.event-card__speaker {
  text-align: center;
}

.event-card__speaker-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.event-card__speaker-desc {
  font-size: 1.5rem;
  color: #666;
  font-style: italic;
  margin: 0;
  line-height: 2.2rem;
}

/* ---------------------
   RSVP Section
   --------------------- */
.event-card__rsvp {
  background: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
  text-align: center;
  border: 2px solid rgba(58, 107, 53, 0.2);
}

.event-card__rsvp-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-green);
  margin: 0 0 1rem 0;
}

.event-card__rsvp-phone,
.event-card__rsvp-email {
  margin: 0.75rem 0;
}

.event-card__rsvp-phone a,
.event-card__rsvp-email a {
  display: inline-block;
  color: var(--primary-complement);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 500;
  padding: 1rem 2rem;
  background: var(--white);
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.event-card__rsvp-phone a:active,
.event-card__rsvp-email a:active {
  transform: scale(0.96);
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.12);
}

/* ---------------------
   Notes
   --------------------- */
.event-card__notes {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fffbe6 0%, #fff9d6 100%);
  border: 2px solid #f4e04d;
  border-left-width: 6px;
  border-radius: 10px;
  font-size: 1.6rem;
  color: #5a4a00;
  line-height: 2.4rem;
  text-align: center;
}
/* Overrides centered text for p elements otherwise inherited from global styles with class 'p-center' */
.p-center {
  text-align: center;
}
/* ---------------------
   Responsive Breakpoints
   --------------------- */
@media (min-width: 768px) {
  .section-wrapper.mens-events {
    padding: 3rem;
  }

  .mens-events__title {
    font-size: 3.6rem;
  }

  .event-card {
    padding: 2.5rem;
  }

  .event-card__title {
    font-size: 3rem;
  }

  .event-card__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .event-card__rsvp-phone a,
  .event-card__rsvp-email a {
    font-size: 2rem;
    padding: 1.2rem 2.5rem;
  }
}

/* ============================================
   Men's Events Gallery Section (Mobile)
   ============================================ */

.mens-events-gallery {
  margin-top: 2rem;
}

.gallery-title {
  font-family: var(--font-serif-primary);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-green), var(--primary-complement));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.gallery-empty {
  text-align: center;
  font-size: 1.6rem;
  color: #666;
  padding: 3rem;
  font-style: italic;
}

.mens-events-gallery .photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 95%;
  margin: 0 auto;
}

.mens-events-gallery .photo-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin: 0;
}

.mens-events-gallery .photo-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mens-events-gallery .photo-item img:active {
  transform: scale(0.98);
}

/* Tablet and up: 3-column grid */
@media (min-width: 768px) {
  .mens-events-gallery .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-title {
    font-size: 3.2rem;
  }
}

/* ---------------------
   Lightbox Modal (Mobile)
   --------------------- */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  transform: translateY(-50%);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  background: rgba(58, 107, 53, 0.5);
  transform: scale(0.95);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
}
