/* ===============================
   EVENTS PAGE CSS
   File: events.css
   =============================== */

/* -------------------------------
   General Wrap
---------------------------------*/
.events-wrap {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  padding-bottom:30px;
}

.events-wrap h2 {
  font-size: 32px;
  color: #324776;
  margin-bottom: 30px;
  text-align: center;
}

/* -------------------------------
   Masonry Grid Wrapper
---------------------------------*/
.masonry-grid-eve {
  position: relative;
  width: 80%;
  margin:0 auto;
}

/* -------------------------------
   Event Card - Two Column Layout
---------------------------------*/
.masonry-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  margin-bottom: 35px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeSlideUp 0.8s ease forwards;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* Animation Keyframe */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------
   Left Column - Image
---------------------------------*/
.event-image {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border: 1px solid #324776;
}

.masonry-item:hover .event-image img {
  transform: scale(1.07);
}

/* -------------------------------
   Right Column - Content
---------------------------------*/
.event-content {
  flex: 1;
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInRight 0.8s ease forwards;
  opacity: 0;
  text-align:center;
  margin:0 auto;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.event-content h3 {
  font-size: 24px;
  color: #324776;
  margin-bottom: 12px;
  font-weight: 700;
}

.event-content .meta {
  font-size: 15px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.4em;
  margin-top:20px;
}

/* -------------------------------
   View Button
---------------------------------*/
.view-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: #324776;
  transition: background 0.3s ease, transform 0.25s ease;
  width: fit-content;
  margin-top:30px;
  align-self: anchor-center;
}

.view-btn:hover {
  background: #005dc1;
  transform: translateY(-3px);
}

/* --------------------------------
   RESPONSIVE DESIGN
----------------------------------*/
@media (max-width: 992px) {
  .masonry-item {
    flex-direction: column;
    width: 100% !important;
  }

  .event-image {
    max-width: 100%;
    height: 250px;
  }

  .event-content {
    animation: none; /* avoid double animation on stack */
    opacity: 1;
  }
  
  .masonry-grid-eve {
  width: 90%;
    }
}

@media (max-width: 600px) {
  .event-content h3 {
    font-size: 20px;
  }

  .view-btn {
    width: 100%;
    text-align: center;
  }
  
  .masonry-grid-eve {
  width: 95%;
    }
}