:root {
  --hl-purple: #49308B;
  --hl-line: #00000014;
  --hl-skeleton: #E4E4E4;
}

/* ===== Highlight archive (archive-highlight.php) ===== */

/* ----- Hero ----- */
.hl-hero {
  position: relative;
  background-color: var(--hl-purple);
  overflow: hidden;
}
.hl-breadcrumb,
.hl-breadcrumb a {
  color: rgba(255, 255, 255, .8);
}
.hl-breadcrumb a:hover {
  color: var(--white);
}
.hl-hero-text {
  padding: 1.5rem 0 1rem;
}
.hl-hero-text > h1{
  text-shadow: 0px 4px 4px #00000029;
}
.hl-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  min-height: 56px;
  padding: .5rem 1.5rem;
  border-radius: 999px;
  font-size: 1.125rem;
  color: var(--white);
  background-color: var(--pink);
  box-shadow: 0px 4px 16px 0px #00000014;
  transition: background-color var(--trans-2);
  &:hover {
    color: var(--white);
    background-color: var(--primary);
  }
}
.hl-explore-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
   animation: nowBuyTicketSpin 6s linear infinite;
}

@keyframes nowBuyTicketSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* ภาพดอกบัว + แถบลายด้านล่าง hero */
.hl-hero-art {
  display: block;
  width: 100%;
  height: auto;
}
/* ใช้แทนชั่วคราวเมื่อยังไม่มีไฟล์ highlight_hero.webp */
.hl-hero-band {
  height: 240px;
  margin-top: 2.5rem;
  background: 
    url(../images/bg_hi_5.webp),
    linear-gradient(90deg, #A9D8E6 0 25%, var(--deco-green) 25% 50%, #A9D8E6 50% 75%, var(--deco-green) 75% 100%),
    url(../images/bg_hi_2.webp),
    url(../images/bg_hi_4.webp),
    url(../images/bg_hi_6.webp),
    url(../images/bg_hi_3.webp)
  ;
  background-repeat: no-repeat, repeat-x, repeat-x, no-repeat, no-repeat, no-repeat;
  --hl-lotus-h: 213px;
  background-size:  auto 180px, 100% 54px, auto 32px, auto 65px, auto 65px, auto 348px;
  background-position: center bottom,bottom 0 center, bottom 54px center, left bottom 54px, right bottom 54px,bottom calc(var(--hl-lotus-h) / -2) center;
}

/* ----- List ----- */
.hl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  transition: opacity var(--trans-2);
  &.is-loading {
    opacity: .4;
    pointer-events: none;
  }
}
.hl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: .5rem;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.hl-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--hl-skeleton);
}
.hl-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .75rem;
}
.hl-card-title {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: .25rem;
}
/* ปุ่มชิดล่างการ์ด ให้ทุกใบในแถวเดียวกันปุ่มตรงกัน */
.hl-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: .8rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color var(--trans-2);
}
.hl-card-body > :nth-last-child(2) {
  margin-bottom: .75rem; /* ระยะขั้นต่ำก่อนปุ่ม */
}
.hl-cta-primary {
  color: var(--white);
  background-color: var(--primary);
  &:hover {
    color: var(--white);
    background-color: var(--btn-primary-hov);
  }
}

/* ----- Skeleton ระหว่างโหลด ----- */
.hl-skeleton .hl-card-img,
.hl-sk-line {
  background: linear-gradient(90deg, var(--hl-skeleton) 0%, #F2F2F2 50%, var(--hl-skeleton) 100%);
  background-size: 200% 100%;
  animation: hl-shimmer 1.2s linear infinite;
}
.hl-sk-line {
  display: block;
  height: 12px;
  margin-bottom: .5rem;
  border-radius: .25rem;
}
.hl-sk-title {
  height: 32px;
}
.hl-sk-btn {
  height: 24px;
  margin: auto 0 0;
}
@keyframes hl-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

.hl-loader {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
  color: var(--grey);
}
.hl-loader svg {
  animation: hl-spin 1s steps(8) infinite;
}
@keyframes hl-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 576px) {
  .hl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .hl-hero-text {
    padding: 2rem 0 1.5rem;
  }
  .hl-grid {
    margin-top: 2.5rem;
  }
  .hl-card-title {
    font-size: 1.125rem;
  }
}
@media (min-width: 992px) {
  .hl-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .hl-card-body {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-skeleton .hl-card-img,
  .hl-sk-line,
  .hl-loader svg {
    animation: none;
  }
}
