/* ============== BREADCUMB ============== */
.breadcrumb-bar {
  padding: 0.85rem 0;
}

.breadcrumb {
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.breadcrumb-item a {
  color: var(--ink-soft);
}

.breadcrumb-item a:hover {
  color: var(--sea-dark);
}

.breadcrumb-item.active {
  color: var(--ink);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--line);
  content: "/";
}

/* ============== PROGRES BAR READ ============== */
.read-progress {
  position: sticky;
  top: 0;
  z-index: 1029;
  height: 3px;
  background: transparent;
}

.read-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sea), var(--gold));
  transition: width 0.1s linear;
}

/* ============== ARTICLE HEADER ============== */
.article-header {
  padding-bottom: 1rem;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--article-cat, var(--ink));
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.28;
  max-width: 26ch;
  text-wrap: balance;
  margin-bottom: 1.1rem;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.4rem;
    max-width: 22ch;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
}

.author-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.meta-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ============== SHARE BUTTONS ============== */
.share-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-card);
  font-size: 1rem;
}

.share-btn:hover {
  background: var(--sea-tint);
  color: var(--sea-dark);
  border-color: var(--sea-tint);
}

.share-btn.wa:hover {
  background: #E7F6EC;
  color: #1F9C4A;
  border-color: #E7F6EC;
}

.share-btn.fb:hover {
  background: #E7EEF9;
  color: #1C5CB8;
  border-color: #E7EEF9;
}

.share-btn.x:hover {
  background: #EDEDED;
  color: #111;
  border-color: #EDEDED;
}

/* ============== ARTICLE HERO IMAGE ============== */
.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sea-tint);
  margin-bottom: 0.5rem;
}

.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.img-caption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

/* ============== ARTICLE BODY ============== */
.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 70ch;
}

.article-body p {
  margin-bottom: 1.35em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 1.6em 0 0.7em;
  color: var(--ink);
}

.article-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.15rem;
  margin: 1.5em 0;
}

.article-body figure {
  margin: 1.6em 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.article-body figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.article-body strong {
  color: var(--ink);
}

/* ============== TAGS ============== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
  max-width: 70ch;
}

.tag-pill {
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sea-dark);
  background: var(--sea-tint);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
}

.tag-pill:hover {
  background: var(--sea);
  color: #fff;
}

/* ============== SHARE BLOCK (BAWAH) ============== */
.share-block {
  max-width: 70ch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.share-block-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
}

.share-block-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

/* ============== BERITA TERKAIT ============== */
.related-wrap {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.related-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.related-scroll::-webkit-scrollbar {
  display: none;
}

.related-card {
  flex: 0 0 240px;
}

.related-card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sea-tint);
  margin-bottom: 0.55rem;
}

.related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-cat {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  display: block;
}

.related-card .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink);
}

.related-card .title:hover {
  color: var(--sea-dark);
}

