/*
Theme Name: Seerumah Artikel
Theme URI: https://seerumah.com
Author: Seerumah Team
Author URI: https://seerumah.com
Description: Custom theme untuk artikel Seerumah yang match dengan desain frontend Next.js
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: seerumah-artikel
Tags: blog, news, article, custom
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --color-primary: #1957A0;
  --color-primary-dark: #144780;
  --color-accent: #FFCA00;
  --color-accent-light: #FFD84D;
  --color-text: #000000;
  --color-text-light: rgba(0, 0, 0, 0.7);
  --color-text-lighter: rgba(0, 0, 0, 0.6);
  --color-text-lightest: rgba(0, 0, 0, 0.5);
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-light: rgba(0, 0, 0, 0.05);
  --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
  --font-poppins: 'Poppins', system-ui, sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-inter);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-poppins);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Container - center dengan max-width */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 4rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 6rem;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
    padding: 0 8rem;
  }
}

/* Container Inner - untuk content yang perlu dibatasi width */
.container-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.site-header {
  background: var(--color-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

/* Ensure header is full width on single pages - SAMA PERSIS seperti homepage */
body.single .site-header,
body.single-post .site-header,
body.single-post .site-header,
body.single .site-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Pastikan tidak ada wrapper yang membatasi */
body.single,
body.single-post {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Force header-main full width */
body.single .header-main,
body.single-post .header-main,
body.single .site-header .header-main,
body.single-post .site-header .header-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1rem 0 !important;
  box-sizing: border-box !important;
}

/* Force header-content full width */
body.single .header-content,
body.single-post .header-content,
body.single .site-header .header-content,
body.single-post .site-header .header-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.single .site-header .container,
body.single-post .site-header .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  /* Force full width calculation */
  min-width: 0 !important;
}

@media (min-width: 768px) {
  body.single .site-header .container,
  body.single-post .site-header .container {
    padding: 0 2rem !important;
  }
}

@media (min-width: 1024px) {
  body.single .site-header .container,
  body.single-post .site-header .container {
    max-width: 1200px !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1280px) {
  body.single .site-header .container,
  body.single-post .site-header .container {
    max-width: 1280px !important;
    width: 100% !important;
    padding: 0 4rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1440px) {
  body.single .site-header .container,
  body.single-post .site-header .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding: 0 6rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1600px) {
  body.single .site-header .container,
  body.single-post .site-header .container {
    max-width: 1600px !important;
    width: 100% !important;
    padding: 0 8rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Category carousel on single post - SAMA PERSIS seperti homepage */
body.single .category-carousel .container,
body.single-post .category-carousel .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

@media (min-width: 768px) {
  body.single .category-carousel .container,
  body.single-post .category-carousel .container {
    padding: 0 2rem !important;
  }
}

@media (min-width: 1024px) {
  body.single .category-carousel .container,
  body.single-post .category-carousel .container {
    max-width: 1200px !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1280px) {
  body.single .category-carousel .container,
  body.single-post .category-carousel .container {
    max-width: 1280px !important;
    width: 100% !important;
    padding: 0 4rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1440px) {
  body.single .category-carousel .container,
  body.single-post .category-carousel .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding: 0 6rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1600px) {
  body.single .category-carousel .container,
  body.single-post .category-carousel .container {
    max-width: 1600px !important;
    width: 100% !important;
    padding: 0 8rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.header-main {
  padding: 1rem 0;
  width: 100%;
  max-width: 100%;
}

/* Header-main on single post pages - SAMA PERSIS seperti homepage */
body.single .header-main,
body.single-post .header-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}

.site-logo {
  flex-shrink: 0;
  order: 1;
}

.site-logo img {
  height: auto;
  max-width: 180px;
  width: 100%;
}

.header-search {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  order: 2;
}

.search-form {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-inter);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(25, 87, 160, 0.1);
}

.search-button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  order: 3;
}

.header-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text);
  padding: 0.5rem;
  flex-shrink: 0;
  order: 4;
  transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle svg {
  display: block;
}

/* Mobile Side Menu (Side Pop) */
.mobile-side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-side-menu.active {
  visibility: visible;
  opacity: 1;
}

.mobile-side-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.mobile-side-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--color-bg);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-side-menu.active .mobile-side-menu-content {
  transform: translateX(0);
}

.mobile-side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary);
  color: var(--color-bg);
}

.mobile-side-menu-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-bg);
}

