/* =========================================================
   CV. SIMPATI TRANS — Halaman Artikel (artikel.css)
   CSS khusus halaman daftar artikel & halaman baca artikel.
   Komponen umum (tombol, section, footer, navbar, blog-card)
   tetap dari css/style.css.
   ========================================================= */

/* ---------- Progress bar atas ---------- */
.scroll-prog {
  position: fixed; top: 0; left: 0;
  height: 4px; width: 0;
  background: var(--grad-red);
  border-radius: 0 4px 4px 0;
  z-index: 9999;
  transition: width .1s linear;
}

/* ---------- Hero halaman ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: left;
  padding: 4.6rem 0 5.6rem;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/ikon makassar lanscape.jpg") center/cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1) brightness(.95);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(2,21,51,.93) 8%, rgba(3,31,78,.72) 50%, rgba(7,70,176,.32) 100%),
    linear-gradient(to top, rgba(2,21,51,.75), transparent 55%);
}
.page-hero-grid { position: relative; z-index: 3; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: .7rem; }
.page-hero p { color: #cfe0ff; max-width: 640px; font-size: 1.02rem; }

.page-hero-blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-hero-blobs span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .45; }
.page-hero-blobs span:nth-child(1) { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #ff8a3d, #810404); top: -70px; left: -40px; animation: floaty 9s ease-in-out infinite; }
.page-hero-blobs span:nth-child(2) { width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #4f8dff, #01218f); bottom: -50px; right: 10%; animation: floaty 7s ease-in-out infinite 1s; }
.page-hero-blobs span:nth-child(3) { width: 80px;  height: 80px;  background: radial-gradient(circle at 30% 30%, #ffd166, #f8430a); top: 28%; right: 28%; animation: floaty 11s ease-in-out infinite .5s; }

.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #9fc1ff; font-weight: 600; margin-bottom: 1rem;
}
.breadcrumb a { color: #cfe0ff; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .55; }

.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 60c180 32 360 32 720 0s540-32 720 0v30H0V60z'/%3E%3Cpath fill='%23ffffff' opacity='.55' d='M0 74c240 22 480 22 720 0s480-22 720 0v16H0V74z'/%3E%3C/svg%3E") bottom center/100% 100% no-repeat;
  pointer-events: none;
}

/* =========================================================
   TOOLBAR: pencarian + filter kategori
   ========================================================= */
.art-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2.4rem;
}
.art-search {
  position: relative; flex: 1 1 320px; max-width: 420px;
}
.art-search svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.art-search input {
  width: 100%; padding: .85rem 3.2rem .85rem 2.8rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .92rem; color: var(--ink);
  background: #fff; transition: .25s;
}
.art-search input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7,70,176,.1);
}
.art-search-submit {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--grad-red); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: .25s;
}
.art-search-submit:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 6px 14px rgba(129,4,4,.3); }
.art-search-submit svg { width: 16px; height: 16px; position: static; transform: none; color: currentColor; }
.art-sort-form { display: flex; align-items: center; gap: .55rem; }
.art-sort-form label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.art-sort-form select {
  padding: .65rem 1rem; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: .86rem; font-weight: 600; color: var(--navy-2);
  cursor: pointer;
}
.art-sort-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,70,176,.1); }
.art-filters-wrap { margin: -1.1rem 0 2.4rem; }
.art-filters { display: flex; gap: .55rem; flex-wrap: wrap; }
.art-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--navy-2);
  cursor: pointer; transition: .25s;
}
.art-chip svg { width: 15px; height: 15px; }
.art-chip:hover { border-color: var(--blue); color: var(--blue); }
.art-chip.active {
  background: var(--grad-red); color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(129,4,4,.28);
}

/* ---------- Grid artikel ---------- */
.art-grid .blog-media { display: block; }
.art-grid .blog-body h3 a { color: inherit; }
.art-grid .blog-body h3 a:hover { color: var(--navy-2); }
.blog-card.is-hidden { display: none; }

