@import url("https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap");
body {
  background-color: rgb(40, 10, 70);
  font-family: "Noto Sans", sans-serif;
  letter-spacing: 0.05em;
  margin: 0;
}

.main-part {
  padding-inline: 24px;
  padding-top: 40px;
  padding-bottom: 20px;
  background: rgb(255, 255, 255);
  height: auto;
  display: flex;
  flex-direction: column;
  max-width: 1400px; /* Add this */
  margin: 0 auto;
}

.main-part h2 {
  border-bottom: 2px solid black;
  width: 100%;
  font-size: 20pt;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  box-sizing: border-box;
  height: fit-content;
  padding-inline: 0;
  max-height: calc(
    100vh - 100px
  ); /* Adjust 100px as needed for header/footer */
  overflow-y: auto;
}

.grid-item {
  height: fit-content;
  display: flex;
  justify-content: center;
}

.grid-item-image {
  height: auto;
  /* object-fit: revert; */
  overflow: hidden;
  display: flex;
  flex-grow: 1;
  /* object-fit: scale-down; */
}

.swiper-image {
  height: 300px;
  display: flex;
  justify-self: center;
}

.popup-btn {
  border-radius: 40px;
  border: 1px solid white;
  /* object-fit: unset; */
  display: flex;
  flex-grow: 1;
  padding: 0;
}

.popup-btn img {
  border-radius: 40px; /* Match the button's border-radius */
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover; /* or object-fit: contain; as needed */
  display: block;
}

.popup-btn:hover {
  box-shadow: #662d91 0px 2px 40px;
  cursor: pointer;
}

.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Optional: darken background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* This applies the blur */
  z-index: 1000; /* Make sure it's above other content */
  align-items: center;
  justify-content: center;
}

.popup {
  background: white;
  padding: 16px;
  margin-inline: 16px;
  margin-block: 32px;
  border-top-left-radius: 40px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 40px;
  max-height: 600px;
  /* max-width: 400px; */
  min-width: 350px;
  width: fit-content;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.image-swiper {
  height: 300px;
  width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  width: 16px !important;
  height: 16px !important;
  padding-block: 15px;
  padding-inline: 15px;
  border-radius: 100%;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
  padding-block: 15px;
  padding-inline: 15px;
  border-radius: 100%;
  width: 16px !important;
  height: 16px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px !important;
  width: 24px !important;
  height: 24px !important;
}

.date {
  font-size: 10pt;
  text-align: center;
}

.popup-content {
  padding-inline: 16px;
  padding-block: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: 500px;
}

.popup-title {
  font-size: 25pt;
  margin-bottom: 20px;
  margin-top: 20px;
}

.popup-text {
  font-size: 12pt;
  padding-right: 8px;
  margin-bottom: 0;
}

.popup::-webkit-scrollbar {
  width: 8px;
  background: #eee; /* Track color */
  height: 400px;
  margin-right: 8px;
}

.popup::-webkit-scrollbar-thumb {
  background: #662d91; /* Thumb color */
  border-radius: 8px;
}

.popup::-webkit-scrollbar-thumb:hover {
  background: #4b1c6b;
}

.disclaimer {
  background-color: black;
  font-size: 12pt;
  color: white;
  text-align: center;
  box-shadow: #662d91 0px -18px 40px;
  padding-block: 8px;
  text-align: center;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.disclaimer p {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .main-part {
    padding-inline: 150px;
    padding-top: 40px;
    padding-bottom: 20px;
    background: rgb(255, 255, 255);
    height: auto;
    display: flex;
    flex-direction: column;
    max-width: 1600px;
  }
  .main-part h2 {
    border-bottom: 2px solid black;
    width: 100%;
    font-size: 25pt;
  }
  .home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    box-sizing: border-box;
    height: fit-content;
    padding-inline: 0;
    max-height: calc(
      100vh - 100px
    ); /* Adjust 100px as needed for header/footer */
    overflow-y: auto;
    padding: 50px;
  }

  .popup {
    background: white;
    padding: 60px;
    margin: 150px;
    border-top-left-radius: 120px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 120px;
    max-height: 700px;
    /* max-width: 400px; */
    min-width: 800px;
    width: fit-content;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
  }
  .popup-btn img {
    border-radius: 40px; /* Match the button's border-radius */
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover; /* or object-fit: contain; as needed */
    display: block;
  }
  .popup-text {
    font-size: 14pt;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 0;
  }
  .image-swiper {
    height: 500px;
    width: 40%;
  }
  .date {
    font-size: 10pt;
    text-align: right;
  }
  .popup-btn:hover {
    box-shadow: #662d91 0px 2px 40px;
    cursor: pointer;
  }
  .popup-content {
    padding: 0px;
    padding-inline: 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 500px;
  }
  .popup-text::-webkit-scrollbar {
    width: 8px;
    background: #eee; /* Track color */
  }

  .popup-text::-webkit-scrollbar-thumb {
    background: #662d91; /* Thumb color */
    border-radius: 8px;
  }

  .popup-text::-webkit-scrollbar-thumb:hover {
    background: #4b1c6b;
  }
  .popup-text {
    font-size: 14pt;
    padding-right: 8px;
    margin-bottom: 0;
  }
  .popup-title {
    font-size: 30pt;
    margin-bottom: 20px;
  }

  .grid-item-image {
    height: auto;
  }

  .swiper-image {
    height: 500px;
    display: flex;
    justify-self: center;
  }
  .disclaimer {
    background-color: black;
    font-size: 12pt;
    color: white;
    box-shadow: #662d91 0px -18px 40px;
    padding-block: 8px;
    display: flex;
    justify-content: space-between;
    padding-inline: 24px;
    gap: 16px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .image-swiper {
    /*     height: 350px;
    width: 100%; */
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .swiper {
    width: 100%;
    max-width: 500px;
  }
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-image {
    height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .popup {
    background: white;
    padding: 30px;
    margin: 150px;
    border-top-left-radius: 120px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 120px;
    max-height: 500px;
    /* max-width: 400px; */
    min-width: 800px;
    width: fit-content;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
  }
  .popup-content {
    padding: 0px;
    padding-inline: 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 400px;
  }
}
@media (width: 1024px) {
  .image-swiper,
  .swiper {
    max-width: 600px;
  }
  .swiper-image {
    height: 350px;
    max-width: 100%;
  }
  .popup {
    background: white;
    padding: 30px;
    margin: 150px;
    border-top-left-radius: 120px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 120px;
    max-height: 500px;
    /* max-width: 400px; */
    min-width: 800px;
    width: fit-content;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
  }
  .popup-content {
    padding: 0px;
    padding-inline: 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 400px;
  }
}
@media (min-width: 1200px) {
  .image-swiper,
  .swiper {
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-image {
    height: 400px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .popup {
    background: white;
    padding: 30px;
    margin: 150px;
    border-top-left-radius: 120px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 120px;
    max-height: 500px;
    /* max-width: 400px; */
    min-width: 800px;
    width: fit-content;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
  }
  .popup-content {
    padding: 0px;
    padding-inline: 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 400px;
  }
}
