/*
Theme Name: SENOPATI
Theme URI: https://jengker.tech
Author: Jengker
Author URI: https://jengker.tech
Description: Template berita ringan, cepat, SEO-optimized, Schema markup, Google News & Discover ready. Dibangun untuk performa PageSpeed terbaik.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: senopati
Tags: news, blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, theme-options, translation-ready
*/

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* === CSS VARIABLES === */
:root {
    --primary: rgb(0, 151, 136);
    --primary-dark: rgb(0, 121, 107);
    --primary-light: rgb(224, 242, 241);
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --container: 1200px;
}

/* === LAYOUT === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 6px;
    /* Reduced mobile padding for wider content */
}

@media (min-width: 768px) {
    .container {
        padding: 0 16px;
        /* Back to normal padding on desktop */
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === HEADER === */

.header-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

@media (max-width: 991px) {
    .header-date {
        display: none !important;
    }
}

/* === HEADER === */
.header {
    background: var(--white);
    padding: 1px 0;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 56px;
    width: auto;
}

@media (min-width: 768px) {
    .logo img {
        max-height: 70px;
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-tagline {
    display: none;
}

/* === NAV BAR (below header) === */
.nav-bar {
    background: var(--primary);
    padding: 0;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .nav-bar {
        display: block;
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

.nav-bar .container {
    display: flex;
    align-items: center;
}

.nav-bar .nav-bar-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-bar .nav-bar-menu>li>a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    transition: background .2s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
    border-bottom: 2px solid transparent;
}

.nav-bar .nav-bar-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.nav-bar .nav-bar-menu>li.current-menu-item>a,
.nav-bar .nav-bar-menu>li.current-menu-ancestor>a,
.nav-bar .nav-bar-menu>li.current_page_item>a {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #ffffff;
    font-weight: 600;
}

/* Dropdown caret for items with sub-menu */
.nav-bar .nav-bar-menu>li.menu-item-has-children>a::after {
    content: "";
    margin-left: 6px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.nav-bar .nav-bar-menu>li.menu-item-has-children:hover>a::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav-bar .nav-bar-menu>li {
    position: relative;
}

.nav-bar .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 6px 0;
    min-width: 220px;
    z-index: 101;
    list-style: none;
    margin: 0;
    border-top: 2px solid var(--primary);
}

.nav-bar .nav-bar-menu>li:hover>.sub-menu {
    display: block;
}

.nav-bar .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.8125rem;
    color: var(--gray-700);
    transition: background .2s, color .2s, padding-left .2s;
}

.nav-bar .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}

/* === HEADER SEARCH === */
.header-search {
    display: none;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .header-search {
        display: flex;
    }
}

.header-search input[type="search"] {
    width: 220px;
    padding: 8px 40px 8px 14px;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--gray-100);
    transition: border-color .2s, width .3s, background .2s;
}

.header-search input[type="search"]:focus {
    border-color: var(--primary);
    background: var(--white);
    width: 280px;
}

.header-search input[type="search"]::placeholder {
    color: var(--gray-400);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 6px 8px;
    color: var(--gray-500);
    transition: color .2s;
}

.header-search button:hover {
    color: var(--primary);
}

/* === MOBILE MENU TOGGLE === */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: .3s;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* === MOBILE NAV === */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 150;
    overflow-y: auto;
    transition: right .3s ease;
    padding: 0;
}

.mobile-nav.active {
    display: block;
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
}

.mobile-nav-header span {
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav .mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: background .2s;
}

.mobile-nav .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav .menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-nav .menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: background .2s, color .2s, padding-left .2s;
}

.mobile-nav .menu li a:hover,
.mobile-nav .menu li.current-menu-item>a {
    color: var(--primary);
    background: var(--primary-light);
    padding-left: 24px;
}

.mobile-nav .menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--gray-100);
}

.mobile-nav .menu .sub-menu li a {
    padding-left: 36px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
    border-bottom-color: var(--gray-200);
}

.mobile-nav .menu .sub-menu li a:hover {
    color: var(--primary);
    padding-left: 40px;
}
.mobile-nav .menu li {
    position: relative;
}

.mobile-nav .menu li a {
    padding-right: 52px;
}

.mobile-nav .sub-menu {
    display: none;
}

.mobile-nav li.submenu-open > .sub-menu {
    display: block;
}

.mobile-nav .submenu-toggle {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    transition: transform .2s;
}

