.banner-latest-event {
  z-index: 1;
  position: relative;
}

.banner-latest-event-header {
  padding: 70px 0 70px;
  position: relative;
  text-align: center;
}

.banner-latest-event-header .category {
  color: #b88917;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.banner-latest-event-desc {
  color: #010101;
  font-size: 48px;
  font-weight: 800;
  width: 100%;
  margin: 0 auto 20px;
  z-index: 3;
  position: relative;
  line-height: 1.1;
  font-family: "PP Neue Machina";
}

.banner-latest-event-main {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 600px;
  z-index: 3;
}

.banner-latest-event-content {
  position: absolute;
  width: 40%;
  padding: 40px 80px;
  border-radius: 0 50px 0 0;
  bottom: 0;
  left: 0;
  background-color: #85a866bf;
}

.banner-latest-event-title {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.banner-latest-event-list {
  list-style-type: none;
  padding: 0;
  margin: 0 0 30px;
}

.banner-latest-event-item {
  margin-bottom: 15px;
}

.latest-event-item-title {
  color: white;
}

.latest-event-item-date {
  font-size: 14px;
  color: white;
}

.view-events-calendar-button {
  height: 48px;
  padding: 0 20px !important;
  color: white !important;
  background-color: #5b7c44 !important;
  border: 1px solid #fff !important;
}

.view-events-calendar-button:hover {
  background-color: #465f34;
}

.event-content-wrap .desc {
  color: #010101;
  font-size: 16px;
  width: 60%;
  margin: 0 auto;
}

.event-content-wrap {
  position: relative;
  z-index: 2;
}

.events {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.events-community {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-community-button {
  width: 113px;
  height: 32px;
  border-radius: 24px;
  border: 1px solid #f3ddbf;
  background: #fff4e5;
  color: #ff9c1a;
}

.events-community-title {
  width: 700px;
  height: 112px;
  font-family: "PP Neue Machina";
  font-weight: 800;
  font-size: 48px;
  text-align: center;
}

.latest-events {
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  width: 450px;
  gap: 40px;
  padding: 40px 80px;
  background-color: #85a866bf;
}

.latest-events h1 {
  margin-top: 0;
  color: white;
  font-family: "PP Neue Machina";
  font-weight: 800;
  font-size: 48px;
}

.latest-events h4 {
  margin-top: 30px;
  margin-bottom: 0;
  color: white;
  font-family: "PP Neue Machina";
  font-weight: 800;
  font-size: 18px;
}

.latest-events p {
  margin: 0;
  color: white;
  font-family: "Inter";
  font-weight: 400;
  font-size: 14px;
}

.latest-events button {
  margin-top: 50px;
  font-family: "Inter";
  font-weight: 600;
  font-size: 16px;
  width: 245px;
  height: 48px;
  border-radius: 24px;
  border: none;
  color: #85a866;
  cursor: pointer;
}

.events-list-item {
  background: #ffffff;
  border-radius: 0 0 48px 0;
}

.events-list-item h3 {
  font-family: "Roboto";
  font-weight: 500;
  font-size: 16px;
  color: #85a866;
  margin: 20px 15px 5px 15px;
}

.events-list-item p {
  font-family: "Inter";
  font-weight: 400;
  font-size: 14px;
}

.view-more-events {
  height: 48px;
  border-radius: 24px;
  border: none;
  color: white;
  background: #ff9c1a;
  font-family: "Inter";
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  padding: 0 25px;
}

/* event v2*/
.events.v2 h4,
.events.v2 p {
  color: white;
  margin: 0;
}

.events-list-item.item1 {
  background-color: #7f98b3;
}
.events-list-item.item2 {
  background-color: #85a866;
}
.events-list-item.item3 {
  background-color: #d5b588;
}
.events-list-item.item4 {
  background-color: #c9877e;
}

/* Button colors that follow each item's background */
.events-list-item.item1 button.register-button:hover {
  color: #7f98b3;
}

.events-list-item.item2 button.register-button:hover {
  color: #85a866;
}

.events-list-item.item3 button.register-button:hover {
  color: #d5b588;
}

.events-list-item.item4 button.register-button:hover {
  color: #c9877e;
}

.v2 .events-list-item {
  max-width: 320px;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.events.v2 .view-more-events {
  background: #e1e1d7;
  border: 2px solid #b88917;
  padding: 0 25px;
  color: #a9594a;
  border-radius: 0 48px 48px;
  position: absolute;
  bottom: 80px;
  cursor: pointer;
  z-index: 3;
}

.events.v2 .view-more-events:hover {
  background-color: #d5d5ce !important;
}

.events.v2 {
  position: relative;
  padding: 0 0 80px;
}

.events.v2 .small-wrap {
  position: absolute;
  width: 50%;
  height: 100%;
  bottom: 0;
  left: 0;
}

.events.v2 .large-wrap {
  position: absolute;
  width: 50%;
  height: 100%;
  bottom: 0;
  right: 0;
}

.events.v2 .events-list {
  padding: 40px 80px;
  margin-top: 0;
  position: relative;
  z-index: 2;
  overflow: auto;
  display: flex;
  gap: 20px;
  list-style-type: none;
  justify-content: flex-start;
}

.events-list-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 10px;
}

button.register-button {
  width: 270px;
  background-color: transparent;
  border: 1px solid #ffffff;
}

button.register-button:hover {
  background-color: #ffffff;
  color: inherit;
}

.register-button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.events-list-item-content {
  margin: 0 16px;
  height: 100%;
}

.event-description {
  height: 90px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  text-align: justify;
}

.events-list-item-content h4 {
  min-height: 64px;
}

/* Event Registration Modal Styles */
.event-details {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f3ed;
  border: 2px solid #e9d9be;
  text-align: left;
}

.event-title {
  margin: 0 0 10px 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.yl-modal-message .event-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: auto;
  text-overflow: ellipsis;
  line-height: 1.4;
  text-align: justify;
  max-height: 120px;
}

.text-event-description {
  color: #7d7e78;
  line-height: 22px;
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin-top: unset !important;
  margin-block-start: unset !important;
  overflow-y: hidden;
}
.show-more-btn {
  background: none;
  border: none;
  color: #4e4e43;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 10px 0;
  transition: color 0.3s ease;
}

.show-more-btn:hover {
  color: #2c5530;
}

.show-more-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.event-meta {
  margin-top: 15px;
}

.event-date-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.event-date-time i {
  color: #a12a1f;
  font-size: 16px;
}

.date-text {
  font-weight: 500;
}

/* Registration Form Styles */
#registration-form {
  margin-top: 20px;
}

#registration-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

#registration-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#registration-form input[type="email"]:focus {
  outline: none;
  border-color: #a12a1f;
  box-shadow: 0 0 0 3px rgba(161, 42, 31, 0.1);
}

#registration-form input[type="email"]:read-only {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Register Button Styles */
.register-button {
  background-color: #a12a1f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 100px;
  text-align: center;
}

.register-button:hover {
  background-color: #8b1e15;
  transform: translateY(-1px);
}

.register-button:active {
  transform: translateY(0);
}

.register-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Modal Button Container */
.register-button-container {
  margin-top: 15px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .event-details {
    padding: 12px;
    margin-bottom: 15px;
  }

  .event-title {
    font-size: 16px;
  }

  .text-event-description {
    font-size: 13px;
  }

  .event-date-time {
    font-size: 13px;
  }

  .register-button {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 90px;
  }

  #registration-form input[type="email"] {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .event-details {
    padding: 10px;
  }

  .register-button {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
  }
}
