.post-container {
    position: relative;
    font-family: var(--font-body)
}

.post-header {
    margin-bottom: 1.2rem
}

.post-breadcrumb {
    margin: 1.5rem 0 1.25rem 0
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: .875rem;
    color: var(--color-primary);
    font-weight: 600
}

.breadcrumb-item {
    display: flex;
    align-items: center
}

.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    font-size: 15px
}

.breadcrumb-home svg {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    transform: scale(1.35);
    position: relative;
    top: -1px
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: .45em;
    height: .45em;
    border-style: solid;
    border-color: var(--color-primary);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    margin: 0 .8em
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important
}

.post-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .45rem;
    color: var(--color-teks)
}

.post-excerpt p {
    color: var(--color-teks);
    font-family: var(--font-body);
    margin-top: .7rem;
    margin-right: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}

.post-meta {
    display: block;
    margin-bottom: 1rem;
    font-size: .75rem;
    color: #6b7280;
    font-family: var(--font-body)
}

.post-meta__date span {
    margin-right: .5rem
}

.post-header-meta-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body)
}

.post-tags__link {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 9999px;
    padding: .25rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
    font-family: var(--font-body)
}

.post-share {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-primary)
}

.share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, color .2s;
    color: var(--color-primary)
}

.share-item:hover {
    transform: translateY(-2px);
    color: var(--color-primary-dark)
}

.share-item-copied {
    position: absolute;
    bottom: -28px;
    right: -8px;
    font-size: .75rem;
    font-weight: 600;
    background-color: rgb(26 86 219 / .1);
    color: var(--color-primary);
    border-radius: 9999px;
    padding: 4px 8px;
    display: none;
    white-space: nowrap
}

.post-featured-image {
    position: relative;
    margin-left: -1rem;
    margin-right: -1rem;
    overflow: visible
}

.post-featured-image__picture {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0
}

.post-featured-image__picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.post-featured-image__caption {
    color: var(--color-secondary);
    position: relative;
    z-index: 3;
    font-size: .75rem;
    line-height: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.post-content {
    line-height: 1.7;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-teks)
}

.post-content p {
    margin-bottom: 1.5em;
    font-weight: 400
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: .5em;
    color: #111
}

.post-content h1 {
    font-size: clamp(1.375rem, 1.2rem + 1vw, 1.625rem)
}

.post-content h2 {
    font-size: clamp(1.25rem, 1.1rem + 1vw, 1.5rem)
}

.post-content h3 {
    font-size: clamp(1.125rem, 1rem + 0.8vw, 1.375rem)
}

.post-content h4 {
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem)
}

.post-content h5 {
    font-size: clamp(0.9375rem, 0.85rem + 0.5vw, 1.125rem)
}

.post-content h6 {
    font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1rem)
}

.post-content a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
    font-style: normal;
    text-underline-offset: min(4px, .175em);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out
}

.post-content a :hover,
.post-content a :focus {
    color: var(--color-link-hover);
    text-decoration: underline
}

.post-content strong,
.post-content b {
    font-weight: 700
}

.post-content em,
.post-content i {
    font-style: italic
}

.post-content u {
    text-decoration: underline
}

.post-content s {
    text-decoration: line-through
}

.post-content blockquote {
    margin: 1.5em 0;
    padding: 1em;
    border-left: 4px solid var(--color-primary);
    background-color: #f7f7f7;
    color: #555;
    font-style: italic;
    border-radius: 5px
}

.post-content blockquote p :last-child {
    margin-bottom: 0;
    margin-top: 0
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em
}

.post-content li {
    margin-bottom: .5em
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: .5em;
    margin-bottom: .5em
}

.post-content ul {
    list-style: disc
}

.post-content ul ul {
    list-style: circle
}

.post-content ol {
    list-style: decimal
}

.post-content img,
.post-content video,
.post-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0;
}

.post-content hr {
    border: 0;
    height: 1px;
    background: var(--color-border);
    margin: 2em 0
}

