/* Card CSS Start Start */
#pilihan .card {
overflow: hidden;
}

#pilihan .card-image {
position: relative;
}

#pilihan .card-image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}

/* Wrapper Icon  */
#pilihan .card-icons {
position: absolute;
bottom: 12px;
left: 12px;
display: flex;
align-items: center;
gap: 10px;
z-index: 5;
}

/* Link Icon */
#pilihan .card-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;

border-radius: 50%;
background: gray;

transition: all 0.3s ease;
}

#pilihan .card-icons i {
font-size: 28px;
color: #fff !important;
transition: all 0.3s ease;
}

#pilihan .icon-plus:hover {
color: #b6895b !important;
transform: scale(1.15);
}

/* Icon Expand */
#pilihan .icon-expand:hover {
color: #b6895b !important;
transform: translateY(3px);
}

/* Hover tombol */
#pilihan .card-icons a:hover {
background: rgba(0, 0, 0, 0.9);
}

/* Card Content */
#pilihan .card-content {
text-align: center;
padding: 14px;
}

#pilihan .card-content p {
  margin: 0;
  font-weight: 300;
}

/* Tablet */
@media (max-width: 992px) {

#pilihan .card-image img {
height: auto;
}

#pilihan .card-icons {
bottom: 10px;
right: 10px;
gap: 8px;
}

#pilihan .card-icons a {
width: 38px;
height: 38px;
}

#pilihan .card-icons i {
font-size: 24px;
}
}

/* Mobile */
@media (max-width: 600px) {

#pilihan .card-icons {
bottom: 8px;
right: 8px;
gap: 6px;
}

#pilihan .card-icons a {
width: 34px;
height: 34px;
}

#pilihan .card-icons i {
font-size: 22px;
}

#pilihan .card-content p {
font-size: 15px;
}
}

/* Modal */
.modal {
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  overflow: hidden;
}

/* Header Modal */
.modal .modal-content h5 {
  color: #b6895b;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

/* Isi Modal */
.modal .modal-content p {
  color: #555;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 400;
  text-align: justify;
    text-justify: inter-word;
}

/* Footer Modal */
.modal .modal-footer {
  background: #f8f8f8;
  border-top: 1px solid #eee;
}

/* Tombol Tutup */
.modal .modal-footer .btn-flat {
  color: #b6895b;
  font-weight: 600;
}

.modal .modal-footer .btn-flat:hover {
  background-color: var(--primary);
}

/* Dark Mode */
body.dark-mode .modal {
  background: #1e1e1e;
}

body.dark-mode .modal .modal-content p {
  color: #ddd;
}

body.dark-mode .modal .modal-footer {
  background: #252525;
  border-top: 1px solid #333;
}

body.dark-mode .modal .modal-footer .btn-flat {
  color: #b6895b;
}
/* Card CSS End */


/* Bottom-Icons CSS Start */
#icons {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
}

#icons img {
  width: 90px;
  height: auto;
}

#icons.btn-floating {
  width: 80px;
  height: 80px;
  line-height: 80px;
}

#icons.btn-floating i {
  font-size: 36px;
}

/* Responsif untuk layar mobile */
@media (max-width: 600px) {
  #icons {
    bottom: 70px;
    right: 15px;
  }

  #icons img {
    width: 60px; /* perkecil ikon */
  }

  #icons.btn-floating {
    width: 60px; /* perkecil tombol */
    height: 60px;
    line-height: 60px;
  }

  #icons.btn-floating i {
    font-size: 24px; 
  }
}

#close {
  position: absolute;
  top: -5px;
  right: -10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #5c5f5c;
  color: #fff;
  text-align: center;
}
/* Bottom Icons End */


/* Medsos css Start */
.artikel {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.artikel img {
  display: block;
  width: 100%;
  height: auto;
}

/* MISC */
#histats_counter {
  margin-top: 15px;
}

.small-text {
  font-size: 10px;
  text-align: justify;
  margin-top: 20px;
}

/* Social Links Footer */
.social-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links li {
  display: inline-block;
}
/* Medsos css End */


/* Iklan css Start */
.adsense-box {
    margin: 30px auto;
    text-align: center;
}

.ads-label {
    display: block;
    margin-bottom: 15px;
    color: #999;
    font-size: 12px;
}
/* Iklan css End */


/* Berita Sub Halaman Start */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

#berita {
  background-color: #fff;
  transition: background-color 0.3s ease;
  padding-top: 80px !important;
  margin: 20px 0 10px;
  margin-top: 0 !important;
}

