:root {
  --header-height: 80px;
}

body {
  padding-top: var(--header-height);
}
.main{
  min-height:100vh;
}
.header {
  z-index: 1030;
}

/* Navbar stabil */
.navbar {
  min-height: 80px;
  transition: all .3s ease;
}

/* Logo tidak loncat */
.navbar-brand img {
  display: block;
  max-height: 56px;
  object-fit:contain;
}

.about img{
   aspect-ratio: 696 / 522; 
}

/* Hover effect elegan */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
  padding: 8px 12px;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 0;
  height: 2px;
  background: #0d6efd;
  transition: 0.3s;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: calc(100% - 24px);
}

.nav-item{
  padding-bottom: 15px;

}

/* Base dropdown (global) */
.dropdown-menu {
  border-radius: 12px;
  border: none;
  padding: 10px 0;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);

  margin-top: 8px; /* jarak dari navbar */
}

/* Animasi default */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  display: block; /* override bootstrap */
  pointer-events: none;
}

/* Active */
.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  font-size: 14px;
  padding: 8px 18px;
  color: #333;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: rgba(13,110,253,0.08);
  color: #0d6efd;
  padding-left: 22px;
}

.dropdown {
  position: relative;
}

/* Bridge kecil */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
}

/* Parent wajib */
.mega-dropdown {
  position: static;
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% - 15px)!important; /* FIX gap */
  left: 0;
  right: 0;
  margin: auto;
  margin-top: 0;
  width: 100%;
  max-width: 1100px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.25s ease;

  border-radius: 16px;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);transition: opacity .2s ease, transform .2s ease;
  transition: opacity .2s ease, transform .2s ease;
}

/* Hover desktop */
@media (min-width: 1200px) {
  .nav-item.mega-dropdown:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile */
@media (max-width: 1199px) {
   
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 0;
  }
}

@media (max-width: 1199px) {

  /* Container mega menu */
  .mega-menu {
    padding: 15px !important;
    border-radius: 12px;
  }

  /* Judul kategori */
  .mega-title {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 6px;
  }

  /* Link utama */
  .mega-link.fw-bold {
    display: block;
    padding: 8px 0;
    font-size: 14px;
  }

  /* List */
  .mega-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 12px;
  }

  .mega-list li {
    margin-bottom: 6px;
  }

  .mega-list li a {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    color: #444;
    border-radius: 6px;
    text-decoration: none;
  }

  .mega-list li a:hover {
    background: rgba(13,110,253,0.08);
    color: #0d6efd;
  }

  /* Divider lebih halus */
  .mega-menu hr {
    margin: 10px 0;
    opacity: 0.2;
  }

}


/* Kolom */
.mega-menu .col-lg-3 {
  min-width: 200px;
}

/* Title */
.mega-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0d6efd;
}

/* Link */
.mega-link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.mega-link:hover {
  color: #0d6efd;
  padding-left: 6px;
}

/* Divider */
.mega-menu hr {
  margin: 6px 0;
}

/* Mobile fix */
@media (max-width: 1199px) {
  .mega-menu {
    width: 100%;
  }
}

.navbar {
 /* backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);*/
}

/* Delay muncul */
.nav-item.dropdown > .dropdown-menu {
  transition: 
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.15s; /* delay muncul */
}

/* Default hidden */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

/* Hover aktif */
.nav-item.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;

  transition-delay: 0s; /* langsung muncul */
}

.mega-menu {
  transition: 
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.2s;
}

.nav-item.dropdown:not(:hover) > .dropdown-menu {
  transition-delay: 0.2s;
}

.mega-dropdown {
  /*padding-bottom: 12px; */
}


.mobile-link{
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  font-weight: 600;
  border: none;
  background: none;
  font-size: 16px;
  position: relative;
  color: #000
}

.mobile-toggle {
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  font-weight: 600;
  border: none;
  background: none;
  font-size: 16px;
  position: relative;
}

.mobile-toggle::after {
  content: "▾";
  position: absolute;
  right: 10px;
  transition: 0.3s;
}