/* highlight kata kunci hasil pencarian */
mark.art-hit { background: #ffe6a8; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Pesan kosong ---------- */
.art-empty {
  text-align: center; padding: 3.5rem 1rem; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: #fff;
}
.art-empty svg { width: 46px; height: 46px; color: var(--blue); opacity: .6; }
.art-empty h3 { color: var(--navy); margin: .9rem 0 .35rem; }

/* ---------- Blok & kartu unggulan ---------- */
.art-block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.art-block-head h2 { margin: .2rem 0 0; }
.art-block-head p { color: var(--muted); font-size: .92rem; max-width: 480px; margin: 0; }
.art-block-head .eyebrow { display: inline-block; }
.art-featured-block { margin-bottom: 3.2rem; }
.art-featured {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.4rem;
  align-items: stretch;
}
.art-featured .blog-card { height: 100%; display: flex; flex-direction: column; }
.art-featured .blog-body { flex: 1; }
.art-feat-main { grid-row: span 2; }
.art-feat-main .blog-media { height: 330px; }
.art-feat-mini .blog-media { height: 138px; }
.art-feat-mini .blog-body { padding: 1.9rem 1.1rem 1.1rem; }
.art-feat-mini .blog-body p { display: none; }
.art-feat-mini .blog-body h3 { font-size: 1rem; line-height: 1.45; }
.art-feat-mini .blog-more { font-size: .8rem; margin-top: .4rem; }

/* ---------- Pagination server-side ---------- */
.art-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem;
}
.art-page-numbers { display: flex; gap: .4rem; flex-wrap: wrap; }
.art-page-btn, .art-page-num {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  color: var(--navy-2); font-size: .84rem; font-weight: 700;
  transition: .25s;
}
.art-page-btn svg { width: 15px; height: 15px; }
.art-page-btn:hover, .art-page-num:hover { border-color: var(--blue); color: var(--blue); }
.art-page-num.active {
  background: var(--grad-red); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(129,4,4,.25);
}
.art-page-btn.is-disabled { opacity: .4; pointer-events: none; }

/* =========================================================
   HALAMAN BACA ARTIKEL (single)
   ========================================================= */
.read-wrap { max-width: 860px; margin: 0 auto; }

/* ---------- Notifikasi pratinjau admin ---------- */
.preview-note {
  display: flex; align-items: center; gap: .55rem;
  max-width: 860px; margin: 0 auto 1.4rem;
  padding: .8rem 1.1rem; border-radius: 12px;
  background: #fff8e6; border: 1px solid #f3d99b;
  color: #7a5200; font-size: .88rem; font-weight: 600;
}
.preview-note svg { width: 17px; height: 17px; flex: none; }

