/* 議程組件樣式 */
.agenda-component {
  font-family: "Noto Sans TC", sans-serif;
  max-width: 100%;
  /* margin: 0 auto; */
  padding: 20px;
  position: relative;
}
/* 議程內容容器 */
.agenda-content {
background: linear-gradient(138deg, #cbebf8 60%, #cbebf826 100%);
border-radius: 0 12px 12px 12px;
padding: 1rem 0.5rem;
position: relative;
}

.agenda-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  align-items: center;
}

.agenda-item.multi-sessions {
  grid-template-columns: 20% 1fr;
}

.agenda-item.multi-sessions .time-box {
  position: sticky;
  top: 1.5rem;
}

.agenda-item.multi-sessions .participants {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.agenda-item.multi-sessions .participants + .participants {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #fff;
}

.border {
  margin: 0;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 1.5rem;
}

.multi-sessions + .border {
  margin-left: 20%;
}


.agenda-item .time-box {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgb(179 215 229);
  position: relative;
  padding: 10px 0;
}

.agenda-item .time-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(360deg,rgba(38, 159, 214, 1) 30%, rgba(109, 207, 252, 1) 75%);
  pointer-events: none;
}

.agenda-item .time-text {
  font-size: clamp(1.5rem, 2.92vw, 1.2rem);
  font-weight: 500;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}


.agenda-item .title-text {
  color: #000;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.agenda-item .participant {
  line-height: 1.6;
  color: #121212;
  position: relative;
  padding-left: 1.5rem;
}

.agenda-item .participant::before {
  content: "•";
  position: absolute;
  left: 0.1rem;
  display: block;
}

@media screen and (min-width: 768px) {
  .agenda-item {
      grid-template-columns: 20% 1fr;
      padding: 1.5rem;
  }
  .agenda-item .participants {
    padding-left: 1rem;
  }
  /* .agenda-item .time-text {
      font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  }

  .agenda-item .title-text {
      font-size: clamp(1.3rem, 1.5vw, 1.55rem);
  }

  .agenda-item .participant {
      font-size: clamp(1rem, 1.5vw, 1.12rem);
  } */
}

/* 主題變體 */
.agenda-component.theme-blue {
  --bg-color: #E4F2FF;
  --text-color: #004987;
  --accent-color: #4BAAFF;
}

.agenda-component.theme-green {
  --bg-color: #E8F5E8;
  --text-color: #2D5A2D;
  --accent-color: #4CAF50;
}


.agenda-component.theme-purple {
  --bg-color: #F3E5F5;
  --text-color: #4A148C;
  --accent-color: #9C27B0;
}

.agenda-component.theme-purple .agenda-title::after {
  background: #F3E5F5;
}

.agenda-component.theme-orange {
  --bg-color: #FFF3E0;
  --text-color: #E65100;
  --accent-color: #FF9800;
}

.agenda-component.theme-orange .agenda-title::after {
  background: #FFF3E0;
}

.agenda-component.theme-red {
  --bg-color: #FFEBEE;
  --text-color: #B71C1C;
  --accent-color: #F44336;
}

.agenda-component.theme-red .agenda-title::after {
  background: #FFEBEE;
}

.agenda-component.theme-teal {
  --bg-color: #ccecf9;
  --text-color: #004D40;
  --accent-color: #009688;
}

.agenda-component.theme-teal .agenda-title::after {
  background: #ccecf9;
}

/* 標題長度適應 */
.agenda-item.long-title .time-box {
  width: 140px;
}

.agenda-item.short-title .time-box {
  width: 100px;
}

.agenda-item.extra-long-title .time-box {
  width: 160px;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .agenda-component {
      padding: 15px;
  }

  .agenda-title {
      font-size: 16px;
      padding: 10px 15px;
      max-width: 80%;
  }

  .agenda-content {
    padding: 2%;
  }

  .agenda-item {
      grid-template-columns: 1fr;
      padding: 1.2rem;
      gap: 0.5rem;
  }

  .agenda-item .time-box {
      width: 100%;
      height: 20px;
      position: relative;
      top: 5px;
      margin-bottom: 1.5rem;
  }

  .agenda-item .participants {
      padding-left: 0;
      gap: 2rem;
  }

  .agenda-item.multi-sessions {
      grid-template-columns: 1fr;
  }

  .agenda-item.multi-sessions .time-box {
      position: relative;
      top: 0;
  }

  .agenda-item.multi-sessions .participants {
    gap: 0.2rem;
  }

  .agenda-item.multi-sessions .participants + .participants {
      margin-top: 2rem;
      padding-top: 2rem;
  }
}

@media (max-width: 480px) {
  .agenda-component {
      padding: 10px;
  }

  .agenda-title {
      font-size: 14px;
      padding: 8px 12px;
      max-width: 85%;
  }

  .agenda-title::after {
      right: -25px;
      width: 25px;
      /* clip-path: polygon(0 0, 100% 50%, 0 100%, 5px 100%, 5px 5px, 5px 0); */
  }

  .agenda-content {
      padding: 45px 12px 12px 12px;
      /* margin-top: 25px; */
  }

  .agenda-item {
      /* 改成上下排列 */
      display: flex;
      flex-direction: column;
      padding: 12px;

  }

  .time-box {
      height: 45px;
  }

  .time-text {
      font-size: 13px;
  }

  .title-text {
      font-size: 15px;
  }

  .participant {
      font-size: 12px;
  }
}

/* 動畫效果 */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.agenda-item {
  animation: fadeInUp 0.6s ease forwards;
}

.agenda-item:nth-child(1) { animation-delay: 0.1s; }
.agenda-item:nth-child(2) { animation-delay: 0.2s; }
.agenda-item:nth-child(3) { animation-delay: 0.3s; }
.agenda-item:nth-child(4) { animation-delay: 0.4s; }
.agenda-item:nth-child(5) { animation-delay: 0.5s; }

/* 標題樣式 - 定位在左上角 */
.agenda-title {
  top: 15px;
  position: absolute;
  /* font-size: 20px; */
  font-weight: 700;
  color: var(--text-color, #004987);
  padding: 12px 40px;
  background: #ccecf9;
  border-radius: 0 15px 0 0;
  z-index: 10;
  max-width: 60%;
}

.agenda-title{
position: relative;
padding-right: 0;
padding-bottom: 2%;
/* font-size: clamp(0.8rem, 2.86vw, 3.43rem); */
}

.agenda-title::after{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  background-image: url('../images/page/right.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.agenda-title span {
  position: relative;
  z-index: 1;
}
/* /文字大小 */
.agenda-title h2{
  font-size: clamp(1.6rem, 2.5vw, 40px);
  margin-top: 2%;
}
.agenda-title p,.title-text{
  font-size: clamp(1.2rem, 2vw, 30px);
  margin: 0;
}
.agenda-item .participant{
  font-size: clamp(0.95rem, 1.2vw, 20px); 
}
@media (max-width: 640px) {
  .agenda-title {
    max-width: 100%;
    padding: 15px;
    border-radius: 15px;
  }
  .agenda-title::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
  }
.agenda-content{
    padding: 0;
  }
}
