/* ============================================================
   BRITAHU.INFO — tema blog tips & trik (amber + slate)
   ============================================================ */
:root {
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --primary: var(--amber-500);
  --primary-dark: var(--amber-600);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, .12), 0 4px 10px rgba(15, 23, 42, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--amber-400); color: var(--slate-900); }

/* ================= HEADER ================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--slate-900); line-height: 1.1; }
.brand-name span { color: var(--amber-500); }
.brand-tag { font-size: 11px; color: var(--slate-500); margin-top: 1px; }

.search-form { display: flex; gap: 6px; }
.search-form input {
  padding: 9px 14px;
  border-radius: 9999px;
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-800);
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-form input:focus { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.search-form button {
  padding: 9px 18px;
  border: none;
  border-radius: 9999px;
  background: var(--amber-500);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
}
.search-form button:hover { background: var(--amber-600); }

.navbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--slate-100);
}
.navbar::-webkit-scrollbar { display: none; }
.navbar a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
.navbar a:hover { color: var(--slate-900); border-bottom-color: var(--amber-500); }

/* ================= LAYOUT ================= */
.container { max-width: 1160px; margin: 0 auto; padding: 28px 20px; flex: 1; width: 100%; }

/* ================= HERO ================= */
.hero-blog {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 55%, #3b2f14 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px 36px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 85% -20%, rgba(245, 158, 11, .35), transparent 60%),
              radial-gradient(500px 180px at 10% 120%, rgba(245, 158, 11, .2), transparent 60%);
  pointer-events: none;
}
.hero-blog h1 {
  position: relative;
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.hero-blog p {
  position: relative;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  opacity: .9;
  max-width: 720px;
}

/* ================= HEADLINE ================= */
.headline {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
.headline-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-900);
  min-height: 340px;
  box-shadow: var(--shadow-md);
  display: block;
  transition: transform .2s;
}
.headline-main:hover { transform: translateY(-2px); }
.headline-main img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; opacity: .8; }
.headline-main .hl-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(2, 6, 23, .92));
}
.headline-main .hl-kat {
  display: inline-block;
  background: var(--amber-500);
  color: var(--slate-900);
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.headline-main h2 { font-size: 25px; line-height: 1.3; margin-bottom: 8px; }
.headline-main .hl-meta { font-size: 12.5px; color: var(--slate-300); }

.headline-side { display: flex; flex-direction: column; gap: 12px; }
.side-item {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
  flex: 1;
}
.side-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.side-item img { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.side-item .si-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--slate-800); }
.side-item .si-meta { font-size: 11px; color: var(--slate-500); margin-top: 4px; }

