/* ==========================================================
   PATUNO RESORT — Blog / Artikel
   ========================================================== */

.header--solid {
  height: 70px;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  color: var(--ocean-800);
  box-shadow: 0 1px 0 rgba(11,42,49,.08);
}
.header--solid .lang-switch { border-color: rgba(11,42,49,.18); }
.header--solid.menu-open .lang-switch { border-color: rgba(255,255,255,.35); }

.blog { padding-top: 70px; padding-bottom: clamp(60px, 8vw, 110px); }

.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--coral); }
.crumbs strong { color: var(--ocean-800); font-weight: 600; }
.crumbs span { opacity: .4; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--sand-100); color: var(--ocean-700);
}
.chip--accent { background: rgba(217,130,91,.14); color: var(--coral-d); }
.chip--accent::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ---------- Index ---------- */
.blog-hero { padding-top: 32px; padding-bottom: 40px; }
.blog-hero .title { max-width: 820px; margin-bottom: 16px; }
.blog-hero__lead { font-size: 18px; max-width: 640px; }

.blog-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.blog-cats a {
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--sand-200); color: var(--ocean-700); background: var(--white);
  transition: background .3s, color .3s, border-color .3s;
}
.blog-cats a:hover { border-color: var(--coral); color: var(--coral-d); }
.blog-cats a.is-active { background: var(--ocean-800); border-color: var(--ocean-800); color: var(--white); }

.blog-empty { padding: 60px 0; text-align: center; font-size: 17px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.post-grid--3 { margin-top: 10px; }

.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(11,42,49,.06); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-100); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__ph { display: grid; place-items: center; height: 100%; color: var(--sand-200); }
.post-card__ph svg { width: 70px; }
.post-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post-card__cat { color: var(--coral-d); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; margin-right: 4px; }
.post-card__title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--ocean-800); margin-bottom: 10px; }
.post-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.post-card__title a:hover { background-size: 100% 1px; }
.post-card__excerpt { font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ocean-800); }
.post-card__more svg { width: 16px; transition: transform .35s var(--ease); }
.post-card__more:hover { color: var(--coral-d); }
.post-card__more:hover svg { transform: translateX(4px); }

.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
.post-card--featured .post-card__body { flex: 1; padding: clamp(28px, 4vw, 52px); justify-content: center; }
.post-card--featured .post-card__title { font-size: clamp(30px, 3.4vw, 44px); }
.post-card--featured .post-card__excerpt { font-size: 16.5px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 56px; }
.pager__btn { padding: 11px 22px; border-radius: 100px; border: 1px solid var(--sand-200); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ocean-800); }
.pager__btn:hover { border-color: var(--coral); color: var(--coral-d); }
.pager__info { font-size: 14px; color: var(--muted); }

/* ---------- Detail ---------- */
.post-preview { background: #fff4d6; color: #7a5300; text-align: center; padding: 10px 20px; font-size: 14px; font-weight: 600; }

.post-head { padding-top: 32px; max-width: 900px; }
.post-head__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.015em;
  color: var(--ocean-800); margin: 16px 0 18px;
}
.post-head__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ocean-700); line-height: 1.6; margin-bottom: 20px; max-width: 760px; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 14px; color: var(--muted); }
.post-head__meta strong { color: var(--ink); font-weight: 600; }
.post-head__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand-200); }

.post-cover { margin-top: 34px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.post-cover__credit { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: right; }
.post-cover__credit a { text-decoration: underline; text-underline-offset: 2px; }
.post-cover__credit a:hover { color: var(--coral-d); }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; }

.post-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: clamp(30px, 5vw, 80px); justify-content: center; margin-top: clamp(36px, 5vw, 64px); }
.post-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 26px; }

.toc details { border-left: 2px solid var(--sand-200); padding-left: 18px; }
.toc summary { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-d); cursor: pointer; list-style: none; margin-bottom: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: grid; gap: 8px; }
.toc a { font-size: 14px; line-height: 1.45; color: var(--muted); display: block; transition: color .25s; }
.toc a:hover, .toc a.is-active { color: var(--ocean-800); }
.toc a.is-active { font-weight: 600; }
.toc__l3 { padding-left: 14px; }
.toc__l3 a { font-size: 13px; }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sand-200); font-size: 12px; font-weight: 700; color: var(--ocean-800); background: var(--white); transition: background .3s, color .3s, border-color .3s; }
.share a:hover, .share button:hover { background: var(--ocean-800); color: var(--white); border-color: var(--ocean-800); }

/* Isi artikel */
.prose { font-size: 18px; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: #33403f; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 38px); line-height: 1.15; color: var(--ocean-800); margin-top: 1.9em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--ocean-800); margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h4 { font-size: 18px; font-weight: 700; color: var(--ocean-800); margin-top: 1.4em; }
.prose a { color: var(--coral-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ocean-800); }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--coral); }
.prose img { border-radius: var(--radius-sm); height: auto; margin-inline: auto; }
.prose figure figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose blockquote { border-left: 3px solid var(--coral); padding: 6px 0 6px 24px; font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1.45; color: var(--ocean-700); }
.prose blockquote p { color: inherit; }
.prose hr { border: 0; height: 1px; background: var(--sand-200); margin: 2.4em 0; }
.prose code { background: var(--sand-100); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--sand-200); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--ocean-800); font-weight: 700; background: var(--sand-100); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2.4em !important; font-size: 14px; color: var(--muted); }
.post-tag { padding: 5px 12px; border-radius: 100px; background: var(--sand-100); color: var(--ocean-700); font-weight: 600; font-size: 13px; }

.post-cta { margin-top: 3em !important; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--ocean-800); color: var(--white); }
.post-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; color: var(--white); margin: 0 0 10px; }
.post-cta p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 22px; }
.post-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.post-cta .btn { text-decoration: none; }
.post-cta .btn--accent { color: var(--white); }
.post-cta .btn--light { color: var(--ocean-800); }

.post-related { margin-top: clamp(70px, 9vw, 120px); }

/* Beranda: artikel terbaru */
.home-posts .post-grid { margin-top: 0; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-aside { position: static; order: -1; }
  .toc details:not([open]) { padding-bottom: 0; }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .prose { font-size: 17px; }
  .post-cover { width: 100%; }
  .post-cover img { border-radius: 0; }
}