@media (min-width: 768px) {
  .related-scroll {
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .related-card {
    flex: 1 1 30%;
  }
}

/* ============== STICKY SHARE (MOBILE) ============== */
.sticky-share {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 1040;
  background: var(--paper-card);
  border-top: 1px solid var(--line);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: bottom 0.25s ease;
  box-shadow: 0 -4px 12px rgba(16, 51, 60, 0.08);
}

.sticky-share.show {
  bottom: 0;
}

.sticky-share .label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ============== MODAL COPY LINK ============== */
.modal-content {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.copy-link-input {
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--paper);
}

.copy-feedback {
  font-size: 0.8rem;
  color: var(--sea-dark);
  min-height: 1.2em;
}
 
 #ckContent {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        line-height: 1.8;
        color: #333;
        font-size: 1.05rem;
    }

    /* ============== PARAGRAPH, BOLD, ITALIC ============== */
    #ckContent p {
        margin-bottom: 1.25rem;
    }

    #ckContent strong,
    #ckContent b {
        font-weight: 700;
        color: #1a1a1a;
    }

    #ckContent em,
    #ckContent i {
        font-style: italic;
        color: #444;
    }

    /* ============== HEADINGS ============== */
    #ckContent h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin: 2.5rem 0 1rem;
        color: #1a1a1a;
        line-height: 1.3;
    }

    #ckContent h3 {
        font-size: 1.35rem;
        font-weight: 700;
        margin: 2rem 0 0.85rem;
        color: #222;
        line-height: 1.3;
    }

    #ckContent h4 {
        font-size: 1.15rem;
        font-weight: 700;
        margin: 1.5rem 0 0.75rem;
        color: #333;
    }

    /* ============== BULLETED & NUMBERED LIST ============== */
    #ckContent ul,
    #ckContent ol {
        margin: 1.25rem 0 1.25rem 1.5rem;
        padding-left: 1.5rem;
    }

    #ckContent ul {
        list-style-type: disc;
    }

    #ckContent ol {
        list-style-type: decimal;
    }

    #ckContent ul li,
    #ckContent ol li {
        margin-bottom: 0.5rem;
        padding-left: 0.25rem;
    }

    #ckContent ul ul,
    #ckContent ol ol,
    #ckContent ul ol,
    #ckContent ol ul {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* ============== LINK ============== */
    #ckContent a {
        color: #0d6efd;
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1.5px;
        transition: all 0.2s ease;
        word-break: break-word;
        cursor: pointer;
    }

    #ckContent a:hover {
        color: #0a58ca;
        text-decoration: none;
        background: rgba(13, 110, 253, 0.06);
        border-radius: 2px;
    }

    #ckContent a:visited {
        color: #6610f2;
    }

    /* ============== BLOCKQUOTE ============== */
    #ckContent blockquote {
        margin: 1.75rem 0;
        padding: 1.25rem 1.5rem;
        border-left: 4px solid var(--sea, #10333C);
        background: #f8f9fa;
        border-radius: 0 8px 8px 0;
        font-style: italic;
        color: #555;
    }

    #ckContent blockquote p:last-child {
        margin-bottom: 0;
    }

    #ckContent blockquote cite {
        display: block;
        margin-top: 0.75rem;
        font-size: 0.9rem;
        font-style: normal;
        color: #777;
    }

    #ckContent blockquote cite::before {
        content: "— ";
    }

    /* ============== TABLE ============== */
    #ckContent figure.table {
        display: block;
        width: 100%;
        margin: 1.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #ckContent figure.table table {
        display: table;
        width: 100%;
        min-width: 100%;
        border-collapse: collapse;
        margin: 0;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    #ckContent table thead,
    #ckContent table thead tr {
        background: var(--sea, #10333C);
        color: #fff;
    }

    #ckContent table th,
    #ckContent table td {
        padding: 0.75rem 1rem;
        border: 1px solid #dee2e6;
        text-align: left;
        vertical-align: top;
    }

    #ckContent table th {
        font-weight: 600;
        white-space: nowrap;
    }

    #ckContent table tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

    #ckContent table tbody tr:hover {
        background: #e9ecef;
    }

    /* ============== MEDIA EMBED ============== */
    #ckContent oembed {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #f1f3f5;
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    #ckContent figure.media {
        position: relative;
        width: 100%;
        margin: 1.5rem 0;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        border-radius: 8px;
        background: #f1f3f5;
    }

    /* Iframe hasil render JS */
    #ckContent figure.media iframe,
    #ckContent figure.media video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 8px;
    }

    /* Iframe umum */
    #ckContent iframe {
        max-width: 100%;
        border: none;
        border-radius: 8px;
        display: block;
        margin: 1.5rem auto;
    }

    #ckContent iframe[src*="youtube"],
    #ckContent iframe[src*="youtu.be"],
    #ckContent iframe[src*="vimeo"] {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    #ckContent video,
    #ckContent embed,
    #ckContent object {
        max-width: 100%;
        border-radius: 8px;
        display: block;
        margin: 1.5rem auto;
    }

    /* ============== GAMBAR ============== */
    #ckContent img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        max-height: 75vh;
        width: auto;
        object-fit: contain;
    }

    #ckContent>img,
    #ckContent p>img:only-child {
        display: block;
        margin: 1.75rem auto;
    }

    #ckContent figure,
    #ckContent figure.image {
        margin: 1.75rem auto;
        max-width: 100%;
        text-align: center;
        display: table;
    }

    #ckContent figure img,
    #ckContent figure.image img {
        margin: 0 auto;
    }

    #ckContent figure figcaption,
    #ckContent figure.image figcaption {
        display: table-caption;
        caption-side: bottom;
        font-size: 0.85rem;
        color: var(--muted, #6b7785);
        margin-top: 0.5rem;
        font-style: italic;
        text-align: center;
    }

    #ckContent .image-style-align-center,
    #ckContent figure.image-style-align-center {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    #ckContent figure.image-style-side,
    #ckContent figure.image-style-align-right,
    #ckContent figure.image-style-block-align-right,
    #ckContent .image-style-align-right {
        float: right;
        max-width: 45%;
        margin: 0.25rem 0 1.25rem 1.75rem;
    }

    #ckContent figure.image-style-align-left,
    #ckContent figure.image-style-block-align-left,
    #ckContent .image-style-align-left {
        float: left;
        max-width: 45%;
        margin: 0.25rem 1.75rem 1.25rem 0;
    }

    #ckContent figure.image-style-side {
        max-width: 35%;
    }

    #ckContent::after {
        content: "";
        display: table;
        clear: both;
    }

    #ckContent h2,
    #ckContent h3,
    #ckContent h4,
    #ckContent blockquote,
    #ckContent .image-style-align-center,
    #ckContent figure.image-style-align-center {
        clear: both;
    }

    /* ============== CODE/PRE ============== */
    #ckContent code {
        background: #f1f3f5;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        font-family: 'SF Mono', Monaco, monospace;
        font-size: 0.9em;
        color: #d63384;
    }

    #ckContent pre {
        background: #1e1e1e;
        color: #d4d4d4;
        padding: 1.25rem;
        border-radius: 8px;
        overflow-x: auto;
        margin: 1.5rem 0;
        font-family: 'SF Mono', Monaco, monospace;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    #ckContent pre code {
        background: none;
        padding: 0;
        color: inherit;
    }

    #ckContent hr {
        border: none;
        border-top: 2px solid #e9ecef;
        margin: 2rem 0;
    }

    /* ============== RESPONSIVE ============== */
    @media (max-width: 767.98px) {
        #ckContent {
            font-size: 1rem;
            line-height: 1.75;
        }

        #ckContent h2 {
            font-size: 1.35rem;
        }

        #ckContent h3 {
            font-size: 1.15rem;
        }

        #ckContent figure.table {
            margin: 1.25rem 0;
        }

        #ckContent table th,
        #ckContent table td {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }

        #ckContent blockquote {
            padding: 1rem 1.25rem;
        }

        #ckContent ul,
        #ckContent ol {
            margin-left: 0.75rem;
            padding-left: 1.25rem;
        }

        #ckContent img {
            float: none !important;
            max-width: 100% !important;
            max-height: 45vh;
            width: auto !important;
            display: block;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        #ckContent figure,
        #ckContent figure.image,
        #ckContent figure.image-style-side,
        #ckContent figure.image-style-align-left,
        #ckContent figure.image-style-align-right,
        #ckContent .image-style-align-left,
        #ckContent .image-style-align-right {
            float: none;
            max-width: 100%;
            width: 100%;
            margin: 1.5rem 0;
        }

        #ckContent figure.media {
            padding-bottom: 56.25%;
        }
    }