.mobile-item.active .mobile-toggle::after {
  transform: rotate(180deg);
}

/* Panel utama */
.mobile-panel {
  max-height: 0;
  overflow: scroll;
  transition: max-height 0.3s ease;
  padding-left: 10px;
}

.mobile-panel a {
  display: block;
  padding: 8px 15px;
  color: #444;
  text-decoration: none;
}

/* Sub menu */
.mobile-sub-toggle {
  width: 100%;
  text-align: left;
  padding: 10px;
  font-weight: 500;
  background: #f8f9fa;
  border-radius: 6px;
  margin-top: 8px;
}

.mobile-sub-panel {
  max-height: 0;
  overflow-y: scroll;
  transition: 0.3s;
  padding-left: 10px;
}

.mobile-sub-panel a {
  padding: 6px 0;
  font-size: 14px;
}



@media (min-width: 1200px) {
    .navmenu ul{
        min-height: 80px;
    }
  }
#hero .carousel-item{
  height:338px;
  min-height: 338px;
}
.hero-image{
aspect-ratio:16/9;
}
#hero .carousel-item img{
  height:100%;
  width:auto;
  object-fit:cover;
}
.hero .carousel-caption{
  min-height:120px;
}

@media (max-width:768px){

.hero-image{
aspect-ratio:16/9;
}

.hero-title{
font-size:26px;
}

.search-box{
flex-direction:column;
}

.search-box button{
width:100%;
}

}



.logo-jdih-makassar{
  width:202px;
  height:56px;
  object-fit:contain;
}
@media (max-width: 640px) {
    .logo-jdih-makassar{
      width:173px;
      height:48px;
      object-fit:contain;
    }
}


#btn-search{
  /*width:150px;*/
  /*height:40px;*/
}
.icon-list {
    display: inline-block;
    width: 28px;
    height: 28px;
    min-height: 28px;
    background-image: url("../img/icons/list.svg"); 
    background-size: cover;
}
.icon-x {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("../../img/icons/x-white.svg"); 
    background-size: cover;
}

.nav-link {
    background-position: 10px center;
}




.main{
  /*min-height:60vh;*/
  /*padding-top: 80px;*/
}





.carousel-item img{
transition:transform 6s ease;
}

.carousel-item.active img{
transform:scale(1.05);
}

/* overlay */
.carousel-item::before{
content:"";
position:absolute;
inset:0;
background:linear-gradient(
to top,
rgba(0,0,0,0.85) 0%,
rgba(0,0,0,0.4) 40%,
rgba(0,0,0,0.05) 70%
);
z-index:1;
}

/* caption container */
.hero-caption{
left:0;
right:0;
bottom:0;
padding:0;
z-index:2;
}

/* caption box */
.hero-caption-box{
max-width:900px;
padding:35px 60px 15px;
text-align:left;
}

/* title */
.hero-caption h2{
font-size:18px;
font-weight:700;
color:#fff;
margin-bottom:0;
line-height:1.3;
}

/* description */
.hero-caption p{
font-size:16px;
color:#e5e5e5;
margin-bottom:18px;
text-align: justify;
    line-height: 14px;
}

/* button */
.hero-btn{
background:#0d6efd;
color:#fff;
padding:10px 22px;
border-radius:6px;
text-decoration:none;
transition:0.3s;
}

.hero-btn:hover{
background:#0b5ed7;
color:#fff;
}


.search-modal{
    background:#f8f9fa;
}

.search-box{
    max-width:700px;
    margin:auto;
}

#globalSearchInput{
    border-radius:50px;
    padding:18px 30px;
    font-size:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.search-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:12px 15px;
}

.search-content{
    display:flex;
    flex-direction:column;
    flex:1;
}

.search-title{
    font-size:15px;
    line-height:1.5;
}

.search-meta{
    margin-top:6px;
}

.search-item:hover{
    background:#F4F0F0;
    /*background:#ffffff;*/
}

.search-icon{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    margin-right:12px;
}

.icon-doc{
    background:#e7f1ff;
    color:#0d6efd;
}