.mobile-nav li.submenu-open > .submenu-toggle {
    transform: rotate(180deg);
}

.mobile-nav-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color .2s;
}

.mobile-nav-search input:focus {
    border-color: var(--primary);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
}

.mobile-overlay.active {
    display: block;
}

/* === BREADCRUMB === */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color .2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

@media (max-width: 767px) {
    .breadcrumb .hide-mobile {
        display: none !important;
    }
}

/* === MAIN CONTENT === */
.main-content {
    padding: 24px 0 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr 340px;
    }
}

/* === HERO SLIDER (featured + thumbnail pager) === */
.featured-slider {
    margin-bottom: 24px;
}

.fs-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 4/3;
    /* Taller on mobile so text fits */
}

@media (min-width: 768px) {
    .fs-main {
        aspect-ratio: 16/9;
        /* Widescreen on desktop */
    }
}

.fs-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.fs-slide {
    min-width: 100%;
    position: relative;
}

.fs-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    display: block;
}

.fs-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    /* Smaller padding on mobile */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
}

@media (min-width: 768px) {
    .fs-content {
        padding: 32px;
    }
}

.fs-topic {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    transition: background .2s;
}

.fs-topic:hover {
    background: var(--primary-dark);
}

.fs-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.fs-content h2 a {
    color: var(--white);
}

.fs-content h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .fs-content h2 {
        font-size: 2rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Slider Buttons */
.fs-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    font-size: 1.125rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 5;
    backdrop-filter: blur(4px);
}

/* Mobile Adjustments for Slider */
@media (max-width: 767px) {
    .fs-btn {
        display: none !important;
    }
}

.fs-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.fs-prev {
    left: 12px;
}

.fs-next {
    right: 12px;
}

@media (min-width: 768px) {
    .fs-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .fs-prev {
        left: 16px;
    }

    .fs-next {
        right: 16px;
    }
}

/* Thumbnail Pager */
.fs-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.fs-thumb {
    flex: 0 0 calc((100% - 8px) / 2);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s;
}

.fs-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.fs-thumb-title {
    display: block;
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--black);
}

.fs-thumb-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-thumb:hover {
    border-color: var(--primary);
}

.fs-thumb.active {
    border-color: var(--primary);
}

@media (min-width: 768px) {
    .fs-thumb {
        flex-basis: calc((100% - 24px) / 4);
    }
}

@media (min-width: 992px) {
    .fs-thumb {
        flex-basis: calc((100% - 32px) / 5);
    }
}

/* === SECTION HEADING === */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px;
}

.section-heading h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    position: relative;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.section-heading .view-all {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

/* === ARTICLE LIST (Horizontal Cards) === */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card-h {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .3s;
}

.article-card-h:hover {
    box-shadow: var(--shadow-md);
}

.article-card-h .card-image {
    width: 260px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.article-card-h .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.article-card-h:hover .card-image img {
    transform: scale(1.05);
}

.article-card-h .card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-h .category-badge {
    display: inline-block;
    color: #ffffff;
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    align-self: flex-start;
    width: fit-content;
}

.article-card-h h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-h h3 a:hover {
    color: var(--primary);
}

/* === INDEKS BERITA === */
.indeks-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.indeks-filter label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
}

.indeks-filter input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
}

.indeks-filter input[type="date"]:focus {
    border-color: var(--primary);
}

.indeks-filter button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.indeks-filter button:hover {
    background: var(--primary-dark);
}

.indeks-reset {
    font-size: 0.8125rem;
    color: var(--primary);
}


.article-card-h .meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.article-card-h .meta span+span::before {
    content: '•';
    margin: 0 6px;
}

@media (max-width: 576px) {
    .articles-list {
        gap: 2px;
    }

    .article-card-h {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
        padding: 6px;
    }

    .article-card-h .card-image {
        width: 100px;
        min-height: auto;
        aspect-ratio: 1/1;
        border-radius: 4px;
    }

    .article-card-h .card-body {
        padding: 0;
    }

    .article-card-h .meta {
        display: none;
    }

    .article-card-h h3 {
        font-size: 0.875rem;
        display: block;
        /* Mencegah judul terpotong line-clamp */
        margin-bottom: 0;
    }

    .article-card-h .category-badge {
        font-size: 0.625rem;
        padding: 2px 6px;
        margin-bottom: 4px;
    }
}