.mobile-side-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-bg);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.mobile-side-menu-close:hover {
  opacity: 0.7;
}

.mobile-side-menu-close svg {
  display: block;
}

.mobile-side-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.mobile-side-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-side-menu-link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
  padding-left: 2rem;
}

.mobile-side-menu-link:active {
  background: rgba(25, 87, 160, 0.1);
}

.mobile-side-menu-link svg {
  color: var(--color-text-lightest);
  transition: color 0.2s ease;
}

.mobile-side-menu-link:hover svg {
  color: var(--color-primary);
}

/* Prevent body scroll when side menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Category Carousel */
.category-carousel {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.category-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.category-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
  scroll-padding: 0 1rem;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-scroll-btn {
  display: none;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.category-scroll-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.05);
}

.category-scroll-btn:active {
  transform: scale(0.95);
  background: var(--color-primary);
  color: var(--color-bg);
}

.category-scroll-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.category-scroll-btn.hidden {
  display: none !important;
}

/* Show scroll buttons on mobile and tablet */
@media (max-width: 1024px) {
  .category-scroll-btn {
    display: flex;
  }
  
  .category-carousel-wrapper {
    padding: 0 0.25rem;
  }
  
  .category-scroll {
    padding: 0.5rem 0.25rem;
  }
}

/* Smaller buttons on very small screens */
@media (max-width: 480px) {
  .category-scroll-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .category-scroll-btn svg {
    width: 16px;
    height: 16px;
  }
}