.icon-berita{
    background:#fff3cd;
    color:#ffc107;
}

.search-group{
    font-weight:600;
    color:#777;
    margin-top:20px;
    margin-bottom:10px;
}

.search-highlight {
  background: #ffe066;
  color: #000;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.search-item {
  display: block;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: #f5f7fa;
}

.search-title {
  font-size: 14px;
  line-height: 1.5;
}

.search-meta {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

#searchResult {
  max-height: 300px;
  overflow-y: auto;
}

.search-meta{
  margin-top: 10px;
    font-size:13px;
    color:#777;
}

.search-badge{
    font-size:12px;
    padding:10px;
    border-radius:6px;
    margin-left:6px;
    margin-top: 10px;
}

.badge-peraturan{
    background:#9BB5DA;
    color:#FAFCFE;
}

.badge-monografi{
    background:#e8fff1;
    color:#198754;
}

.badge-artikel{
    background:#fff3cd;
    color:#856404;
}

.badge-putusan{
    background:#fde2e4;
    color:#dc3545;
}


.nav-search-trigger{
    position: fixed;
    right: 15px;
    bottom: 80px;
    display:flex;
    align-items:center;
    justify-content:center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 10px;
    margin-top: 10px;
    margin-left: 30px;
    border:1.5px solid #6ea8fe;
    border-radius:20px;
    cursor:pointer;
    background:#4154f1!important;
    transition:all .2s ease;
    color: #ffffff;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
}

.nav-search-trigger:hover{
    background:#ffffff;
    box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.nav-search-trigger.active {
    visibility: visible;
    opacity: 1;
}

.nav-search-text{
    color:#6c757d;
    font-size:15px;
}

.nav-search-icon{
    font-size:18px;
    color:#ffffff;
}
.nav-search-trigger svg{
  width:16px;
  height:16px;
  flex-shrink:0;
}

@media(max-width:768px){

/*.nav-search-trigger{*/
/*    top: 60px;*/
/*}*/

/*.nav-search-text{*/
/*    overflow:hidden;*/
/*    white-space:nowrap;*/
/*    text-overflow:ellipsis;*/
/*}*/

}

.tabs-wrapper{
    position: relative;
}

.sosmed-tabs{
    border: none;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    position: relative;
}

.sosmed-tabs .nav-link{
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all .3s ease;
    position: relative;
    z-index: 2;
}

.sosmed-tabs .nav-link i{
    margin-right:6px;
}

.sosmed-tabs .nav-link:hover{
    color:#0d6efd;
}

.sosmed-tabs .nav-link.active{
    color:#0d6efd;
    font-weight:600;
}

.tab-indicator{
    position:absolute;
    bottom:0;
    left:0;
    height:3px;
    width:25%;
    background:linear-gradient(90deg,#0d6efd,#3a8bfd);
    border-radius:5px;
    transition: all .3s ease;
}

/*DISABILITAS MENU*/
.disabilitas-widget{
    position: fixed;
    bottom: 70px;
    left: 20px;
    z-index: 9999;
  }
  
  @media(max-width:768px){

.disabilitas-widget{
    position: fixed;
    bottom: 40px;
    left: 5px;
    z-index: 9999;
  }
    
     #disabilitas-toggle{
    width:40px;
    height:40px;
    border-radius:50%;
    border:none;
    background:#0d6efd;
    color:white;
    cursor:pointer;
    box-shadow:0 6px 15px rgba(0,0,0,0.25);
    transition:0.3s;
    position:relative;
    
  }
  #disabilitas-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

}

@media(min-width:768px){
  #disabilitas-toggle{
    width:55px;
    height:55px;
    border-radius:50%;
    border:none;
    background:#0d6efd;
    color:white;
    cursor:pointer;
    box-shadow:0 6px 15px rgba(0,0,0,0.25);
    transition:0.3s;
    position:relative;
  }
  #disabilitas-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
}

  #disabilitas-toggle:hover{
    transform:scale(1.1);
  }




    
    #disabilitas-close{
        height:28px;
      border:none;
      border-radius:50%;
      /*background:#f1f1f1;*/
      color:#333;
      font-size:16px;
      cursor:pointer;
      display:flex;
      align-items:center;
      justify-content:center;
      transition:all .25s ease;
    }
    
     #disabilitas-close hover{
      background:#dc3545;
      color:#fff;
      transform:rotate(90deg);
    }
    
    #disabilitas-close focus{
      outline:2px solid #0d6efd;
    }
    
    
  .disabilitas-panel{
    position:fixed;
    top:0;
    right:0;
    width:300px;
    height:100%;
    background:#D8E5F3;
    /*border-radius:12px;*/
    padding:0;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    display:none;
    animation:fadeIn .3s;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.2s ease;
  }
    
    .disabilitas-panel.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
 

