/*
 * FAKTAPENA — Design System (single source of truth)
 * Dipakai identik oleh WordPress theme dan master design (Lovable).
 * Jangan membuat CSS terpisah per template.
 */

:root {
  --fp-brand: #0b5cab;
  --fp-brand-dark: #08447d;
  --fp-accent: #e31e24;
  --fp-accent-dark: #b3151a;
  --fp-gold: #c9a227;
  --fp-ink: #141414;
  --fp-text: #333333;
  --fp-muted: #6b7280;
  --fp-border: #e5e7eb;
  --fp-surface: #f7f8fa;
  --fp-black: #0d0d0d;
  --fp-black-2: #171717;
  --fp-white: #ffffff;
  --fp-max: 1200px;
  --fp-gap: 24px;
  --fp-radius: 6px;
  --fp-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --fp-sidebar: 330px;
  --fp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  --fp-font-display: "Barlow Condensed", "Inter", system-ui, Arial, Helvetica, sans-serif;
  --fp-font-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fp-white);
  color: var(--fp-text);
  font-family: var(--fp-font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .fp-display {
  font-family: var(--fp-font-display);
  color: var(--fp-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

a { color: var(--fp-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 0; list-style: none; margin: 0; }
p { margin: 0 0 1rem; }

.fp-wrap { max-width: var(--fp-max); margin: 0 auto; padding: 0 16px; width: 100%; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.fp-eyebrow {
  font-family: var(--fp-font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.fp-label {
  font-family: var(--fp-font-display); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fp-muted);
}

/* ------------------------------------------------------------------ Topbar */
.fp-topbar { background: var(--fp-black); color: #d7d7d7; font-size: 0.78rem; }
.fp-topbar .fp-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.fp-topbar a { color: #d7d7d7; }
.fp-topbar a:hover { color: var(--fp-gold); text-decoration: none; }
.fp-topbar-clock { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fp-topbar-clock .fp-dot { color: var(--fp-accent); }
.fp-topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fp-topbar-links { display: flex; gap: 14px; margin: 0; }
.fp-social { display: flex; gap: 10px; align-items: center; }
.fp-social a {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #333; border-radius: 50%; color: #d7d7d7;
}
.fp-social a:hover { background: var(--fp-accent); border-color: var(--fp-accent); color: #fff; }
.fp-social svg { width: 13px; height: 13px; fill: currentColor; }

/* ----------------------------------------------------------------- Branding */
.fp-header { background: var(--fp-black-2); border-bottom: 3px solid var(--fp-accent); }
.fp-header .fp-wrap {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px;
}
.fp-brand { display: flex; flex-direction: column; gap: 8px; }
.fp-logo { display: inline-flex; align-items: center; }
.fp-logo img,
.fp-logo .custom-logo { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.fp-tagline {
  margin: 0; color: var(--fp-gold); font-family: var(--fp-font-display);
  font-size: 0.86rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.fp-header-banner { justify-self: end; width: 100%; max-width: 728px; }
.fp-header-banner img {
  width: 100%; height: 90px; object-fit: cover; border-radius: var(--fp-radius);
  border: 1px solid #2a2a2a;
}
.fp-header-banner .fp-label { color: #8b8b8b; display: block; margin-bottom: 4px; }

/* --------------------------------------------------------------------- Nav */
.fp-nav { background: var(--fp-brand); position: relative; }
.fp-nav .fp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-menu { display: flex; flex-wrap: wrap; align-items: center; }
.fp-menu li { position: relative; }
.fp-menu a {
  display: block; color: #fff; padding: 12px 12px; font-family: var(--fp-font-display);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.fp-menu a:hover,
.fp-menu .current-menu-item > a,
.fp-menu .fp-active > a { background: var(--fp-brand-dark); text-decoration: none; }
.fp-nav-cta {
  background: var(--fp-accent); color: #fff !important; padding: 9px 16px;
  border-radius: var(--fp-radius); font-family: var(--fp-font-display); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; white-space: nowrap;
}
.fp-nav-cta:hover { background: var(--fp-accent-dark); text-decoration: none; }
.fp-nav-toggle {
  display: none; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--fp-radius); padding: 8px 12px; font-family: var(--fp-font-display);
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}

/* ---------------------------------------------------------- Breaking ticker */
.fp-breaking { background: var(--fp-surface); border-bottom: 1px solid var(--fp-border); }
.fp-breaking .fp-wrap { display: flex; align-items: center; gap: 14px; min-height: 44px; overflow: hidden; }
.fp-breaking-tag {
  background: var(--fp-accent); color: #fff; font-family: var(--fp-font-display); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; padding: 6px 12px;
  border-radius: var(--fp-radius); white-space: nowrap;
}
.fp-breaking-track { overflow: hidden; flex: 1; }
.fp-breaking-track > span { display: inline-flex; gap: 34px; white-space: nowrap; animation: fp-marquee 42s linear infinite; }
.fp-breaking-track a { color: var(--fp-ink); font-size: 0.9rem; font-weight: 500; }
@keyframes fp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fp-breaking-track > span { animation: none; } }

/* -------------------------------------------------------------- Layout grid */
.fp-main { padding: 24px 0 40px; }
.fp-grid { display: grid; grid-template-columns: 1fr var(--fp-sidebar); gap: var(--fp-gap); align-items: start; }
.fp-section { margin-bottom: 34px; }
.fp-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--fp-ink); margin-bottom: 18px; padding-bottom: 8px;
}
.fp-section-head h2 {
  margin: 0; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em;
  border-left: 5px solid var(--fp-accent); padding-left: 10px;
}
.fp-section-head a { font-size: 0.85rem; font-weight: 600; }

/* -------------------------------------------------------------------- Cards */
.fp-card {
  background: #fff; border: 1px solid var(--fp-border); border-radius: var(--fp-radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--fp-shadow);
}
.fp-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--fp-surface); }
.fp-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-badge {
  position: absolute; left: 10px; top: 10px; background: var(--fp-accent); color: #fff;
  font-family: var(--fp-font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 3px;
}
.fp-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fp-card-title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.fp-card-title a { color: var(--fp-ink); }
.fp-card-title a:hover { color: var(--fp-brand); text-decoration: none; }
.fp-card-excerpt { margin: 0; font-size: 0.92rem; color: var(--fp-muted); }
.fp-meta {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--fp-muted);
  margin-top: auto; padding-top: 4px;
}
.fp-meta span + span::before { content: "·"; margin-right: 10px; color: var(--fp-border); }
.fp-cards { display: grid; gap: var(--fp-gap); }
.fp-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fp-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------- Hero */
.fp-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--fp-gap); margin-bottom: 32px; }
.fp-hero-main .fp-card-thumb { aspect-ratio: 16 / 9; }
.fp-hero-main .fp-card-title { font-size: 2rem; }
.fp-hero-side { display: flex; flex-direction: column; gap: 14px; }
.fp-hero-side .fp-card { flex-direction: row; }
.fp-hero-side .fp-card-thumb { width: 132px; flex: none; aspect-ratio: 4 / 3; }
.fp-hero-side .fp-card-body { padding: 10px 12px; }
.fp-hero-side .fp-card-title { font-size: 1rem; }

/* ------------------------------------------------------------------ Compact */
.fp-compact { display: flex; flex-direction: column; gap: 14px; }
.fp-compact-item { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start; }
.fp-compact-item .fp-thumb { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--fp-surface); }
.fp-compact-item .fp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-compact-item h4 { margin: 0 0 4px; font-size: 0.98rem; line-height: 1.25; }
.fp-compact-item h4 a { color: var(--fp-ink); }
.fp-rank { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.fp-rank-num {
  font-family: var(--fp-font-display); font-size: 1.6rem; font-weight: 700; color: var(--fp-accent);
  line-height: 1;
}

/* ----------------------------------------------------------------- Sidebar */
.fp-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 16px; }
.fp-widget, .fp-panel {
  border: 1px solid var(--fp-border); border-radius: var(--fp-radius); padding: 16px;
  background: #fff; box-shadow: var(--fp-shadow);
}
.fp-widget-title, .fp-panel h3 {
  margin: 0 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 2px solid var(--fp-ink); padding-bottom: 6px;
}

/* ---------------------------------------------------------- Advertisement */
.fp-ad {
  border: 1px solid var(--fp-border); border-radius: var(--fp-radius); background: var(--fp-surface);
  padding: 10px; margin: 0 0 24px;
}
.fp-ad-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fp-ad-head .fp-label { color: var(--fp-muted); }
.fp-ad-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fp-ad img { width: 100%; object-fit: cover; border-radius: 4px; }
.fp-ad-copy { display: flex; flex-direction: column; gap: 4px; }
.fp-ad-title { margin: 0; font-family: var(--fp-font-display); font-size: 1.1rem; font-weight: 700; color: var(--fp-ink); }
.fp-ad-title a { color: var(--fp-ink); }
.fp-ad-desc { margin: 0; font-size: 0.88rem; color: var(--fp-muted); }
.fp-ad-cta {
  align-self: flex-start; margin-top: 6px; background: var(--fp-gold); color: #1a1a1a;
  font-family: var(--fp-font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 4px; font-size: 0.82rem;
}
.fp-ad-cta:hover { background: #b5901f; text-decoration: none; }
/* Ukuran per placement */
.fp-ad--top img, .fp-ad--home img { height: 140px; }
.fp-ad--top .fp-ad-body, .fp-ad--home .fp-ad-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; }
.fp-ad--infeed img { height: 180px; }
.fp-ad--sidebar img { height: 220px; }
.fp-ad--article img { height: 200px; }

.fp-sticky-ad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  background: var(--fp-black); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
}
.fp-sticky-ad img { width: 100%; height: 60px; object-fit: cover; border-radius: 4px; }
.fp-sticky-close {
  position: absolute; top: -12px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #333; background: var(--fp-black); color: #fff; cursor: pointer; line-height: 1;
}

/* ---------------------------------------------------------------- Article */
.fp-breadcrumb { font-size: 0.82rem; color: var(--fp-muted); margin-bottom: 12px; }
.fp-breadcrumb a { color: var(--fp-muted); }
.fp-breadcrumb span + span::before { content: "/"; margin: 0 8px; color: var(--fp-border); }
.fp-article-head { margin-bottom: 16px; }
.fp-article-cat {
  display: inline-block; background: var(--fp-accent); color: #fff !important; font-family: var(--fp-font-display);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; margin-bottom: 10px;
}
.fp-article-head h1 { font-size: 2.4rem; line-height: 1.12; }
.fp-article-lead { font-size: 1.08rem; color: var(--fp-muted); margin: 6px 0 12px; }
.fp-article-meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--fp-muted);
  border-top: 1px solid var(--fp-border); border-bottom: 1px solid var(--fp-border); padding: 10px 0;
}
.fp-figure { margin: 0 0 18px; }
.fp-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fp-radius); }
.fp-figure figcaption { font-size: 0.8rem; color: var(--fp-muted); padding-top: 6px; }
.fp-content { font-family: var(--fp-font-serif); font-size: 1.08rem; line-height: 1.85; color: #262626; }
.fp-content h2, .fp-content h3 { font-family: var(--fp-font-display); margin-top: 1.6rem; }
.fp-content blockquote {
  margin: 1.4rem 0; padding: 8px 0 8px 18px; border-left: 4px solid var(--fp-accent);
  font-style: italic; color: var(--fp-ink);
}
.fp-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.fp-share a {
  font-size: 0.82rem; font-weight: 600; border: 1px solid var(--fp-border); border-radius: 4px;
  padding: 7px 12px; color: var(--fp-ink);
}
.fp-share a:hover { background: var(--fp-surface); text-decoration: none; }
.fp-author-box {
  display: flex; gap: 14px; align-items: center; border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius); padding: 14px; background: var(--fp-surface);
}
.fp-author-box img { border-radius: 50%; }
.fp-tags a {
  display: inline-block; font-size: 0.78rem; border: 1px solid var(--fp-border); border-radius: 999px;
  padding: 4px 12px; margin: 0 6px 6px 0; color: var(--fp-muted);
}

/* ------------------------------------------------------------- Pagination */
.fp-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.fp-pagination a, .fp-pagination span {
  border: 1px solid var(--fp-border); border-radius: 4px; padding: 8px 13px; font-size: 0.9rem;
  color: var(--fp-ink);
}
.fp-pagination .current { background: var(--fp-brand); border-color: var(--fp-brand); color: #fff; }

/* ---------------------------------------------------------------- Sosmed */
.fp-social-strip { background: var(--fp-surface); border-top: 1px solid var(--fp-border); border-bottom: 1px solid var(--fp-border); padding: 22px 0; }
.fp-social-strip .fp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fp-social-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 1; }
.fp-social-card {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius); padding: 12px 14px; color: var(--fp-ink);
}
.fp-social-card svg { width: 18px; height: 18px; fill: var(--fp-brand); }
.fp-social-card strong { font-family: var(--fp-font-display); font-size: 1rem; }
.fp-social-card span { display: block; font-size: 0.75rem; color: var(--fp-muted); }