.post-content code,
.post-content pre {
    font-family: "Courier New", Courier, monospace;
    background: #f0f0f0;
    padding: .1em .3em;
    border-radius: 4px
}

.post-content pre {
    padding: 1em;
    overflow-x: auto;
    white-space: pre-wrap
}

.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin: 1.5em 0
}

.wp-block-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: .95rem;
    color: #334155;
    background-color: #fff
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border)
}

.wp-block-table thead th {
    background-color: #f0f5ff;
    color: #1e3a8a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--color-primary-light);
    position: sticky;
    top: 0;
    z-index: 1
}

.wp-block-table tbody tr :nth-of-type(even) {
    background-color: #f8fafc
}

.wp-block-table tbody tr :hover {
    background-color: #eef5ff
}

.wp-block-table tbody tr :last-child td {
    border-bottom: none
}

.wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #000
}

.wp-block-embed-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    width: 100% !important;
    height: 100% !important
}

.wp-block-image img {
    border-radius: 5px
}

.wp-block-image :where(figcaption) {
    color: var(--color-secondary);
    font-size: .8rem;
    text-transform: none
}

.wp-block-image :where(figcaption):before {
    display: var(--caption-bdisplay, inline-block);
    width: 30px;
    height: .3em;
    margin-right: 7px;
    content: '';
    border-top: 1px solid
}

.post-content code,
.entry-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    background-color: rgb(27 31 35 / .05);
    color: #c7254e;
    font-size: .9em;
    padding: .2em .4em;
    margin: 0 2px;
    border-radius: 6px
}

.post-content pre code,
.entry-content pre code {
    background-color: #fff0;
    color: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    border-radius: 0
}

.post-content pre,
.entry-content pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: .95em;
    line-height: 1.6;
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    border-radius: 8px;
    border: 1px solid #444;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto
}

.post-content pre::-webkit-scrollbar,
.entry-content pre::-webkit-scrollbar {
    height: 8px
}

.post-content pre::-webkit-scrollbar-track,
.entry-content pre::-webkit-scrollbar-track {
    background: #2d2d2d
}

.post-content pre::-webkit-scrollbar-thumb,
.entry-content pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px
}

.post-content pre::-webkit-scrollbar-thumb:hover,
.entry-content pre::-webkit-scrollbar-thumb:hover {
    background: #777
}

.zm-ad-runway {
    /* Desktop: tampilkan iklan normal tanpa parallax */
    margin: 45px 0;
    min-height: 280px;
    display: block;
    position: relative;
    text-align: center;
}

.zm-ad-runway::before {
    content: 'Advertisement';
    display: block;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 11px;
    color: #7c7b7b;
    letter-spacing: 1px
}

/* Desktop: Sembunyikan teks Continue Reading */
.zm-ad-runway::after {
    display: none;
}

.zm-ad-sticky-inner {
    /* Desktop: tidak sticky */
    position: relative;
}

.zm-ad-content {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-between-sections {
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    max-width: 728px;
    position: relative
}

.ad-between-sections::before {
    content: "Advertisement";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 2px 8px;
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-border);
    border-radius: 4px
}

.content-section {
    position: relative;
    margin-bottom: 40px;
    transition: opacity 0.3s
}

.content-section.loading {
    opacity: .7;
    pointer-events: none
}

.post-footer {
    margin-top: 1.5rem
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a202c
}

.latest-news-list {
    list-style: none;
    padding-left: .5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem
}

.latest-news-list__item a {
    display: block;
    position: relative;
    padding-left: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    color: #1a202c
}

.latest-news-list__item a::before {
    content: "";
    position: absolute;
    left: 0;
    transform: translateY(50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%
}

.latest-news-list__item a:hover {
    color: var(--color-primary)
}

.related-tags-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 1rem
}

.related-tags-list__item a {
    display: block;
    background: #e6f2fe;
    border-radius: 9999px;
    padding: .25rem 1rem;
    margin-right: .5rem;
    margin-bottom: .5rem;
    font-weight: 500;
    font-size: .875rem;
    text-decoration: none;
    color: #00509d;
    transition: background .2s
}