.disabilitas-panel-header {
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    height: 55px;
    font-weight: 700 !important;
    background-color: #0848ca !important;
}

.disabilitas-panel-header>div
 {
    /*display: flex;*/
}

.disabilitas-title {
    font-size: 16px !important;
    color: #fff !important;
}

.disabilitas-panel-content {
    /*flex: 1;*/
    /*height: 90%;*/
    /*overflow-y: scroll;*/
    /*overflow-x: hidden;*/
    padding:  20px;
}

.disabilitas-panel-div
 {
    background: #fff;
    padding: 10px 20px;
    margin-bottom: 5px;
}

.disabilitas-panel-label{
    display: flex;
    justify-content: flex-start;
}

  @keyframes fadeIn{
    from{opacity:0; transform:translateY(-10px);}
    to{opacity:1; transform:translateY(0);}
  }

  .disabilitas-panel h6{
    font-size:13px;
    margin-top:10px;
    font-weight:bold;
  }

  .disabilitas-panel button{
    margin:3px;
    padding:6px 8px;
    border-radius:6px;
    border:1px solid #ddd;
    background:#10A23D;
    color: #fff!important;
    cursor:pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    
  }

  .disabilitas-panel button:hover{
    background:#0d6efd;
    color:white;
  }

  .reset-btn{
    margin-top:10px;
    background:#dc3545;
    color:blue;
  }



  .high-contrast{
    background:#000 !important;
    color:#fff !important;
  }

  .high-contrast p,
  .high-contrast span,
  .high-contrast label,
  .high-contrast div,
  .high-contrast li,
  .high-contrast small{
    color:#fff !important;
  }

  .high-contrast h1,
  .high-contrast h2,
  .high-contrast h3,
  .high-contrast h4,
  .high-contrast h5,
  .high-contrast h6{
    color:#ffff00 !important;
  }

  .high-contrast a{
    color:#00ffff !important;
    text-decoration: underline;
  }
  
  .high-contrast .disabilitas-item span{
      color:#fff !important;
    }
    
    .high-contrast label{
      color:#fff !important;
    }
    
    .high-contrast .disabilitas-panel{
      background:#000 !important;
    border:1px solid #fff;
    }
  .high-contrast input,
    .high-contrast select,
    .high-contrast th,
     .high-contrast td,
    .high-contrast textarea{
      background:#000;
      color:#fff;
      border:1px solid #fff;
    }
    
    .high-contrast i{
      color:#fff !important;
    }
    
    .high-contrast,
    .high-contrast body,
    .high-contrast section,
    .high-contrast header,
    .high-contrast main,
    .high-contrast footer,
     .high-contrast .page-title,
     .high-contrast .box,
     .high-contrast .widgets-container,
    .high-contrast .pencarian-widget form,
    .high-contrast .service-item,
    .high-contrast .post-content,
    .high-contrast .nav-tabs,
    .high-contrast .bg-white,
    .high-contrast .nav-search-trigger,
    .high-contrast .disabilitas-panel-div,
     .high-contrast .list-group-item,
     .high-contrast .box p,
     .high-contrast th,
     .high-contrast td,
    .high-contrast .navmenu .listing-dropdown ul li a
    {
  background:#000 !important;
  background-image:none !important;
}

