/*
Theme Name: TempatBaru
Theme URI: https://tempatbaru.com
Author: TempatBaru
Description: Portal berita ringan: layout modern, footer ramah SEO & iklan.
Version: 2.4.29
License: GNU General Public License v2 or later
Text Domain: tempatbaru
*/

:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --accent: #0d9488;
  --text: #1a1d1c;
  --text-muted: #5c6663;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --border: #e2e8e4;
  --shadow: 0 1px 2px rgba(15, 23, 20, 0.06), 0 4px 20px rgba(15, 23, 20, 0.06);
  --header-bg: rgba(255, 255, 255, 0.92);
  --nav-muted: #3d4542;
  --category-bar: linear-gradient(105deg, var(--primary) 0%, var(--accent) 100%);
  --focus: var(--primary);
  --ad-bg: #eef6f0;
  --ad-border: #c5e6d1;
  --footer-bar-bg: #15211c;
  --footer-bar-text: #a8b5af;
  --footer-bar-text-hover: #e8f0ec;
  --footer-bar-border: #24352e;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --gap: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
}

@media (max-width: 767px) {
  main.site-content {
    overflow-x: clip;
    max-width: 100%;
  }

  .site-header {
    max-width: 100%;
    overflow-x: clip;
  }

  .header-ad img,
  .header-ad iframe,
  .header-ad embed {
    max-width: 100%;
    height: auto;
  }

  .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-top__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand actions"
    "ad ad";
  align-items: center;
  gap: 12px 20px;
}

.logo-area { grid-area: brand; }

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-ad {
  grid-area: ad;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  line-height: 0;
  display: flex;
  align-items: center;
}

.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo img.custom-logo {
  height: 60px;
  width: auto;
  max-width: min(300px, 55vw);
  object-fit: contain;
  display: block;
}

.site-brand .site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-brand .site-title:hover {
  color: var(--primary);
  text-decoration: none;
}

.site-desc {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.header-search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  min-width: min(220px, 42vw);
}

