/* ============================================
   Bethel Presbyterian Church /about/visit Stylesheet
   ============================================ */

/* ---------------------
   Layout Containers
   --------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center; /* center content baseline */
}

.section-wrapper {
  max-width: 900px;              /* unified width */
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 10px;
  background-color: #f9f9f9;     /* unified subtle gray */
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-family: 'Goudos', serif;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.section {
  font-family: 'Goudos', serif;
  margin-bottom: 2rem;
  text-align: center;
}
ul{list-style: none;} /*Removes bullets from Contact Us*/
/* ---------------------
   Generic Box Styling
   --------------------- */
.box {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ---------------------
   Unified Headings
   --------------------- */
.section-wrapper h2 {
  font-size: 1.8rem;             /* balanced size */
  font-family: var(--font-serif-primary);
  color: var(--primary-green);
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  display: inline-block;
}
.section-wrapper h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-green);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  opacity: 0.8;
}

/* ---------------------
   Event Times Section
   --------------------- */
#event-times,
.event-times {
  padding: 2rem;
  background: #f9f9f9;
  border-top: 3px solid var(--primary-green);
}
.event-day {
  width: 20%;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans-primary);
  color: var(--primary-green);
  text-align: center;
  border-right: 1px solid #eee;
}
.event-name {
  width: 55%;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans-primary);
  color: #222;
  padding-left: 0.5rem;
  transition: color 0.3s ease;
  text-align: center;
}
.event-row:hover .event-name {
  color: var(--primary-green);
}
.event-time {
  width: 25%;
  font-size: 0.75rem;
  font-family: var(--font-serif-secondary);
  color: #555;
  text-align: right;
  white-space: nowrap;
  padding-right: 0.5rem;
}
.event-table {
  width: auto;                  /* shrink to fit content */
  margin: 0 auto 1.5rem;        /* center horizontally */
  border-collapse: collapse;
  text-align: left;             /* keep cell text left-aligned */
}/* ---------------------
   Event Footer
   --------------------- */
.event-footer {
  text-align: center;
  margin-top: 1rem;
}

.event-footer .calendar-link {
  display: inline-block;
  font-family: var(--font-sans-primary);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-green);
  background: #fff;
  border: 2px solid var(--primary-green);
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.event-footer .calendar-link:hover {
  background-color: var(--primary-green);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------------
   What to Expect Image
   --------------------- */
.expect-image {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 80%;               /* keep image narrower than text block */
  position: relative;
}

.expect-image img {
  width: 100%;
  height: auto;
  max-height: 280px;            /* condensed height */
  object-fit: cover;            /* crop gracefully */
  object-position: top center;  /* bias crop toward top, keep faces visible */
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expect-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.expect-caption {
  font-size: 0.8rem;
  color: #444;
  margin-top: 0.4rem;
  font-style: italic;
  opacity: 0.85;
}

/* Optional orientation helpers */
.expect-image.left {
  float: left;
  margin: 0 1rem 1rem 0;
  max-width: 45%;               /* smaller when floated */
  text-align: left;
}
.expect-image.right {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 45%;
  text-align: right;
}

