/* MAIN PAGE LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 48vh; /* was likely too tall before */
}

/* LEFT PANEL */
.left-panel {
  background: var(--lightBlue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.left-panel-inner {
  text-align: center;
}

.left-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.left-caption {
  margin-top: 1rem;
}

.caption-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.caption-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.left-social img {
  width: 32px;
  height: 32px;
}

/* HERO */
.events-hero {
  position: relative;
  min-height: 48vh;   /* reduced from a large hero height */
  max-height: 520px;  /* prevents it from taking over large screens */
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;

  /* wood color behind the image */
  background-color: var(--wood);

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero-overlay {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 700px);
   
}

.hero-overlay h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-overlay p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* CONTROLS */
.carousel-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #fff;
}

/* CALENDAR SECTION */
.events-content {
  background: #f7f7f7;
  padding: 2.5rem 1.25rem 4rem;
}

.calendar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.calendar-title {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.calendar-embed iframe {
  width: 100%;
  min-height: 700px;
  border-radius: 12px;
}

.calendar-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

/* MOBILE */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .left-panel {
    padding: 1.5rem 1rem;
  }

  .events-hero {
    min-height: 38vh;
    max-height: 420px;
  }

  .hero-overlay {
    padding: 1rem;
  }

  .calendar-embed iframe {
    min-height: 600px;
  }
  .hero-calendar-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.2rem;
  background: #ffffff;
  color: #222;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;

}
.hero-link {
  margin-top: 10px;
  font-size: 0.95rem;
}

.hero-link a {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.85;
}

.hero-link a:hover {
  opacity: 1;
}
}
