/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 780px;
  min-height: 80vh;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  color: var(--clr-white);
  padding: 170px 0 0 0;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0) 40%
    ),
    linear-gradient(68deg, rgb(0 8 16) 10%, rgba(0, 0, 0, 0) 80%),
    var(--hero-bg);
}

@media only screen and (max-width: 1024px) {
    .hero-section {
        background-attachment: scroll; 
        height: auto;                 
        min-height: 80vh;           
    }
}

.hero-main-content {
  max-width: 500px;
  margin-top: 60px;
}

#hero-title {
  font-size: clamp(48px, 5vw + 1rem, 72px);
  color: #fff;
  line-height: 1;
  overflow: hidden;
  margin-bottom: 0;
  hyphens: auto; 
  word-break: break-word;
}

#hero-title strong {
  color: var(--clr-accent);
}

.info-card {
  font-family: var(--font-body);
}

.info-list {
  display: flex;
  flex-direction: column;
  color: var(--clr-white);
  font-size: 19px;
  margin-block: 40px;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 12px;
}

.info-item dt {
  font-weight: 600;
  margin-right: 10px;
  white-space: nowrap;
}

.info-item dd {
  text-align: right;
}

/* Star Rating Component */
.star-rating {
  display: inline-flex;
  gap: 0.25rem;
}
.star {
  display: inline-block;
  width: 20px;
  height: 20px;
  --star-icon: var(--star-icon-outline);
  background-color: var(--clr-med-blue);
  -webkit-mask-image: var(--star-icon);
  mask-image: var(--star-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.info-list .star {
  background-color: #fff;
}

.star-rating[style*="--rating: 1"] .star:nth-child(1),
.star-rating[style*="--rating: 2"] .star:nth-child(1),
.star-rating[style*="--rating: 3"] .star:nth-child(1) {
  --star-icon: var(--star-icon-filled);
}
.star-rating[style*="--rating: 2"] .star:nth-child(2),
.star-rating[style*="--rating: 3"] .star:nth-child(2) {
  --star-icon: var(--star-icon-filled);
}
.star-rating[style*="--rating: 3"] .star:nth-child(3) {
  --star-icon: var(--star-icon-filled);
}
