.event-notice-hero-section {
  position: relative;
  height: 885px;
  overflow: hidden;
}

.event-notice-hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-notice-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 6rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.event-notice-events-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 1;
  margin-bottom: 70px;
}

.event-notice-event-card {
  display: flex;
  border-radius: 60px;
  overflow: hidden;
  height: 313px;
  background-color: #fff;
  width: 100%;
}

.event-notice-image-wrapper {
  width: 50%; /* 從固定寬度改為百分比 */
  height: 313px;
  overflow: hidden;
  border-radius: 60px 0 0 60px;
}

.event-notice-event-image {
  width: 100%; /* 將寬度設為100%填滿容器 */
  height: 100%; /* 高度也設為100% */
  object-fit: cover; /* 保持圖片比例 */
}

.event-notice-event-content {
  width: 50%; /* 從固定寬度改為百分比 */
  padding: 40px; /* 調整padding以適應新寬度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-notice-event-date {
  display: inline-block;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  padding: 3px 12px;
  border-radius: 20px;
  text-align: center;
  background-color: #008070;
  width: fit-content;
}

.event-notice-event-title {
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 38px;
  line-height: 33px;
  margin-bottom: 0;
}

.event-notice-event-description {
  color: #8e8e8e;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  margin-top: 12px;
  line-height: 1.5;
  margin-bottom: 0;
}

.event-notice-event-card:hover {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.event-notice-no-events {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.125rem;
  color: #666;
  font-weight: 500;
  background-color: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
  margin: 40px auto;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.event-notice-no-events::before {
  content: "📅";
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


@media (max-width: 991px) {
  .event-notice-hero-section {
    height: 600px;
  }

  .event-notice-hero-title {
    font-size: 4rem;
  }

  .event-notice-events-section {
    padding: 20px;
    max-width: 90%;
  }

  .event-notice-event-card {
    flex-direction: column;
    height: auto;
  }


  .event-notice-image-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 60px 60px 0 0;
  }

  .event-notice-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
  }

  .event-notice-event-content {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .event-notice-hero-section {
    height: 400px;
  }

  .event-notice-hero-title {
    font-size: 3rem;
  }

  .event-notice-events-section {
    padding: 15px;
  }

  .event-notice-event-card {
    border-radius: 30px;
  }

  .event-notice-image-wrapper {
    height: 200px;
    border-radius: 30px 30px 0 0;
  }

  .event-notice-event-content {
    width: 100%;
    padding: 20px;
  }

  .event-notice-event-title {
    font-size: 1.25rem;
    margin-top: 20px;
  }

  .event-notice-event-description {
    font-size: 0.875rem;
  }
}