/* Isi berita */
.isi-berita p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.section h4 {
  margin-top: 5px;
  margin-bottom: 5px;
}

#berita .author-credit h6 {
  margin-top: 50px;
   font-size: 10px;
   text-align: lift;
   text-indent: 0;
   font-style: italic;
   color: #333;
}


#berita .row .col {
  margin-bottom: 10px;
  padding: 0 8px;
}


.navbar-brand img {
  vertical-align: middle;
  margin: auto 0;
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-top: 10px;
}

.switch-mobile {
margin-left: 2px;
margin-top: 25px;
}

 
/* Gallery RPTRA */
.galeri-rptra{
    margin:20px;
}

.galeri-rptra .col{
    padding:0.4px;
}

.gambar-rptra{
    width:100%;
    height:110px;
    object-fit: cover;
    border-radius:8px;
    display:block;
}

/* Mobile */
@media only screen and (max-width:600px){

  .galeri-rptra{
      display: flex;
      flex-wrap :nowrap;
      gap: 10px;
      margin: 15px 0;
  }

  .galeri-rptra .col{
      flex: 1;
      padding: 0;
  }

  .gambar-rptra{
      height: 90px;
      border-radius:6px;
  }
}

/* Card Horizontal Berita Start */
.berita-preview {
  display: flex;
  align-items: flex-start;
  gap: 10px; 
  border-radius: 5px;
  overflow: hidden;
}

.berita-preview .card-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.berita-preview .card-image {
  width: 180px;
  min-width: 180px;
  margin: 10px 0 10px 10px;
}

.berita-preview .card-content {
  padding: 4px 8px;
  flex: 1;
}

.berita-preview .card-content h5 {
  margin: 0;
  line-height: 1.5;
  color: #555;
  overflow: hidden;
  max-height: 6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.berita-preview h6.date {
    margin-bottom: 15px;
}

/* Desktop besar */
@media (min-width: 1200px) {
  .berita-preview .card-content h5 {
    font-size: 1.15rem;
  }
}

/* Laptop */
@media (max-width: 1199px) {
  .berita-preview .card-content h5 {
    font-size: 1.05rem;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .berita-preview .card-content h5 {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .berita-preview .card-content h5 {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

.berita-preview .card-action {
  padding: 10px 15px;
}

.berita-preview .card-action a {
  color: #b6895b !important;
  font-weight: 500;
  font-size: 0.9rem
}

#btn-hero .btn-small,
#btn-hero .likeBtn,
#btn-hero #like-btn {
  margin: 0;
}

/* Cuplikan Kalimat Start */
.quote {
  text-align: justify;
  background-color: rgba(128, 128, 128, 0.2); 
  padding: 5px 15px;
  border-radius: 5px;
  font-style: italic;
  font-size: 16px;
  display: inline-block; 
  margin-top: 1px;     
  margin-bottom: 1px;
}

.quote::before {
  content: "❝";        
  font-size: 50px;
  color: rgb(84, 84, 84);
  margin-right: 8px;
}

.quote::after {
  content: "❞";        
  font-size: 50px;
  color: rgb(84, 84, 84);
  margin-left: 8px;
}

/* Credit dan Meta Berita */
.credit {
  margin: 0 0 3px;
}

.meta {
  margin: 0 0 15px;
  color: #757575;
}

.berita-preview {
  margin-top: 12px;
}

/* Cuplikan Kalimat End */

/* Button Like Start */
#btn-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 5px;
}

#btn-hero #like-btn {
  display: flex;
  align-items: center;
  background: gray;
  color: white;
  border: 1px solid gray;
}

#btn-hero #like-btn:hover,
#btn-hero #like-btn:focus,
#btn-hero #like-btn:active {
  background: gray;
  border-color: gray;
  color: white;
}

.article-like {
  text-align: center;
  margin: 10px 0;
}

.likeBtn {
  background: #757575;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.likeBtn:hover {
  background: #616161;
}

.likeBtn.red {
  background: #e53935 !important;
}
/* Button Like End */


/* Responsive */
/* Tablet */
@media (max-width: 992px) {
  
  .berita-preview .card-image {
    width: 170px;
    min-width: 170px;
  }
  
  .berita-preview .card-content {
    padding: 10px 12px;
  }
  
  .berita-preview .card-content h5 {
    font-size: 14px;
    line-height: 1.5;
  }
  }

@media (max-width: 600px) {
  .berita-preview .card-image img{
    height:90px;
    border-radius:4px;
  }
  
  .berita-preview {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .berita-preview .card-image {
    width: 100px;
    min-width: 100px;
  }

  .berita-preview .card-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
  }

  .berita-preview .card-content {
  padding: 0 6px !important;
}

  .berita-preview .card-content h5 {
    font-size: 12px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 4;
   
  .berita-preview .card-action a {
    font-size: 14px;
  }
}
}
  
/* Desktop besar */
@media (min-width: 1200px) {
  .card.horizontal .card-image img {
    max-height: 85px;
    max-width: 100%;
  }
}

/* Tablet / layar sedang */
@media (min-width: 601px) and (max-width: 1199px) {
  .card.horizontal .card-image img {
    max-height: 75px;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .card.horizontal .card-image img {
    max-height: 65px;
    max-width: 100%;
  }

  /* Isi berita */
  .berita-preview .card-image {
    width: 100px;
    min-width: 100px;
    margin: 5px 0 5px 5px;
  }

  .berita-preview .card-content {
    padding: 5px 5px 5px 0 !important;
  }

  .berita-preview .card-content h5 {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
     line-clamp: 4;
  }

  /* Isi card */
  .card.horizontal .card-stacked .card-content p,
  #card-content p {
    font-size: 0.8rem;
    line-height: 1.3;
    letter-spacing: 0;
    margin-right: 4px;
  }

  /* Link card */
  .card.horizontal .card-action a {
    font-size: 0.7rem;
  }

  /* Tombol Hero */
  #btn-hero .btn-small {
    font-size: 0.65rem;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
  }
}
/* Berita-box End */

