/* =====================================================================
   PURI11.COM — halaman publik News & Artikel
   Mengikuti identitas website existing: emas #AD8A4E / #DBBF75,
   teks cokelat #574C2E, kartu putih, font Geologica + Poppins.
   ===================================================================== */

.news-page {
  font-family: 'Poppins', 'Geologica', Arial, sans-serif;
  color: #38322A;
  padding-bottom: 10px;
}

/* ---------- Hero / judul halaman ---------- */
.news-hero {
  position: relative;
  padding: 58px 0 34px;
  text-align: center;
}
.news-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(219, 191, 117, .20), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
.news-hero__eyebrow {
  position: relative;
  font-size: 11px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: #AD8A4E;
  font-weight: 500;
  margin-bottom: 12px;
}
.news-hero h1 {
  position: relative;
  font-family: 'Geologica', Arial, sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -.5px;
  color: #AD8A4E;
  margin: 0 0 12px;
}
.news-hero p {
  position: relative;
  font-size: 14px;
  color: #6E6353;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.news-hero__line {
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, #DBBF75, #AD8A4E);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ---------- Toolbar: search + kategori ---------- */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 26px;
}
.news-search {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.news-search input {
  width: 100%;
  border: 1px solid #E7E0D3;
  border-radius: 40px;
  padding: 11px 18px 11px 42px;
  font-family: inherit;
  font-size: 13.5px;
  color: #38322A;
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.news-search input::placeholder { color: #A79E8F; }
.news-search input:focus { border-color: #DBBF75; box-shadow: 0 0 0 3px rgba(219, 191, 117, .22); }
.news-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #AD8A4E;
  font-size: 13px;
}

.news-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.news-chip {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 40px;
  border: 1px solid #E7E0D3;
  background: #fff;
  color: #574C2E;
  font-size: 12.5px;
  text-decoration: none;
  transition: all .16s;
  white-space: nowrap;
}
.news-chip:hover { border-color: #DBBF75; color: #8C6D38; background: #FFFDF8; }
.news-chip.is-on { background: #2A2520; border-color: #2A2520; color: #F5EFE2; }

.news-count { font-size: 12.5px; color: #8A8175; }
.news-count strong { color: #574C2E; }

/* ---------- Featured ---------- */
.news-featured {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: #fff;
  border: 1px solid #EDE6D8;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: 0 2px 4px rgba(42, 37, 32, .03), 0 24px 50px -34px rgba(42, 37, 32, .28);
}
.news-featured__media {
  position: relative;
  min-height: 320px;
  background: #F1ECE1;
  overflow: hidden;
}
.news-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.news-featured:hover .news-featured__media img { transform: scale(1.03); }
.news-featured__body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #AD8A4E;
  font-weight: 600;
  margin-bottom: 14px;
}
.news-featured__label::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: #DBBF75;
}
.news-featured h2 {
  font-family: 'Geologica', Arial, sans-serif;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 600;
  color: #3B3323;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}
.news-featured h2 a { color: inherit; text-decoration: none; }
.news-featured h2 a:hover { color: #8C6D38; }
.news-featured p {
  font-size: 13.8px;
  line-height: 1.75;
  color: #6E6353;
  margin: 0 0 22px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: #8A8175;
}
.news-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-meta i { color: #B39B5E; font-size: 11px; }
.news-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #D9CFBB; }

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #574C2E;
  text-decoration: none;
  margin-top: 20px;
}
.news-link i { transition: transform .2s; font-size: 11px; }
.news-link:hover { color: #AD8A4E; }
.news-link:hover i { transform: translateX(4px); }

/* ---------- Grid kartu ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid #EDE6D8;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: #E3D6BC;
  box-shadow: 0 18px 36px -22px rgba(42, 37, 32, .30);
}
.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F1ECE1;
  display: block;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(42, 37, 32, .82);
  color: #F2E7CF;
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.news-card__cat:hover { background: #AD8A4E; color: #fff; }
.news-card__body {
  padding: 18px 19px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__date {
  font-size: 11px;
  color: #9A9083;
  margin-bottom: 7px;
  letter-spacing: .2px;
}
.news-card h3 {
  font-family: 'Geologica', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 500;
  margin: 0 0 9px;
  color: #3B3323;
}
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: #8C6D38; }
.news-card__excerpt {
  font-size: 12.6px;
  line-height: 1.68;
  color: #7B7265;
  margin: 0 0 16px;
  flex: 1;
}
.news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #F2EDE3;
  padding-top: 12px;
  margin-top: auto;
  font-size: 11px;
  color: #9A9083;
}
.news-card__more {
  font-size: 11.5px;
  font-weight: 600;
  color: #574C2E;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.news-card__more i { font-size: 9px; transition: transform .2s; }
.news-card__more:hover { color: #AD8A4E; }
.news-card__more:hover i { transform: translateX(3px); }

/* ---------- Pagination ---------- */
.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 42px 0 12px;
  flex-wrap: wrap;
}
.news-pager a, .news-pager span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid #E7E0D3;
  background: #fff;
  color: #574C2E;
  text-decoration: none;
  font-size: 13px;
  transition: all .16s;
}
.news-pager a:hover { border-color: #DBBF75; color: #8C6D38; background: #FFFDF8; }
.news-pager .is-on { background: #2A2520; border-color: #2A2520; color: #F5EFE2; }
.news-pager .is-off { opacity: .4; pointer-events: none; }

/* ---------- Empty state ---------- */
.news-empty {
  text-align: center;
  padding: 70px 20px;
  background: #fff;
  border: 1px solid #EDE6D8;
  border-radius: 16px;
}
.news-empty i { font-size: 34px; color: #D9CFBB; display: block; margin-bottom: 14px; }
.news-empty h3 { font-family: 'Geologica'; font-size: 18px; color: #574C2E; margin: 0 0 8px; }
.news-empty p { font-size: 13px; color: #8A8175; margin: 0 0 18px; }

/* =====================================================================
   Halaman detail artikel
   ===================================================================== */
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: #9A9083;
  padding: 26px 0 0;
}
.article-breadcrumb a { color: #8A8175; text-decoration: none; }
.article-breadcrumb a:hover { color: #AD8A4E; }
.article-breadcrumb i { font-size: 8px; }

.article-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 0 30px;
}
.article-head__cat {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #AD8A4E;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px;
}
.article-head h1 {
  font-family: 'Geologica', Arial, sans-serif;
  font-size: 36px;
  line-height: 1.26;
  font-weight: 600;
  letter-spacing: -.6px;
  color: #2E2A22;
  margin: 0 0 16px;
}
.article-head__excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: #6E6353;
  max-width: 680px;
  margin: 0 auto 22px;
}
.article-head .news-meta { justify-content: center; }

.article-hero {
  max-width: 1088px;
  margin: 0 auto 36px;
  border-radius: 18px;
  overflow: hidden;
  background: #F1ECE1;
}
.article-hero img {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  display: block;
}
.article-hero figcaption {
  font-size: 11.5px;
  color: #8A8175;
  padding: 10px 16px;
  text-align: center;
  background: #FCFAF5;
  border-top: 1px solid #F0EAE0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 260px;
  gap: 48px;
  justify-content: center;
  align-items: start;
}

/* Body artikel */
.article-body {
  font-size: 16px;
  line-height: 1.88;
  color: #3C362D;
  word-wrap: break-word;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 20px; }
.article-body h2 {
  font-family: 'Geologica', Arial, sans-serif;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 600;
  color: #2E2A22;
  margin: 40px 0 14px;
  letter-spacing: -.3px;
}
.article-body h3 {
  font-family: 'Geologica', Arial, sans-serif;
  font-size: 19.5px;
  font-weight: 600;
  color: #2E2A22;
  margin: 32px 0 12px;
}
.article-body h4 { font-size: 17px; margin: 26px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body li::marker { color: #AD8A4E; }
.article-body a { color: #8C6D38; text-decoration: underline; text-decoration-color: rgba(173, 138, 78, .4); text-underline-offset: 3px; }
.article-body a:hover { color: #6E5527; text-decoration-color: #8C6D38; }
.article-body strong { color: #2E2A22; font-weight: 600; }
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  background: #FCF8EF;
  border-left: 3px solid #DBBF75;
  border-radius: 0 12px 12px 0;
  font-size: 16.5px;
  font-style: italic;
  color: #574C2E;
  line-height: 1.75;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 24px auto; }
.article-body figure { margin: 28px 0; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption { font-size: 12px; color: #8A8175; text-align: center; margin-top: 9px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
  background: #fff;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #EDE6D8;
}
.article-body thead th {
  background: #FAF6EC;
  color: #574C2E;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .3px;
  text-align: left;
}
.article-body th, .article-body td { border-bottom: 1px solid #F0EAE0; padding: 11px 14px; }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body iframe { max-width: 100%; border-radius: 12px; margin: 24px 0; aspect-ratio: 16 / 9; height: auto; }
.article-body pre {
  background: #2A2520;
  color: #EFE6D5;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.article-body code { background: #F4EFE5; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.article-body pre code { background: none; padding: 0; }

/* Tags + share */
.article-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #EDE6D8;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.article-tags a {
  font-size: 11.5px;
  padding: 6px 13px;
  border-radius: 30px;
  background: #F8F4EA;
  color: #6E5527;
  text-decoration: none;
  border: 1px solid #EFE6D2;
}
.article-tags a:hover { background: #EFE5CD; }

.article-share { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.article-share__label { font-size: 11.5px; color: #8A8175; letter-spacing: 1px; text-transform: uppercase; margin-right: 4px; }
.article-share a, .article-share button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #E7E0D3;
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: #6E6353;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all .16s;
}
.article-share a:hover, .article-share button:hover { background: #2A2520; border-color: #2A2520; color: #fff; }

/* Sidebar sticky */
.article-aside { position: sticky; top: 96px; }
.aside-card {
  background: #fff;
  border: 1px solid #EDE6D8;
  border-radius: 14px;
  padding: 20px 20px 18px;
  margin-bottom: 18px;
}
.aside-card h4 {
  font-family: 'Geologica';
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #AD8A4E;
  margin: 0 0 14px;
  font-weight: 600;
}
.aside-article {
  display: flex;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  padding: 9px 0;
  border-bottom: 1px solid #F4EFE6;
}
.aside-article:last-child { border-bottom: none; padding-bottom: 0; }
.aside-article img {
  width: 68px; height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #F1ECE1;
}
.aside-article strong {
  display: block;
  font-size: 12.3px;
  font-weight: 500;
  line-height: 1.45;
  color: #3B3323;
}
.aside-article:hover strong { color: #8C6D38; }
.aside-article span { font-size: 10.5px; color: #9A9083; display: block; margin-top: 3px; }

/* Prev / next */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}
.article-nav a {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #EDE6D8;
  border-radius: 12px;
  text-decoration: none;
  transition: all .18s;
}
.article-nav a:hover { border-color: #DBBF75; box-shadow: 0 14px 30px -22px rgba(42, 37, 32, .4); }
.article-nav .lbl {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #AD8A4E;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.article-nav .ttl { font-family: 'Geologica'; font-size: 14px; line-height: 1.45; color: #3B3323; font-weight: 500; }
.article-nav a.next { text-align: right; }
.article-nav a.next .lbl { justify-content: flex-end; }
.article-nav a.is-empty { opacity: .5; pointer-events: none; }

/* Related */
.related-section { margin-top: 64px; padding-top: 44px; border-top: 1px solid #EDE6D8; }
.related-head { text-align: center; margin-bottom: 28px; }
.related-head h2 {
  font-family: 'Geologica';
  font-size: 22px;
  color: #2E2A22;
  margin: 0 0 6px;
  font-weight: 600;
}
.related-head p { font-size: 12.5px; color: #8A8175; margin: 0; }

/* Preview banner */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #2A2520;
  color: #F5EFE2;
  font-size: 12.5px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.preview-bar .badge-draft { background: #3E382F; color: #DBBF75; }
.preview-bar a { color: #DBBF75; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-aside { position: static; display: none; }
}

@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__media { aspect-ratio: 16 / 9; min-height: 0; }
  .news-featured__body { padding: 26px 24px 30px; }
  .news-featured h2 { font-size: 22px; }
  .news-hero { padding: 40px 0 26px; }
  .news-hero h1 { font-size: 30px; }
  .article-head h1 { font-size: 27px; }
  .article-head__excerpt { font-size: 14px; }
  .article-body { font-size: 15.4px; }
}

@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-hero h1 { font-size: 25px; }
  .news-hero p { font-size: 13px; }
  .news-toolbar { gap: 10px; }
  .news-search { max-width: none; order: 2; }
  .news-chips { order: 1; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; width: 100%; }
  .article-head h1 { font-size: 23px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a.next { text-align: left; }
  .article-nav a.next .lbl { justify-content: flex-start; }
  .article-body h2 { font-size: 21px; }
  .article-body { font-size: 15px; line-height: 1.8; }
  .article-hero { border-radius: 12px; margin-bottom: 24px; }
  .news-pager a, .news-pager span { min-width: 34px; height: 34px; font-size: 12.5px; }
}