.header-search input[type="search"],
.header-search input[type="text"] {
  flex: 1;
  border: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search__btn {
  border: 0;
  padding: 8px 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-search__btn:hover {
  background: var(--border);
}

.category-bar {
  background: var(--category-bar);
  color: #fff;
}

.category-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-inner .menu--category {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.category-inner .menu--category > li {
  flex-shrink: 0;
}

.category-inner .menu--category > li > a {
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 14px;
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-inner .menu--category > li > a:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.site-content {
  padding: 28px 0 48px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: var(--gap);
  padding: 0 20px;
  align-items: flex-start;
}

.content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  flex: 0 0 300px;
  width: 300px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.container--front-hero {
  margin-bottom: 4px;
}

.container--front-main {
  align-items: flex-start;
}

.content--front-hero {
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
}

.breadcrumb {
  margin: 0 0 20px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  width: 100%;
  min-width: 0;
}

.breadcrumb__item {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
  pointer-events: none;
}

.breadcrumb__item a {
  color: var(--text-muted);
}

.breadcrumb__item a:hover {
  color: var(--primary);
}

.ad-region,
.ad-slot {
  margin: 20px 0;
}

.ad-slot {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.ad-slot--content-top {
  min-height: 100px;
}

.ad-slot--in-article {
  min-height: 120px;
}

.ad-slot--after-content {
  min-height: 120px;
}

.ad-slot--footer-wide {
  min-height: 100px;
}

.ad-slot--footer-mid {
  min-height: 120px;
}

.ad-slot__label {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.ad-slot iframe,
.ad-slot ins,
.ad-slot img {
  max-width: 100%;
}

.widget {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar .widget {
  margin-bottom: 0;
  padding: 22px 20px;
  box-shadow: 0 2px 16px rgba(15, 23, 20, 0.06);
}

.widget-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sidebar .widget-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.sidebar .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.widget ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-muted);
}

.widget a {
  font-weight: 500;
}

.widget-list {
  list-style: none;
  padding: 0;
}

.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.widget-list li:last-child {
  border-bottom: 0;
}

.sidebar-search .search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.sidebar-search input[type="search"],
.sidebar-search input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.sidebar-search .search-submit,
.sidebar-search button[type="submit"] {
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.sidebar-search .search-submit:hover,
.sidebar-search button[type="submit"]:hover {
  background: var(--primary-hover);
}

.widget-list--recent .widget-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.widget-list__link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.widget-list__link:hover {
  color: var(--primary);
}

.widget-list__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  align-items: stretch;
}

.hero-left {
  flex: 1.65;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.hero-left__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-left__link:hover {
  text-decoration: none;
}

.hero-left__link:hover .featured-title {
  color: var(--primary);
}

.hero-left__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.hero-left__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-left__body {
  padding: 20px 22px 22px;
}

.featured-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-excerpt {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hero-right__kicker {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  line-height: 1.35;
}

.hero-right__empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.hero .hero-card__link {
  padding: 10px 12px;
  gap: 12px;
}

.hero .hero-card__media {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
}

.hero .hero-card__title {
  font-size: 0.875rem;
}

.hero-card {
  flex: 1;
  min-height: 0;
}

.hero-card__link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  min-width: 0;
}

.hero-card__link:hover {
  text-decoration: none;
}

.hero-card__link:hover .hero-card__title {
  color: var(--primary);
}

.hero-card__media {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hero-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.meta--small {
  font-size: 0.75rem;
}

.section-heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-elevated {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-elevated:hover {
  box-shadow: 0 4px 24px rgba(15, 23, 20, 0.1);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .card-elevated {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .card-elevated:hover {
    transform: none;
  }
}

.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card__link:hover {
  text-decoration: none;
}

.card__link:hover .card__title {
  color: var(--primary);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 16px 18px 18px;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--text);
}

.card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tempatbaru-swiper-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tempatbaru-front-trending.tempatbaru-swiper-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tempatbaru-swiper--trending .swiper-slide {
  height: auto;
}

.tempatbaru-swiper--trending .card--in-swiper {
  height: 100%;
}

.tempatbaru-swiper--trending .swiper-button-next,
.tempatbaru-swiper--trending .swiper-button-prev {
  color: var(--primary);
}

@media (max-width: 479px) {
  .tempatbaru-swiper--trending {
    padding-bottom: 36px;
  }

  .tempatbaru-swiper--trending .swiper-pagination {
    bottom: 4px !important;
  }
}

.single .tempatbaru-swiper-section,
.content .tempatbaru-search-related-swiper {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.search .content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.search .tempatbaru-swiper-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.search .tempatbaru-swiper .swiper-slide {
  min-width: 0;
}

.search .tempatbaru-swiper .card__title,
.search .tempatbaru-swiper .card__excerpt {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search .section-heading--swiper {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.section-heading--swiper {
  margin-bottom: 18px;
}

.tempatbaru-swiper.swiper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout style;
}

.tempatbaru-swiper .swiper-wrapper {
  box-sizing: border-box;
}

.tempatbaru-swiper .swiper-slide {
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.tempatbaru-swiper .swiper-slide .card {
  height: 100%;
  max-width: 100%;
}

.tempatbaru-swiper .card--in-swiper .card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 767px) {
  .tempatbaru-swiper .swiper-pagination {
    bottom: 8px !important;
  }
}

.tempatbaru-swiper .swiper-button-next,
.tempatbaru-swiper .swiper-button-prev {
  color: var(--primary);
  width: 40px;
  height: 40px;
  margin-top: 0;
  top: 42%;
}

.tempatbaru-swiper .swiper-button-next::after,
.tempatbaru-swiper .swiper-button-prev::after {
  font-size: 1.1rem;
  font-weight: 700;
}

.tempatbaru-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

@media (max-width: 640px) {
  .tempatbaru-swiper .swiper-button-next,
  .tempatbaru-swiper .swiper-button-prev {
    display: none;
  }
}

.archive-header {
  margin-bottom: 24px;
}

.archive-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.archive-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.archive-description p {
  margin: 0 0 0.75em;
}

.post-title {
  font-size: clamp(1.25rem, 2.75vw + 0.85rem, 2.375rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.post-meta {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow-wrap: break-word;
}

.single-featured {
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-sizing: border-box;
}

.single-featured img,
.single-featured .wp-post-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  box-sizing: border-box;
}

.post-content,
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.post-content > *:first-child,
.entry-content > *:first-child {
  margin-top: 0;
}

.post-content a,
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single .content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.single .article-single {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.single .post-content,
.single .entry-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.single .post-content img,
.single .entry-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.single .post-content picture img,
.single .entry-content picture img {
  max-width: 100%;
  height: auto;
}

.single .post-content figure,
.single .entry-content figure,
.single .post-content .wp-caption,
.single .entry-content .wp-caption {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.single .post-content .wp-block-image,
.single .entry-content .wp-block-image {
  max-width: 100%;
}

.single .post-content .wp-block-image img,
.single .entry-content .wp-block-image img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.single .post-content .wp-block-gallery,
.single .entry-content .wp-block-gallery {
  max-width: 100%;
}

.single .post-content .wp-block-gallery img,
.single .entry-content .wp-block-gallery img {
  max-width: 100%;
  height: auto;
}

.single .post-content .alignwide,
.single .entry-content .alignwide,
.single .post-content .alignfull,
.single .entry-content .alignfull {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.single .post-content .aligncenter,
.single .entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .single .post-content .wp-block-media-text,
  .single .entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
  }

  .single .post-content .wp-block-media-text .wp-block-media-text__media,
  .single .entry-content .wp-block-media-text .wp-block-media-text__media {
    margin-bottom: 1rem;
  }

  .single .post-content .wp-block-media-text .wp-block-media-text__media img,
  .single .entry-content .wp-block-media-text .wp-block-media-text__media img {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .single .article-single .post-title {
    font-size: clamp(1.2rem, 5.5vw + 0.65rem, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .single .post-meta {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .single .post-content,
  .single .entry-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .single-featured {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-sm);
  }
}

.page-article {
  padding-bottom: 32px;
}

.pagination-nav {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.pagination-links a,
.pagination-prev,
.pagination-next {
  font-weight: 600;
  font-size: 0.9375rem;
}

.load-more-wrap {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.load-more-sentinel {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  flex-shrink: 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 24px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.load-more-btn::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.load-more-btn[aria-busy="true"]::after {
  opacity: 1;
  animation: tempatbaru-loadmore-spin 0.65s linear infinite;
}

@keyframes tempatbaru-loadmore-spin {
  to {
    transform: rotate(360deg);
  }
}

.load-more-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-2);
  color: var(--primary-hover);
}

.load-more-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.load-more-btn:disabled {
  cursor: wait;
}

.load-more-btn[aria-busy="true"] {
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .load-more-btn::after {
    display: none;
  }
}

.no-posts {
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(15, 23, 20, 0.04);
}

.footer-ad-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.footer-ad-strip--mid {
  background: var(--surface-2);
}

.footer-ad-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-ad-strip .ad-slot {
  width: 100%;
  max-width: 728px;
  margin: 0;
}

.footer-body {
  padding: 40px 20px 36px;
}

.footer-body__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand {
  position: relative;
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 8px;
}

.footer-brand__accent {
  width: 48px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-brand__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-brand .site-logo {
  justify-content: center;
}

.footer-brand .site-brand .site-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.footer-widgets {
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  align-items: start;
}

.footer-col {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.footer-col .widget {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.footer-col .widget + .widget {
  margin-top: 20px;
}

.footer-supported {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-supported__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-supported__item {
  margin: 0;
  line-height: 0;
}

.footer-supported__link,
.footer-supported__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.footer-supported__link {
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-supported__link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-supported__img {
  display: block;
  max-height: 28px;
  width: auto;
  max-width: min(104px, 100%);
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  min-width: 0;
}

.footer-heading--second {
  margin-top: 22px;
}

.footer-text,
.footer-links,
.footer-about {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-about p {
  margin: 0 0 0.75em;
}

.footer-about p:last-child {
  margin-bottom: 0;
}

.footer-about a {
  color: var(--primary);
  font-weight: 500;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-explore-nav .footer-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px 14px;
}

.footer-explore-nav .footer-links .cat-item a,
.footer-explore-nav .footer-links .menu-item a {
  padding: 6px 0;
}

.footer-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-search input[type="search"],
.footer-search input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.875rem;
  background: var(--surface-2);
  color: var(--text);
}

.footer-search__btn {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: filter 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-search__btn:hover {
  filter: brightness(1.08);
}

.footer-bar {
  background: var(--footer-bar-bg);
  color: var(--footer-bar-text);
  border-top: 1px solid var(--footer-bar-border);
  padding: 20px 20px 24px;
}

.footer-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-social {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-social__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--footer-bar-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--footer-bar-border);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social__link:hover {
  color: var(--footer-bar-text-hover);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social__icon {
  display: block;
  flex-shrink: 0;
}

.footer-bar .footer-nav .menu--footer-primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bar .footer-nav .menu--footer-primary > li > a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--footer-bar-text);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-bar .footer-nav .menu--footer-primary > li > a:hover {
  color: var(--footer-bar-text-hover);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--footer-bar-border);
  text-decoration: none;
}

.footer-bar .footer-nav .sub-menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.footer-bar .footer-nav .sub-menu a {
  font-size: 0.8125rem;
  color: var(--footer-bar-text);
  opacity: 0.9;
}

.footer-legal {
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--footer-bar-border);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--footer-bar-text);
}

.footer-copy__site {
  color: var(--footer-bar-text-hover);
  font-weight: 600;
  text-decoration: none;
}

.footer-copy__site:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-copy__policy {
  color: var(--footer-bar-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy__policy:hover {
  color: var(--footer-bar-text-hover);
}

.footer-copy__sep {
  opacity: 0.5;
}

@media (max-width: 960px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex: none;
    position: static;
  }

  .hero {
    flex-direction: column;
  }

  .hero-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

@media (max-width: 640px) {
  .header-top__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "ad";
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-search {
    flex: 1;
    min-width: 0;
  }

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

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

  .site-logo img.custom-logo {
    height: 44px;
  }
}
