
  .table-container {
    max-height: 400px;    /* batas tinggi scroll area, sesuaikan dengan kebutuhan */
  overflow-y: auto;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 1rem;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
  }
  th, td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: center;
  }
  th {
    background-color: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  @media (max-width: 600px) {
    table {
      font-size: 12px;
    }
  }
</style>


<style>
    .post-body.dark-mode {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

.post-body.dark-mode p {
    color: #ffffff !important;
}
.reading-tools {
    position: sticky;
    top: 100px; /* jarak dari atas viewport */
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
    z-index: 9999;
}


</style>
<!-- WA-->
<style>
    .wa-follow-btn {
    position: fixed;
    top: 56px; /* Atur sesuai tinggi navbar */
    left: 0;
    width: 100%;
    background-color: #25D366;
    color: white;
    padding: 10px 0;
    text-align: center;
    display: none;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.wa-follow-btn a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;       /* Vertikal tengah */
    justify-content: center;   /* Horizontal tengah */
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    height: 70%;
}

.wa-follow-btn .wa-icon {
    width: 22px;
    height: 22px;
}


</style>
<style>
    .main-page {
        padding-left: 10px;
        padding-right: 10px;
        min-height:5px;
    }

    .post-body p {
        font-size: 18px;
        line-height: 29px;
        margin: 0 0 32px 0;
        font-weight: 400;
        color: #424242;
    }
</style>
<style>
  .pdf-container {
    width: 100%;
    max-width: 600px; /* Adjust the maximum width as needed */
    margin: 0 auto;
  }

  .pdf-container iframe {
    width: 100%;
    height: 400px; /* Set an initial height for larger screens */
  }

  @media (max-width: 768px) {
    /* Adjust dimensions for smaller screens */
    .pdf-container iframe {
      height: 500px; /* Modify the height for mobile screens */
    }
  }
</style>
<style>
  .post-body img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: auto;
  }
</style>
<style>
  #flying-carpet-ad {
    position: fixed;
    bottom: 20px;
    right: -320px; /* awalnya di luar layar kanan */
    width: 320px;
    height: 50px;
    background: transparent;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
    transition: right 0.7s ease-out;
  }

  #flying-carpet-ad.show {
    right: 20px; /* posisi masuk ke layar */
  }

  #flying-carpet-ad .close-btn {
    position: absolute;
    top: 2px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 16px;
    line-height: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
  }

  /* Responsive untuk desktop */
  @media (min-width: 768px) {
    #flying-carpet-ad {
      width: 728px;
      height: 90px;
    }
  }
  
  .safe-ads-wrapper {
  margin: 3px 0;
}
 /* Untuk layar kecil, tetap 300x250 atau 250x250 */
@media (max-width: 400px) {
.my-mobile-ad {
 width: 250px !important;
 height: 250px !important;
 }
 }

/* Untuk layar besar (desktop), biarkan responsif */
@media (min-width: 768px) {
.my-mobile-ad {
 width: 100% !important;
 height: auto !important;
 }
 }
</style>
<style>
  #stickyAd {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    padding: 10px 0;
  }

  #stickyAd .ad-inner {
    margin: 0 auto;
    position: relative;
    transition: all 0.4s ease;
  }

  .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: #fff;
    font-size: 14px;
    border-radius: 50%;
    padding: 4px 8px;
    cursor: pointer;
    z-index: 10000;
  }

  /* Saat scroll - resize */
  #stickyAd.ad-small #adsenseUnit {
    width: 320px !important;
    height: 100px !important;
  }

  @media(min-width: 768px) {
    #stickyAd.ad-small #adsenseUnit {
      width: 728px !important;
      height: 90px !important;
    }
  }