.related-tags-list__item a:hover {
    background: rgb(26 86 219 / .2)
}

.post-author-box {
    border-bottom: 1px solid var(--color-border);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem
}

.post-author-box__heading {
    display: block;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1
}

.post-author-box__heading span {
    background: #fff;
    position: relative;
    display: inline-block;
    font-weight: 600;
    padding-right: .75rem;
    z-index: 1
}

.post-author-box__heading::before {
    content: "";
    width: 100%;
    border-top: 1px solid var(--color-border);
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0
}

.post-author-box__container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem
}

.post-author-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex: 1
}

.post-author-info__avatar {
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.post-author-info__avatar img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover
}

.post-author-info__desc {
    flex: 1;
    padding-left: .75rem;
    font-weight: 600;
    min-width: 0;
    margin-top: 2px
}

.post-author-info__desc .label {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: var(--color-secondary)
}

.post-author-info__desc a,
.post-author-info__desc span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: -3px;
    color: #040404
}

.post-author-info__desc a:hover {
    color: var(--color-primary)
}

.related-posts-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1a202c
}

.related-posts-container {
    display: flex;
    flex-direction: column;
    margin-left: -1rem;
    margin-right: -1rem
}

.related-post-item {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
    display: block
}

.related-post-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f0f0f0
}

.related-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.related-post-content {
    display: flex;
    flex-direction: column;
    padding: 4px 0rem;
    position: relative
}

.related-post-content .related-post-title {
    margin-top: -5px;
    margin-bottom: 8px;
    order: 1
}

.related-post-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    display: block
}

.related-post-title a {
    color: inherit;
    text-decoration: none
}

.related-post-title a:hover {
    color: var(--color-primary)
}

.related-post-excerpt {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--color-secondary);
    order: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}

.related-post-meta {
    margin-top: -4px;
    order: 3;
    display: flex;
    column-gap: .5rem
}

.related-post-category {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--color-primary);
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1
}

.related-post-category:hover {
    text-decoration: underline
}

.pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border)
}

.navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin-bottom: 2.5rem
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 600;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    transition: all 0.18s cubic-bezier(.4, 0, .2, 1);
    width: 2.3em;
    height: 2.3em;
    min-width: 38px;
    min-height: 38px;
    font-size: 1.08rem
}

.page-numbers:not(.dots):not(.current):hover {
    border-color: var(--color-primary);
    background: #f0f8ff;
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 2px 6px rgb(26 86 219 / .08)
}

.page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    cursor: default
}

.page-numbers.dots {
    border: none;
    background: #fff0;
    pointer-events: none
}

.post-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 12px 16px;
    margin: 30px 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: #f8f9fa
}

.pagination-group-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.pagination-label {
    font-size: 16px;
    font-weight: 600;
    color: #333
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid var(--color-primary-light);
    color: var(--color-primary-light);
    background-color: #fff0
}

.page-number :hover {
    background-color: #dbeafe
}

.page-number.current {
    background-color: var(--color-primary-light);
    color: #fff;
    border-color: var(--color-primary-light)
}

.show-all-button {
    text-decoration: none !important;
    padding: 8px 20px;
    border: 1px solid #adb5bd;
    color: #495057;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.2s
}

.show-all-button :hover {
    background-color: #f1f3f5;
    border-color: #868e96
}

.in-article-ad {
    margin-bottom: 5px;
}

/* ========== RESPONSIVE EMBEDS (Gutenberg) ========== */

/* 0) Reset dasar: iframe melebar penuh dan tidak overflow */
.post-content iframe,
.post-content .wp-block-embed__wrapper > iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}

