/*
Theme Name: Pelataran Fakta
Theme URI: https://pelataranfakta.com
Author: Pelataran Fakta Media
Author URI: https://pelataranfakta.com
Description: Tema portal berita digital modern dan majalah jurnalistik independen (Newsfy Digimag Home-02 style) dengan spotlight hero slider, grid 2-kolom, trending ranked 01-05, mode terang/gelap, dan markah buku lokal.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pelataranfakta
Tags: news, magazine, blog, dark-mode, editor-choice, featured-images, custom-logo, translation-ready, accessibility-ready
*/

/* ==============================================================================
   PELATARAN FAKTA - NEWSFY DIGIMAG THEME (HOME-02 STYLE)
   High-End Modern Digital Magazine & Tech News Portal
   Features: Spotlight Hero Slider, Tiles Layout, Ranked Trending Sidebar,
   Clean Divider Headings, Light Mode Default & Dark Mode Toggle.
   ============================================================================== */

:root {
  /* NEWSFY DIGIMAG COLOR SYSTEM (Default: LIGHT MODE) */
  --site-width: 1300px;
  --accent-color: #ff4936; /* Newsfy Signature Coral Red */
  --accent-hover: #e03826;
  --accent-light: rgba(255, 73, 54, 0.12);
  --accent-glow: rgba(255, 73, 54, 0.28);

  /* Categories Theme Colors */
  --term-viral: #ff6554;
  --term-hangat: #ff4282;
  --term-terbaru: #5490ff;
  --term-tersimpan: #11bd91;

  /* Surfaces & Backgrounds */
  --bg-body: #f7f9fc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f0f3f8;
  --bg-card-elevated: #ffffff;
  --bg-header: #ffffff;
  --bg-topbar: #0e121a;
  --bg-footer: #0c1017;

  /* Borders & Dividers */
  --border-color: #e5e9f0;
  --border-light: rgba(0, 0, 0, 0.06);

  /* Typography Colors */
  --color-heading: #0e121a;
  --color-body: #4b5563;
  --color-muted: #8c96a5;
  --color-white: #ffffff;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(14, 18, 26, 0.05);
  --shadow-hover: 0 12px 30px rgba(14, 18, 26, 0.1);
  --shadow-spotlight: 0 16px 40px rgba(14, 18, 26, 0.18);

  /* Fonts & Radius */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   DARK MODE OVERRIDES ([data-theme="dark"])
   ============================================================================== */
[data-theme="dark"] {
  --bg-body: #090c10;
  --bg-card: #121824;
  --bg-card-subtle: #182030;
  --bg-card-elevated: #1a2233;
  --bg-header: #0f1420;
  --bg-topbar: #07090e;
  --bg-footer: #06080c;

  --border-color: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.05);

  --color-heading: #f3f5f8;
  --color-body: #9ba7b9;
  --color-muted: #64748b;

  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-spotlight: 0 20px 48px rgba(0, 0, 0, 0.8);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--color-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--trans-smooth), color var(--trans-smooth);
}

.site-container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==============================================================================
   NEWSFY TOP UTILITY BAR (Date, Breaking Ticker, Socials, Pro Button)
   ============================================================================== */
.newsfy-topbar {
  background-color: var(--bg-topbar);
  color: #c5cbd5;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 1.5rem;
}

/* Digimag Date Widget */
.topbar-date-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}

.date-day-badge {
  background: var(--accent-color);
  color: #fff;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

/* Ticker Marquee in Topbar */
.topbar-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticker-label {
  background: rgba(255, 73, 54, 0.18);
  color: var(--accent-color);
  border: 1px solid rgba(255, 73, 54, 0.35);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker-slide-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker-text {
  display: inline-block;
  animation: newsfyMarquee 28s linear infinite;
  color: #a0aec0;
  font-size: 0.8rem;
}

@keyframes newsfyMarquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Topbar Social Icons */
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-social-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all var(--trans-fast);
}

.topbar-social-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ==============================================================================
   NEWSFY DIGIMAG MAIN HEADER (Logo, Search, Theme Toggle, Main Navigation)
   ============================================================================== */
.newsfy-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--trans-smooth), border-color var(--trans-smooth);
}