/* ---------------------------------------------------------------- Footer */
.fp-footer { background: var(--fp-black); color: #b8b8b8; padding: 40px 0 0; margin-top: 10px; }
.fp-footer h3 {
  color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.fp-footer a { color: #b8b8b8; }
.fp-footer a:hover { color: var(--fp-gold); text-decoration: none; }
.fp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 28px; }
.fp-footer-grid img { height: 52px; width: auto; }
.fp-footer-grid li { margin-bottom: 7px; font-size: 0.9rem; }
.fp-footer-bottom {
  border-top: 1px solid #262626; display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 16px 0; font-size: 0.82rem;
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  :root { --fp-sidebar: 300px; }
  .fp-header .fp-wrap { grid-template-columns: 1fr; }
  .fp-header-banner { justify-self: start; max-width: 100%; }
  .fp-hero { grid-template-columns: 1fr; }
  .fp-article-head h1 { font-size: 2rem; }
}

@media (max-width: 900px) {
  .fp-grid { grid-template-columns: 1fr; }
  .fp-sidebar { position: static; }
  .fp-social-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .fp-topbar-links { display: none; }
  .fp-logo img, .fp-logo .custom-logo { height: 44px; }
  .fp-tagline { font-size: 0.72rem; letter-spacing: 0.16em; }
  .fp-header-banner img { height: 74px; }
  .fp-nav-toggle { display: inline-flex; }
  .fp-nav .fp-wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .fp-menu { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .fp-nav.is-open .fp-menu { display: flex; }
  .fp-menu a { padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .fp-cards.cols-2, .fp-cards.cols-3 { grid-template-columns: 1fr; }
  .fp-hero-main .fp-card-title { font-size: 1.5rem; }
  .fp-hero-side .fp-card-thumb { width: 112px; }
  .fp-ad--top .fp-ad-body, .fp-ad--home .fp-ad-body { grid-template-columns: 1fr; }
  .fp-ad--top img, .fp-ad--home img { height: 120px; }
  .fp-article-head h1 { font-size: 1.6rem; }
  .fp-content { font-size: 1.02rem; }
  .fp-sticky-ad { display: block; }
  body.fp-has-sticky { padding-bottom: 84px; }
}

/* --------------------------------------------------------------- Search box */
.fp-search-inline { display: flex; }
.fp-search-inline input[type="search"] {
  border: 1px solid #333; background: #1b1b1b; color: #eee; padding: 7px 10px;
  font-size: 0.85rem; min-width: 170px; border-radius: 4px 0 0 4px; font-family: var(--fp-font-body);
}
.fp-search-inline button {
  border: 0; background: var(--fp-accent); color: #fff; padding: 7px 14px; font-weight: 600;
  cursor: pointer; border-radius: 0 4px 4px 0; font-family: var(--fp-font-display);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.fp-search-inline button:hover { background: var(--fp-accent-dark); }
.fp-main .fp-search-inline input[type="search"] { background: #fff; color: var(--fp-ink); border-color: var(--fp-border); }
@media (max-width: 720px) { .fp-search-inline input[type="search"] { min-width: 130px; } }
