@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');
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.events-bgimage {
  width: 100%;
  height: 100%; /* Ensure it covers the full height */
  object-fit: cover; /* Ensures the image scales properly while preserving its aspect ratio */
  object-position: center; /* Centers the middle part of the image vertically and horizontally */
  position: absolute;
  z-index: -1; /* Ensures the image stays behind the text */
}

@media (max-width: 767px) {
  .events-bgimage {
    height: 100vh; /* Ensures the image covers the viewport height */
    object-fit: cover; /* Maintains aspect ratio */
    object-position: center center; /* Focus on the middle of the image */
  }
}

.page-name {
  color: #fff;
  font-weight: 700;
  font-size: 6.5rem; /* Default for larger screens */
  text-align: center;
  z-index: 1;
  margin: 0;
}

@media (max-width: 767px) {
  .page-name {
    font-size: 4rem; /* Adjusted for smaller screens */
  }
}


.container-content {
  padding-inline: 20px;
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.events-searchbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 10px;
  width: 40%; /* Default for mobile screens */
  font-size: 20px;
  margin: 20px 0; /* Add vertical spacing */
}

@media (min-width: 768px) {
  .events-searchbar {
    width: 30%; /* Adjust for larger screens */
    margin: 50px auto; /* Center horizontally */
  }
}

.searchbar-input {
  margin-left: 5px;
  border: none;
  background-color: transparent;
  font-size: 20px;
  width: 100%;
}

.searchbar-input:focus {
  outline: none;
}

.display-cards {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.events-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  /* border: 1px solid #000; */
  width: 100%;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.card-image {
  width: 40%;
  height: auto;
  min-height: 150px;  /* Minimum height */
  max-height: 300px;  /* Maximum height */
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-right: 10px;
}


/* .card-content {
  position: absolute;
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.1);
  top: 20%;
  left: 45%;
  width: 50%;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
} */


/* .content-heading {
  
}

.content-body {
  text-align: justify;
  } */
  
.card-content {
  width: 60%;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.content-body {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  overflow: hidden;
  white-space: wrap;
}


.content-sig {
    background-color: #00B4D7;
    display: inline-block;
    width: 30%;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    color: #fff;
    font-size: smaller;
  }
  
.opposite-card {
  justify-content: flex-end;
}

.opposite-content {
  top: 20%;
  left: 5%;
  box-shadow: -5px 5px 5px 5px rgba(0, 0, 0, 0.1);
}

/* Main container for the mobile card */
.event-card-mobile {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%; /* Full width for mobile */
  margin: 16px 0; /* Space between cards */
}

/* Image container styling */
.image-container-mobile {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9; /* Keeps the aspect ratio for the image */
}

.image-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image scales properly */
  object-position: center; /* Focuses on the center of the image */
}

/* Content styling */
.content-mobile {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Adds spacing between elements */
  height: 100%; /* Ensures content takes up the available space */
}

/* SIG (Signature) text */
.content-sig-mobile {
  background-color: #00B4D7; /* New background color */
  display: inline-block;
  padding: 10px;
  border-radius: 20px;
  color: #fff;
  font-size: smaller;
  max-width: fit-content; /* Adjust width based on content */
}

/* Heading */
.content-heading-mobile {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

/* Body text */
.content-body-mobile {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
  margin: 0;
}