.header-main-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.95rem 0;
  gap: 1.5rem;
}

/* Left Tools / Search */
.header-left-tools {
  display: flex;
  align-items: center;
  justify-self: start;
  width: 100%;
}

/* Digimag Brand Logo (Centered Master Title) */
.newsfy-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
  display: block;
  transition: transform var(--trans-fast);
}

.newsfy-brand:hover .brand-logo-icon {
  transform: scale(1.06) rotate(-2deg);
}

.editorial-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
  display: block;
}

.brand-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-color), #d92d1a);
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.brand-names {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-heading);
  transition: color var(--trans-smooth);
}

.brand-title span {
  color: var(--accent-color);
}

.brand-tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Search Bar (Digimag Inline Style - Left Positioned) */
.header-search-bar {
  width: 100%;
  max-width: 320px;
  position: relative;
}

.search-input-digimag {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem 0.55rem 2.45rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--color-heading);
  transition: all var(--trans-fast);
}

.search-input-digimag:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon-digimag {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 0.85rem;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-clear-digimag {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: none;
}

/* Header Controls (Theme Mode Button & Redaksi Link) */
.header-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.65rem;
}

.header-redaksi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.header-redaksi-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.header-redaksi-btn svg {
  color: var(--accent-color);
}

.theme-switcher-digimag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-heading);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.theme-switcher-digimag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Main Menu Navigation Row (Newsfy Digimag Style) */
.newsfy-nav-strip {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow-x: auto;
  scrollbar-width: none;
}

.newsfy-nav-strip::-webkit-scrollbar {
  display: none;
}

.nav-tabs-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0;
}

.nav-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-body);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.nav-tab-item:hover {
  color: var(--accent-color);
  background: var(--bg-card-subtle);
}

.nav-tab-item.active {
  color: #fff;
  background: var(--accent-color);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-badge-count {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

[data-theme="dark"] .nav-badge-count {
  background: rgba(255, 255, 255, 0.15);
}

.nav-tab-item.active .nav-badge-count {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

/* ==============================================================================
   SECTION HEADINGS (NEWSFY SIGNATURE DIVIDER HEADING)
   ============================================================================== */
.digimag-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1.5rem;
  gap: 1.5rem;
}

.heading-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.heading-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.heading-accent-bar {
  width: 5px;
  height: 22px;
  background: var(--accent-color);
  border-radius: var(--radius-full);
}

.heading-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.heading-extra-info {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ==============================================================================
   HERO AREA: NEWSFY "SPOT SLIDER" & THUMBNAILS BAR
   ============================================================================== */
.spotlight-hero-section {
  margin: 1.75rem 0 2.5rem;
}

.spotlight-hero-card {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-spotlight);
  background: #0e121a;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.spotlight-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-hero-card:hover .spotlight-cover-img {
  transform: scale(1.04);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.1) 0%, rgba(14, 18, 26, 0.85) 60%, rgba(14, 18, 26, 0.98) 100%);
  z-index: 1;
}

.spotlight-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem 2rem;
  width: 100%;
  max-width: 900px;
}

.spotlight-terms-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.digimag-term-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #fff;
}

.digimag-term-badge.viral { background: var(--term-viral); }
.digimag-term-badge.hangat { background: var(--term-hangat); }
.digimag-term-badge.terbaru { background: var(--term-terbaru); }
.digimag-term-badge.tersimpan { background: var(--term-tersimpan); }

.spotlight-date-pill {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.spotlight-title:hover {
  color: #ff9185;
}

.spotlight-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.15rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-pill-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Hero Bottom Thumbnails Strip (Newsfy Style) */
.hero-thumbs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.hero-thumb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-card);
}

.hero-thumb-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-hover);
}

.hero-thumb-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-thumb-content {
  overflow: hidden;
}

