/* PROMOSI FINAL - MIRIP RS PERSAHABATAN */
.rsko-promo-section{
  padding:60px 0 80px!important;
  background:#fff!important;
  overflow:hidden!important;
}

.rsko-promo-heading,
.rsko-promo-slider{
  width:min(1680px,calc(100% - 48px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.rsko-promo-heading{
  margin-bottom:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}

.rsko-promo-heading h2{
  margin:0!important;
  font-family:'Poppins',Arial,sans-serif!important;
  font-size:clamp(30px,3vw,46px)!important;
  line-height:1!important;
  font-weight:800!important;
  color:#111827!important;
  letter-spacing:-.04em!important;
}

.rsko-promo-slider{
  position:relative!important;
  overflow:visible!important;
}

.rsko-promo-track{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:28px!important;
  padding:0 0 34px!important;
}

.rsko-promo-card{
  display:flex!important;
  flex-direction:column!important;
  height:500px!important;
  border:1px solid #e5edf5!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.04)!important;
}

.rsko-promo-card__image{
  height:315px!important;
  overflow:hidden!important;
  background:#f8fafc!important;
}

.rsko-promo-card__image img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
  display:block!important;
}

.rsko-promo-card__body{
  flex:1!important;
  display:flex!important;
  flex-direction:column!important;
  padding:20px 24px 22px!important;
}

.rsko-promo-card__title{
  min-height:44px!important;
  margin:0 0 8px!important;
}

.rsko-promo-card__title,
.rsko-promo-card__title a{
  color:#111827!important;
  font-size:18px!important;
  line-height:1.25!important;
  font-weight:800!important;
  text-decoration:none!important;
}

.rsko-promo-card__date{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 0 14px!important;
  color:#078575!important;
  font-size:15px!important;
  font-weight:700!important;
}

.rsko-promo-card__date::before{
  content:"▣";
  font-size:14px!important;
}

.rsko-promo-card__button{
  margin-top:auto!important;
}

.rsko-promo-card__button a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:9px 20px!important;
  border-radius:999px!important;
  background:#0f9f8f!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:800!important;
}

.rsko-promo-card__button a:hover{
  background:#087d71!important;
  color:#fff!important;
}

.rsko-promo-nav{
  position:absolute!important;
  top:-100px!important;
  width:54px!important;
  height:54px!important;
  border-radius:50%!important;
  border:3px solid #079b8d!important;
  background:#fff!important;
  color:#079b8d!important;
  font-size:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:20!important;
}

.rsko-promo-nav--prev{
  right:72px!important;
  left:auto!important;
}

.rsko-promo-nav--next{
  right:0!important;
  left:auto!important;
}

.rsko-promo-dots{
  display:flex!important;
  justify-content:center!important;
  gap:10px!important;
  margin-top:8px!important;
}

.rsko-promo-dot{
  width:34px!important;
  height:5px!important;
  border-radius:999px!important;
  background:#cfd8e3!important;
}

.rsko-promo-dot.is-active{
  width:54px!important;
  background:#079b8d!important;
}

@media(max-width:1200px){
  .rsko-promo-track{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:767px){
  .rsko-promo-heading{
    display:block!important;
  }

  .rsko-promo-track{
    grid-template-columns:1fr!important;
  }

  .rsko-promo-nav{
    display:none!important;
  }

  .rsko-promo-card{
    height:auto!important;
  }

  .rsko-promo-card__image{
    height:300px!important;
  }
}

/* =========================================================
   DETAIL KONTEN PROMOSI RSKO
========================================================= */

.rsko-promo-detail {
  width: 100%;
  margin: 0;
  padding: 56px 0 80px;
  background: linear-gradient(
    180deg,
    #f3fbfa 0%,
    #ffffff 42%,
    #f8fafc 100%
  );
  color: #0f172a;
  font-family: 'Poppins', Arial, sans-serif;
}

.rsko-promo-detail *,
.rsko-promo-detail *::before,
.rsko-promo-detail *::after {
  box-sizing: border-box;
}

.rsko-promo-detail__container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* HEADER DETAIL */

.rsko-promo-detail__header {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.rsko-promo-detail__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e6f7f4;
  color: #0f8f82;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rsko-promo-detail__title {
  margin: 0;
  color: #0f172a;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
}

/* LAYOUT */

.rsko-promo-detail__layout {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

/* GAMBAR */

.rsko-promo-detail__media {
  width: 100%;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
}

.rsko-promo-detail__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  border-radius: 17px;
  object-fit: contain;
  object-position: center top;
}

/* ISI DETAIL */

.rsko-promo-detail__content {
  min-width: 0;
  padding-top: 6px;
}

.rsko-promo-detail__content-title {
  margin: 0 0 22px;
  color: #0f172a;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

.rsko-promo-detail__description {
  color: #475569;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.rsko-promo-detail__description p {
  margin: 0 0 18px;
}

.rsko-promo-detail__description p:last-child {
  margin-bottom: 0;
}

.rsko-promo-detail__description h2,
.rsko-promo-detail__description h3,
.rsko-promo-detail__description h4 {
  margin: 28px 0 12px;
  color: #0f172a;
  line-height: 1.3;
  font-weight: 750;
}

.rsko-promo-detail__description h2 {
  font-size: 25px;
}

.rsko-promo-detail__description h3 {
  font-size: 21px;
}

.rsko-promo-detail__description h4 {
  font-size: 18px;
}

.rsko-promo-detail__description img {
  max-width: 100%;
  height: auto;
}

.rsko-promo-detail__description ul,
.rsko-promo-detail__description ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}

.rsko-promo-detail__description li {
  margin-bottom: 8px;
}

.rsko-promo-detail__description a {
  color: #0f9184;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* TOMBOL */

.rsko-promo-detail__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rsko-promo-detail__button {
  min-height: 46px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.rsko-promo-detail__button--primary {
  background: #0f9f8f;
  color: #ffffff;
  box-shadow: 0 9px 22px rgba(15, 159, 143, .22);
}

.rsko-promo-detail__button--primary:hover {
  background: #087f73;
  color: #ffffff;
  transform: translateY(-2px);
}

.rsko-promo-detail__button--secondary {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f8f82;
}

.rsko-promo-detail__button--secondary:hover {
  border-color: #0f9f8f;
  color: #087f73;
  transform: translateY(-2px);
}

/* =========================================================
   HILANGKAN JUDUL PAGE DRUPAL YANG DUPLIKAT
========================================================= */

/*
 * Hanya berlaku pada node jenis promosi.
 * Class node-type-promosi perlu tersedia pada elemen body.
 */

body.node-type-promosi .block-page-title-block,
body.node-type-promosi h1.page-title {
  display: none !important;
}

/* Judul dari template promosi tetap tampil */

body.node-type-promosi .rsko-promo-detail__title {
  display: block !important;
}

/* Hilangkan jarak bawaan konten Drupal */

body.node-type-promosi main,
body.node-type-promosi .main-content,
body.node-type-promosi .layout-content,
body.node-type-promosi .region-content {
  margin-top: 0;
  padding-top: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
  .rsko-promo-detail {
    padding: 48px 0 68px;
  }

  .rsko-promo-detail__container {
    width: calc(100% - 40px);
  }

  .rsko-promo-detail__layout {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 36px;
  }

  .rsko-promo-detail__description {
    font-size: 15px;
  }
}

/* =========================================================
   TABLET KECIL
========================================================= */

@media (max-width: 820px) {
  .rsko-promo-detail {
    padding: 42px 0 60px;
  }

  .rsko-promo-detail__header {
    margin-bottom: 30px;
  }

  .rsko-promo-detail__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rsko-promo-detail__media {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .rsko-promo-detail__media img {
    max-height: none;
  }

  .rsko-promo-detail__content {
    padding-top: 0;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .rsko-promo-detail {
    padding: 32px 0 48px;
  }

  .rsko-promo-detail__container {
    width: calc(100% - 28px);
  }

  .rsko-promo-detail__header {
    margin-bottom: 24px;
    text-align: left;
  }

  .rsko-promo-detail__eyebrow {
    margin-bottom: 12px;
    padding: 7px 14px;
    font-size: 11px;
  }

  .rsko-promo-detail__title {
    font-size: 29px;
    line-height: 1.18;
  }

  .rsko-promo-detail__layout {
    gap: 26px;
  }

  .rsko-promo-detail__media {
    padding: 7px;
    border-radius: 19px;
  }

  .rsko-promo-detail__media img {
    border-radius: 13px;
  }

  .rsko-promo-detail__content-title {
    margin-bottom: 17px;
    font-size: 24px;
  }

  .rsko-promo-detail__description {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .rsko-promo-detail__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .rsko-promo-detail__button {
    width: 100%;
  }
}