.category-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-bg);
  color: var(--color-text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-link:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.category-link.active {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-accent);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.site-main {
  min-height: calc(100vh - 400px);
  padding: 2.5rem 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
}

/* Single post: batasi lebar konten sama dengan viewport header (.container) agar centered */
body.single .site-main,
body.single-post .site-main {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  body.single .site-main,
  body.single-post .site-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  body.single .site-main,
  body.single-post .site-main {
    max-width: 1200px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
@media (min-width: 1280px) {
  body.single .site-main,
  body.single-post .site-main {
    max-width: 1280px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
@media (min-width: 1440px) {
  body.single .site-main,
  body.single-post .site-main {
    max-width: 1400px;
    padding-left: 6rem;
    padding-right: 6rem;
  }
}
@media (min-width: 1600px) {
  body.single .site-main,
  body.single-post .site-main {
    max-width: 1600px;
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

/* Ensure header and footer are full width on single post pages - SAMA PERSIS seperti homepage */
body.single .site-header,
body.single-post .site-header,
body.single .category-carousel,
body.single-post .category-carousel,
body.single .site-footer,
body.single-post .site-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Banner */
.banner-section {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .banner-section {
    height: 250px;
  }
}

@media (min-width: 768px) {
  .banner-section {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .banner-section {
    height: 400px;
  }
}

.banner-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Homepage Layout */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .home-hero {
    grid-template-columns: 2fr 1fr;
  }
}

.feature-hero {
  background: var(--color-bg);
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.feature-hero:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.feature-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.feature-hero:hover .feature-hero-image img {
  transform: scale(1.05);
}

.feature-hero-content {
  padding: 1.5rem;
}

.feature-hero-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.feature-hero-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-lighter);
}

/* Latest Articles Sidebar */
.latest-sidebar {
  background: var(--color-bg);
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.latest-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.latest-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.latest-item-link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  width: 100%;
  transition: all 0.2s ease;
}

.latest-item-link:hover {
  opacity: 1;
}

.latest-item-image {
  position: relative;
  width: 140px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
}

@media (min-width: 1280px) {
  .latest-item-image {
    width: 160px;
  }
}

.latest-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.latest-item:hover .latest-item-image img {
  transform: scale(1.05);
}

.latest-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.latest-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

@media (min-width: 1280px) {
  .latest-item-title {
    font-size: 1.0625rem;
  }
}

.latest-item:hover .latest-item-title {
  color: var(--color-primary);
}

.latest-item-meta {
  font-size: 0.8125rem;
  color: var(--color-text-lighter);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}

.latest-item-meta span {
  display: block;
}

@media (min-width: 768px) {
  .latest-item-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Articles Grid */
.articles-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.025em;
}

.section-meta {
  font-size: 0.875rem;
  color: var(--color-text-lighter);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: var(--color-bg);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--color-border);
}

.article-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-content {
  padding: 1rem;
}

.article-card-date {
  font-size: 0.75rem;
  color: var(--color-text-lighter);
  margin-bottom: 0.5rem;
}

.article-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--color-primary);
}

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-author {
  font-size: 0.75rem;
  color: var(--color-text-lightest);
}

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

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  font-size: 0.875rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.pagination-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-link.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
  font-weight: 600;
}

.pagination-link.disabled {
  color: rgba(0, 0, 0, 0.3);
  border-color: var(--color-border-light);
  cursor: not-allowed;
}

.pagination-link.disabled:hover {
  border-color: var(--color-border-light);
  color: rgba(0, 0, 0, 0.3);
}

/* Single Post Styles */

.post-breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .post-breadcrumb {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .post-breadcrumb {
    padding: 0;
    max-width: 100%;
  }
}

.post-breadcrumb a {
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-breadcrumb span {
  color: rgba(0, 0, 0, 0.4);
}

/* Single Post Container - untuk alignment konsisten, teks tidak nabrak sidebar */
.single-post {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  min-width: 0; /* agar konten bisa shrink, tidak overflow ke sidebar */
  padding: 0 1rem;
  position: relative;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .single-post {
    padding: 0 2rem;
  }
}

/* Desktop: kolom teks dipersempit (max-width) biar ke bawah, margin kanan besar biar ga nabrak "Artikel Lainnya" */
@media (min-width: 1024px) {
  .single-post {
    padding: 0;
    max-width: 560px;
    margin-left: calc(80px + 1.5rem);
    margin-right: calc(260px + 2.5rem);
  }
}

@media (min-width: 1280px) {
  .single-post {
    max-width: 600px;
    margin-left: calc(80px + 2rem);
    margin-right: calc(280px + 3rem);
  }
}

@media (min-width: 1440px) {
  .single-post {
    max-width: 640px;
    margin-left: calc(80px + 1.5rem);
    margin-right: calc(300px + 3rem);
  }
}

@media (min-width: 1600px) {
  .single-post {
    max-width: 680px;
    margin-left: calc(80px + 2rem);
    margin-right: calc(320px + 3.5rem);
  }
}

@media (min-width: 1920px) {
  .single-post {
    max-width: 720px;
    margin-left: calc(80px + 2.5rem);
    margin-right: calc(340px + 4rem);
  }
}

/* Main content area - center aligned, tidak nabrak sidebar */
.post-main-area {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .post-main-area {
    max-width: 100%;
    margin: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

.post-header {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .post-header {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .post-header {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .post-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .post-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .post-title {
    font-size: 2.25rem;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.post-meta-separator {
  color: rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.post-meta-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-primary);
  font-weight: 500;
}

.post-meta-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.post-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Featured image wrapper - align dengan post-header dan content */
.post-featured-image-wrapper {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .post-featured-image-wrapper {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .post-featured-image-wrapper {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

/* Post content - center aligned, isi teks tidak overflow ke sidebar */
.post-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0 1rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .post-content {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .post-content {
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Pastikan konten tidak overflow di mobile */
@media (max-width: 767px) {
  .post-content {
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .prose {
    font-size: 0.875rem;
  }
  
  .prose p,
  .prose li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Share Buttons (Left Side) */
.post-share-buttons {
  display: none;
}

/* Bagikan: sejajar dengan viewport header (batas kiri container) */
@media (min-width: 1024px) {
  .post-share-buttons {
    display: block;
    position: fixed;
    top: 50%;
    left: max(1rem, calc((100vw - 1200px) / 2));
    transform: translateY(-50%);
    z-index: 100;
    max-width: 80px;
  }
  
  @media (max-width: 1200px) {
    .post-share-buttons {
      left: max(0.5rem, calc((100vw - 1200px) / 2));
    }
  }
}

@media (min-width: 1280px) {
  .post-share-buttons {
    left: max(1rem, calc((100vw - 1280px) / 2));
  }
}

@media (min-width: 1440px) {
  .post-share-buttons {
    left: max(1rem, calc((100vw - 1400px) / 2));
  }
}

@media (min-width: 1600px) {
  .post-share-buttons {
    left: max(1rem, calc((100vw - 1600px) / 2));
  }
}

/* Responsive: sembunyikan share buttons di tablet dan mobile */
@media (max-width: 1023px) {
  .post-share-buttons {
    display: none !important;
  }
}

/* 1024–1200px: share buttons tetap sejajar viewport */
@media (min-width: 1024px) and (max-width: 1200px) {
  .post-share-buttons {
    left: max(0.5rem, calc((100vw - 1200px) / 2));
  }
  
  .single-post {
    margin-left: calc(80px + 0.75rem) !important;
  }
}

.share-buttons-sticky {
  background: var(--color-bg);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-light);
}

.share-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.share-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.share-button:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-button svg {
  display: block;
}

.share-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: white;
}

.share-twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: white;
}

.share-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: white;
}

.share-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

.share-copy:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Sidebar Fixed (Right Side) */
.post-sidebar-fixed {
  display: none;
}

/* Artikel Lainnya: sejajar dengan viewport header (batas kanan container) */
@media (min-width: 1024px) {
  .post-sidebar-fixed {
    display: block;
    position: fixed;
    top: 50%;
    right: max(1rem, calc((100vw - 1200px) / 2));
    transform: translateY(-50%);
    width: 240px;
    max-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100;
    background: var(--color-bg);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border-light);
    box-sizing: border-box;
    overflow-x: hidden;
  }

  @media (max-width: 1200px) {
    .post-sidebar-fixed {
      right: max(0.5rem, calc((100vw - 1200px) / 2));
      width: 220px;
    }
  }
}

@media (min-width: 1280px) {
  .post-sidebar-fixed {
    width: 260px;
    right: max(1rem, calc((100vw - 1280px) / 2));
  }
}

@media (min-width: 1440px) {
  .post-sidebar-fixed {
    width: 280px;
    right: max(1rem, calc((100vw - 1400px) / 2));
  }
}

@media (min-width: 1600px) {
  .post-sidebar-fixed {
    width: 300px;
    right: max(1rem, calc((100vw - 1600px) / 2));
  }
}

/* Responsive: sembunyikan sidebar di tablet dan mobile */
@media (max-width: 1023px) {
  .post-sidebar-fixed {
    display: none !important;
  }
  
  /* Reset margin untuk konten saat sidebar tidak ada */
  .single-post {
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 1rem;
  }
  
  @media (min-width: 768px) {
    .single-post {
      padding: 0 2rem;
    }
  }
}

/* Pastikan sidebar tidak overlap: margin kanan cukup besar, kolom teks tetap sempit */
@media (min-width: 1024px) and (max-width: 1200px) {
  .post-sidebar-fixed {
    right: 0.5rem;
    width: 220px;
    max-width: calc(100vw - 800px - 100px);
  }
  
  .single-post {
    max-width: 520px !important;
    margin-right: calc(240px + 2.5rem) !important;
  }
}

/* Hide old sidebar */
.post-sidebar {
  display: none;
}

/* Prose Styling for Article Content - panjang ikut container, tidak nabrak sidebar */
.prose {
  font-family: var(--font-inter);
  font-size: 0.9375rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--color-text);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  overflow-x: hidden;
  hyphens: auto;
}

.prose * {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Pastikan semua teks di prose bisa wrap, tidak overflow ke sidebar */
.prose p,
.prose span,
.prose div,
.prose li,
.prose td,
.prose th,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Pastikan elemen inline tidak overflow */
.prose a,
.prose strong,
.prose em,
.prose code {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .prose {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .prose {
    font-size: 1.0625rem; /* Better readability on desktop */
  }
}

/* Desktop: Limit content width for better readability */

.prose h1,
.prose h2 {
  font-family: var(--font-poppins);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .prose h1,
  .prose h2 {
    font-size: 1.5rem;
  }
}

.prose h3,
.prose h4 {
  font-family: var(--font-poppins);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .prose h3,
  .prose h4 {
    font-size: 1.25rem;
  }
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.75;
  font-size: 0.9375rem;
  text-align: left;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

@media (min-width: 768px) {
  .prose p {
    font-size: 1.0625rem; /* 17px - better readability */
    line-height: 1.85;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .prose p {
    font-size: 1.125rem; /* 18px - optimal for desktop reading */
    line-height: 1.9;
  }
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.75;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: 1.75;
  padding-left: 0.25rem;
  font-size: 0.9375rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.prose li::marker {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .prose li {
    font-size: 1rem;
    line-height: 1.8;
  }
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

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

.prose strong {
  font-weight: 600;
  color: var(--color-text);
}

.prose em {
  font-style: italic;
}

.prose code {
  background: rgba(255, 202, 0, 0.15);
  color: var(--color-primary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-family: monospace;
}

.prose pre {
  background: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.25rem 0;
  font-size: 0.8125rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Pastikan pre dan code tidak overflow */
.prose pre,
.prose code {
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.prose pre code {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.prose img {
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  overflow: hidden;
  object-fit: contain;
}

/* Pastikan gambar tidak overflow */
.prose img,
.prose figure img {
  max-width: 100% !important;
  height: auto !important;
}

/* Responsive images in content - mobile full width tapi tetap dalam container */
@media (max-width: 767px) {
  .prose img {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0.375rem;
  }
  
  .prose figure {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
  }
  
  .prose figure img {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .prose figcaption {
    padding: 0;
    margin-top: 0.5rem;
  }
}

.prose figure {
  margin: 1.5rem 0;
}

.prose figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-lighter);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Post Tags */
.post-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-tags-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 0.25rem;
}

.post-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-tag:hover {
  background: var(--color-primary);
  color: white;
}

/* Sidebar Styles */
.sidebar-widget {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.post-sidebar-fixed .sidebar-widget {
  background: transparent;
  padding: 0;
}

.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sidebar-post {
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  /* Pastikan tidak overflow */
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.sidebar-post:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-post-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
}

@media (min-width: 1280px) {
  .sidebar-post-image {
    width: 60px;
    height: 60px;
  }
}

.sidebar-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-post:hover .sidebar-post-image img {
  transform: scale(1.05);
}

.sidebar-post-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Pastikan konten tidak overflow */
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-post-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  /* Pastikan teks tidak terpotong */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  /* Pastikan ada ruang untuk teks */
  padding-right: 0;
  margin-right: 0;
}

.sidebar-post:hover .sidebar-post-title {
  color: var(--color-primary);
}

.sidebar-post-date {
  font-size: 0.625rem;
  color: var(--color-text-lighter);
}

/* Related Posts Mobile */
.post-related-mobile {
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  max-width: 100%;
}

@media (min-width: 768px) {
  .post-related-mobile {
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .post-related-mobile {
    padding: 1.5rem 0;
    display: none;
    max-width: 100%;
  }
}

.related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .related-card-image {
    height: 200px;
  }
}

@media (min-width: 768px) {
  .related-card-image {
    height: 220px;
  }
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-content {
  padding: 1rem;
}

.related-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-card:hover .related-card-title {
  color: var(--color-primary);
}

.related-card-date {
  font-size: 0.8125rem;
  color: var(--color-text-lighter);
}

/* Back Link */
.post-back-link {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1.5rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .post-back-link {
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .post-back-link {
    padding: 1.5rem 0;
    max-width: 100%;
  }
}

.post-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-back-link a:hover {
  color: var(--color-accent);
}

.prose hr {
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* Tabel di artikel: scroll horizontal jika perlu, tidak nabrak sidebar */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
  box-sizing: border-box;
}

/* Embed/iframe di dalam artikel (YouTube, dll) - lebar ikut container, tidak nabrak sidebar */
.prose iframe,
.prose embed,
.prose object {
  max-width: 100% !important;
  display: block;
}

.prose video {
  max-width: 100% !important;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}

/* Pastikan table tidak overflow di mobile */
@media (max-width: 767px) {
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
    word-wrap: break-word;
    max-width: 150px;
  }
}

.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose th {
  background: rgba(25, 87, 160, 0.05);
  font-weight: 600;
  color: var(--color-primary);
}

.prose tbody tr:hover {
  background: var(--color-bg-light);
}

/* Footer */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding: 2.5rem 0;
  width: 100%;
  max-width: 100%;
}

/* Footer on single post pages - SAMA PERSIS seperti homepage */
body.single .site-footer,
body.single-post .site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single .site-footer .container,
body.single-post .site-footer .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

@media (min-width: 768px) {
  body.single .site-footer .container,
  body.single-post .site-footer .container {
    padding: 0 2rem !important;
  }
}

@media (min-width: 1024px) {
  body.single .site-footer .container,
  body.single-post .site-footer .container {
    max-width: 1200px !important;
    padding: 0 3rem !important;
  }
}

@media (min-width: 1280px) {
  body.single .site-footer .container,
  body.single-post .site-footer .container {
    max-width: 1280px !important;
    padding: 0 4rem !important;
  }
}

@media (min-width: 1440px) {
  body.single .site-footer .container,
  body.single-post .site-footer .container {
    max-width: 1400px !important;
    padding: 0 6rem !important;
  }
}

@media (min-width: 1600px) {
  body.single .site-footer .container,
  body.single-post .site-footer .container {
    max-width: 1600px !important;
    padding: 0 8rem !important;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 3fr;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-primary-dark);
}

.footer-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-right {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

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

.footer-partners {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-partners-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-align: center;
}

.footer-partners-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-partner img {
  height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .footer-partner img {
    height: 64px;
  }
}

.footer-partner:hover img {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-lighter);
}

/* Archive & Search Pages */
.archive-header,
.search-header {
  margin-bottom: 2.5rem;
}

.archive-title,
.search-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .archive-title,
  .search-title {
    font-size: 2.25rem;
  }
}

.archive-meta,
.search-meta {
  color: var(--color-text-light);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 0;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #9ca3af;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.empty-state-button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.empty-state-button:hover {
  background: var(--color-primary-dark);
  color: var(--color-bg);
}

/* Responsive */
@media (max-width: 1023px) {
  .header-search {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-search {
    order: 2;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .header-content {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .site-logo {
    order: 1;
  }

  .site-logo img {
    max-width: 128px;
  }

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

  .mobile-menu-toggle {
    order: 3;
  }

  h1 {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .footer-right {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   AUTHOR BOX - Single Post
   ======================================== */
.post-author-box {
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border-light);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.author-box-header {
  margin-bottom: 1.5rem;
}

.author-box-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  font-family: var(--font-poppins);
}

.author-box-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  display: block;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.75rem 0;
  font-family: var(--font-poppins);
}

.author-name a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.author-bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0 0 1rem 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.author-posts-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.author-posts-count svg {
  flex-shrink: 0;
}

.author-actions {
  margin-top: 1rem;
}

.author-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.author-view-all-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.author-view-all-btn svg {
  flex-shrink: 0;
}

/* Author Social Links */
.author-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.author-social-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.author-social-link svg {
  width: 20px;
  height: 20px;
}

/* Social Media Specific Colors */
.author-social-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.author-social-twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: #fff;
}

.author-social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #fff;
}

.author-social-linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
  color: #fff;
}

.author-social-youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #fff;
}

.author-social-tiktok:hover {
  background: #000000;
  border-color: #000000;
  color: #fff;
}

/* Author Box Responsive */
@media (max-width: 767px) {
  .post-author-box {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .author-box-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-avatar-img {
    width: 100px;
    height: 100px;
  }

  .author-info {
    text-align: center;
  }

  .author-meta {
    justify-content: center;
  }

  .author-view-all-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   AUTHOR ARCHIVE PAGE
   ======================================== */
.author-header {
  margin: 2rem 0 3rem;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: 0.75rem;
  border: 1px solid var(--color-border-light);
}

.author-header-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.author-header-avatar {
  flex-shrink: 0;
}

.author-header-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  display: block;
}

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

.author-header-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
  font-family: var(--font-poppins);
}

.author-header-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0 0 1rem 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.author-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-header-posts-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.author-header-posts-count svg {
  flex-shrink: 0;
}

/* Author Header Social Links */
.author-header-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.author-header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.author-header-social-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.author-header-social-link svg {
  width: 22px;
  height: 22px;
}

/* Social Media Specific Colors for Header */
.author-header-social-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.author-header-social-twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: #fff;
}

.author-header-social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #fff;
}

.author-header-social-linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
  color: #fff;
}

.author-header-social-youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #fff;
}

.author-header-social-tiktok:hover {
  background: #000000;
  border-color: #000000;
  color: #fff;
}

.author-posts-section {
  margin-top: 3rem;
}

.author-posts-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 2rem 0;
  font-family: var(--font-poppins);
}

/* Author Archive Responsive */
@media (max-width: 767px) {
  .author-header {
    padding: 1.5rem;
    margin: 1.5rem 0 2rem;
  }

  .author-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .author-header-img {
    width: 120px;
    height: 120px;
  }

  .author-header-name {
    font-size: 1.5rem;
  }

  .author-header-info {
    text-align: center;
  }

  .author-header-meta {
    justify-content: center;
  }

  .author-header-social-links {
    justify-content: center;
  }

  .author-social-links {
    justify-content: center;
  }

  .author-posts-title {
    font-size: 1.25rem;
  }
}