.hero-thumb-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.hero-thumb-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ==============================================================================
   SECTION: "EDITOR'S CHOICE" (NEWSFY TILES-LAYOUT-16)
   ============================================================================== */
.editors-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.editor-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0e121a;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.editor-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-card:hover .editor-card-img {
  transform: scale(1.07);
}

.editor-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.1) 0%, rgba(14, 18, 26, 0.8) 55%, rgba(14, 18, 26, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.editor-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editor-card-title:hover {
  color: var(--accent-color);
}

.editor-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==============================================================================
   MAIN FEED + SIDEBAR 2-COLUMN LAYOUT (NEWSFY DIGIMAG STYLE)
   ============================================================================== */
.magazine-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Left Main Feed */
.main-feed-column {
  min-width: 0;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.newsfy-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-smooth);
}

.newsfy-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 73, 54, 0.3);
}

.post-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card-subtle);
  cursor: pointer;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsfy-post-card:hover .post-card-thumb img {
  transform: scale(1.07);
}

.post-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-heading);
  margin-bottom: 0.65rem;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans-fast);
}

.post-card-title:hover {
  color: var(--accent-color);
}

.post-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.btn-card-bookmark {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--color-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-card-bookmark:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-card-bookmark.saved {
  background: rgba(17, 189, 145, 0.15);
  border-color: var(--term-tersimpan);
  color: var(--term-tersimpan);
}

/* ==============================================================================
   RIGHT SIDEBAR: NEWSFY TRENDING POSTS & SOCIAL WIDGETS
   ============================================================================== */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-heading);
}

.widget-tag-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
}

/* Ranked Trending List (Digimag Signature: 01, 02, 03, 04) */
.trending-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ranked-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  cursor: pointer;
}

.rank-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
  min-width: 28px;
}

.ranked-content {
  overflow: hidden;
}

.ranked-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans-fast);
}

.ranked-item:hover .ranked-title {
  color: var(--accent-color);
}

.ranked-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Follow Us Grid (Digimag Style) */
.social-follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.follow-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

.follow-box:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.follow-box.fb { background: #1877f2; }
.follow-box.tw { background: #000000; }
.follow-box.yt { background: #ff0000; }
.follow-box.wa { background: #25d366; }

/* Newsletter Card in Sidebar */
.newsletter-card {
  background: linear-gradient(135deg, rgba(255, 73, 54, 0.08), rgba(255, 73, 54, 0.02));
  border: 1px dashed rgba(255, 73, 54, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.newsletter-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.newsletter-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}

.newsletter-card p {
  font-size: 0.825rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--color-heading);
  font-size: 0.85rem;
}

.newsletter-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color var(--trans-fast);
}

.newsletter-btn:hover {
  background: var(--accent-hover);
}

/* ==============================================================================
   DEDICATED ARTICLE PAGE VIEW (NEWSFY DIGIMAG POST LAYOUT)
   ============================================================================== */
.article-page-view {
  padding: 1.5rem 0 4rem;
  animation: digimagFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes digimagFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-heading);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-fast);
}

.btn-back-home:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateX(-3px);
}

.article-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--color-muted);
}

.breadcrumb-link {
  color: var(--color-body);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--trans-fast);
}

.breadcrumb-link:hover {
  color: var(--accent-color);
}

.breadcrumb-sep {
  color: var(--border-color);
}

.breadcrumb-current {
  color: var(--color-muted);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-content-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.article-readtime-badge {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--color-heading);
  margin-bottom: 1.35rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.author-meta-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-bookmark-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--color-heading);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-bookmark-pill:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-bookmark-pill.saved {
  background: rgba(17, 189, 145, 0.15);
  border-color: var(--term-tersimpan);
  color: var(--term-tersimpan);
}

.article-cover-figure {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 2.5rem 0;
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-subtle);
}

.article-cover-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.article-cover-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  font-style: italic;
}

.article-body-prose {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--color-body);
}

