/* ===========================
   Adult Ministries Page (Mobile XL)
   =========================== */

.page-section {
  width: 100%;
  padding: 3rem 2rem;
  margin: 0 auto 3rem;
  box-sizing: border-box;
}

/* Header section */
.adults-header .header-content {
  text-align: center;
  background: rgba(255,255,255,0.95);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  max-width: 95%;
  margin: 0 auto;
}

.adults-header .header-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.adults-header .header-subtitle {
  font-size: 2rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.adults-header .header-description {
  font-size: 1.8rem;
  line-height: 2.3;
  color: #333;
}

/* Ministry links section */
.adults-ministry-links {
  text-align: center;
}

.adults-ministry-links .section-heading {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 2.5rem;
}

/* Ministry grid */
.ministry-grid {
  display: grid;
  grid-template-columns: 1fr;   /* single column on mobile */
  gap: 2rem;
  justify-items: center;
}
/* Ministry cards (buttons) */
.ministry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 2.5rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.ministry-card:active {
  transform: scale(0.97);
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.25);
}

/* Card icon */
.ministry-card .card-icon {
  margin-bottom: 1.5rem;
}

.ministry-card .card-icon img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

/* Card content */
.ministry-card .card-content h4 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ministry-card .card-content p {
  font-size: 1.6rem;
  line-height: 2.3;
  color: #555;
  max-width: 90%;
  margin: 0 auto;
}
/* ===========================
   Men & Women Ministries (Mobile XL)
   =========================== */
.men-women-section {
  text-align: center;
  background: rgba(255,255,255,0.95);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  max-width: 960px;   /* unified width */
  margin: 0 auto 3rem;
}

.men-women-section .section-title {
  font-family: var(--font-serif-primary);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
}

.men-women-section .section-intro {
  font-family: var(--font-sans-secondary);
  font-size: 1.9rem;
  line-height: var(--line-height-loose);
  color: #333;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* Grid */
.men-women-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  justify-items: center;   /* ensures children are centered */
  width: 100%;
}

/* Section header */
.ministry-section .section-header {
  display: inline-flex;     /* shrink to content */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;    /* center the whole header block */
}

.section-header .section-icon {
  width: 48px;
  height: 48px;
}

.section-header h3 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--primary-complement);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;                /* remove default margins */
}

/* Ministry list */
.ministry-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;      /* center cards horizontally */
}

/* Ministry card */
.ministry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90%;           /* prevent full-width stretch */
  padding: 2.5rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;           /* center card itself */
}
/* Normalize SVG icons to match image sizing */
.ministry-card .card-icon {
  margin-bottom: 1.5rem;
  width: 92px;
  height: 92px;
  display: inline-block;
}

.ministry-card .card-icon img,
.ministry-card .card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ensures consistent scaling */
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}