/* Pedoman Media Siber Start */
    #pedoman {
      padding: 50px 0;
    }

    #pedoman h3 {
      margin-bottom: 30px;
      font-weight: 600;
      text-align: center;
    }

    #pedoman h5 {
      margin-top: 35px;
      margin-bottom: 15px;
      font-weight: 600;
    }

    #pedoman p,
    #pedoman li {
      text-align: justify;
      line-height: 1.9;
      font-size: 16px;
    }

    #pedoman ul {
      padding-left: 20px;
    }

    #pedoman .card-panel {
      padding: 35px;
    }

    .kontak-redaksi {
      margin-top: 25px;
      padding-top: 15px;
      border-top: 1px solid #ddd;
    }
/* Pedoman Media Siber End */


/* FAB Artikel Halaman Lain Start */
/* Container tombol hero */
#btn-hero{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Container Share */
.article-share-fab{
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Tombol Share Utama */
.article-share-fab .btn-share{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
    padding: 0 12px;
    height: 32.4px; /* sama dengan btn-small Materialize */
    line-height: 32.4px;
    box-sizing: border-box;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: .3s ease;
}

.article-share-fab .btn-share span{
    line-height: 1;
}

.article-share-fab .btn-share i{
    font-size: 15px;
    line-height: 1;
}

/* Hover */
.article-share-fab .btn-share:hover{
    filter: brightness(1.1);
}

/* Menu Share */
.article-share-fab ul{
    position: absolute;
    top: calc(100% + 8px); /* pindah ke bawah */
    left: 50%;
    transform: translateX(-50%);

    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0;
    padding: 0;
    list-style: none;

    z-index: 999;
    white-space: nowrap;
}

.article-share-fab.active ul{
    display: flex;
}

/* Tombol Sosial */
.article-share-fab .btn-floating{
    width: 36px;
    height: 36px;
    min-width: 36px;

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

    border-radius: 8px;

    transition: all .3s ease;
}

/* Hover Tombol Sosial */
.article-share-fab .btn-floating:hover{
    transform: translateY(-2px);
}

/* Icon Sosial */
.article-share-fab .btn-floating i{
    font-size: 18px;
    line-height: 1;
}

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

    .article-share-fab ul{
        gap: 6px;
    }

    .article-share-fab .btn-share{
        min-width: 115px;
        font-size: 13px;
    }

    .article-share-fab .btn-floating{
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}

/* Mobile */
@media (max-width: 600px){

    .article-share-fab .btn-share{
        min-width: 110px;
        height: 38px;
        padding: 0 14px;

        font-size: 13px;
        gap: 6px;
    }

    .article-share-fab .btn-share i{
        font-size: 17px;
    }

    .article-share-fab ul{
        max-width: calc(100vw - 20px);
        gap: 6px;

        left: 50%;
        transform: translateX(-50%);
    }

    .article-share-fab .btn-floating{
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}
/* FAB Artikel Halaman Lain End*/

