/* === HOMEPAGE CAROUSEL === */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  container-type: size;
}

.carousel-slide {
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 2.4rem;
  left: 2.4rem;
  z-index: 10;
}

.carousel-caption h2 {
  font-size: clamp(1.6rem, 4cqh, 4cqh);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bg-color);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.8);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #f5f5dc;
  border: none;
  cursor: pointer;
  font-size: clamp(1.2rem, 6.4cqh, 3rem);
  z-index: 10;
  transition:
    transform 0.3s,
    color 0.3s;
  text-shadow: 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.4);
}

.prev {
  left: clamp(1rem, 2cqw, 2cqw);
}

.next {
  right: clamp(1rem, 2cqw, 2cqw);
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
}

/* 增大箭頭按鈕的點擊/觸發範圍 */
.slider-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* 👇 這裡設定你想要的隱形觸發範圍（寬高） */
  width: 10vw;
  height: 10vw;

  /* 測試技巧：在開發時可以把下面這行打開，就會看到紅色的隱形觸發盒，方便確認大小 */
  /* background: rgba(255, 0, 0, 0.2); */
}

/* === HOME ABOUT SECTION === */
.home-about {
  padding: 8rem 4rem;
  background-color: var(--bg-color);
  text-align: justify;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  /* 讓「關於初倉」與「得獎作品」之間有美觀的間隔 */
}

.about-content {
  max-width: 48rem;
  display: block;
  /* text-align: justify; */
}


.about-content span {
  display: block;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
}

.award-content {
  max-width: 800px;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}



/* === RESPONSIVE === */
@media (orientation: portrait) {
  .hero-section {
    height: auto;
    /* margin-top: var(--navbar-height, 4.5rem); */
    aspect-ratio: 4/3;
  }

  .carousel-caption {
    bottom: 1.2rem;
    left: 1.2rem;
  }

  .home-about {
    padding: 4rem 2rem;
  }
}

@media (max-width: 512px) {
  .hero-section {
    aspect-ratio: 1/1;
  }

  .slider-btn {
    display: none;
  }
}