.high-contrast ::placeholder{
  color:#ffffff !important;
  opacity:1;
}

.high-contrast :-ms-input-placeholder{
  color:#ffffff !important;
}

.high-contrast ::-ms-input-placeholder{
  color:#ffffff !important;
}

.high-contrast ::-webkit-input-placeholder{
  color:#ffffff !important;
}

.high-contrast{
  color:#fff !important;
}

.high-contrast p,
.high-contrast span,
.high-contrast div,
.high-contrast label{
  color:#fff !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6{
  color:#ffff00 !important;
}

.high-contrast a,
.high-contrast .dropdown a,{
  color:#00ffff !important;
  text-decoration:underline;
}

.high-contrast input,
.high-contrast select,
.high-contrast textarea{
  background:#000 !important;
  color:#fff !important;
  border:1px solid #fff !important;
}

.high-contrast ul{
  background:#000 !important;
  border:1px solid #fff !important;
}

.high-contrast .dropdown-menu .dropdown-item{
  color:#fff !important;
}

.high-contrast .dropdown-menu .dropdown-item:hover{
  background:#222 !important;
  color:#ffff00 !important;
}

.high-contrast .card,
.high-contrast .container,
.high-contrast .form-control{
  background:#111 !important;
  color:#fff !important;
}

.high-contrast .stretched-link,
.high-contrast .stretched-link *{
  color:#00ffff !important;
  background:transparent !important;
}

.high-contrast .service-item p
{
  color:#ffffff !important;
}

.high-contrast .post-centent div
{
  color:#ffffff !important;
}

.high-contrast .service-item .stretched-link{
  color:#00ffff !important;
  border-color:#00ffff !important;
}


  .grayscale{
    filter: grayscale(100%);
  }

  .highlight-links a{
    background: yellow;
    color:black !important;
  }

  .dyslexia-font{
    font-family: "OpenDyslexic", Arial, sans-serif !important;
    letter-spacing: 0.05em;
  }

  .line-spacing{
    line-height:2 !important;
  }

  .big-cursor{
    cursor: zoom-in;
  }

  .disabilitas-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:8px 0 0;
    font-size:13px;
  }
  
  .disabilitas-item span{
      color: #000!important;
      font-size: 14px !important;
    font-weight: 600 !important;
  }

  .switch{
    position:relative;
    display:inline-block;
    width:40px;
    height:22px;
  }

  .switch input{
    opacity:0;
    width:0;
    height:0;
  }

  .slider{
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:#ccc;
    transition:.3s;
    border-radius:20px;
  }

  .slider:before{
    position:absolute;
    content:"";
    height:16px;
    width:16px;
    left:3px;
    bottom:3px;
    background:white;
    transition:.3s;
    border-radius:50%;
  }

  input:checked + .slider{
    background:#0d6efd;
  }

  input:checked + .slider:before{
    transform:translateX(18px);
  }
  
  
  .reading-guide{
  position: fixed;
  left:0;
  width:100%;
  height:40px;
  background:rgba(255,255,0,0.2);
  pointer-events:none;
  z-index:10;
}
  
/*.floating-toolbar {*/
/*  position: fixed;*/
/*  right: 10px;*/
/*  bottom: 180px;*/
/*  z-index: 9999;*/

/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 10px;*/
/*  background: #4154f1;*/
  