.article-body-prose p {
  margin-bottom: 1.75rem;
}

.article-body-prose blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 1rem 0 1rem 1.6rem;
  margin: 2.25rem 0;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--color-heading);
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 3rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.editorial-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

/* ==============================================================================
   INFO PAGE VIEW: REDAKSI & BANTUAN (NEWSFY DIGIMAG STYLE)
   ============================================================================== */
.info-page-view {
  margin: 1.5rem 0 4rem;
}

.info-hero-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.info-hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-heading);
  margin: 0.5rem 0 0.6rem;
  letter-spacing: -0.02em;
}

.info-hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 750px;
}

.info-layout-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.info-nav-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--color-body);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: all var(--trans-fast);
  width: 100%;
}

.info-tab-btn .tab-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-tab-btn:hover {
  background: var(--bg-card-subtle);
  color: var(--accent-color);
}

.info-tab-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 73, 54, 0.35);
}

.info-quick-contact-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.info-quick-contact-box h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-quick-contact-box p {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 0.85rem;
}

.info-hotline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-color);
  background: var(--accent-light);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--trans-fast);
  word-break: break-all;
}

.info-hotline-badge:hover {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 73, 54, 0.3);
}

.info-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.info-tab-pane {
  display: none;
  animation: fadeInPane 0.3s ease;
}

.info-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-section-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.info-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-body);
}

.info-prose p {
  margin-bottom: 1.25rem;
}

.info-prose h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-heading);
  margin: 1.75rem 0 0.65rem;
}

.info-highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent-color);
  padding: 1.15rem 1.4rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--color-heading);
}

/* Team Grid */
.editorial-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.team-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.team-avatar-initials {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #ff7b36);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  box-shadow: 0 4px 10px rgba(255, 73, 54, 0.3);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.team-email {
  font-size: 0.775rem;
  color: var(--color-muted);
}

/* Contact Grid & Form */
.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.contact-meta-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-meta-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.contact-meta-card h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-heading);
}

.contact-meta-card span {
  font-size: 0.85rem;
  color: var(--color-muted);
  word-break: break-word;
}

.contact-editorial-form {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-heading);
}

.form-field-input,
.form-field-select,
.form-field-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--trans-fast);
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 73, 54, 0.15);
}

.form-field-textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: 0 4px 14px rgba(255, 73, 54, 0.35);
}

.btn-submit-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 73, 54, 0.45);
}

/* Responsive adjustment for info page */
@media (max-width: 900px) {
  .info-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .info-nav-sidebar {
    position: static;
  }

  .info-nav-card {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .info-tab-btn {
    white-space: nowrap;
    padding: 0.65rem 1rem;
  }

  .form-row-dual {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .info-content-card {
    padding: 1.5rem;
  }
}

/* ==============================================================================
   TOAST NOTIFICATION & FOOTER (NEWSFY DIGIMAG)
   ============================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-heading);
  border: 1px solid var(--accent-color);
  color: var(--bg-card);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.newsfy-footer {
  background: var(--bg-footer);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  font-size: 0.825rem;
  color: #64748b;
}

/* ==============================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================================== */
@media (max-width: 1024px) {
  .magazine-layout-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-thumbs-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .header-main-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand brand"
      "search tools";
    gap: 0.85rem;
    padding: 0.85rem 0 0.65rem;
  }

  .newsfy-brand {
    grid-area: brand;
    justify-self: center;
    margin: 0 auto;
  }

  .header-left-tools {
    grid-area: search;
    width: 100%;
  }

  .header-search-bar {
    max-width: 100%;
    width: 100%;
  }

  .header-right-tools {
    grid-area: tools;
    justify-self: end;
  }

  .nav-tabs-list {
    justify-content: flex-start;
    padding: 0.5rem 0.25rem;
  }
}

@media (max-width: 580px) {
  .header-main-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tools"
      "search";
    gap: 0.65rem;
  }

  .header-right-tools {
    justify-self: center;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .spotlight-hero-card {
    min-height: 420px;
  }

  .spotlight-content {
    padding: 1.75rem 1.25rem;
  }

  .spotlight-title {
    font-size: 1.5rem;
  }

  .hero-thumbs-strip {
    grid-template-columns: 1fr;
  }

  .editors-choice-grid {
    grid-template-columns: 1fr;
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}



/* ==============================================================================
   WORDPRESS GLOBAL LINK RESET & HEADING LINK FIXES
   ============================================================================== */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--accent-color);
}

