/* SECTION */
.events-banner {
  background: #ebe0f7; /* soft lavender */
  padding: 100px 20px;
  font-family: "Poppins", sans-serif;
}

/* CONTAINER */
/* CONTAINER - MAKE IT WIDER */
.events-banner .container {
  max-width: 1400px;   /* was 1200px */
  width: 95%;          /* allows more stretch */
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;           /* more breathing space */
}

/* LEFT CONTENT */
.events-content {
  flex: 1.2;           /* slightly bigger text area */
}


.events-content h1 {
  font-size: 64px;
  font-weight: 700;
  color: #1aa39a; /* teal */
  margin-bottom: 20px;
}

.events-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #6c7a89;
  max-width: 520px;
}

/* RIGHT IMAGE */
/* RIGHT IMAGE */
.events-image {
  flex: 1.3;           /* give more width to image */
}


.events-image img {
  width: 100%;
  max-width: 650px;
  border-radius: 24px;
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: 0.4s;
}

/* HOVER EFFECT */
.events-image img:hover {
  transform: scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .events-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .events-image {
    justify-content: center;
  }

  .events-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 576px) {
  .events-banner {
    padding: 60px 15px;
  }

  .events-content h1 {
    font-size: 36px;
  }

  .events-content p {
    font-size: 16px;
  }
}

/*Upcoming & Ongoing events*/

body{
  font-family:Poppins;
  margin:0;
}

.events-section{
  padding:80px 20px;
  background:#f6f8fb;
}
.events-section .container{
    max-width:1320px;
}
.container{
  max-width:1300px;
  margin:auto;
}

.events-header{
  text-align:center;
  margin-bottom:40px;
}

.events-header h2{
  font-size:40px;
}

.events-top{
  display:flex;
  justify-content:space-between;
  margin-bottom:30px;
}

.filter-box select{
  padding:10px 15px;
  border-radius:10px;
}

.view-toggle button{
  padding:10px 15px;
  border:none;
  border-radius:10px;
  margin-left:10px;
  cursor:pointer;
}

.view-toggle .active{
  background:#1aa39a;
  color:#fff;
}

.events-grid{
    display:grid;

    grid-template-columns:repeat(3, 1fr);

    gap:32px; /* REDUCED GAP */

    margin-top:40px;
}
.event-card{
    background:#fff;

    border-radius:24px;
  margin:0;
    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,0.05);

    transition:.35s ease;

    display:flex;
    flex-direction:column;

    height:100%;
}
.event-card .content{
    padding:26px;

    display:flex;
    flex-direction:column;

    flex:1;
}
.event-card h3{
    font-size:24px;

    line-height:1.2;

    color:#18233f;

    font-weight:800;

    margin-bottom:16px;

    min-height:58px;
}

.event-card p{
    font-size:17px;

    line-height:1.7;

    color:#667085;

    margin-bottom:22px;

    min-height:118px;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.event-card img{
    width:100%;
    height:240px;

    object-fit:cover;

    display:block;
}


/* HOVER IMAGE ONLY */
.event-card:hover img {
  transform: scale(1.05);
}
/* REMOVE ANY TRANSFORM FROM CARD */


.event-tag{
    position:absolute;

    top:18px;
    left:18px;

    background:#0ca58d;

    color:#fff;

    padding:10px 18px;

    border-radius:50px;

    font-size:15px;
    font-weight:700;
}
/* TAG FIX */
.event-card .event-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #1aa39a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  pointer-events: none;
}
.content {
  display: flex;
  flex-direction: column;
  flex: 1; /* THIS MAKES ALL CARDS EQUAL HEIGHT */
  padding: 20px;
}


/* TEXT SPACING */
.content h3 {
  margin-bottom: 10px;
}

.content p {
  margin-bottom: 15px;
}

/* META */
.meta{
    display:flex;
    flex-direction:column;

    gap:12px;

    margin-bottom:24px;
}

.meta span{
    font-size:16px;

    color:#6b7280;

    display:flex;
    align-items:center;

    gap:10px;
}


.actions{
    display:flex;

    gap:12px;

    margin-top:auto;
}

.actions button{
    flex:1;

    height:54px;

    border:1.8px solid #0ca58d;

    background:#fff;

    border-radius:14px;

    color:#18233f;

    font-size:18px;
    font-weight:600;

    cursor:pointer;

    transition:.3s ease;
}

.actions button:hover{
    background:#0ca58d;

    color:#fff;
}
.modal-content {
  padding: 25px 30px;
  background: #fff;
}

/* MODAL OVERLAY */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* MODAL BOX */
.modal {
  display: none;   /* ✅ keep hidden initially */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  padding: 20px;

  align-items: center;
  justify-content: center;
}
/* IMAGE */
.modal-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0; /* prevents shrinking */
}

