/* =========================================================
   Regency College Kandy - Homepage highlights
   (photo with a message, e.g. congratulating a winner)
   Edited in Admin > Homepage highlights
   ========================================================= */
.rc-hl {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 10px;
  border-radius: 18px;
  overflow: hidden;
  background: #1f2d4a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.rc-hl__track { position: relative; }
.rc-hl__slide {
  margin: 0;
  display: none;
  position: relative;
}
.rc-hl__slide.is-active { display: block; animation: rcHlFade 0.6s ease; }
@keyframes rcHlFade { from { opacity: 0; } to { opacity: 1; } }

.rc-hl__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
}

/* Message on top of the photo (computers and tablets) */
.rc-hl__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px 36px 30px;
  background: linear-gradient(180deg, rgba(16, 11, 60, 0) 0%, rgba(16, 11, 60, 0.75) 45%, rgba(16, 11, 60, 0.95) 100%);
  color: #fff;
  text-align: left;
}
.rc-hl__badge {
  display: inline-block;
  background: #f5a425;
  color: #100b3c;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(245, 164, 37, 0.4);
}
.rc-hl__text h3 {
  color: #fff;
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.rc-hl__text p {
  color: #e6e9f2;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  margin: 0 0 6px;
  max-width: 760px;
}
.rc-hl__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #f5a425 !important;
  font-weight: 700;
  font-size: 15px;
}
.rc-hl__link:hover { color: #fff !important; }

/* Arrows and dots (only when there is more than one highlight) */
.rc-hl__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 11, 60, 0.55);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}
.rc-hl__arrow:hover { background: #f5a425; color: #100b3c; }
.rc-hl__prev { left: 14px; }
.rc-hl__next { right: 14px; }
.rc-hl__dots {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.rc-hl__dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.rc-hl__dots button.is-active { background: #f5a425; border-color: #f5a425; }

/* Phones: message goes under the photo so faces are not covered */
@media screen and (max-width: 767px) {
  .rc-hl { margin: 30px auto 0; border-radius: 14px; }
  .rc-hl__slide img { aspect-ratio: 4 / 3; }
  .rc-hl__text {
    position: static;
    padding: 18px 18px 22px;
    background: #100b3c;
  }
  .rc-hl__badge { font-size: 12px; padding: 5px 12px; margin-bottom: 10px; }
  .rc-hl__arrow { top: 36%; width: 38px; height: 38px; font-size: 24px; }
  .rc-hl__dots { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-hl__slide.is-active { animation: none; }
}