/*}*/

    .floating-toolbar {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-toolbar button {
  width: 50px;
  height: 50px;
  /*border-radius: 8px;*/
  border: none;
  background: #4154f1;
  color: #fff;
  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-toolbar button:hover {
  background: #6fa52f;
  border-radius: 0;
}

.floating-toolbar svg {
  transition: transform 0.3s ease; /* Smooth transition */
  /*width: 50px;  */
  /*height: 50px;*/
}

.floating-toolbar svg:hover {
  transform: scale(1.2); /* Enlarges by 20% */
}

@media (max-width: 768px){
  .floating-toolbar {
    right: 8px;
    top: 50%;
  
  }
}


/* base */
body { z-index: 1; }

/* navbar */
.navbar { z-index: 100; }

/* floating toolbar */
.floating-toolbar { z-index: 1000; }

/* disabilitas panel */
#disabilitas-panel { z-index: 2000; }

/* overlay (reading guide) */
.reading-guide { z-index: 1500; }

/* bootstrap modal (default ~1055) */



.dokumen-lampiran .pdf-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.dokumen-lampiran .pdf-card .pdf-cover {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dokumen-lampiran .pdf-card .pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*width: 100%;*/
    /*height: 100%;*/

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: 0.3s;
}

.dokumen-lampiran .pdf-card:hover .pdf-overlay {
    opacity: 1;
}

/* MOBILE: SELALU MUNCUL */
@media (max-width: 768px) {
    .dokumen-lampiran .pdf-card .pdf-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.3);
    }
}
.dokumen-lampiran .pdf-overlay i {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}


/* CONTAINER FULL WIDTH + BACKGROUND */

.metadata-tabs {
    width: 100%;
    /*background: linear-gradient(135deg, #f8f9fa, #eef2f7);*/
    background: #f1f5f9;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 15px;
}

/* NAV TABS FLEX CENTER */
.metadata-tabs .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /*justify-content: center;*/
    /*gap: 6px;*/
    /*border: none;*/
}

.metadata-tabs .nav-tabs::-webkit-scrollbar {
    display: none;
}


/* NAV ITEM (AUTO WIDTH) */
.metadata-tabs .nav-item {
    /*flex: 0 0 auto; */
    padding-bottom: 0;
}

/* NAV LINK BASE */
.metadata-tabs .nav-link {
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 12px;
}

/* GARIS BAWAH (DEFAULT HIDDEN) */
.metadata-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 20%;
    bottom: -6px;
    width: 60%;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ACTIVE STATE */
