/* =====================
   EVENTS PAGE STYLING
===================== */

/* Remove conflicting body styles - let theme.css handle the base styling */
/* Only override specific elements for events page */

/* Container for everything - override theme.css bodyblock1 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: 'poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bodyblock1 {
  width: 90%;
  margin-top:70px !important;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  padding: 20px;
}

/* Community Section Styling */
.communitysection {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.community-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.community-text {
  flex: 1;
  text-align: left;
}

.community-text h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
}

.community-text p {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin: 0;
}

.community-action {
  flex-shrink: 0;
}

.join-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: none;
  font-size: 0.9rem;
}

.join-btn:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
  text-decoration: none;
}

.join-btn i {
  font-size: 1.1rem;
}

.join-btn .fa-arrow-right {
  transition: transform 0.3s ease;
}

.join-btn:hover .fa-arrow-right {
  transform: translateX(3px);
}

/* Upcoming and Completed Events Sections */
.upcomingevents {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.uppersection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.uppersection .heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

/* Events Grid */
.eventslist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0px;
}

/* Individual Event Card */
.eventsbox {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.eventsbox:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Event Image */
.eventsbox img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Event Content */
.eventcontent {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eventcategory {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4fc3f7;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.eventname {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.eventdetails {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.smalldetails {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #cccccc;
}

.bold {
  font-weight: 700;
  color: #ffffff;
}

/* Links (Register / Completed) */
.link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

.link:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* "No events" Message */
.Noevents {
  text-align: center;
  font-style: italic;
  color: #cccccc;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .bodyblock1{
    width: 90%;
    margin: 0 10px ;
    padding: 0px 10px !important;
  }
  .eventslist {
    grid-template-columns: 1fr;
  }

  .community-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .community-text {
    text-align: center;
  }

  .community-text h2 {
    font-size: 1.3rem;
  }

  .community-text p {
    font-size: 0.9rem;
  }

  .join-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .uppersection .heading {
    font-size: 1.2rem;
  }

  .eventsbox{
    display: block;
    margin: 13px 0;
  }

  .eventslist{
    margin: 20px 0  ;
  }
}