

/* Hero Section */
.hero {
  min-height: 100%;
  background: url('/static/images/background.jpg') center center/cover no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay Text */
.overlay-text {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  position: absolute;
  top: 30%;
  width: 100%;
}

.overlay-text .top-text {
  font-size: 3rem;
  margin-bottom: 1rem;

}

.center-text, .top-text {
    color: #d0e4ed;

}

.overlay-text .center-text {
  font-size: 2rem;
}

.weeklySchedule {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 900px;
  padding: 1rem;
  gap: 1rem;
}

.day {
  flex: 1 1 calc(14% - 1rem); /* 7 days evenly across the row */
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  min-width: 110px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.day h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.day p {
  font-size: 14px;
  color: #666;
}

.mainBody {
background: transparent;
  padding: 40px 80px 0px 80px;
}

.events-section {
  margin: 2rem auto;
  max-width: 900px;
  padding: 1rem;
}




/* Current Events — facelift */
.events-section {
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,.06);
  --card-shadow: 0 8px 24px rgba(0,0,0,.06);
  --accent: #004aad;
  --ink: #192a3a;

  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.events-section .section-title {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 2rem);
  color: var(--ink);
  margin: 0 0 1rem 0;
}

/* Switch to a responsive grid */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Card styling */
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.12);
}

/* Header + date badge */
.event-card header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.event-card .event-date {
  background: #004aad10;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  padding: .35rem .55rem;
  border-radius: .5rem;
  border: 1px solid #004aad33;
  letter-spacing: .02em;
}

.event-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Meta, summary, tags */
.event-card .event-meta {
  font-size: .9rem;
  color: #666;
  margin-bottom: .5rem;
}

.event-card .event-summary {
  line-height: 1.5;
}

.event-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.event-card .tag {
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* Actions */
.event-card .actions {
  display: flex;
  gap: .5rem;
  margin-top: .9rem;
}

.event-card .btn {
  appearance: none;
  border: 1px solid #d0d7de;
  background: linear-gradient(#fff, #f8fafc);
  padding: .45rem .7rem;
  border-radius: .6rem;
  font-size: .9rem;
  text-decoration: none;
}

.event-card .btn:hover {
  border-color: #b6c2ce;
}

/* Photos */
.event-card .event-photos { margin-top: .75rem; gap: .5rem; }
.event-card .event-photo { aspect-ratio: 4 / 3; flex: 1 1 48%; }

/* If you use the slider inside event cards, make it match the card style */
.event-card .photo-slider img { border-radius: 10px; }
.event-card .photo-slider .prev-photo,
.event-card .photo-slider .next-photo {
  background: rgba(25,42,58,.8);
  color: #fff;
  border-radius: 50%;
}
.event-card .slider-indicators span { background: #d0d7de; }
.event-card .slider-indicators .active { background: var(--accent); }



.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-card {
  flex: 1 1 calc(50% - 1rem);
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  min-width: 250px;
  margin-bottom: 15px;
}

.event-card h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.event-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.event-photo {
  flex: 1 1 45%;
  max-width: 100%;
  border-radius: 5px;
  object-fit: cover;
}


.photo-slider {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  padding: 0 2rem;       /* room for arrows */
  overflow: hidden;
}

.photo-slider img {
  display: block;
  max-height: 180px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 4px;
}

.prev-photo,
.next-photo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.prev-photo { left: 0; }
.next-photo { right: 0; } 


.photo-slider {
  display: grid;
  grid-template-rows: auto 1fr;
}
.slider-indicators {
  text-align: center;
  margin-top: 0.5rem;
}
.slider-indicators span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.slider-indicators .active {
  background: #555;
}


/* Multi-item slider on Home → Featured Galleries */
.home-gallery-card .photo-slider.multi {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-gallery-card .photo-slider .viewport {
  flex: 1 1 auto;
  overflow: hidden;
}

.home-gallery-card .photo-slider .track {
  display: flex;
  gap: 8px;                /* Keep in sync with JS gap measurement */
  will-change: transform;
  transition: transform 220ms ease;
}

.home-gallery-card .photo-slider .item {
  flex: 0 0 var(--gallery-item-w, 220px);  /* Fixed item width → "as many as fit" */
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
}

.home-gallery-card .photo-slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: keep arrow appearance consistent with your event slider */
.home-gallery-card .photo-slider .prev-photo,
.home-gallery-card .photo-slider .next-photo {
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}

.event-card p1 {
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word;
}


.event-row { 
  display: flex; 
  justify-content: space-between;   /* title left, meta right */
  align-items: baseline; 
  gap: .75rem;
  flex-wrap: nowrap;                /* keep on one line */
}
.event-title, .event-meta { margin: 0; }
.event-meta { white-space: nowrap; } /* prevent wrapping of date/location */