.metadata-tabs .nav-link.active::after {
    background: linear-gradient(90deg, #0d6efd, #4dabf7);
    width: 80%;
    left: 10%;
}

/* OPTIONAL HOVER EFFECT */
.metadata-tabs .nav-link:hover::after {
    background: rgba(13, 110, 253, 0.3);
    width: 70%;
    left: 15%;
}

/* NAV LINK DEFAULT */
.metadata-tabs .nav-link {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #555;
    font-weight: 500;
    background: transparent;
    transition: all 0.25s ease;
}

/* HOVER EFFECT */
.metadata-tabs .nav-link:hover {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

/* ACTIVE TAB */
.metadata-tabs .nav-link.active {
    background: #f1f5f9;
    color: #0d6efd;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* OPTIONAL: SMOOTH TRANSITION */
.metadata-tabs .nav-link {
    position: relative;
}

/* RESPONSIVE (SCROLLABLE DI MOBILE) */
@media (max-width: 768px) {
    .metadata-tabs .nav-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .metadata-tabs .nav-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
}

.meta-item {
    margin-bottom: 12px;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
}

/* LABEL */
.meta-label {
    flex: 0 0 35%; /* lebar label */
    max-width: 35%;
    color: #777;
    font-size: 15px;
    color: #6c757d;
}

/* SEPARATOR ":" */
.meta-separator {
    width: 20px;
    text-align: center;
    color: #999;
}

/* VALUE */
.meta-value {
    flex: 1;
    font-weight: 500;
    color: #222;
}

.metadata-content{
    padding: 20px;
}

/* group spacing */
.meta-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.3);
}

.meta-group {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

/* Header clickable */
.meta-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    font-weight: 600;
    font-size: 15px;
}

/* Icon */
.meta-toggle {
    transition: transform 0.3s ease;
    font-size: 12px;
}

/* Body */
.meta-group-body {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Collapsed state */
.meta-group.collapsed .meta-group-body {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.meta-group.collapsed .meta-toggle {
    transform: rotate(-90deg);
}

/* title accent */
.meta-title {
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

.meta-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

/* subtle divider antar group */
.meta-group + .meta-group {
    /*border-top: 2px solid rgba(0, 0, 0, 0.3);*/
    /*padding-top: 20px;*/
}

/* EMPTY STATE CONTAINER */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

/* ICON */
.empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* TITLE */
.empty-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

/* DESCRIPTION */
.empty-desc {
    font-size: 14px;
    color: #999;
}

/* GRID WRAPPER */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* CARD */
.related-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;

    border: 1px solid #f1f1f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);

    transition: all 0.25s ease;
    position: relative;
}

/* HOVER EFFECT */
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #e0e7ff;
}

/* LINK */
.related-card a {
    text-decoration: none;
    color: #3b5bfd;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

/* HOVER LINK */
.related-card:hover a {
    color: #0d6efd;
}

/* OPTIONAL: SUBTLE ICON */
.related-card::before {
    content: "📄";
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 14px;
    opacity: 0.5;
}

/* TEXT WRAP */
.related-card a {
    word-break: break-word;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.badge-doc {
    display: inline-block;
    font-size: 11px;
    background: #eef2ff;
    color: #3b5bfd;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.related-card a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover {
    border-left: 3px solid #0d6efd;
}

.related-card {
    position: relative;
    padding-bottom: 90px; /* 🔥 ruang untuk QR */
}



.qr-preview {
    position: absolute;
    bottom: 12px;   /* 🔥 pindah ke bawah */
    right: 12px;

    width: 80px;
    height: 80px;

    background: #fff;
    padding: 6px;
    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: 0.25s ease;

    z-index: 2;
}

/* hover */
.related-card:hover .qr-preview {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#wdg-kategori{
    height: 260px;
    overflow-y: scroll;
    padding-right: 15px;
}

  .ikm-results{

  }
  .star-rating-result {
    /*font-size: 1.7rem;*/
    color:#ffc107;
  }
  .star-rating {
    direction: rtl;
    /*display: inline-flex;*/
    font-size: 2.5rem;
  }

  .star-rating input {
    display: none;
  }

  .star-rating label {
    color: #ddd;
    cursor: pointer;
    padding: 0 5px;
  }

  .star-rating input:checked ~ label,
  .star-rating label:hover,
  .star-rating label:hover ~ label {
    color: #ffc107;
  }

  .rating-text {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #4B4A4A;
  }
  
  
  .app-disclaimer{text-align:justify;}
  

               .fab-share{
                    position:fixed;
                    right:15px;
                    bottom:140px;
                    display:flex;
                    flex-direction:column;
                    align-items:center;
                    gap:10px;
                    z-index:999;
                    }
                    
                    .fab-item{
                    width:44px;
                    height:44px;
                    border-radius:50%;
                    display:flex;
                    align-items:center;
                    justify-content:center;
                    color:#fff;
                    font-size:18px;
                    opacity:0;
                    transform:scale(0);
                    transition:all .3s ease;
                    box-shadow:0 5px 15px rgba(0,0,0,0.2);
                    }
                    
                    .fab-main{
                    width:40px;
                    height:40px;
                    border-radius:50%;
                    border:none;
                    background:#0d6efd;
                    color:#fff;
                    font-size:16px;
                    box-shadow:0 6px 18px rgba(0,0,0,0.25);
                    cursor:pointer;
                    }
                    
                    .fab-share.active .fab-item{
                    opacity:1;
                    transform:scale(1);
                    }
                    
                    .whatsapp{background:#25D366;}
                    .facebook{background:#1877F2;}
                    .twitter{background:#000;}
                    .telegram{background:#2AABEE;}
                    .link{background:#6c757d;border:none;}
                    
                    .fab-item:hover{
                    transform:scale(1.1);
                    }
                    

.btn-close{z-index:1056;}




/* area viewer */
.sop-viewer{
  width:100%;
  height:1600px;
  /*height:calc(100vh - 20px);*/
}

/* iframe */
.sop-viewer iframe{
  width:100%;
  height:100%;
  border:none;
}

/* mobile */
@media(max-width:768px){

  .sop-viewer{
    height:70vh;
  }

  .sop-header h4{
    font-size:16px;
  }

}

.chart-container{
    width: 100%; 
    height: 400px;
}