/* === LIST ARTICLE (Sidebar/Small) === */
.article-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-item .list-thumb {
    width: 90px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-list-item .list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-item .list-body {
    flex: 1;
    min-width: 0;
}

.article-list-item .list-body .category-badge {
    font-size: 0.625rem;
    color: #ffffff;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-list-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.article-list-item h4 a:hover {
    color: var(--primary);
}

.article-list-item .meta {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

/* === PAGE HEADER (Category/Tag) === */
.page-header-banner {
    background: var(--primary);
    color: var(--white);
    padding: 24px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.page-header-banner.tag-header {
    background: var(--gray-700);
}

.page-header-banner .tag-icon {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.page-header-banner h1 {
    font-size: 2rem;
    font-weight: 700;
}

.page-header-banner p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-top: 6px;
}

/* Judul arsip: aksen garis vertikal */
.archive-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 24px 0;
}
.archive-title::before {
    content: "";
    flex: none;
    width: 6px;
    height: 1.375rem;
    margin-right: 10px;
    background: var(--primary);
}

/* === SINGLE ARTICLE === */
.article-content {
    padding: 0 0 40px;
}

.primary-content {
    min-width: 0;
    overflow: hidden;
}

.entry-header {
    margin-bottom: 24px;
}

.category-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.entry-title {
    font-size: 1.375rem;
    /* Smaller title specifically for mobile view */
    font-weight: 700;
    line-height: 1.4;
    color: var(--black);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 2.25rem;
    }
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #007a6d;
}

.entry-meta time {
    color: var(--gray-500);
}

.reading-time {
    color: var(--gray-500);
}

/* Featured Image */
.featured-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.featured-image figcaption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    padding: 8px 0;
    font-style: italic;
}

/* Article Body */
.entry-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.entry-body p {
    margin-bottom: 1.25em;
}

.entry-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    color: var(--black);
}

.entry-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25em 0 0.5em;
    color: var(--black);
}

.entry-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

.entry-body a {
    color: #007a6d;
    text-decoration: underline;
}

.entry-body img {
    border-radius: var(--radius);
    margin: 1em 0;
}

.entry-body ul,
.entry-body ol {
    margin: 1em 0;
    padding-left: 24px;
}

.entry-body ul {
    list-style: disc;
}

.entry-body ol {
    list-style: decimal;
}

.entry-body li {
    margin-bottom: 0.5em;
}

.entry-body figure {
    margin: 1.5em 0;
}

.entry-body figcaption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 8px;
}

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-body th,
.entry-body td {
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.entry-body th {
    background: var(--gray-100);
    font-weight: 600;
}

/* Tags */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 24px;
}

.entry-tags .tag-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-right: 4px;
}

.entry-tags a {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 4px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-700);
    transition: all .2s;
    text-decoration: none;
}

.entry-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 0;
}

/* Floating Share Bar on Mobile */
@media (max-width: 767px) {
    .share-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 12px;
        margin: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
        justify-content: center;
        border-top: 1px solid var(--gray-200);
        opacity: 0.98;
    }



    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.share-buttons .share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    transition: transform .2s, opacity .2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.fb {
    background: #1565c0;
}

.share-btn.tw {
    background: #0c7abf;
}

.share-btn.wa {
    background: #128c4e;
}

.share-btn.tg {
    background: #006699;
}

.share-btn.th {
    background: #000000;
}

.share-btn.cp {
    background: var(--gray-500);
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin: 24px 0;
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.author-box-name {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.author-box-bio {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Related Articles */
.related-articles {
    margin: 30px 0;
}

.related-articles h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
}

.related-card .rc-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.related-card:hover img {
    transform: scale(1.05);
}

.related-card .rc-body {
    padding: 12px;
}

.related-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-card h4 a:hover {
    color: var(--primary);
}

.related-card .meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* === PAGE CONTENT === */
.page-content {
    padding: 24px 0 60px;
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.page-body {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #333;
}

.page-body p {
    margin-bottom: 1.25em;
}

.page-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    color: var(--black);
}

.page-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25em 0 0.5em;
    color: var(--black);
}

.page-body a {
    color: #007a6d;
    text-decoration: underline;
}

.page-body ul,
.page-body ol {
    margin: 1em 0;
    padding-left: 24px;
}

.page-body ul {
    list-style: disc;
}

.page-body ol {
    list-style: decimal;
}

.page-body li {
    margin-bottom: 0.5em;
}

.page-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

.page-body img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-body th,
.page-body td {
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.page-body th {
    background: var(--gray-100);
    font-weight: 600;
}

/* === SIDEBAR === */
.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 24px;
}

.sidebar .widget-title,
.sidebar .widgettitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--black);
}

