/* =============================================================================
   KFC SEA Challenge microsite
   Loaded inline from kfc/index.mustache — seagames.css does not include
   the base pcl-conservation-* layout rules (those live in science.css which
   is only loaded for the science portal group).
   All rules scoped to .pcl-kfc-page.
   ============================================================================= */

/* --- Page layout ---------------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page {
  max-width: none;
  padding: 0 0 3rem;
  background-image: url('/local/pcl_portals/pix/seagames/kfc/kfc-bg.png');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.path-local-pcl-portals .pcl-kfc-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  z-index: -1;
}

/* --- Section wrappers ----------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-section {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 1.5rem 1.75rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-section > h2 {
  color: #e4002b;
  font-weight: 900;
  border-bottom: 3px solid #e4002b;
  padding-bottom: 6px;
  margin-bottom: 1rem;
  display: inline-block;
}

/* --- Scoreboard ----------------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scoreboard {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border-top: 0;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scoreboard > h2,
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scoreboard > h3 {
  color: #e4002b;
  font-weight: 900;
  border-bottom: 3px solid #e4002b;
  padding-bottom: 6px;
  margin-bottom: 1rem;
  display: inline-block;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scoreboard table thead th {
  background: linear-gradient(180deg, #e4002b 0%, #7a0016 120%);
  color: #fff;
  border-color: transparent;
}

/* --- Nav pill tabs -------------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .nav-tabs {
  border-bottom: 0;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.path-local-pcl-portals .pcl-kfc-page .nav-tabs .nav-link {
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700;
  background: #c7cbd4;
  color: #7a0016;
  padding: 0.5rem 1.2rem;
}

.path-local-pcl-portals .pcl-kfc-page .nav-tabs .nav-link.active,
.path-local-pcl-portals .pcl-kfc-page .nav-tabs .nav-item.show .nav-link {
  background: linear-gradient(180deg, #e4002b 0%, #7a0016 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* --- Grid + carousel base ------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  position: relative;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-microsite-carousel__item {
  display: none;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-microsite-carousel__item.is-active {
  display: block;
}

.path-local-pcl-portals .pcl-kfc-page .swiper-initialized .pcl-microsite-carousel__item {
  display: block;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-grid .pcl-microsite-carousel__item.is-active {
  min-width: 0;
}

.path-local-pcl-portals .pcl-kfc-page .swiper-initialized .pcl-conservation-grid .pcl-microsite-carousel__item {
  min-width: 0;
}

/* --- Game + gallery cards ------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: .9rem;
  margin-bottom: .75rem;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-card h3 {
  margin-top: 0;
  margin-bottom: .5rem;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-media-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: .75rem;
  background: #000;
  margin-bottom: .75rem;
}

/* --- Prize section heading ------------------------------------------------ */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-prize-section-title {
  color: #e4002b;
}

/* --- Game CTA button ------------------------------------------------------ */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-game-cta.btn {
  background: #e4002b !important;
  border-color: #e4002b !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  margin-top: auto;
}

/* --- Back-to-top ---------------------------------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #e4002b 0%, #7a0016 100%);
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-back-to-top:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- Hero nav links (base pill + KFC red) --------------------------------- */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-nav-link {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(180deg, #e4002b 0%, #7a0016 100%);
  color: #fff;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-nav-link:hover {
  color: #ffd700;
  text-decoration: none;
}

/* =============================================================================
   KFC hero poster
   ============================================================================= */
.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster {
  position: relative;
  width: 100%;
  height: calc(100vh - 5rem);
  overflow: hidden;
  background: #000;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__overlay {
  position: absolute;
  inset: 0;
  display: block;
  padding: 1rem 3.5vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .3) 100%);
  color: #fff;
  z-index: 1;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__brand {
  position: absolute;
  top: 1rem;
  left: 3.5vw;
  margin: 0;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__home {
  display: inline-flex;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__logo {
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  max-height: 64px;
  width: auto;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__menu {
  position: absolute;
  top: 1.65rem;
  right: 3.5vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__menu .pcl-conservation-nav-link {
  height: 40px;
  padding: 0 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #e4002b 0%, #7a0016 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 40px;
  text-decoration: none;
  display: inline-block;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__menu .pcl-conservation-nav-link:hover {
  color: #ffd700;
  text-decoration: none;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-poster__menu .pcl-conservation-nav-link.is-current {
  display: none;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scrollprompt {
  position: absolute;
  right: 50%;
  bottom: 1.4rem;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  color: #fff;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scrollprompt__mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: .35rem;
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scrollprompt__scroller {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.path-local-pcl-portals .pcl-kfc-page .pcl-conservation-scrollprompt__label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