/* 1) Video landscape (YouTube, Vimeo, Dailymotion) → 16:9 */
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="vimeo.com"],
.post-content iframe[src*="dailymotion.com"],
.post-content .wp-block-embed.is-type-video iframe {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

/* 2) Video/short vertical (TikTok, Reels, Shorts) → 9:16 */
.post-content iframe[src*="tiktok.com"],
.post-content iframe[src*="/reel/"],
.post-content iframe[src*="/shorts/"] {
  aspect-ratio: 9 / 16;
  height: auto !important;
}

/* 3) Embed yang atur tinggi via JS (Instagram, X/Twitter, FB, Spotify, dll)
      Kuncinya: jangan paksa tinggi fixed, biarkan mereka membesar sendiri */
.post-content iframe[src*="instagram.com"],
.post-content iframe[src*="twitter.com"],
.post-content iframe[src*="facebook.com"],
.post-content iframe[src*="open.spotify.com"],
.post-content iframe[src*="snackcdn.com"] {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 4) Bungkus Gutenberg tetap fluid */
.post-content .wp-block-embed,
.post-content .wp-block-embed__wrapper {
  max-width: 100% !important;
}

/* 5) Fallback untuk browser tanpa support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  /* teknik intrinsic ratio 16:9 */
  .post-content .wp-block-embed.is-type-video,
  .post-content iframe[src*="youtube.com"],
  .post-content iframe[src*="youtu.be"],
  .post-content iframe[src*="vimeo.com"],
  .post-content iframe[src*="dailymotion.com"] {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    height: 0 !important;
  }
  .post-content .wp-block-embed.is-type-video iframe,
  .post-content iframe[src*="youtube.com"],
  .post-content iframe[src*="youtu.be"],
  .post-content iframe[src*="vimeo.com"],
  .post-content iframe[src*="dailymotion.com"] {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }
}

/* 6) Opsional: cegah iframe super-pendek saat skrip embed belum selesai */
.post-content iframe {
  min-height: 320px; /* silakan sesuaikan/hapus jika tidak perlu */
}

/* Baris 2 kolom: share (kiri) + CTA (kanan) */
.post-share-row{
  display: grid;
  grid-template-columns: 1fr auto; /* share fleksibel, CTA tetap mepet kanan */
  align-items: center;
  gap: 12px;
  margin-top: 12px; /* sesuaikan kalau perlu */
}

/* Biarkan blok share kamu tetap seperti biasa */
.post-share-row .post-share[data-location="bottom"]{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* aman kalau ikon share banyak */
  justify-self: start;
}