.spotlight-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.spotlight-title a:hover {
  color: #ff9185 !important;
}

.editor-card-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.editor-card-title a:hover {
  color: var(--accent-color) !important;
}

.post-card-title a {
  color: var(--color-heading) !important;
  text-decoration: none !important;
}
.post-card-title a:hover {
  color: var(--accent-color) !important;
}

.ranked-title a {
  color: var(--color-heading) !important;
  text-decoration: none !important;
}
.ranked-title a:hover {
  color: var(--accent-color) !important;
}

.hero-thumb-title a {
  color: var(--color-heading) !important;
  text-decoration: none !important;
}
.hero-thumb-title a:hover {
  color: var(--accent-color) !important;
}

.breadcrumb-link {
  color: var(--color-muted) !important;
  text-decoration: none !important;
}
.breadcrumb-link:hover {
  color: var(--accent-color) !important;
}

.btn-back-home {
  color: var(--color-heading) !important;
  text-decoration: none !important;
}
.btn-back-home:hover {
  color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

/* ==============================================================================
   WORDPRESS CORE ALIGNMENT & GUTENBERG CLASSES
   ============================================================================== */
.alignnone {
  margin: 1.5em 0;
}
.aligncenter, div.aligncenter {
  display: block;
  margin: 1.5em auto;
  text-align: center;
}
.alignright {
  float: right;
  margin: 0.5em 0 1.5em 1.5em;
}
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1.5em 0;
}
a img.alignright {
  float: right;
  margin: 0.5em 0 1.5em 1.5em;
}
a img.alignnone {
  margin: 1.5em 0;
}
a img.alignleft {
  float: left;
  margin: 0.5em 1.5em 1.5em 0;
}
a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: var(--bg-card-subtle, #f0f3f8);
  border: 1px solid var(--border-color, #e5e9f0);
  border-radius: var(--radius-md, 10px);
  max-width: 100%;
  padding: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.wp-caption img {
  border-radius: var(--radius-sm, 6px);
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
.wp-caption-text {
  font-size: 0.84rem;
  color: var(--color-muted, #8c96a5);
  margin: 0.5rem 0 0.25rem;
  line-height: 1.5;
}

.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--bg-card, #ffffff);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-heading, #0e121a);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==============================================================================
   WORDPRESS COMMENTS SECTION (Modernized for Pelataran Fakta)
   ============================================================================== */
.comments-area {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 1.25rem;
}

.comment-notes,
.logged-in-as {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--color-heading);
  transition: all var(--trans-fast);
}

.comment-form input[type='text']:focus,
.comment-form input[type='email']:focus,
.comment-form input[type='url']:focus,
.comment-form textarea:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.comment-form input[type='checkbox'] {
  accent-color: var(--accent-color);
}

.comment-form .form-submit {
  margin-top: 0.5rem;
}

.comment-form input[type='submit'],
.btn-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.comment-form input[type='submit']:hover,
.btn-comment-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-list .comment {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.comment-list .comment .avatar {
  border-radius: var(--radius-full);
  float: left;
  margin-right: 1rem;
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.comment-meta .fn {
  font-weight: 700;
  color: var(--color-heading);
}

.comment-body p {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-body);
}

.reply a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.reply a:hover {
  text-decoration: underline;
}

/* ==============================================================================
   WORDPRESS PAGINATION
   ============================================================================== */
.newsfy-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.newsfy-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--trans-fast);
}

.newsfy-pagination .page-numbers.current,
.newsfy-pagination .page-numbers:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}