/*
Theme Name: Ollie ERP Child
Theme URI: https://indonesiaerp.com
Description: Child theme Ollie untuk IndonesiaERP: gaya homepage, archive, dan single.
Template: ollie
Version: 1.0.0
Author: Weefer
Text Domain: ollie-erp
*/


/* ===== Enterprise Brief: homepage (slider full width + arsip + sidebar kategori) ===== */
.eb-home {
  --eb-ink: #14202e;
  --eb-muted: #5d6b7a;
  --eb-line: #dde3ea;
  --eb-accent: #1f4fd8;
  --eb-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --eb-hero-h: clamp(320px, 36vw, 520px);
  font-family: var(--eb-font);
  color: var(--eb-ink);
  padding-block: 0 72px;
}
.eb-home a { color: inherit; text-decoration: none; }
.eb-home h1, .eb-home h2, .eb-home h3, .eb-home p, .eb-home li, .eb-home button, .eb-home input,
.eb-home .wp-block-post-title, .eb-home .wp-block-post-date, .eb-home .wp-block-post-terms,
.eb-home .wp-block-post-excerpt { font-family: var(--eb-font); }

/* Lebar: slider full width, konten lain 1160px di tengah */
.eb-home.wp-block-group {
  max-width: none;
  padding-inline: 0;
  margin-left: calc(var(--wp--style--root--padding-left, 0px) * -1);
  margin-right: calc(var(--wp--style--root--padding-right, 0px) * -1);
}
.eb-home > .alignfull { max-width: none; width: 100%; margin-inline: 0; padding: 0; }
.eb-home > :not(.alignfull) {
  box-sizing: border-box;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Opsional: sembunyikan judul "Home" bawaan tema di halaman depan. Hapus kalau tidak perlu. */
.home .entry-title,
.home .wp-block-post-title:not(.eb-title):not(.eb-slide-title) { display: none; }

/* ---------- Slider ---------- */
.eb-home .eb-slider { position: relative; margin: 0 0 56px; }
.eb-home .eb-slider .wp-block-post-template {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.eb-home .eb-slider .wp-block-post-template::-webkit-scrollbar { display: none; }
.eb-home .eb-slider .wp-block-post {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.eb-home .eb-slide {
  position: relative;
  overflow: hidden;
  min-height: var(--eb-hero-h);
  border-radius: 0;
  background: linear-gradient(135deg, #14202e, #1f4fd8);
}
.eb-home .eb-slide .wp-block-post-featured-image { margin: 0; }
.eb-home .eb-slide .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: var(--eb-hero-h) !important;
  aspect-ratio: auto !important;
  object-fit: cover;
}
.eb-home .eb-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 30, 0.85), rgba(10, 18, 30, 0.05) 65%);
  pointer-events: none;
}
.eb-home .eb-slide-info {
  position: absolute;
  left: max(84px, calc((100% - 1160px) / 2 + 20px));
  right: max(84px, calc((100% - 1160px) / 2 + 20px));
  bottom: 36px;
  z-index: 2;
  color: #fff;
}
.eb-home .eb-slide-info .eb-terms {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--eb-accent);
  color: #fff;
}
.eb-home .eb-slide-info .eb-terms a { color: #fff; }
.eb-home .eb-slide-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}
.eb-home .eb-slide-title a { color: #fff; }
.eb-home .eb-slide-info .eb-date { margin: 0; color: rgba(255, 255, 255, 0.8); }

.eb-home .eb-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--eb-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 18, 30, 0.2);
}
.eb-home .eb-slider-btn:hover { background: #fff; color: var(--eb-accent); }
.eb-home .eb-prev { left: 24px; }
.eb-home .eb-next { right: 24px; }

/* ---------- Layout utama + sidebar ---------- */
.eb-home .eb-layout.wp-block-columns { gap: 48px; margin-block: 0; align-items: flex-start; }
.eb-home .eb-side-col { position: sticky; top: 24px; }

/* ---------- Daftar artikel ---------- */
.eb-home .eb-main .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.eb-home .eb-row.wp-block-columns {
  gap: 28px;
  margin: 0;
  padding: 26px 0;
  border-top: 1px solid var(--eb-line);
  align-items: flex-start;
}
.eb-home .eb-main .wp-block-post:first-child .eb-row.wp-block-columns { border-top: 0; padding-top: 0; }
.eb-home .eb-main .wp-block-post:last-child .eb-row.wp-block-columns { border-bottom: 1px solid var(--eb-line); }

.eb-home .eb-date {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--eb-muted);
}
.eb-home .eb-terms {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eb-accent);
}
.eb-home .eb-terms a:hover { text-decoration: underline; }
.eb-home .eb-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.eb-home .eb-title a:hover { color: var(--eb-accent); }
.eb-home .eb-excerpt {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--eb-muted);
}
.eb-home .eb-thumb { margin: 0; }
.eb-home .eb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Sembunyikan kolom thumbnail kalau artikel tidak punya Featured Image */
.eb-home .eb-col-thumb:not(:has(img)) { display: none; }

