#regulasi-pilihan-home {
    width: 90vw;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9; /* Agar latar belakang tidak terlalu terang */
}

.regulasi-pilihan-home-container {
    background-color: rgba(222, 222, 222, 1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.terbitan-publikasi-home {
    padding: 40px;
}

.regulasi-pilihan-home-container h3 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #055a9e;
    text-align: center;
}

.regulasi-pilihan-home-container .row {
    margin-bottom: 20px;
}

.regulasi-pilihan-home-container .card {
    border-radius: 10px;
    background: linear-gradient(180deg, #055a9e 0%, #022038 100%);
    color: white;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.regulasi-pilihan-home-container .card p:first-child {
    font-weight: bold;
}

.regulasi-pilihan-home-container .card-footer {
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.regulasi-pilihan-home-container .card-footer img {
    margin-left: 10px;
    width: 16px;
}

.regulasi-pilihan-home-container .text-right {
    text-align: right;
}

.regulasi-pilihan-home-container .text-black {
    text-decoration: underline;
}
.row.pb-2.justify-content-center {
    display: flex; /* Aktifkan Flexbox */
    align-items: center; /* Pastikan elemen di tengah vertikal */
    gap: 10px; /* Jarak antara garis dan teks */
}

.border-line-center {
    flex-grow: 1; /* Biarkan garis mengambil ruang kosong */
    height: 1px; /* Tinggi garis */
    background-color: black; /* Warna garis */
}

#regulasi-title, terbitan-title {
    font-size: 1.75rem; /* Ukuran font */
    font-weight: bold; /* Tebal teks */
    color: #055a9e; /* Warna teks */
    display: flex;
    align-items: center; /* Pusatkan teks jika ada ikon */
    gap: 5px; /* Jarak antara teks dan ikon (jika ada) */
}

/* REGULASI PULIHAN HOMESCREEN */

.continer-regulasi-pilihan {
    display: flex;
    padding: 0px;
}

.lf-rp {

}

.rg-rp {
    padding:0px;
}

.title-regulasi-pilihan {
    color: white;
    width: 120px;
    margin-top:20px;
}

.title-regulasi-pilihan img {
    background-color: white;
    border-radius: 100%;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.regulasi-card-content {
    margin-left: -60px;
    margin-right: -10px;
    padding-left: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.regulasi-btn-scroll.prev {
    margin-left: -50px;
}

.regulasi-btn-scroll.next {
    margin-left: -10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  outline: black;
  background-size: 100%, 100%;
  border-radius: 50%;
  border: 1px solid black;
  background-image: none;
  background-color:white;
}

.regulasi-btn-scroll {
    position: sticky;
    top: 50%;
    /* left: 20px; */
    /* transform: translateY(-50%); */
    z-index: 1;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.card-body {
    color: white;
    background: linear-gradient(to bottom, var(--header) 0%, var(--header-gradient) 100%) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-mobile-rp, 
.footer-mobile-rp {
    display: none;
    visibility: hidden;
}

/* Scroll horizontal untuk konten cards */
.overflow-auto {
    scrollbar-width: none; /* Firefox */
}

.overflow-auto::-webkit-scrollbar {
    display: none; /* Chrome dan Safari */
}

/* Tombol "Selengkapnya" */
a {
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

.header-link-selengkapnya a {
    white-space: nowrap;
}

@media screen and (max-width: 700px) {
    .continer-regulasi-pilihan .lf-rp{
        display: none !important;
    }
    .continer-regulasi-pilihan .rg-rp {
        display: block;
    }
    .regulasi-card-content {
        margin-left: -32px !important;
        padding-left: 0px !important;
        margin-right: 0px !important;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100% !important;
    }

    .rg-rp {
        background-color: #0056b3 !important;
    }

    .regulasi-btn-scroll.prev {
        margin-left: 0px !important;
    }
    
    .regulasi-btn-scroll.next {
        margin-left: -200% !important;
    }

    .title-regulasi-pilihan img {
        text-align: center;
        margin: auto;
    }

    .header-mobile-rp, 
    .footer-mobile-rp {
        display: block;
        visibility: visible;
        margin-left: -32px !important;
        width: 100%;
        text-align: center;
    }
    .footer-mobile-rp {
        padding: 10px;
    }
}

/* PROGRAM DAN LAYANAN UTAMA HEADER */
.program-dan-ly-utama-card {
    background-color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .program-dan-ly-utama-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .program-dan-ly-utama-card p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  .program-dan-ly-utama-card.border-primary {
    border-color: #007bff;
  }
  
  .program-dan-ly-utama-card.border-danger {
    border-color: #dc3545;
  }
  
  .program-dan-ly-utama-card.border-warning {
    border-color: #ffc107;
  }
  
  .program-dan-ly-utama-card.border-success {
    border-color: #28a745;
  }
  
  .program-dan-ly-utama-card.border-info {
    border-color: #17a2b8;
  }
  
  .program-dan-ly-utama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* TERBITAN TERBARU */
  .horizontal-scroll-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 0;
  }
  
  .scroll-content {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 40px;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  .kemdikbud-layout-pilihan .scroll-content .publication-card:hover {
    transform: none;
    box-shadow: none;
    coursor: pointer;
  }

  @media (max-width: 768px) {
    div.kemdikbud-layout-pilihan .scroll-content {
      overflow-x: auto;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      align-items: flex-start;
      padding: 0px;
      gap: 5px;
      width: 100%;
      flex: none;
      order: 1;
      align-self: stretch;
      flex-grow: 0;
    }
    .kemdikbud-layout-pilihan .scroll-content .publication-card {
      margin: auto !important;
      width: 100% !important;
    }
    .kemdikbud-layout-pilihan .scroll-content .publication-card img {
      width: 65% !important;
    }
  }
  
  .scroll-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Edge */
  }
  
  .publication-card {
    flex: 0 0 auto;
    width: 200px;
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .publication-card img {
    border-radius: 5px;
    height: 200px;
    object-fit: cover;
    width: 80%;
    margin:auto;
  }
  
  .publication-card h6 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top:5px;
    margin-bottom: 5px;
    height: 35px;
    overflow: scroll;
    text-alingn: justify;
  }
  
  .publication-card p {
    font-size: 0.6em;
    color: #666;
    margin: 0;
  }

  .klasifikasiTeribanBaru {
    font-weight: bold;
    color: green !important;
  }
  
  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }
  
  .scroll-btn.left-btn {
    left: 0;
  }
  
  .scroll-btn.right-btn {
    right: 0;
  }
  
  .scroll-btn:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  .terbitan-terbaru-selengkapnya {
    text-align: right;
  }
  .terbitan-terbaru-selengkapnya a {
    color: black !important;
  }
  
  @media (max-width: 768px) {
    .publication-card  {
      width: 65% !important;
    }

    .terbitan-terbaru-content {
      max-height: 510px;
    }
  
    .publication-card {
      width: 150px;
      overflow: scroll;
    }
  
    .publication-card img {
      height: 150px;
      width: 60% !important;
      border-radius: 10px;
    }
  
    .publication-card h6 {
      font-size: 1em;;
      height: 40px;
    }
  
    .publication-card p {
      font-size: 0.6em;;
    }

    .terbitan-terbaru-selengkapnya{
        text-align: center;
        width: 100%;
        background-color: white;
        color:black !important;
        top: 510px;
        position: absolute;
        height: 1000px;
      }
      .terbitan-terbaru-selengkapnya a{
        color:black !important;
        /* position: relative; */
        top: -500px;
      }

      .scroll-btn.left-btn, .scroll-btn.right-btn  {
        display: none;
      }
  }