/* Youth Events Page */
.youth-events {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Segoe UI", sans-serif;
}

/* Title + Subtitle */
.events-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  text-align: center;
  margin-bottom: 0.25rem;
}

.events-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* Gallery Grid */
.events-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center; /* centers the grid */
}

.event-image {
  background: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-image figcaption {
  font-size: 0.95rem;
  padding: 0.75rem;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--light-gray);
  min-height: 3.5rem;   /* normalize caption area height */
  display: flex;
  align-items: center;  /* vertically center single-line captions */
  justify-content: center;
  text-align: center;
}

.event-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.event-image img {
  width: 100%;
  height: 200px;          /* fixed height for consistency */
  object-fit: cover;      /* crops to fill without distortion */
  display: block;
}

.event-image figcaption {
  font-size: 0.95rem;
  padding: 0.75rem;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--light-gray);
}

/* Youth Events Page */
.youth-events {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Segoe UI", sans-serif;
}

/* Title + Subtitle */
.events-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  text-align: center;
  margin-bottom: 0.25rem;
}

.events-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* Gallery Grid */
.events-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center; /* centers the grid */
}

.event-image {
  background: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.event-image img {
  width: 100%;
  height: 200px;          /* fixed height for consistency */
  object-fit: cover;      /* crops to fill without distortion */
  display: block;
}

.event-image figcaption {
  font-size: 0.95rem;
  padding: 0.75rem;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--light-gray);
}

/* Body Text */
.events-body {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Info */
.events-contact {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--black);
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 6px;
}
.events-contact strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary-green-dark);
}

/* Notice Box */
.events-notice {
  background: #fffbe6;
  border: 2px solid #f0e68c;
  padding: 1.25rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

.events-notice h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--primary-green-dark);
  text-align: center;
}

.events-notice p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

/* Documents List */
.events-documents {
  text-align: center;
}
.events-documents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.events-documents li {
  margin: 0;
}
.events-documents a {
  display: inline-flex;              /* flex for icon + text */
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--primary-green);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  min-width: 220px;                  /* normalize width */
  text-align: center;
}
.events-documents a:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}
.events-documents a .doc-icon {
  width: 24px;
  height: auto;
}