/* Tag Cloud (Sidebar/Tag page) */
.tag-cloud,
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a,
.tagcloud a {
    display: inline-block;
    font-size: 0.8125rem !important;
    padding: 4px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-700);
    transition: all .2s;
    text-decoration: none;
}

.tag-cloud a:hover,
.tagcloud a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* === PAGINATION === */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: all .2s;
    text-decoration: none;
    color: var(--black);
}

.pagination a:hover,
.nav-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current,
.nav-links .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.load-more-container {
    text-align: center;
    margin-top: 24px;
}

.btn-load-more {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-load-more:hover {
    background: var(--primary-dark);
}

.btn-load-more:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

/* === COMMENTS === */
.comments-area {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-200);
}

.comments-area h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.comment-list .comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-list .comment-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.comment-list .comment-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.comment-respond label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color .2s;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--primary);
}

.comment-respond .submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.comment-respond .submit:hover {
    background: var(--primary-dark);
}

/* === 404 PAGE === */
.error-404 {
    text-align: center;
    padding: 80px 16px;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto 24px;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto 24px;
    display: flex;
    gap: 8px;
}

.error-404 .search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    outline: none;
    font-family: inherit;
}

.error-404 .search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

.error-404 .back-home {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .2s;
    text-decoration: none;
}

.error-404 .back-home:hover {
    background: var(--primary-dark);
}

/* === FOOTER === */
.footer {
    background: #f3f4f8;
    color: #555963;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-grid>div:first-child {
    grid-column: 1 / -1;
}

.footer-grid>div:nth-child(2) {
    padding-left: 24px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-grid>div:first-child {
        grid-column: auto;
    }

    .footer-grid>div:nth-child(2),
    .footer-grid>div:nth-child(3) {
        padding-left: 24px;
    }
}

@media (max-width: 767px) {
    .footer-grid>div:nth-child(2),
    .footer-grid>div:nth-child(3) {
        display: none;
    }
    .footer-social,
    .footer-legal-list {
        justify-content: center;
    }
}

.footer h2 {
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #555963;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    /* remove bullet points */
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-links-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-links-list a {
    font-size: 0.875rem;
    color: #555963;
    transition: color .2s;
}

.footer-links a:hover,
.footer-links-list a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #555963;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand p {
    margin: 0;
}

.footer-logo {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.footer-logo a img {
    width: 150px;
    height: auto;
    display: block;
}

/* Footer Widgets */
.footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .widget ul li {
    margin-bottom: 8px;
}

.footer .widget ul li a {
    font-size: 0.875rem;
    color: #555963;
    transition: color .2s;
}

.footer .widget ul li a:hover {
    color: var(--primary);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .3s;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .single .back-to-top {
        bottom: 80px;
        /* Push it up above the sticky share bar */
    }
}

/* === WORDPRESS SPECIFIC === */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 1.5em auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-style: italic;
    padding: 8px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 1.5em 0;
}

.gallery-item {
    margin: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.sticky .article-card-h {
    border-left: 3px solid var(--primary);
}

/* WordPress Block Editor */
.wp-block-image {
    margin: 1.5em 0;
}

.wp-block-quote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.wp-block-pullquote {
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    padding: 1.5em 0;
    margin: 1.5em 0;
    text-align: center;
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

/* === PRINT === */
@media print {

    .topbar,
    .header,
    .breaking,
    .sidebar,
    .footer,
    .back-to-top,
    .share-buttons,
    .search-overlay,
    .mobile-nav,
    .mobile-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Social Icons (footer) */
.footer-social {
    display: flex;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.footer-social a {
    color: inherit;
    opacity: .8;
    transition: opacity .2s;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Menu Footer Bawah (legal, di bawah sosmed) */
.footer-legal {
    margin-top: 12px;
}
.footer-legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
}
.footer-legal-list a {
    color: inherit;
    opacity: .75;
    text-decoration: none;
    transition: opacity .2s;
}
.footer-legal-list a:hover {
    opacity: 1;
    color: var(--primary);
}
