.baca-juga {
    background-color: #ececec; /* Light grey background */
    padding: 1rem;             /* Consistent padding on all sides */
    margin: 1.5rem 0;          /* Adds vertical spacing above and below */
    font-weight: 700;          /* Bold text */
    border: 1px solid #ddd;    /* Subtle light grey border */
    border-radius: 5px;        /* Slightly rounded corners for a softer look */
    line-height: 1.4;          /* Improve readability for multiline text */
    display: block;            /* Ensures it takes full width for better layout */
    text-decoration: none;     /* If it's a link, remove underline by default */
    color: #333;               /* Default text color, adjust as needed */
}

.baca-juga:hover {
    background-color: #e0e0e0; /* Slightly darker on hover */
    border-color: #ccc;        /* Darker border on hover */
    cursor: pointer;           /* Indicate it's clickable */
}
  .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;
    }
  } 
   
   

    /* CSS to reserve space for the ad */
    .ad-wrapper {
        display: flex;
        justify-content: center; /* Center the ad horizontally */
        align-items: center;    /* Center the ad vertically if needed */
        width: 100%;
        /* Define a min-height based on common ad sizes.
           For a typical 300x250 ad, 250px is a good start.
           Adjust this based on the largest ad unit you expect here. */
        min-height: 250px;
        background-color: #f0f0f0; /* Optional: A light background to indicate an ad loading area */
        margin: 15px 0; /* Add some vertical spacing around the ad */
        overflow: hidden; /* Prevent content from spilling out if ad is larger */
        position: relative; /* Needed if you use absolute positioning for inner elements */
    }

    /* Media queries for responsive ad sizing and CLS prevention */
    @media (max-width: 767px) { /* For mobile devices */
        .ad-wrapper {
            min-height: 100px; /* Example for a common mobile ad height (e.g., 320x100) */
            /* Or use padding-bottom for aspect ratio if ads vary greatly */
            /* padding-bottom: 31.25%; /* For 320x100 (100/320 = 0.3125) */
        }
    }
    /* Add more media queries for tablets or other breakpoints if necessary */
    /*
    @media (min-width: 768px) and (max-width: 1024px) {
        .ad-wrapper {
            min-height: 280px; // For common tablet ad sizes like 728x90 or 336x280
        }
    }
    */

    /* Optional: Style to subtly indicate the ad placeholder */
    .ad-wrapper::before {
        content: "Advertisement"; /* Small text to mark the ad area */
        font-size: 10px;
        color: #999;
        position: absolute;
        bottom: 5px;
        right: 5px;
        z-index: 1; /* Ensure it's above the ad if it loads slowly */
    }

