﻿/* ===== Promosi — Template2 dark/gold (layout like template1) ===== */
body.page-promosi .page {
  padding-bottom: 40px;
}

.promo-panel {
  position: relative;
  margin: 12px 0 28px;
  padding: 22px 16px 26px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 220, 160, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 10px 24px rgba(0, 0, 0, .28);
}
.promo-panel::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background: url("../assets/bg.jpeg") center top / cover no-repeat;
  filter: blur(2px) saturate(1.35) brightness(1.08);
  pointer-events: none;
}
.promo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(16, 6, 36, .72);
  pointer-events: none;
}
.promo-panel > * {
  position: relative;
  z-index: 1;
}

.promo-title {
  margin: 0 auto 18px;
  width: fit-content;
  text-align: center;
  font-family: "Fredoka", "Baloo 2", sans-serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(28, 14, 62, .92);
  border: 1px solid rgba(245, 197, 24, .4);
  padding: 10px 28px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.promo-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 1100px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
}
.promo-tabs::-webkit-scrollbar { display: none; }

.promo-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(186, 160, 255, .35);
  background: rgba(28, 14, 62, .88);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .3px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.promo-tab:hover { transform: translateY(-1px); filter: brightness(1.08); }
.promo-tab.is-active {
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 100%);
  color: #3a1a00;
  border-color: #e89a12;
  box-shadow: 0 3px 0 #b8860b;
}

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.promo-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(28, 14, 62, .9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.promo-card.is-hidden { display: none; }

.promo-card-main {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr auto;
  gap: 0;
  align-items: stretch;
  min-height: 140px;
}

.promo-banner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  background: #1a0a36;
}

.promo-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.promo-body h2 {
  margin: 0;
  color: #ffe566;
  font-family: "Fredoka", "Baloo 2", sans-serif;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.15;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-promo-daftar,
.btn-promo-detail {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .4px;
  cursor: pointer;
}
.btn-promo-daftar {
  color: #fff;
  background: linear-gradient(180deg, #39c75a, #1f9d3f);
  box-shadow: 0 3px 0 #157a2f;
}
.btn-promo-daftar:hover { filter: brightness(1.05); }
.btn-promo-detail {
  color: #3a1a00;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 100%);
  box-shadow: 0 3px 0 #b8860b;
}
.btn-promo-detail:hover { filter: brightness(1.04); }
.btn-promo-detail.is-open {
  background: linear-gradient(180deg, #fff1a0, #ffd24a);
}

.promo-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 20px;
  min-width: 180px;
  border-left: 1px dashed rgba(245, 197, 24, .28);
  color: rgba(244, 239, 255, .7);
  background: rgba(0, 0, 0, .18);
}
.promo-time-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.promo-time-label i { color: #f5c518; }
.promo-time-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.promo-detail {
  display: none;
  padding: 6px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .22);
  color: rgba(244, 239, 255, .85);
}
.promo-card.is-open .promo-detail {
  display: block;
  animation: promoDetailIn .25s ease;
}
@keyframes promoDetailIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.promo-detail h3 {
  margin: 16px 0 8px;
  color: #f5c518;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
}
.promo-detail ol,
.promo-detail ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 5px;
}
.promo-detail li {
  line-height: 1.55;
  font-size: 13.5px;
  color: rgba(244, 239, 255, .82);
}

@media (max-width: 900px) {
  .promo-card-main { grid-template-columns: 1fr; }
  .promo-banner { min-height: 160px; max-height: 200px; }
  .promo-time {
    border-left: 0;
    border-top: 1px dashed rgba(245, 197, 24, .28);
  }
}
@media (max-width: 640px) {
  .promo-panel { padding: 16px 10px 20px; border-radius: 14px; }
  .promo-tab { font-size: 12px; padding: 8px 14px; }
  .promo-body { padding: 14px; }
}

/* mobile: no background images */
@media (max-width: 768px) {
  .category-panel::before,
  .promo-panel::before,
  .rtp-panel::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}