/* ===========================
   Leadership Page (Mobile)
   =========================== */

/* Officer Heading Section */
.page-section.officer-heading {
  min-height: 100vh;
  padding: 6rem 2rem;
  text-align: center;
  background-color: var(--light-gray, #f5f5f5);
}

.officer-heading__title {
  font-family: 'Goudos', var(--font-sans-primary), sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

.officer-heading__subtitle {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--text-dark, #333);
}

.officer-heading__buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 3rem;              /* larger tappable area */
  border-radius: 20px;               /* smoother corners */
  font-size: 2rem;                   /* bigger text */
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-green);
  background: linear-gradient(135deg,
    rgba(255,255,255,0.95) 0%,
    rgba(240,240,240,1) 50%,
    rgba(220,220,220,1) 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15),
              inset 0 -2px 4px rgba(255,255,255,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary-green);
  color: #fff;
}

.btn-secondary {
  background: var(--accent-blue, #2a7f62);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.25);
}

/* ===========================
   Officer Intro and Citations
   =========================== */
.officer-intro {
  font-size: 2.2rem;
  line-height: 2;
  margin: 3rem auto;
  max-width: 90%;
  text-align: left;
}

.citation-group {
  display: block;
  margin: 2.5rem auto;
  max-width: 90%;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-muted, #666);
}

.citation {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-style: italic;
  word-break: break-word;
}

.citation-bible,
.citation-bco {
  font-size: 2rem;                   /* larger for touch */
  padding: 1rem 1.5rem;              /* bigger tappable area */
  border-radius: 10px;
  display: inline-block;
  margin: 0.75rem 0.5rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: var(--primary-green);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.citation-bible:hover,
.citation-bco:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.citation-bible:active,
.citation-bco:active {
  background: #a5d6a7;
  transform: scale(0.96);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.25);
}

/* ===========================
   Citation overlay and lightbox
   =========================== */
.citation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  display: none;
}

.citation-lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;                       /* wider */
  max-width: 600px;                 /* larger max width */
  max-height: 85vh;                 /* taller */
  background: #fff;
  padding: 3rem;                     /* more breathing room */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow-y: auto;
  font-size: 2rem;                   /* larger text */
  line-height: 2;
  z-index: 1001;
  display: none;
}

.citation-overlay.active,
.citation-lightbox.active {
  display: block;
  animation: fadeIn 0.25s ease;      /* smooth fade-in */
}

.citation-lightbox .citation-content p {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 2;
  font-family: var(--font-serif-primary);
}

.citation-lightbox .citation-ref {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.citation-lightbox .citation-text {
  font-size: 2rem;
  color: var(--text-dark, #333);
}

/* Hide close button on mobile */
.citation-lightbox .close-btn {
  display: none !important;
}

/* Simple fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}


/* Elders Section */
.elders-section,
.deacons-section {
  padding: 4rem 1.5rem;
}

.elders-header,
.deacons-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.elders-title,
.deacons-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-green);
}

.elders-intro,
.deacons-intro {
  font-size: 2.2rem;
  line-height: 2.2;
  margin: 2rem auto 3rem auto;
  max-width: 95%;
  text-align: left;
}

/* Lists */
.elders-list,
.deacons-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  list-style: none;
}

.elders-item,
.deacons-item {
  text-align: center;
}

.elders-figure,
.deacons-figure {
  margin: 0 auto 1.5rem auto;
}

.elders-portrait,
.deacons-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.elders-name,
.deacons-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-green);
}