/* ---------- Pagination ---------- */
.eb-home .wp-block-query-pagination {
  margin-top: 36px;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}
.eb-home .wp-block-query-pagination a:hover { color: var(--eb-accent); }
.eb-home .wp-block-query-pagination .page-numbers.current { color: var(--eb-accent); }

/* ---------- Sidebar ---------- */
.eb-home .eb-search { margin: 0 0 32px; }
.eb-home .eb-search .wp-block-search__inside-wrapper {
  border: 1px solid var(--eb-line);
  border-radius: 6px;
  padding: 4px;
}
.eb-home .eb-search input[type="search"] {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
}
.eb-home .eb-search .wp-block-search__button {
  border: 0;
  border-radius: 4px;
  background: var(--eb-accent);
  color: #fff;
  padding: 6px 10px;
}
.eb-home .eb-side-title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eb-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eb-home .eb-side-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.eb-home .eb-side-cats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--eb-line);
  color: var(--eb-muted);
}
.eb-home .eb-side-cats a { color: var(--eb-ink); }
.eb-home .eb-side-cats a:hover { color: var(--eb-accent); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 781px) {
  .eb-home { --eb-hero-h: 280px; padding-block: 0 56px; }
  .eb-home .eb-slider { margin-bottom: 36px; }
  .eb-home .eb-side-col { position: static; }
  .eb-home .eb-layout.wp-block-columns { gap: 40px; }
  .eb-home .eb-row.wp-block-columns { gap: 14px; padding: 22px 0; }
  .eb-home .eb-col-thumb { order: -1; }
  .eb-home .eb-thumb img { aspect-ratio: 16 / 9 !important; }
  .eb-home .eb-title { font-size: 20px; }
  .eb-home .eb-slide-info { left: 20px; right: 20px; bottom: 22px; }
  .eb-home .eb-slider-btn { top: 16px; margin-top: 0; width: 36px; height: 36px; }
  .eb-home .eb-prev { left: auto; right: 60px; }
  .eb-home .eb-next { right: 16px; }
}

/* ===== IndonesiaERP: Archive & Single (gaya editorial, sama dengan homepage) =====
   Tempel SETELAH CSS homepage. Memakai variabel --eb-* yang sama. */

/* Rapikan jarak bawaan tema di halaman Archive/Single */
main:has(.eb-page) { padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks:has(.eb-page) > * + * { margin-block-start: 0 !important; }
.eb-home.eb-page.wp-block-group { margin-block: 0 !important; padding-block: 0 72px; }
.eb-home.eb-page .eb-layout.wp-block-columns { flex-wrap: nowrap; }
.eb-home.eb-page .eb-main { flex: 1 1 0; min-width: 0; }
.eb-home.eb-page .eb-side-col { flex: 0 0 300px; }
.eb-home .eb-row .eb-col-date { flex: 0 0 15%; }
.eb-home .eb-row .eb-col-thumb { flex: 0 0 160px; }
.eb-home .eb-row .eb-col-body { flex: 1 1 0; min-width: 0; }

/* ---------- Archive ---------- */
.eb-home .eb-a-head { padding-top: 56px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--eb-ink); }
.eb-home .eb-kicker {
  display: inline-block; margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--eb-accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eb-accent); line-height: 1.2;
}
.eb-home .eb-a-title { margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: var(--eb-ink); }
.eb-home .eb-a-desc { max-width: 62ch; margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--eb-muted); }
.eb-home .eb-a-desc p { margin: 0; }
.eb-home .eb-archive .eb-main .wp-block-post:first-child .eb-row.wp-block-columns { padding-top: 0; }

