/*
 Theme Name:   GeneratePress Child
 Description:  Child theme GeneratePress: grid berita front page, widget Artikel Terbaru, meta artikel, dan tombol share.
 Author:       You
 Template:     generatepress
 Version:      1.4.0
 Requires PHP: 7.4
 Text Domain:  detak
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== Widget Artikel Terbaru ===== */
.news-widget-container {
  margin: auto;
}

.news-widget-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
}

/* The widget prints the sidebar's own title wrapper (<h2 class="widget-title">)
   instead of a bespoke element, so scope the styling to this widget's header. */
.news-widget-header .widget-title {
  font-size: 20px;
  font-weight: 600;
  margin: auto;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-widget-header .widget-title::after {
  content: "";
  flex: 1 1 auto;
  border-top: 2px solid var(--accent, #1e73be);
}

.news-widget-posts {
  display: flex;
  flex-direction: column;
}

.news-widget-post {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.news-widget-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-widget-thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.news-widget-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.news-widget-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f4;
  color: #888;
  font-size: 11px;
  border-radius: 4px;
}

.news-widget-post-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.news-widget-post-title a {
  text-decoration: none;
}

.news-widget-post-title a:hover {
  color: #0073aa;
}

.news-widget-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #666;
}

.news-widget-category {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--accent, #1e73be);
}

.news-widget-category:hover {
  text-decoration: underline;
}

/* Dot separator only when a category actually precedes the date. */
.news-widget-category + .news-widget-date::before {
  content: "\2022";
  margin-right: 6px;
}

.news-widget-date {
  white-space: nowrap;
}

/* ===== Layout Umum ===== */
.one-container .site-main > :last-child,
.separate-containers .site-main > :last-child {
  margin-bottom: 20px;
}

.site-info {
  border-top: 1px solid #eee;
}

.main-navigation {
  border-bottom: 1px solid #eee;
}

@media (min-width: 769px) {
  .inside-right-sidebar {
    position: sticky;
    top: 0px;
    height: fit-content;
  }
}

/* ===== Featured Image ===== */
.featured-image {
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
}

.featured-image figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption.caption {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  padding: 8px 2px 0;
}

/* ===== Entry Header & Meta ===== */
.entry-header {
  margin-bottom: 1.5em;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 11px;
  text-transform: uppercase;
}

.post-categories a {
  padding: 4px 8px;
  background-color: #f1f3f4;
  color: #3c4043;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.post-categories a:hover {
  background-color: #ffffff;
  color: var(--accent, #1e73be);
  border-color: var(--accent, #1e73be);
}

.post-info {
  display: flex;
  align-items: center;

  border-bottom: 1px solid rgba(238, 238, 238, 0.6);
}

.post-author-info {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  font-size: 13px;
  color: #666;
}

.date-updated {
  font-size: 12px;
  color: #6b6b6b;
  font-style: italic;
}

/* ===== Share Button ===== */
.share-button-container {
  margin-left: auto;
  position: relative;
}

.share-button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent, #1e73be);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.share-button:hover,
.share-button:active {
  color: #222;
  background: transparent;
}

.share-button:focus {
  outline: none;
  background: transparent;
}

.share-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* share.js toggles .is-shared on the button for 2s and writes the message into
   .share-status, which is a role="status" live region so it is announced. */
.share-button.is-shared {
  color: #1a7f37;
}

/* Empty until share.js fills it, so :not(:empty) is also the visibility rule. */
.share-status:not(:empty) {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  padding: 6px 10px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* ===== Post Tags ===== */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.post-tags__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mute, #888);
  margin-right: 2px;
}

.post-tags__item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft, #444);
  background: var(--bg-soft, #f2f2f2);
  border-radius: 32px;
  padding: 5px 14px;
  text-decoration: none;
  transition:
    color var(--transition, 0.2s),
    background var(--transition, 0.2s);
}

.post-tags__item:hover,
.post-tags__item:focus {
  color: #fff !important;
  background: var(--accent, #2563eb);
}

/* ===== Author & Tag Archive ===== */
.author-page {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.author-page .page-title {
  margin: 0;
}

/* Direct child only: the avatar. Tag archives nest their image in .tag-image. */
.author-page > img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.tag-image img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.social-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.social-profile a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f1f3f4;
  color: #3c4043;
  border: 1px solid #eee;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-profile .social-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.social-profile a:hover {
  background-color: #ffffff;
  color: var(--accent, #1e73be);
  border-color: var(--accent, #1e73be);
}

/* Front page grid lives in assets/css/front-page.css (loaded only there). */

/* ===== Blok Konten (Gutenberg) ===== */
.wp-block-image {
  margin: 1.5em auto;
}

.wp-block-quote {
  font-size: 16px;
}

.wp-block-table {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table th,
.wp-block-table table td {
  white-space: normal !important;
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
  .wp-block-table {
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  .wp-block-table table {
    min-width: 600px;
  }
}
.entry-standfirst {
  font-size: 1.05em;
  line-height: 1.65;
  color: #444;
  margin: 10px 0 16px;
}

/* =======================================================================
   SINGLE POST — Layout Detak Media
   ======================================================================= */

/* CSS Variables for single post (scoped, no clash with GP) */
.detak-single {
  --detak-accent: #db2a2a;
  --detak-accent-dark: #b52222;
  --detak-text: #1a1a1a;
--detak-text-soft: #3f3f46;
  --detak-text-mute: #52525b;
  --detak-bg: #ffffff;
  --detak-bg-soft: #f5f5f3;
  --detak-border: #e8e6e2;
  --detak-border-soft: #f0eeea;
  --detak-transition: 0.2s ease;
}

/* ---- Reading Progress Bar ---- */
.detak-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--detak-accent, #db2a2a);
  z-index: 200;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ---- Container (1000px max) ---- */
.detak-single .container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Breadcrumb ---- */
.detak-breadcrumb {
  padding: 24px 0 0;
}
.detak-breadcrumb ol,
.detak-breadcrumb nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--detak-text-mute, #8a8a8a);
  list-style: none;
  margin: 0;
  padding: 0;
}
.detak-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--detak-transition, 0.2s);
}
.detak-breadcrumb a:hover {
  color: var(--accent);
  opacity: 0.8;
}
.detak-breadcrumb__cat {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ---- Post Header ---- */
.detak-post-header {
  padding-bottom: 48px;
}
.detak-post-header .detak-post-header__inner {
  max-width: 700px;
  margin: 0 auto;
}

.detak-post-title {
  margin: 16px 0 20px;
}

.detak-post-deck {
  max-width: 66ch;
  margin-bottom: 24px;
}

/* ---- Post Meta ---- */
.detak-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--detak-text-mute, #8a8a8a);
  padding-top: 20px;
  border-top: 1px solid var(--detak-border-soft, #f0eeea);
}
.detak-post-meta__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--detak-border-soft, #f0eeea);
}
.detak-post-meta__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detak-post-meta__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.detak-post-meta__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--detak-text-soft, #4a4a4a);
}
.detak-post-meta__author a {
  color: inherit;
  text-decoration: none;
  transition: color var(--detak-transition, 0.2s);
}
.detak-post-meta__by {
  font-weight: 400;
  color: var(--detak-text-mute, #8a8a8a);
}
.detak-post-meta__sep {
  color: var(--detak-text-mute, #8a8a8a);
  font-weight: 400;
  margin: 0 3px;
}
.detak-post-meta__date {
  font-size: 12px;
}

/* ---- Like / Share / Comment Actions ---- */
.detak-post-meta__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.detak-post-like__btn,
.detak-post-share__btn,
.detak-post-comment__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--detak-border, #e8e6e2);
  color: var(--detak-text-mute, #8a8a8a);
  background: var(--detak-bg, #fff);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    color var(--detak-transition, 0.2s),
    border-color var(--detak-transition, 0.2s),
    background var(--detak-transition, 0.2s),
    transform var(--detak-transition, 0.2s),
    box-shadow var(--detak-transition, 0.2s);
}
.detak-post-like__btn:hover,
.detak-post-share__btn:hover,
.detak-post-comment__link:hover {
  color: var(--detak-text, #1a1a1a);
 border-color: var(--detak-text-mute, #52525b);
  background: var(--detak-bg-soft, #f5f5f3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

/* Override existing .share-button:focus from child theme */
.detak-post-share__btn:focus,
.detak-post-share__btn:active {
  background: var(--detak-bg, #fff);
  color: var(--detak-text-mute, #8a8a8a);
  outline: none;
}

.detak-post-like__btn svg {
  transition: fill var(--detak-transition, 0.2s);
}
.detak-post-like__btn.is-liked {
  color: var(--detak-accent, #db2a2a);
  border-color: var(--detak-accent, #db2a2a);
}
.detak-post-like__btn.is-liked svg {
  fill: var(--detak-accent, #db2a2a);
}
.detak-post-like__count,
.detak-post-share__count,
.detak-post-comment__count {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ---- Featured Image ---- */
.detak-post-thumbnail {
  margin-bottom: 40px;
}
.detak-post-thumbnail__img,
.detak-post-thumbnail .wp-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.detak-post-thumbnail figcaption {
  font-size: 12px;
  color: var(--detak-text-mute, #8a8a8a);
  margin-top: 10px;
  line-height: 1.5;
}

/* ---- Post Body (narrow 700px centered) ---- */
.detak-post-body {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* ---- Entry Content Typography ---- */
.detak-post-content {
  margin-bottom: 32px;
}
.detak-post-content p {
  margin-bottom: 28px;
}
.detak-post-content p:last-child {
  margin-bottom: 0;
}
.detak-post-content h2 {
  margin: 40px 0 16px;
}
.detak-post-content h3 {
  margin: 32px 0 12px;
}
.detak-post-content blockquote {
  border-left: 3px solid var(--detak-accent, #db2a2a);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
}
.detak-post-content blockquote p {
  font-style: italic;
  margin-bottom: 8px;
}
.detak-post-content blockquote cite {
  font-style: normal;
}
.detak-post-content a {
  text-underline-offset: 3px;
}
.detak-post-content ul,
.detak-post-content ol {
  margin: 0 0 24px;
  padding: 0 24px;
}
.detak-post-content ul {
  list-style: disc;
}
.detak-post-content ol {
  list-style: decimal;
}
.detak-post-content li {
  line-height: 1.8;
  margin-bottom: 6px;
}
.detak-post-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}
.detak-post-content figure {
  margin: 32px 0;
}
.detak-post-content figcaption {
  margin-top: 8px;
}
.detak-post-content hr {
  border: none;
  border-top: 1px solid var(--detak-border, #e8e6e2);
  margin: 40px 0;
}

/* ---- Post Updated ---- */
.detak-post-updated {
  margin: 24px 0;
  padding: 14px 0;
  border-top: 1px solid var(--detak-border-soft, #f0eeea);
  border-bottom: 1px solid var(--detak-border-soft, #f0eeea);
  font-size: 13px;
  font-style: italic;
  color: var(--detak-text-mute, #8a8a8a);
}

/* ---- Post Tags ---- */
.detak-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.detak-post-tags__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--detak-text-mute, #8a8a8a);
  margin-right: 2px;
}
.detak-post-tags__item {
  font-size: 13px;
  font-weight: 500;
  color: var(--detak-text-soft, #4a4a4a);
  background: var(--detak-bg-soft, #f5f5f3);
  border-radius: 32px;
  padding: 5px 14px;
  text-decoration: none;
  transition:
    color var(--detak-transition, 0.2s),
    background var(--detak-transition, 0.2s);
}
.detak-post-tags__item:hover {
  color: var(--detak-accent, #db2a2a);
}

/* ---- Page Links (multipage) ---- */
.detak-post-pagelinks {
  margin: 24px 0;
  font-size: 14px;
}
.detak-post-pagelinks a,
.detak-post-pagelinks span {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 2px;
  border: 1px solid var(--detak-border, #e8e6e2);
  border-radius: 4px;
  text-decoration: none;
}
.detak-post-pagelinks a:hover {
  background: var(--detak-bg-soft, #f5f5f3);
}

/* ---- Follow Strip ---- */
.detak-follow-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--detak-border-soft, #f0eeea);
  border-bottom: 1px solid var(--detak-border-soft, #f0eeea);
  margin-bottom: 20px;
}
.detak-follow-strip__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--detak-text-soft, #4a4a4a);
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}
.detak-follow-strip__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Google Button ---- */
.detak-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--detak-bg, #fff);
  border: 1px solid var(--detak-border, #e8e6e2);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--detak-text-soft, #4a4a4a);
  text-decoration: none;
  transition:
    border-color var(--detak-transition, 0.2s),
    color var(--detak-transition, 0.2s),
    box-shadow var(--detak-transition, 0.2s);
  white-space: nowrap;
}
.detak-google-btn:hover {
  border-color: #4285f4;
  color: var(--detak-text, #1a1a1a);
  box-shadow: 0 1px 4px rgba(66, 133, 244, 0.15);
}
.detak-google-btn__icon {
  display: block;
  flex-shrink: 0;
}

/* ---- Author Box ---- */
.detak-author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 12px;
  color: var(--detak-text-soft, #4a4a4a);
  background: var(--detak-bg-soft, #f5f5f3);
}
.detak-author-box img,
.detak-author-box__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--detak-border-soft, #f0eeea);
}
.detak-author-box__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.detak-author-box__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}
.detak-author-box__name a {
  color: var(--detak-text, #1a1a1a);
  text-decoration: none;
  transition: color var(--detak-transition, 0.2s);
}
.detak-author-box__name a:hover {
  color: var(--detak-accent, #db2a2a);
}
.detak-author-box__bio {
  font-size: 14px;
  color: var(--detak-text-mute, #8a8a8a);
  line-height: 1.6;
  margin: 0;
}
.detak-author-box__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.detak-author-box__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--detak-text-soft, #4a4a4a);
  text-decoration: none;
  transition: color var(--detak-transition, 0.2s);
}
.detak-author-box__social:hover {
  color: var(--detak-accent, #db2a2a);
}
.detak-author-box__social svg {
  width: 16px;
  height: 16px;
}

/* ---- Related Posts ---- */
.detak-related {
  padding: 24px 0;
  border-top: 1px solid var(--detak-border, #e8e6e2);
}
.detak-related .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.detak-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--detak-text, #1a1a1a);
  margin: 0 0 24px;
}
.detak-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

/* Related Card */
.detak-related-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--detak-border-soft, #f0eeea);
}
.detak-related-card:nth-last-child(-n + 2) {
  border-bottom: none;
  padding-bottom: 0;
}
.detak-related-card__thumb {
  flex-shrink: 0;
  width: 120px;
  border-radius: 4px;
  overflow: hidden;
}
.detak-related-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.detak-related-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.detak-related-card__date {
  font-size: 12px;
  color: var(--detak-text-mute, #8a8a8a);
  margin: 0 0 6px;
  line-height: 1;
}
.detak-related-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.detak-related-card__title a {
  color: var(--detak-text, #1a1a1a);
  text-decoration: none;
  transition: color var(--detak-transition, 0.2s);
}
.detak-related-card__title a:hover {
  color: var(--detak-accent, #db2a2a);
}

/* ===== RESPONSIVE — Single Post ===== */
@media (max-width: 900px) {
  .detak-related__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .detak-related-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--detak-border-soft, #f0eeea);
    padding-bottom: 16px;
  }
  .detak-related-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .detak-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 18px;
  }
  .detak-author-box img,
  .detak-author-box__avatar {
    width: 84px;
    height: 84px;
  }
  .detak-author-box__body {
    align-items: center;
  }
  .detak-author-box__socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .detak-single .container,
  .archive .container,
  .blog .container,
  .search .container {
    padding: 0 18px;
  }
  .detak-post-meta {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "avatar info"
      "avatar actions";
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }
  .detak-post-meta__avatar {
    grid-area: avatar;
    align-self: start;
  }
  .detak-post-meta__info {
    grid-area: info;
  }
  .detak-post-meta__actions {
    grid-area: actions;
    display: flex;
    width: 100%;
    margin-top: 4px;
    justify-content: flex-end;
  }
  .detak-post-meta .share-button-container {
    margin-left: 0;
  }
  .detak-post-title {
    letter-spacing: -0.4px;
  }
  .detak-post-content p,
  .detak-post-content li {
    font-size: 16px;
  }
  .detak-post-content h2 {
    font-size: 20px;
  }
}

/* =======================================================================
   ARCHIVE — Layout (kategori, tag, tanggal, author)
   ======================================================================= */

/* ---- Archive Header ---- */
.archive-header {
  padding: 24px 0;
  margin-bottom: 20px;
}

.archive-header__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1e73be;
  margin-bottom: 8px;
}

.archive-header__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.archive-header__desc {
  font-size: 16px;
  color: #8a8a8a;
  max-width: 560px;
  line-height: 1.6;
}

/* ---- Section Title (heading di atas grid) ---- */
.archive-latest__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  margin: 0 0 24px;
  border-bottom: 1px solid #e8e6e2;
  padding-bottom: 12px;
}

/* ---- Latest Grid (daftar artikel arsip) ---- */
.archive-latest__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin: 32px auto 0;
}

/* ---- Archive Card ---- */
.archive-card {
  border-bottom: 1px solid #f0eeea;
}

.archive-card:nth-last-child(-n + 2) {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-card__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  align-items: flex-start;
  padding: 20px 0;
  text-decoration: none;
}

.archive-card__thumb {
  margin: 0;
  width: 140px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.archive-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card__link:hover .archive-card__img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.archive-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f4;
}

.archive-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1e73be;
}

.archive-card__date {
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1;
}

.archive-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0;
}

.archive-card__link:hover .archive-card__title {
  color: #1e73be;
}

/* ---- Pagination ---- */
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 48px;
  flex-wrap: wrap;
}
.archive-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border, #e8e6e2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft, #4a4a4a);
  background: var(--bg, #fff);
  transition:
    border-color var(--transition, 0.2s),
    color var(--transition, 0.2s),
    background var(--transition, 0.2s);
}
.archive-pagination__btn:hover {
  border-color: var(--accent, #1e73be);
  color: var(--accent, #1e73be);
}
.archive-pagination__btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.archive-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.archive-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border, #e8e6e2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft, #4a4a4a);
  transition:
    border-color var(--transition, 0.2s),
    color var(--transition, 0.2s),
    background var(--transition, 0.2s);
}
.archive-pagination__page:hover {
  border-color: #d1d1d1;
  background-color: #f5f5f5;
  color: var(--text, #333);
}
.archive-pagination__page.is-active {
  background: var(--accent, #1e73be);
  color: #fff;
  border-color: var(--accent, #1e73be);
}
.archive-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: var(--text-mute, #888);
}

/* ---- Empty State ---- */
.archive-latest__grid + p {
  padding: 48px 0;
  text-align: center;
  font-size: 16px;
  color: #8a8a8a;
}

/* ===== RESPONSIVE — Archive ===== */
@media (max-width: 900px) {
  .archive-latest__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .archive-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid #f0eeea;
    padding-bottom: 0;
  }

  .archive-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .archive-card__link {
    grid-template-columns: 100px 1fr;
  }

  .archive-card__thumb {
    width: 100px;
    height: 72px;
  }

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

  .archive-header__title {
    letter-spacing: -0.5px;
  }

  .archive-pagination {
    gap: 6px;
    padding: 28px 0 36px;
  }
  .archive-pagination__btn {
    padding: 7px 12px;
    font-size: 13px;
  }
  .archive-pagination__page {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .archive-pagination__ellipsis {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ===== Hover Effects for Main Navigation ===== */
.main-navigation .main-nav ul li > a {
  position: relative;
  transition: color 0.2s ease;
}

.main-navigation .main-nav ul li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent, #1e73be);
  transition: width 0.2s ease;
}

.main-navigation .main-nav ul li:hover > a::after,
.main-navigation .main-nav ul li.current-menu-item > a::after {
  width: 100%;
}