/* CONTENT AREA */
.modal-content {
  padding: 25px 30px;
  overflow-y: auto; /* 🔥 scroll inside modal */
}

/* TITLE */
.modal-content h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

/* TEXT */
.modal-content p {
  color: #555;
  margin-bottom: 15px;
}

/* META */
.modal-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.modal-meta div {
  flex: 1;
}

.modal-meta strong {
  font-size: 12px;
  color: #999;
}

.modal-meta span {
  font-size: 15px;
  font-weight: 600;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 50;
  background: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 📱 TABLET */
@media (max-width: 992px) {
  .modal-box {
    max-width: 90%;
  }

  .modal-box img {
    height: 220px;
  }
}

/* 📱 MOBILE */
@media (max-width: 576px) {
  .modal {
    padding: 10px;
  }

  .modal-box {
    max-width: 100%;
    border-radius: 15px;
  }

  .modal-box img {
    height: 180px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-content h3 {
    font-size: 22px;
  }

  .modal-meta {
    flex-direction: column; /* 🔥 stack */
    gap: 10px;
  }
}   
/* GALLERY */
.dark{
  background:#000;
}

.dark img{
  max-width:70%;
}

.prev, .next{
  position:absolute;
  top:50%;
  background:#fff;
  border:none;
  padding:10px;
  cursor:pointer;
}

.prev{ left:20px;}
.next{ right:20px;}

/* CALENDAR */
.calendar-view{
  display:none;
}

@media(max-width:768px){
  .events-grid{
    grid-template-columns:1fr;
  }
}

.cta-btn-event {
  background: linear-gradient(135deg, #1aa39a42, #c8d6ce);
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.cta-btn-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.event-image-wrap{
    position:relative;
}

.event-image-wrap img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
}
/* =========================================
EVENT MODAL
========================================= */

.modal{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.65);

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:99999;

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

    padding:20px;
}

.modal.active{
    opacity:1;
    visibility:visible;
}

.modal-box{
    width:100%;
    max-width:950px;

    background:#fff;

    border-radius:28px;

    overflow:hidden;

    position:relative;

    animation:modalAnim .35s ease;
}

@keyframes modalAnim{

    from{
        transform:translateY(40px) scale(.95);
        opacity:0;
    }

    to{
        transform:translateY(0) scale(1);
        opacity:1;
    }

}

.close{
    position:absolute;

    top:18px;
    right:18px;

    width:44px;
    height:44px;

    background:#fff;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    cursor:pointer;

    z-index:10;

    box-shadow:0 5px 20px rgba(0,0,0,0.12);
}

#modalImg{
    width:100%;
    height:360px;

    object-fit:cover;

    display:block;
}

.modal-content{
    padding:38px;
}

.modal-content h3{
    font-size:46px;

    line-height:1.2;

    color:#18233f;

    font-weight:800;

    margin-bottom:18px;
}

.modal-content p{
    font-size:20px;

    line-height:1.8;

    color:#667085;

    margin-bottom:32px;
}

.modal-meta{
    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

    border-top:1px solid #e5e7eb;

    padding-top:26px;
}

.modal-meta div{
    display:flex;
    flex-direction:column;
}

.modal-meta strong{
    font-size:13px;

    color:#9ca3af;

    letter-spacing:1px;

    margin-bottom:8px;
}

.modal-meta span{
    font-size:22px;

    color:#18233f;

    font-weight:700;

    line-height:1.5;
}


/* =========================================
RESPONSIVE
========================================= */

@media(max-width:768px){

    #modalImg{
        height:230px;
    }

    .modal-content{
        padding:24px;
    }

    .modal-content h3{
        font-size:32px;
    }

    .modal-content p{
        font-size:17px;
    }

    .modal-meta{
        grid-template-columns:1fr;
    }

    .modal-meta span{
        font-size:18px;
    }

}
/* =========================================
GALLERY MODAL
========================================= */

.gallery-modal{
    position:fixed;

    inset:0;

    background:#000;

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:999999;

    opacity:0;
    visibility:hidden;

    transition:.35s ease;
}

.gallery-modal.active{
    opacity:1;
    visibility:visible;
}

.gallery-modal img{
    max-width:82%;
    max-height:85vh;

    object-fit:contain;
}

.gallery-close{
    position:absolute;

    top:18px;
    right:25px;

    width:48px;
    height:48px;

    background:#fff;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;

    cursor:pointer;
}

.gallery-nav{
    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:54px;
    height:54px;

    border:none;

    background:#fff;

    font-size:28px;

    cursor:pointer;
}

.gallery-nav.prev{
    left:20px;
}

.gallery-nav.next{
    right:20px;
}

@media(max-width:768px){

    .gallery-modal img{
        max-width:94%;
    }

}