/* ===== Events Hero Section ===== */
.events-hero{
  background:#f7f9fb; /* very light mint/white */
  padding: 64px 0 56px;
}

.events-hero .container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.events-hero__title{
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  color:#111;
  margin: 0 0 14px;
}

.events-hero__text{
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.7;
  color:#5c6770;
}

.events-hero__divider{
  height: 1px;
  background: #e6eceb;
  width: 100%;
  margin: 28px 0 28px;
}

/* ===== Stats Row ===== */
.events-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
}

.events-stat{
  padding: 18px 10px;
  position: relative;
}

.events-stat:not(:last-child)::after{
  content:"";
  position:absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 46px;
  background: #e6eceb;
}

.events-stat__number{
  font-size: 22px;
  font-weight: 800;
  color:#1f6b4f; /* deep green */
  margin-bottom: 6px;
}

.events-stat__label{
  font-size: 14px;
  letter-spacing: 0.2px;
  color:#6e7a82;
}

/* Responsive */
@media (max-width: 900px){
  .events-hero__title{ font-size: 38px; }
}

@media (max-width: 700px){
  .events-stats{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .events-stat{
    background: #ffffff;
    border: 1px solid #e6eceb;
    border-radius: 10px;
  }

  .events-stat::after{ display:none; }
}

.past-events{
    background:#ffffff;
    padding: 70px 0;
  }

  .past-events .container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Heading */
  .past-events__head{
    text-align:center;
    margin-bottom: 34px;
  }

  .past-events__title{
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color:#111;
    margin: 0 0 10px;
  }

  .past-events__subtitle{
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color:#6a7680;
  }

  /* Grid */
  .past-events__grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  /* Card */
  .event-card{
    background:#fff;
    border: 1px solid #e9eeec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  }

  .event-card__image{
    width:100%;
    height: 190px;
    overflow:hidden;
  }

  .event-card__image img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
  }

  .event-card__body{
    padding: 16px 16px 18px;
  }

  .event-card__meta{
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color:#5f6b73;
    margin-bottom: 10px;
  }

  .meta-item i{
    margin-right: 6px;
    color:#2c6e55;
  }

  .meta-sep{
    color:#c9d3cf;
  }

  .event-card__title{
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color:#111;
    margin: 0 0 10px;
  }

  .event-card__text{
    font-size: 16px;
    line-height: 1.7;
    color:#6a7680;
    margin: 0;
  }

  /* Load more button */
  .past-events__actions{
    display:flex;
    justify-content:center;
    margin-top: 28px;
  }

  .load-more-btn{
    background:#ffffff;
    border: 1px solid #e6eceb;
    color:#111;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
  }

  .load-more-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
  }

  .load-more-btn:disabled{
    opacity: .6;
    cursor: not-allowed;
    transform: none;
  }

  /* Responsive */
  @media (max-width: 980px){
    .past-events__grid{
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 620px){
    .past-events__grid{
      grid-template-columns: 1fr;
    }
    .event-card__image{ height: 210px; }
  }


.masonry-gallery{
    background:#ffffff;
    padding: 70px 0;
  }

  .masonry-gallery .container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .masonry-gallery__head{
    text-align:center;
    margin-bottom: 26px;
  }

  .masonry-gallery__title{
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color:#111;
    margin: 0 0 8px;
  }

  .masonry-gallery__subtitle{
    margin: 0 auto;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color:#6a7680;
  }

  /* Masonry using CSS columns */
  .gallery{
    column-count: 4;
    column-gap: 16px;
  }

  .gallery__item{
    display: inline-block;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 12px;
    overflow: hidden;
    background:#f2f5f4;
    border: 1px solid #e9eeec;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
    transform: translateZ(0);
  }

  .gallery__item img{
    width: 100%;
    height: auto;
    display:block;
    transition: transform .25s ease;
  }

  .gallery__item:hover img{
    transform: scale(1.03);
  }

  /* Responsive */
  @media (max-width: 980px){
    .gallery{ column-count: 3; }
  }
  @media (max-width: 720px){
    .gallery{ column-count: 2; }
  }
  @media (max-width: 420px){
    .gallery{ column-count: 1; }
  }

  /* Lightbox */
  .lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 9999;
  }

  .lightbox.is-open{ display:flex; }

  .lightbox__inner{
    position: relative;
    width: min(980px, 94vw);
    height: min(640px, 82vh);
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .lightbox__img{
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    user-select: none;
  }

.lightbox__btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);   /* darker background */
  border: none;
  color:#ffffff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 38px;
  z-index: 10001;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.lightbox__btn--prev{
  left: 18px;   /* move inside */
}

.lightbox__btn--next{
  right: 18px;  /* move inside */
}

.lightbox__btn:hover{
  background: rgba(0,0,0,.75);
}

  .lightbox__close{
    position:absolute;
    top: -10px;
    right: -10px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor:pointer;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color:#fff;
    font-size: 20px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .lightbox__caption{
    position:absolute;
    bottom: -34px;
    left: 0;
    right: 0;
    text-align:center;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    line-height: 1.4;
  }

  @media (max-width: 520px){
    .lightbox__btn--prev{ left: 6px; }
    .lightbox__btn--next{ right: 6px; }
    .lightbox__close{ top: 6px; right: 6px; }
    .lightbox__caption{ bottom: -28px; }
  }