/* CTA “Ikuti di Google News” berdiri sendiri di kanan */
.post-share-row .gn-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    color: var(--color-teks);
    border: 1px solid var(--color-border, #e5e7eb);
    background-color: var(--color-gray-50, #f9fafb);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.post-share-row .gn-cta:hover{
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.post-share-row .gn-cta img{
  width: 18px; height: 18px; display: block;
}

/* Style 2: Like & Share buttons in footer - centered layout */
.post-share-row:has(.mt-like-share) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Override margin-left: auto for md-like-share in footer */
.post-share-row .mt-like-share {
  margin-left: 0;
}

/* Fallback for browsers without :has() support - uses JS to add class */
.post-share-row.has-like-share {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile: center alignment */
@media (max-width: 768px) {
  .post-share-row.has-like-share {
    justify-content: center;
  }
}

/* ========== STYLE 2 (KOMPAS): CTA di tengah separator ========== */
.post-share-row--kompas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

/* Separator dengan CTA di tengah */
.post-separator-with-cta {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.post-separator-with-cta .separator-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Group untuk Share + CTA di tengah separator */
.separator-cta-group {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

/* CTA Google News di tengah separator */
.gn-cta--centered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 0;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--color-teks);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.gn-cta--centered:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.gn-cta--centered img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Share Button Bottom Container */
.post-share-bottom {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Standalone Share Button styling */
.mt-share-btn--standalone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  color: var(--color-teks);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mt-share-btn--standalone:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f8fafc;
}

.mt-share-btn--standalone .mt-share-icon {
  display: flex;
  align-items: center;
  color: inherit;
}

.mt-share-btn--standalone .mt-share-icon svg {
  width: 18px;
  height: 18px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .gn-cta--centered {
    font-size: 12px;
    padding: 6px 12px;
    margin: 0 10px;
  }
  
  .mt-share-btn--standalone {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (min-width:1024px) {
    .post-author-box__container {
        flex-direction: row
    }
    .post-author-info {
        margin-right: 2rem;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(50% - 1rem)
    }
    .post-author-info:last-child {
        margin-right: 0
    }
    .related-posts-container {
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0
    }
    .related-post-item {
        width: calc(50% - .75rem);
        margin-left: 0;
        margin-right: 1.5rem
    }
    .related-post-item:nth-child(even) {
        margin-right: 0
    }
    .post-featured-image {
        margin-left: 0;
        margin-right: 0
    }
}

@media (max-width:768px) {
    .related-post-image {
        margin-left: -16px;
        margin-right: -16px;
        aspect-ratio: 2/1
    }
    .related-post-content {
        padding-left: 0;
        padding-right: 0
    }
    .post-title {
        line-height: 1.625
    }
    figcaption.post-featured-image__caption {
        padding-left: 1rem
    }
    .wp-block-image :where(figcaption) {
        font-size: .7rem;
        line-height: 1rem
    }
    .zm-ad-runway {
        /* Wadah tinggi agar iklan melayang lebih lama */
        height: 600px;
        background-color: #f5f5f5;
        padding: 0;
        display: block;
        position: relative;
        /* JANGAN gunakan overflow: hidden - akan merusak sticky! */
    }
    .zm-ad-sticky-inner {
        position: -webkit-sticky;
        position: sticky;
        top: 10px;
        /* Tambah padding bawah agar ada jarak dengan Continue Reading */
        padding-bottom: 40px;
    }
    .zm-ad-content {
        /* Ukuran iklan */
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eaeaea;
    }
    /* Label Advertisement di atas iklan - untuk transparansi AdSense */
    .zm-ad-runway::before {
        content: 'Advertisement';
        display: block;
        text-align: center;
        text-transform: uppercase;
        padding: 10px 0;
        font-size: 11px;
        color: #888;
        letter-spacing: 1px;
    }
    .zm-ad-runway::after {
        content: 'Continue Reading Below';
        display: block;
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        text-align: center;
        text-transform: uppercase;
        font-size: 11px;
        color: #888;
        letter-spacing: 1px;
        font-weight: 500;
    }
}

@media (max-width:480px) {
    .pagination-group-left {
        flex-grow: 1
    }
    .pagination-group-right {
        flex-basis: 100%;
        text-align: right
    }
    .page-number {
        width: 30px;
        height: 30px;
        font-size: 14px
    }
    .show-all-button {
        padding: 7px 17px;
        text-decoration: none !important;
    }
}

/* Comments styles moved to components/comments.css (conditionally loaded) */

/* ========== TIM REDAKSI / EDITORIAL TEAM ========== */

.mt-credit-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mt-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.mt-credit-avatars {
    display: flex;
    flex-direction: row;
}

.mt-credit-avatars .mt-credit-avatar:not(:first-child) {
    margin-left: -11px;
}

.mt-credit-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.mt-credit-avatar::before {
    content: attr(data-initial);
}

.mt-credit-avatar--large {
    width: 44px;
    height: 44px;
    font-size: 14px;
    border-width: 3px;
}

/* Photo avatar (when user has Gravatar) */
img.mt-credit-avatar--photo {
    object-fit: cover;
}

img.mt-credit-avatar--photo::before {
    display: none;
}

.mt-credit-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.mt-credit-names {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-teks);
}

.mt-credit-label {
    font-size: 11px;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Modal Popup */
.mt-credit-modal {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1002; /* Above overlay (1001) */
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    padding: 12px 16px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.mt-credit-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mt-credit-close {
    position: absolute;
    top: 16px;
    right: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #050505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    width: 32px;
    height: 32px;
}

.mt-credit-close:hover {
    background: #f3f4f6;
    color: var(--color-teks);
}

.mt-credit-close svg {
    width: 18px;
    height: 18px;
}

.mt-credit-modal-body {
    display: flex;
    flex-direction: column;
    padding-right: 40px; /* Space for close button on right */
}

.mt-credit-author-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mt-credit-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-radius: 12px;
    transition: background 0.2s;
}

a.mt-credit-author-link:hover .mt-credit-author {
    background: #f8f9fa;
    margin: 0 -8px;
    padding: 8px;
}

.mt-credit-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.mt-credit-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-teks);
}

.mt-credit-author-role {
    font-size: 12px;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .mt-credit-names {
        font-size: 12px;
    }

    .mt-credit-author-name {
        font-size: 12px;
    }

    .mt-credit-author-role {
        font-size: 11px;
    }
    
    .mt-credit-avatar {
        width: 33px;
        height: 33px;
    }
    
    .mt-credit-avatars .mt-credit-avatar:not(:first-child) {
        margin-left: -18px;
    }
    
    .mt-credit-modal {
        left: 0px;
        right: -16px;
        min-width: auto;
        width: calc(100vw - 32px);
        max-width: 210px;
    }
    
    .mt-credit-label {
        font-size: 10px;
    }
    
    .mt-credit-close {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .mt-credit-close svg {
        width: 12px;
        height: 12px;
    }
}

/* Modal Overlay */
.mt-credit-wrapper {
    position: relative;
}

.mt-credit-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1001; /* Higher than header (z-index: 1000) to cover entire screen */
    pointer-events: none;
}

.mt-credit-wrapper:has(.mt-credit-modal.open)::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal animation */
.mt-credit-modal {
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    transform: translateY(-8px);
}

.mt-credit-modal.open {
    transform: translateY(0);
}

/* =================================================================
   LIKE & SHARE BUTTONS (Style 2)
   ================================================================= */

.mt-like-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Base button styles */
.mt-like-btn,
.mt-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    line-height: 1;
    cursor: pointer;
    border: 1px solid var(--color-border, #e5e7eb);
    background-color: var(--color-gray-50, #f9fafb);
    color: var(--color-secondary, #6b7280);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mt-like-btn:hover,
.mt-share-btn:hover {
    transform: translateY(-1px);
}

.mt-like-btn:active,
.mt-share-btn:active {
    transform: scale(0.95);
}

/* Like button specific */
.mt-like-btn:hover {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.mt-like-btn.is-liked {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Share button specific */
.mt-share-btn:hover {
    background-color: var(--color-gray-100, #f3f4f6);
    color: var(--color-teks, #111827);
    border-color: var(--color-gray-200, #e5e7eb);
}

.mt-share-btn.is-copied {
    background-color: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

/* Icon styles */
.mt-like-icon,
.mt-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mt-like-icon svg,
.mt-share-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.mt-like-btn:hover .mt-like-icon svg,
.mt-share-btn:hover .mt-share-icon svg {
    transform: scale(1.1);
}

/* Labels */
.mt-like-label,
.mt-share-label {
    display: none;
}

.mt-like-count:empty {
    display: none;
}

.mt-like-count {
    font-weight: 700;
    font-size: 13px;
}

/* Loading state */
.mt-like-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.mt-like-btn.is-loading .mt-like-icon svg {
    animation: pulse 1s infinite;
}

/* ========================
   LIKE ANIMATIONS - Social Media Style
   ======================== */

/* Heart Bouncing Animation - 2 seconds */
.mt-like-btn.is-animating .mt-like-icon svg {
    animation: heartBounce 2s ease-in-out;
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    5% { transform: scale(1.4); }
    10% { transform: scale(0.9); }
    15% { transform: scale(1.3); }
    20% { transform: scale(0.95); }
    25% { transform: scale(1.2); }
    30% { transform: scale(1); }
    35% { transform: scale(1.15); }
    40% { transform: scale(1); }
    50% { transform: scale(1.1); }
    60% { transform: scale(1); }
    70% { transform: scale(1.05); }
    80% { transform: scale(1); }
    90% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Floating "+1" Animation */
.mt-like-float {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mt-like-float.is-floating {
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px) scale(1.5);
    }
    40% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px) scale(1.8);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-30px) scale(1.6);
    }
    80% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(-40px) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive - show labels on larger screens */
@media (min-width: 480px) {
    .mt-like-label,
    .mt-share-label {
        display: inline;
    }
    
    .mt-like-btn,
    .mt-share-btn {
        padding: 8px 14px;
    }
}

/* Dark mode support via custom class (matches global.css) */
.dark-mode .mt-like-btn,
.dark-mode .mt-share-btn,
html.dark .mt-like-btn,
html.dark .mt-share-btn,
body.dark-mode .mt-like-btn,
body.dark-mode .mt-share-btn {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}

.dark-mode .mt-like-btn:hover,
html.dark .mt-like-btn:hover,
body.dark-mode .mt-like-btn:hover {
    background-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.4);
}

.dark-mode .mt-like-btn.is-liked,
html.dark .mt-like-btn.is-liked,
body.dark-mode .mt-like-btn.is-liked {
    background-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.4);
}

.dark-mode .mt-share-btn:hover,
html.dark .mt-share-btn:hover,
body.dark-mode .mt-share-btn:hover {
    background-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.dark-mode .mt-share-btn.is-copied,
html.dark .mt-share-btn.is-copied,
body.dark-mode .mt-share-btn.is-copied {
    background-color: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border-color: rgba(22, 163, 74, 0.4);
}

.dark-mode .mt-like-float,
html.dark .mt-like-float,
body.dark-mode .mt-like-float {
    color: #f87171;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* =================================================================
   DARK MODE: Tim Redaksi / Credits
   ================================================================= */

/* Modal Overlay - darker in dark mode */
html[theme="darkmode"] .mt-credit-wrapper::before,
.dark-mode .mt-credit-wrapper::before,
html.dark .mt-credit-wrapper::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Modal Popup - dark background */
html[theme="darkmode"] .mt-credit-modal,
.dark-mode .mt-credit-modal,
html.dark .mt-credit-modal {
    background: var(--color-dark-bg, #18181b);
    border-color: var(--color-border-dark, #374151);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Close button - white icon */
html[theme="darkmode"] .mt-credit-close,
.dark-mode .mt-credit-close,
html.dark .mt-credit-close {
    color: #fff;
}

html[theme="darkmode"] .mt-credit-close:hover,
.dark-mode .mt-credit-close:hover,
html.dark .mt-credit-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Author name - white text */
html[theme="darkmode"] .mt-credit-author-name,
.dark-mode .mt-credit-author-name,
html.dark .mt-credit-author-name {
    color: var(--text-color-dark, #fff);
}

/* Author role - lighter text */
html[theme="darkmode"] .mt-credit-author-role,
.dark-mode .mt-credit-author-role,
html.dark .mt-credit-author-role {
    color: rgba(255, 255, 255, 0.7);
}

/* Author link hover - darker background */
html[theme="darkmode"] a.mt-credit-author-link:hover .mt-credit-author,
.dark-mode a.mt-credit-author-link:hover .mt-credit-author,
html.dark a.mt-credit-author-link:hover .mt-credit-author {
    background: rgba(255, 255, 255, 0.1);
}

/* Credit names in post header - adjustments for dark mode */
html[theme="darkmode"] .mt-credit-names,
.dark-mode .mt-credit-names,
html.dark .mt-credit-names {
    color: var(--text-color-dark, #fff);
}

html[theme="darkmode"] .mt-credit-label,
.dark-mode .mt-credit-label,
html.dark .mt-credit-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Credit trigger area in dark mode */
html[theme="darkmode"] .mt-credit-trigger:hover,
.dark-mode .mt-credit-trigger:hover,
html.dark .mt-credit-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}