.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full tinggi layar */
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

#accessibility-widget-btn {
  bottom: 20px !important;
  right: 20px !important;
  border-radius: 50% !important;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to right, rgba(0, 87, 160, 0.7), rgba(253, 185, 19, 0.7)); */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
}
.hero-content h1, 
.hero-content h2, 
.hero-content h3 {
  font-size: clamp(1.25rem, 4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.5;
}

/* Perbaikan spacing untuk HP */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }
}

.card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}



body {
    font-family: 'Inter', sans-serif;
}

/* === Navbar & Offcanvas Styling === */
.navbar-nav .nav-link {
    font-weight: 400;
    color: #333;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar .navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fdb913;
}

.navbar-toggler i {
    color: #004aad;
    /* padding: 0; */
}

.navbar .d-flex img {
    vertical-align: middle;
}

.offcanvas {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.offcanvas .nav-link {
    color: #333;
    font-weight: 600;
    padding: 0.75rem 0;
}

.offcanvas .nav-link:hover {
    color: #fdb913;
}

.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Topbar */
.topbar {
    font-size: 14px;
    background-color: #0057A0;
    color: #fff;
}
@media (min-width: 992px) {
  .navbar .container {
    transform: translateX(-70px);
  }
}
/* ==== FIX RESPONSIVE KHUSUS BERITA ==== */
body, html {
  overflow-x: hidden;
}

/*.container-fluid,*/
/*.container {*/
/*  max-width: 100vw !important;*/
/*  overflow-x: hidden !important;*/
/*}*/

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.col-md-8, .col-md-4, .col-sm-6 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.card-news {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  border-radius: 12px;
}

.card-news img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

.small-news-wrapper {
  width: 100%;
  overflow: hidden;
}

.explore-news {
  width: 100%;
  overflow: hidden;
}



.topbar i {
    color: #fff;
}

/* 
.topbar {
    background-color: #0057A0;
    color: #fff;
    font-size: 10px;
    padding: 5px 0;
} */

.topbar a {
    color: #fff;
    text-decoration: none;
}

.indeks-hukum {
    background: #fffef7;
}

.indeks-hukum .card {
    border-radius: 5px;
    min-height: 180px;
    background: linear-gradient(180deg, #fff6de 0%, #fff8e1 100%);
    transition: all 0.3s ease;
}

.indeks-hukum .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.indeks-hukum .carousel-control-prev-icon,
.indeks-hukum .carousel-control-next-icon {
    background-color: #0057A0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-size: 60%;
}

.indeks-hukum h2 {
    color: #004080;
    font-weight: 700;
}

.card {
    border-radius: 14px;
    transition: 0.3s;
    /* background: #fff; */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* DOTS STYLE */
.carousel-indicators {
    justify-content: flex-start;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.carousel-indicators .active {
    background-color: #004080;
}

.all-index {
    text-align: center;
    margin-top: 30px;
    text-decoration: underline;
    color: rgb(255, 194, 115)
}

.transition-icon {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

#daftarPeraturan .list-group-item {
   transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
}

/*#daftarPeraturan .list-group-item:hover {*/
/*    background-color: #fff3cd;*/
/*    transform: translateX(4px);*/
/*}*/

@media (max-width: 768px) {
    .p-5 {
      padding: 2rem !important;
    }

    .row.g-0 > [class*="col-"]:first-child {
      border-radius: 1rem 1rem 0 0 !important;
    }

    .row.g-0 > [class*="col-"]:last-child {
      border-radius: 0 0 1rem 1rem !important;
    }
  }

.animate-slide-down {
    animation: slideDown 0.4s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.transition-icon {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* efek slide lembut dari bawah */
.animate-slide-down {
    animation: slideDown 0.4s ease both;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#daftarPeraturan .list-group-item {
    background-color: transparent;
    border: none;
    font-weight: 200;
    color: #333;
    font-size: 12px;
}

#daftarPeraturan .list-group-item:hover {
    background-color: #fff6d8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.aspirasi-bg {
    background-image:
        linear-gradient(to right,
            rgba(253, 185, 19, 0.97) 20%,
            rgba(253, 185, 19, 0.85) 50%,
            rgba(253, 185, 19, 0.0) 100%),
        url('../img/laptop.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: #fdb913;
    position: relative;
    overflow: hidden;
}

.aspirasi-bg::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to left, rgba(253, 185, 19, 0.6), transparent);
    filter: blur(8px);
    pointer-events: none;
}


.konsultasi-bg {
    background-image:
        linear-gradient(to right,
            rgba(45, 66, 185, 0.97) 20%,
            rgba(21, 57, 136, 0.85) 50%,
            rgba(62, 19, 253, 0) 100%),
        url('../img/wayang.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: #188cff;
    position: relative;
    overflow: hidden;
}

.konsultasi-bg::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to left, rgba(42, 12, 126, 0.6), transparent);
    filter: blur(8px);
    pointer-events: none;
}

.card img {
    transition: transform 0.3s ease;

}

.card:hover img {
    transform: scale(1.05);
}

body {
    font-family: 'Lato', sans-serif;
}

.bg-gradient-gold {
    background: linear-gradient(90deg, #fdb913, #ffcc33);
}

.bg-gold-light {
    background-color: #f7d67a;
}

.bg-blue {
    background-color: #007bff;
}

.btn-gradient-gold {
    background: linear-gradient(90deg, #fdb913, #ffcc33);
    color: #fff;
    border: none;
    border-radius: 12px;
    transition: 0.3s ease;
}

.btn-gradient-gold:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.stat-card i {
    display: block;
}

.stat-card p {
    font-size: 1rem;
}

.stat-card h2,
.stat-card h3 {
    font-weight: 700;
}

.btn-gradient {
    background: linear-gradient(to right, #fdb913, #ffcc33);
    color: #fff;
    border: none;
    border-radius: 8px;
    /* agak kotak, bisa ubah ke 6px kalau mau lebih tajam */
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(253, 185, 19, 0.3);
}

.btn-gradient:hover {
    background: linear-gradient(to right, #ffcc33, #fdb913);
    box-shadow: 0 4px 10px rgba(253, 185, 19, 0.4);
    transform: translateY(-2px);
}

.btn-gradient:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(253, 185, 19, 0.3);
}

section {
    font-family: 'Lato', sans-serif;
}

section h2 {
    letter-spacing: 0.5px;
}

.bg-white img {
    transition: transform 0.2s ease;
}

.bg-white:hover img {
    transform: scale(1.1);
}

.instansi-card img {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.instansi-card img:hover {
    transform: scale(1.05);
}

.footer-section {
  background-size: contain;
  color: white;
  background-color:#168CFF;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer-title {
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
}

.footer-socials a {
  color: white;
  margin-right: 10px;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #ffd700;
}

.footer-playstore {
  height: 50px;
  margin-top: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffd700;
}

.footer-stats p {
  margin-bottom: 12px;
}

.footer-stats i {
  margin-right: 5px;
}

.footer-stats span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
background: linear-gradient(to right, #ffcc00, #ffb300);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-section {
    text-align: center;
  }
  .footer-playstore {
    margin: 10px auto;
    display: block;
  }
  .footer-socials a {
    font-size: 24px;
  }
}


@media (min-width: 992px) {
  .row.align-items-stretch {
    display: flex;
  }
  .row.align-items-stretch > [class*="col-lg-"] {
    display: flex;
    flex-direction: column;
  }
  .row.align-items-stretch > [class*="col-lg-"] > * {
    flex: 1;
  }
}

.rating {
  direction: rtl;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.rating input {
  display: none;
}
.rating label {
  font-size: 2.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}
.rating input:checked ~ label {
  color: gold;
}
.rating label:hover,
.rating label:hover ~ label {
  color: gold;
}

.search-result-container {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.list-group-item {
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

.modal-header .btn[aria-label="Close"] {
  background-color: #f8f9fa;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-header .btn[aria-label="Close"]:hover {
  background-color: #e9ecef;
}

/* Awalnya disembunyikan */
#advanced-options {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

/* Saat aktif */
#advanced-options.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Tambahan kecil biar tombol berubah warna */
#adv-search-btn.active {
  background-color: #ffc107;
  color: white;
  border-color: #ffc107;
}

/* === Chatbot Message Styles === */
.bot-message, .user-message {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 80%;
  word-wrap: break-word;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.bot-message {
  background-color: #e9ecef;
  color: #212529;
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
}

.user-message {
  background-color: #ffc107;
  color: #fff;
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
}

/* Container agar bubble bisa sejajar kanan kiri */
#chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  height: 350px;
  background-color: #fafafa;
  padding: 8px;
}
h6 span:first-child {
  color: #000;
}
h6 span:last-child {
  color: #555;
}


/* ======== HERO TEXT FIX ONLY ======== */
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem) !important;;
    line-height: 1.2;
    font-weight: 700;
}

.hero h6 {
    font-size: clamp(0.7rem, 2vw, 1.1rem) !important;;
    line-height: 1.5;
    font-weight: 400;
}

/* ======== SEARCH BAR FIX ======== */
.hero .search-wrapper {
    max-width: 700px;
    margin: auto;
    width: 100%;
}

.hero .search-wrapper .form-control {
    flex: 1 1 auto !important;   /* Input lebih panjang */
    height: 52px;
    font-size: 1rem;
}

.hero .search-wrapper button {
    flex: 0 0 auto !important;   /* Button tetap kecil */
    height: 52px;
    padding: 0 20px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1rem;
    }

    .hero h6 {
        font-size: 0.5rem;
    }

    .hero .search-wrapper {
        max-width: 100%;
    }

    .hero .search-wrapper .d-flex {
        gap: 10px;
    }
}

/* === HERO SEARCH FORM (AMAN, TIDAK GANGGU TEKS) === */

.hero-search .search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.hero-search input {
    flex: 2;          /* input paling panjang */
    min-width: 0;
    height: 48px;
    font-size: 1rem;
}

.hero-search .btn-search {
    flex: 0.6;
    height: 48px;
}

.hero-search .btn-adv {
    flex: 1;
    height: 48px;
}

/* Mobile */
@media (max-width: 576px) {
    .hero-search .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .hero-search input,
    .hero-search .btn-search,
    .hero-search .btn-adv {
        width: 100%;
        flex: none;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .content-area {
        max-width: 100%;
    }

    .btn-unduh-custom {
        width: 100%;
    }

    .card-title-custom {
        font-size: 14px;
    }

    .card-desc-custom {
        font-size: 12.5px;
    }
}

#chatbot-container {
    bottom: 80px !important; /* naikkan biar gak ketutup tombol */
  }
  
  /* ================================= */
/* MULTILEVEL DROPDOWN — FULL FIX   */
/* ================================= */

/* RESET dropdown bootstrap */
.navbar-nav .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
}

/* ===================== */
/* LEVEL 1 DROPDOWN     */
/* ===================== */
.navbar-nav li.dropdown {
  position: relative;
}

.navbar-nav li.dropdown:hover > .dropdown-menu,
.navbar-nav li.dropdown.show > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ===================== */
/* LEVEL 2 (SUBMENU)    */
/* ===================== */
.dropdown-submenu {
  position: relative;
}

/* posisi submenu ke kanan */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: .1rem;
  position: absolute;
  display: none;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

/* hover level 2 */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* tanda panah kanan */
.dropdown-submenu > a::after {
  content: "›";
  float: right;
  margin-top: 3px;
  font-size: 14px;
}

/* ===================== */
/* LEVEL 3 (OPTIONAL)   */
/* ===================== */
.dropdown-submenu .dropdown-submenu > .dropdown-menu {
  left: 100%;
  top: 0;
}

/* ===================== */
/* MOBILE BEHAVIOR      */
/* ===================== */
@media (max-width: 991px) {

  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
  }

  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin-left: 0;
  }

  .dropdown-submenu > a::after {
    /*content: "▼";*/
    float: right;
  }
}

@media (min-width: 992px) {

  .dropdown-submenu {
    position: relative;
  }

  .dropdown-submenu > .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-left: .1rem;
    display: none;
    z-index: 1000;
  }

  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }

}