/* ================= SECTION & GRID ================= */
.section { margin-bottom: 36px; }
.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate-900);
  border-left: 4px solid var(--amber-500);
  padding-left: 12px;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate-100); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .c-kat {
  font-size: 11px;
  font-weight: 800;
  color: var(--amber-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(245, 158, 11, .12);
  padding: 3px 10px;
  border-radius: 9999px;
  align-self: flex-start;
}
.card .c-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--slate-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .c-meta { font-size: 11.5px; color: var(--slate-500); margin-top: auto; padding-top: 6px; }

/* ================= ARTIKEL DETAIL ================= */
.artikel-wrap { max-width: 780px; margin: 0 auto; }
.breadcrumb { font-size: 12.5px; color: var(--slate-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--slate-600); font-weight: 600; }
.breadcrumb a:hover { color: var(--amber-600); }
.artikel-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.artikel-title { font-size: 30px; line-height: 1.3; font-weight: 800; color: var(--slate-900); margin-bottom: 10px; letter-spacing: -.02em; }
.artikel-meta { font-size: 13px; color: var(--slate-500); margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.artikel-meta .kat-badge {
  background: rgba(245, 158, 11, .12);
  color: var(--amber-700);
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
}
.artikel-cover { border-radius: 12px; margin-bottom: 22px; box-shadow: var(--shadow-md); }
.artikel-body { font-size: 17px; line-height: 1.85; color: var(--slate-700); }
.artikel-body p { margin-bottom: 18px; }
.artikel-body h2, .artikel-body h3 { color: var(--slate-900); margin: 26px 0 12px; line-height: 1.35; }
.artikel-body h2 { font-size: 22px; }
.artikel-body h3 { font-size: 19px; }
.artikel-body ul, .artikel-body ol { margin: 0 0 18px 22px; }
.artikel-body li { margin-bottom: 6px; }
.artikel-body img { border-radius: 10px; margin: 18px 0; }
.artikel-body blockquote {
  border-left: 4px solid var(--amber-400);
  background: var(--slate-50);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 10px 10px 0;
  color: var(--slate-600);
}
.artikel-sumber {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.6;
}
.artikel-sumber a { color: var(--amber-700); font-weight: 600; word-break: break-all; }
.share-row { display: flex; gap: 8px; margin: 22px 0 0; }
.share-row a { padding: 9px 16px; border-radius: 9999px; font-size: 13px; font-weight: 700; color: #fff; }
.share-wa { background: #25d366; } .share-wa:hover { filter: brightness(.94); }
.share-fb { background: #1877f2; } .share-fb:hover { filter: brightness(.94); }
.share-x { background: #0f172a; } .share-x:hover { filter: brightness(.8); }

/* ================= KOMENTAR ================= */
.komentar { margin-top: 30px; }
.komentar h3 { font-size: 18px; font-weight: 800; color: var(--slate-900); margin-bottom: 14px; }
.k-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.k-item .k-nama { font-weight: 700; font-size: 14px; color: var(--slate-900); }
.k-item .k-waktu { font-size: 11px; color: var(--slate-400); }
.k-item .k-isi { font-size: 14px; margin-top: 6px; line-height: 1.6; color: var(--slate-700); }
.k-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
}
.k-form input, .k-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: inherit;
  background: var(--slate-50);
  transition: border-color .15s, box-shadow .15s;
}
.k-form input:focus, .k-form textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
.k-form button {
  padding: 10px 24px;
  border: none;
  border-radius: 9999px;
  background: var(--amber-500);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.k-form button:hover { background: var(--amber-600); }

/* ================= PAGINATION ================= */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--amber-500); color: var(--amber-700); }
.pagination .active { background: var(--amber-500); color: #fff; border-color: var(--amber-500); }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  margin-top: auto;
  padding: 36px 20px 40px;
  font-size: 13.5px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-inner h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-inner p { line-height: 1.7; }
.footer-inner a { display: block; margin-bottom: 8px; color: var(--slate-400); transition: color .15s; }
.footer-inner a:hover { color: var(--amber-400); }
.footer-bottom {
  max-width: 1160px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--slate-800);
  font-size: 12.5px;
  color: var(--slate-500);
}

/* ================= MISC ================= */
.empty { text-align: center; color: var(--slate-500); padding: 48px 0; font-size: 15px; }
.catatan { background: #fff7ed; border: 1px solid #fed7aa; color: var(--slate-700); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-top: 14px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .headline { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .artikel-title { font-size: 25px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .topbar { flex-direction: column; align-items: stretch; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .hero-blog { padding: 32px 22px; }
  .hero-blog h1 { font-size: 24px; }
  .artikel-card { padding: 20px; }
  .artikel-title { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Paling Banyak Dibaca ===== */
.populer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.populer-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
}
.populer-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.populer-rank {
  font-size: 28px; font-weight: 800; color: var(--amber-500);
  font-style: italic; min-width: 34px; text-align: center; line-height: 1;
}
.populer-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.populer-item .c-title { font-size: 14px; }
.populer-item img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
@media (max-width: 640px) {
  .populer-list { grid-template-columns: 1fr; }
}