/* ---------- Single ---------- */
.eb-home .eb-s-head { padding-top: 56px; padding-bottom: 28px; }
.eb-home .eb-s-title { margin: 0 0 20px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--eb-ink); }
.eb-home .eb-s-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.eb-home .eb-s-meta p { margin: 0; }
.eb-home .eb-s-meta .eb-date { margin: 0; }
.eb-home .eb-s-author { font-size: 13px; font-weight: 700; color: var(--eb-ink); }
.eb-home .eb-s-author::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 14px; background: var(--eb-line); vertical-align: -1px; }
.eb-home .eb-s-cover { margin: 0 0 40px; }
.eb-home .eb-s-cover:not(:has(img)) { display: none; }
.eb-home .eb-s-cover img { display: block; width: 100%; border-radius: 6px; object-fit: cover; }
.eb-home .eb-s-content { max-width: 720px; font-size: 17.5px; line-height: 1.8; color: var(--eb-ink); }
.eb-home .eb-s-content > * { box-sizing: border-box; margin-block: 0 1.35em; max-width: 100%; }
.eb-home .eb-s-content h2, .eb-home .eb-s-content h3, .eb-home .eb-s-content h4 {
  margin-block: 2em 0.6em; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--eb-ink);
}
.eb-home .eb-s-content h2 { padding-top: 22px; border-top: 1px solid var(--eb-line); font-size: clamp(23px, 2.6vw, 29px); }
.eb-home .eb-s-content h3 { font-size: clamp(19px, 2.2vw, 23px); }
.eb-home .eb-s-content a { color: var(--eb-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.eb-home .eb-s-content a:hover { text-decoration-thickness: 2.5px; }
.eb-home .eb-s-content ul, .eb-home .eb-s-content ol { padding-left: 1.3em; }
.eb-home .eb-s-content li { margin-bottom: 0.5em; }
.eb-home .eb-s-content li::marker { color: var(--eb-accent); font-weight: 700; }
.eb-home .eb-s-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--eb-accent); font-size: 20px; line-height: 1.6; font-weight: 600; color: var(--eb-ink); }
.eb-home .eb-s-content blockquote p { margin: 0; }
.eb-home .eb-s-content img, .eb-home .eb-s-content figure { max-width: 100%; height: auto; border-radius: 6px; }
.eb-home .eb-s-content figcaption { margin-top: 8px; font-size: 13.5px; color: var(--eb-muted); }
.eb-home .eb-s-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.eb-home .eb-s-content th, .eb-home .eb-s-content td { padding: 11px 12px; border-bottom: 1px solid var(--eb-line); text-align: left; }
.eb-home .eb-s-content th { border-bottom: 1px solid var(--eb-ink); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.eb-home .eb-s-content hr { border: 0; height: 1px; background: var(--eb-line); margin-block: 2.2em; }
.eb-home .eb-s-tags { max-width: 720px; margin: 32px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--eb-muted); }
.eb-home .eb-s-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--eb-line); border-radius: 4px; color: var(--eb-ink); }
.eb-home .eb-s-tags a:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.eb-home .eb-s-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; max-width: 720px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--eb-ink); }
.eb-home .eb-s-nav > * { flex: 1 1 240px; margin: 0; }
.eb-home .eb-s-nav .post-navigation-link-next { text-align: right; }
.eb-home .eb-s-nav a { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.eb-home .eb-s-nav a:hover { color: var(--eb-accent); }
.eb-home .eb-s-nav .post-navigation-link__label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eb-accent); }

/* ---------- Responsif ---------- */
@media (max-width: 781px) {
  .eb-home.eb-page .eb-layout.wp-block-columns { flex-wrap: wrap; }
  .eb-home.eb-page .eb-side-col { flex: 1 1 100%; }
  .eb-home .eb-row.wp-block-columns { flex-wrap: wrap; }
  .eb-home .eb-row .eb-col-date { flex: 1 1 100%; }
  .eb-home .eb-row .eb-col-thumb { flex: 1 1 100%; }
  .eb-home .eb-a-head, .eb-home .eb-s-head { padding-top: 36px; }
  .eb-home .eb-s-content { font-size: 17px; }
  .eb-home .eb-s-nav .post-navigation-link-next { text-align: left; }
}
.eb-home.eb-single .eb-side-col { padding-top: 56px; }
@media (max-width: 781px) { .eb-home.eb-single .eb-side-col { padding-top: 0; } }