.read-meta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem; margin-bottom: 1.6rem;
}
.read-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.read-meta svg { width: 15px; height: 15px; color: var(--blue); }
.read-tag {
  display: inline-block; background: rgba(7,70,176,.09); color: var(--blue);
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

.read-hero-img {
  width: 100%; height: clamp(220px, 42vw, 400px); object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 2.2rem;
  box-shadow: var(--shadow-lg); display: block;
}

.read-wrap article p { margin-bottom: 1.1rem; line-height: 1.85; color: #2a3550; }
.read-wrap article h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--navy);
  margin: 2.4rem 0 .9rem; padding-left: .9rem;
  border-left: 4px solid var(--red); line-height: 1.3;
}
.read-wrap article h3 { font-size: 1.15rem; color: var(--navy-2); margin: 1.8rem 0 .6rem; }
.read-wrap article ul, .read-wrap article ol { margin: 0 0 1.2rem 1.4rem; }
.read-wrap article li { margin-bottom: .55rem; line-height: 1.75; color: #2a3550; }
.read-wrap article a { color: var(--blue); font-weight: 600; }
.read-wrap article a:hover { text-decoration: underline; }
.read-wrap article strong { color: var(--navy); }

.read-lead {
  font-size: 1.12rem; color: var(--navy-2) !important; font-weight: 500;
  line-height: 1.8; border-left: 4px solid var(--gold);
  padding-left: 1.1rem; margin-bottom: 1.8rem !important;
}

/* kotak info / tips di dalam artikel */
.read-box {
  background: linear-gradient(135deg, #f4f7ff, #eaf1ff);
  border: 1px solid #d8e3ff; border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 1.8rem 0;
}
.read-box h3 { margin-top: 0 !important; display: flex; align-items: center; gap: .5rem; }
.read-box h3 svg { width: 20px; height: 20px; color: var(--red); }
.read-box ul { margin-bottom: 0 !important; }

/* tabel sederhana (mis. daftar armada / tarif) */
.read-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem; }
.read-table th, .read-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.read-table th { background: var(--navy); color: #fff; font-weight: 600; }
.read-table tr:nth-child(even) td { background: #f7f9ff; }

/* CTA dalam artikel */
.read-cta {
  background: linear-gradient(120deg, #021533, #0746b0);
  color: #fff; border-radius: var(--radius-lg);
  padding: 2.2rem 2rem; margin: 2.6rem 0; text-align: center;
}
.read-cta h3 { color: #fff !important; margin: 0 0 .5rem !important; font-size: 1.4rem; }
.read-cta p { color: #cfe0ff !important; margin-bottom: 1.3rem !important; }
.read-cta .btn-row { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* bagikan */
.read-share { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 2rem 0; }
.read-share span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.read-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #eef2fb; color: var(--navy-2); transition: .25s;
}
.read-share a:hover { background: var(--grad-red); color: #fff; transform: translateY(-3px); }
.read-share a svg { width: 17px; height: 17px; }
.read-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #eef2fb; color: var(--navy-2); cursor: pointer; transition: .25s;
}
.read-copy:hover { background: var(--grad-red); color: #fff; transform: translateY(-3px); }
.read-copy svg { width: 17px; height: 17px; }

/* ---------- Cover fallback ---------- */
.read-hero-fallback { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.read-hero-fallback svg { width: 100%; height: 100%; }

/* ---------- Daftar isi ---------- */
.read-toc {
  background: linear-gradient(135deg, #f7f9ff, #eef4ff);
  border: 1px solid #dce6fa; border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem; margin: 0 0 2.2rem;
}
.read-toc-head {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: 1.02rem; margin-bottom: .7rem;
}
.read-toc-head svg { width: 18px; height: 18px; color: var(--red); }
.read-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 1.6rem; }
.read-toc li { break-inside: avoid; margin-bottom: .45rem; font-size: .9rem; }
.read-toc li.toc-lv3 { list-style: circle; margin-left: .9rem; font-size: .85rem; }
.read-toc a { color: var(--navy-2); font-weight: 600; }
.read-toc a:hover { color: var(--red); }
.read-toc a.is-active { color: var(--red); }
.read-toc a.is-active::before { content: "▸ "; }

/* ---------- Isi artikel ---------- */
.read-content { font-size: 1.02rem; }
.read-content h2, .read-content h3 { scroll-margin-top: 110px; }
.read-content p { line-height: 1.85; }
.read-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; display: block; }
.read-content blockquote {
  margin: 1.6rem 0; padding: 1rem 1.4rem;
  border-left: 4px solid var(--gold); background: #fbf7ec;
  border-radius: 0 var(--radius) var(--radius) 0; color: #4b3a12;
}
.read-content blockquote p:last-child { margin-bottom: 0; }
.read-content figure { margin: 1.6rem 0; }
.read-content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .45rem; }
.read-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.read-content table {
  width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem;
}
.read-content th, .read-content td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.read-content th { background: var(--navy); color: #fff; font-weight: 600; }
.read-content tr:nth-child(even) td { background: #f7f9ff; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Kartu penulis ---------- */
.read-author {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem; margin: 2.2rem 0 0;
  box-shadow: var(--shadow);
}
.ra-avatar {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-red); color: #fff;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 800;
}
.read-author strong { display: block; color: var(--navy); font-size: 1rem; }
.read-author span { display: block; font-size: .78rem; color: var(--red); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: .15rem 0 .45rem; }
.read-author p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Navigasi prev / next ---------- */
.read-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.read-pager-item {
  display: block; padding: 1rem 1.2rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; transition: .25s;
}
.read-pager-item:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.read-pager-item span {
  display: flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .35rem;
}
.read-pager-item span svg { width: 13px; height: 13px; }
.read-pager-item b { display: block; font-size: .92rem; color: var(--navy); line-height: 1.45; font-family: var(--font-head); }
.read-pager-next { text-align: right; }
.read-pager-next span { justify-content: flex-end; }

/* ---------- Toast salin tautan ---------- */
.read-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: .75rem 1.2rem;
  border-radius: 999px; font-size: .86rem; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: .3s; z-index: 9999; max-width: calc(100vw - 32px); text-align: center;
}
.read-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* artikel terkait */
.read-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* responsive */
@media (max-width: 980px) {
  .read-next { grid-template-columns: 1fr 1fr; }
  .art-featured { grid-template-columns: 1fr 1fr; }
  .art-feat-main { grid-row: auto; grid-column: span 2; }
  .art-feat-main .blog-media { height: 280px; }
}
@media (max-width: 760px) {
  .art-toolbar { flex-direction: column; align-items: stretch; }
  .art-search { max-width: none; flex: 0 0 auto; }
  .art-sort-form { justify-content: space-between; }
  .art-featured { grid-template-columns: 1fr; }
  .art-feat-main { grid-column: auto; }
  .art-feat-main .blog-media, .art-feat-mini .blog-media { height: 210px; }
  .art-feat-mini .blog-body p { display: block; }
  .art-feat-mini .blog-body { padding: 2.1rem 1.2rem 1.3rem; }
  .read-next { grid-template-columns: 1fr; }
  .read-wrap article h2 { margin-top: 1.9rem; }
  .read-share a, .read-copy { width: 44px; height: 44px; }
  .read-toc ol { columns: 1; }
  .read-pager { grid-template-columns: 1fr; }
  .read-pager-next { text-align: left; }
  .read-pager-next span { justify-content: flex-start; }
  .art-pager { justify-content: center; }
  .art-page-btn { flex: 1 1 auto; justify-content: center; }
  .table-scroll { margin: 1.6rem 0; }
  .table-scroll .read-table { margin: 0; }
}
