/*
Theme Name: NewsThemes
Theme URI: https://newsthemes.web.id/
Author: Mastrymedia
Author URI: https://newsthemes.web.id/
Description: High-performance digital marketing and business automation theme. Built for speed, scale, and high-converting layouts.
Version: 1.6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, digital-marketing, automation, products, custom-layout, infinite-scroll
Text Domain: newsthemes
*/

/* --- TYPOGRAPHY DASAR --- */
body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #111; 
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- LAYOUT UTAMA --- */

.site-wrapper {
    max-width: 1055px;
    margin: 0 auto;
    display: flex;
    gap: 35px;
    padding: 30px 0;
}

.widget-area .widget {
    margin-bottom: 30px;
}

.widget-area figure {
    margin: 0;
}

/* Memastikan Header dan Footer menempati lebar penuh */
.site-header, 
.site-footer {
    width: auto;
}

/* --- LAYOUT HEADER --- */

.site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.header-top-wrapper {
    max-width: 1055px; 
    margin: 0 auto;
    padding: 20px 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-col-left,
.header-col-center,
.header-col-right {
    flex-grow: 1;
    flex-basis: 0;
    width: 100%;
}

.header-col-left {
    text-align: left;
}

.header-col-left img {
    max-width: 200px;
}

.wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
}

.wp-block-search__inside-wrapper:focus-within {
    outline: 1px solid orangered;
    border-color: orangered;
}

.wp-block-search__input {
    width: 100%;
    padding: 12px;
    border: none;
}

.wp-block-search__input:focus {
    outline: none;
}

.wp-block-search__button {
    background: none;
    border: none;
    padding: 0 10px;
}

.header-utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-utility .utility-icon {
    background: none;
    border: none;
    line-height: 1;
}

.header-utility .material-icons-outlined {
    vertical-align: middle;
}

/* --- LAYOUT MENU HEADER DESKTOP --- */

.main-navigation {
    max-width: 1055px;
    margin: 0 auto;
}

.main-navigation > ul { 
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation > ul > li {
    position: relative;
    padding: 0 15px;
}

.main-navigation > ul > li > a {
    display: block;
    padding: 5px 0 15px;
    text-decoration: none;
    text-transform: capitalize;
    font-size: initial;
    font-weight: bold;
}

.main-navigation .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 15px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
    z-index: 999;
}

.main-navigation > ul > li:hover > .sub-menu {
    display: block; 
}

.main-navigation .sub-menu li {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.main-navigation .sub-menu li:last-child {
    border-bottom: 0;
}

.main-navigation .sub-menu li a {
    display: block;
    font-size: initial;
    font-weight: normal;
    padding: 8px 0;
    white-space: nowrap;
}

.main-navigation > ul > li > a .menu-dropdown-icon {
    font-size: 18px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    display: inline-block;
}

.main-navigation > ul > li.menu-item-has-children:hover > a .menu-dropdown-icon {
    transform: rotate(180deg);
}

/* --- LAYOUT HEADER MOBILE --- */

.header-mobile-wrapper {
    width: auto;
    margin: 0 auto;
    padding: 15px;
    display: none;
}

.header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-mobile-left {
    flex: 0 0 50%;
    max-width: 50%;
    margin-right: 0;
    min-width: 0; 
}

.header-mobile-right {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 50%;
    max-width: 50%;
}

.header-mobile-left img {
    max-width: 160px;
}

.mobile-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    font-size: 24px;
}

/* --- LAYOUT SEARCH MOBILE --- */
.mobile-search-bar {
    width: auto;
    padding-top: 15px; 
    display: none; 
}

/* --- LAYOUT MENU MOBILE --- */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; 
}

body.menu-open {
    overflow: hidden; 
}

body.menu-open .mobile-menu-overlay {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.05s ease;
}

body.menu-open .mobile-menu-panel {
    transform: translateX(0);
    pointer-events: auto;
}


.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header img {
    max-width: 160px;
}

.mobile-menu-header .site-branding h1 {
    font-size: 1.5em;
    margin: 0;
}

.close-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 24px;
    padding: 0;
}

.mobile-menu-section {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-section h4 {
    margin-top: 0;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #888;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-menu-list .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    float: right; /* Posisikan di kanan */
    width: 40px;
    height: 40px;
    margin-right: -10px; /* Tarik sedikit ke kanan */
    transition: transform 0.3s ease;
    color: #666;
}

.mobile-menu-list .dropdown-toggle i {
    font-size: 20px;
}

.mobile-menu-list li.active > .dropdown-toggle {
    transform: rotate(180deg);
}

.mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0 0 0 15px; /* Indentasi agar mudah dibaca */
    margin: 5px 0 10px 0;
    display: none; /* Sembunyikan secara default */
    border-left: 1px solid #eee;
}

.mobile-menu-list .sub-menu li a {
    font-weight: 400; /* Font lebih tipis untuk sub-item */
    padding: 5px 0;
}

.mobile-menu-panel .menu-dropdown-icon {
    display: none !important; 
}

.mobile-menu-footer-credit {
    padding: 15px 20px;
    font-size: 0.8em;
    color: #999;
}

/* --- LAYOUT SLIDER UTAMA --- */

.sticky-slider-section {
    margin-bottom: 50px;
}
.post-thumbnail-slider img {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
}

.slider-post-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 25px 50px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 75%,
        #000000 100%
    );
}

.category-slider-link {
    line-height: 1;
}

.category-slider-link a {
    display: inline-block;
    padding: 7px;
    background-color: orangered;
    color: #fff;
    font-size: 13px;
    text-transform: capitalize;
    border-radius: 3px;
}

h2.entry-title-slider {
    font-size: x-large;
    line-height: 1.3;
}
h2.entry-title-slider a {
    color: #fff;
}

.entry-meta-slider {
    font-size: 11px;
    color: #ccc;
}

.swiper-button-next, .swiper-button-prev {
    width: 35px!important;
    height: 35px!important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: initial!important;
    color: #eee;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper:hover .swiper-button-next:after,
.swiper:hover .swiper-button-prev:after {
    color: #333;
}

.swiper-pagination {
    bottom: 15px!important;
}

.swiper-pagination-bullet {
    width: 10px!important;
    height: 10px!important;
    background: #fff!important;
}

.swiper-pagination-bullet-active {
    background: orangered!important;
}

/* --- LAYOUT KARTU POSTINGAN --- */

.page-header-home h1 {
    font-size: x-large;
    text-transform: capitalize;
    margin-bottom: 15px;
}

.post-card {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid#e0e0e0;
}

.post-card:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.card-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-image {
    flex-shrink: 0;
    width: 225px;
    overflow: hidden;
}
.card-image img {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
}

.card-content-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card-cat {
    line-height: 1;
}

.card-cat a {
    text-transform: capitalize;
    font-size: 13px;
    color: orangered;
}

.card-date {
    font-size: 11px;
    color: #999;
}

.card-content-wrap h3 {
    font-size: large;
    line-height: 1.3;
}

.view-all-button-wrapper {
    text-align: center;
    margin: 30px 0;
}
.view-all-button-wrapper a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: orangered;
    color: #fff;
}

/* --- LAYOUT KARTU POSTINGAN INJECT --- */

.injected-rubrik-column {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid#e0e0e0;
}

.rubrik-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.rubrik-header h2 {
    text-transform: capitalize;
    font-size: x-large;
    color: orangered;
}
.view-all-rubrik {
    text-transform: capitalize;
    font-size: 13px;
    color: #999;
}

/* --- GRID 4 KOLOM --- */
.rubrik-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

.card-image-inject {
    margin-bottom: 10px;
}

.card-image-inject img {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
}

.card-content-inject {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card-cat-inject {
    display: none;
}

.card-cat-inject a {
    text-transform: capitalize;
    font-size: 13px;
    color: orangered;
    font-weight: 600;
}

.card-content-inject h3 {
    font-size: initial;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date-inject {
    font-size: 11px;
    color: #999;
}

/* --- LAYOUT HALAMAN KATEGORI --- */

.page-header-category h1 {
    font-size: x-large;
    margin-bottom: 15px;
    text-transform: capitalize;
}

h2.latest-title-cat {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 15px;
}

.sticky-card-category {
    margin-bottom: 50px;
}

.sticky-card-image {
    margin-bottom: 10px;
}

.sticky-card-image img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.sticky-card-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sticky-card-cat {
    line-height: 1;
}

.sticky-card-cat a {
    text-transform: capitalize;
    font-size: 13px;
    color: orangered;
}

.sticky-card-content-wrap h3 {
    font-size: x-large;
    line-height: 1.3;
}

.sticky-card-date {
    font-size: 11px;
    color: #999;
}

/* --- LAYOUT HALAMAN FILTER --- */

h1.title-filter-page {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 10px;
}

.post-filter-form-wrapper {
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 5px;
}
.filter-item {
    flex: 1;
}
.filter-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
}
.filter-submit-button {
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

h3.title-filter-post {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 15px;
}

/* --- LAYOUT SINGLE POST --- */

.breadcrumb {
    margin-bottom: 15px;
}

.entry-header-single {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.entry-header-single h1 {
    line-height: 1.3;
}

.entry-summary-single p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #666;
}

.author-info-box {
    display: flex;
    gap: 10px;
}

.author-details {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.author-details .byline a {
    text-transform: capitalize;
    font-weight: 600;
    color: orangered;
}

.author-avatar img {
    width: 32px;
    border-radius: 50%;
}

.post-meta-details {
    padding-left: 10px;
    color: #999;
}

.post-meta-details:before {
    content: "|";
    margin-right: 5px;
    color: #999;
}

.post-thumbnail-figure img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.wp-caption-text {
    font-size: 13px;
    color: #999;
    line-height: 1.3;
    margin-top: 7px;
}

.entry-content {
    margin-top: 30px;
}

.entry-content p {
    font-size: 17px;
    line-height: 1.6;
}

.entry-content figure {
    width: 100%!important;
    margin: 30px 0;
}

.entry-content figure img {
    border-radius: 6px;
}
.entry-content p img {
    border-radius: 6px;
    margin: 30px 0;
}

/* --- PAGE LINK --- */

.page-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
    font-weight: bold;
}

.page-links .post-page-numbers,
.page-links .post-page-numbers.current {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.page-links .post-page-numbers.current {
    background-color: orangered;
    color: #fff;
}

/* --- TAGS LINK --- */

.tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.tags-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #eee;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    transition: color 0.3s ease;
}

.tags-links a:hover {
    background-color: orangered;
    color: #fff;
}

/* --- TOMBOL SHARE ARTIKEL --- */

.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share-buttons a,
.copy-share {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    font-size: initial;
}

.whatsapp-share {
    background-color: #25D366;
}
.facebook-share {
    background-color: #1877F2;
}
.twitter-share {
    background-color: #14171A;
}
.telegram-share {
    background-color: #0088CC;
}
.copy-share {
    background-color: #666;
    border: none;
}

/* --- LAYOUT KOMENTAR --- */
.comments-area {
    margin-top: 40px;
    padding: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    padding: 15px;
    margin-bottom: 10px;
}

.comment-author.vcard img {
    width: 48px;
    border-radius: 50%;
}

/* --- LAYOUT RELATED --- */

.related-posts {
    margin-bottom: 50px;
}

.related-posts h2 {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 15px;
}

.related-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;
}

.related-image {
    margin-bottom: 10px;
}

.related-image img {
    aspect-ratio: 3 / 2;
    border-radius: 6px;
}

.related-cat {
    display: none;
}

h3.related-title {
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    display: none;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* --- LAYOUT LATEST ARTICLE --- */

.latest-posts-section h2 {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 15px;
}

/* --- LAYOUT SIDEBAR / POPULAR --- */

.popular-posts-section h2 {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 15px;
}

.popular-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid#e9e9e9;
}

.popular-list-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-list-thumbnail {
    flex: 0 0 95px;
}

.popular-list-thumbnail img {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
}

.popular-list-content {
    flex: 1;
}

h4.popular-list-title {
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-list-meta {
    line-height: 1;
    margin-top: 7px;
}

.popular-list-meta a {
    text-transform: capitalize;
    font-size: 13px;
    color: orangered;
}

/* --- PAGINATION --- */

.pagination-wrapper,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    min-width: 35px;
    height: 35px;
    padding: 0 5px;
    border-radius: 4px;
}

.page-numbers.current {
    background-color: orangered;
    color: #fff;
}

.page-numbers .material-icons-outlined {
    vertical-align: middle;
}

.page-numbers.dots {
    padding: 0;
    background: none;
    min-width: auto;
}

.prev.page-numbers,
.next.page-numbers {
    display: none;
}

/* --- LAYOUT HALAMAN AUTHOR --- */

.author-header {
    margin-bottom: 30px;
}

.author-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 25px 15px;
    background-color: #eee;
    border-radius: 6px;
}

.author-avatar-page img {
    width: 96px;
    border-radius: 50%;
}

h1.author-title-page {
    font-size: x-large;
    text-transform: capitalize;
    color: orangered;
}

.author-bio-page p {
    margin: 0;
    line-height: 1.3;
}

.author-post-count p {
    margin: 0;
    color: #999;
}

/* --- LAYOUT HALAMAN TAG --- */

.page-header-tag {
    margin-bottom: 30px;
}

h1.page-title-tag {
    text-transform: capitalize;
    font-size: x-large;
    margin-bottom: 10px;
}

.archive-description-tag p {
    margin: 0;
    line-height: 1.3;
}

/* --- LAYOUT HALAMAN PENCARIAN --- */

.page-header-search {
    margin-bottom: 30px;
}

h1.page-title-search {
    font-size: x-large;
    line-height: 1.3;
}

/* --- LAYOUT HALAMAN 404 --- */

.full-width-404 {
    display: block;
    padding: 50px 20px;
}

.error-404.not-found {
    text-align: center;
}

.error-code {
    font-size: 150px;
    line-height: normal;
    color: orangered;
}

.page-content-404 {
    max-width: 500px;
    margin: auto;
}

.return-home-404 a {
    display: inline-block;
    padding: 10px;
    border-radius: 6px;
    background-color: orangered;
    color: #fff;
    font-weight: bold;
}

/* ---------- LAYOUT FOOTER GLOBAL ---------- */

.site-footer {
    background-color: #111;
    color: #999;
    text-align: center;
}

.site-footer a {
    color: #eee;
}

.footer-container {
    max-width: 1055px;
    margin: 0 auto;
    padding-top: 40px;
}

.footer-col-1 {
    padding-bottom: 20px;
}

.footer-col-1 img {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    display: none;
}

.footer-col-3 {
    padding: 20px 0;
}

.footer-col-4 {
    padding: 15px 0;
    border-top: 1px solid#333;
}

ul.footer-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

ul.footer-category-list li a {
    text-transform: capitalize;
}

ul.footer-pages-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

ul.footer-pages-list li a {
    color: #999;
}

.credit-container {
    max-width: 1055px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.site-info-footer p {
    margin: 0;
    font-size: 13px;
}

/* ---------- ARCHIVE GLOBAL ---------- */

/* Satu-satunya tempat buat nge-lock 1200px */
.newsthemes-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Header tinggal atur jarak bawah */
.newsthemes-page-header {
    margin-bottom: 40px;
}

/* Grid tinggal fokus ke layout kolom */
.newsthemes-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Pagination tinggal atur margin atas */
.navigation.pagination {
    margin-top: 50px;
}

/* Responsive tetap simpel */
@media (max-width: 992px) {
    .newsthemes-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .newsthemes-post-grid { grid-template-columns: 1fr; }
}

/* ---------- KARTU ARSIP CPT & FRONTPAGE ---------- */

/* 1. Container Utama Kartu */
.newsthemes-post-card-front {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.newsthemes-post-card-front:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

/* 2. Area Gambar */
.newsthemes-card-image-front {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.newsthemes-card-image-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

/* 3. Pembungkus Konten */
.newsthemes-card-content-wrap-front {
    padding: 24px;
}

/* Judul */
.newsthemes-entry-title-front {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.newsthemes-entry-title-front a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsthemes-entry-title-front a:hover {
    color: #3498db;
}

/* 4. Baris Harga */
.newsthemes-card-price-front {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.newsthemes-old-price-front {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.95rem;
    font-weight: 500;
}

.newsthemes-current-price-front {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 800;
}

/* 5. Baris Ekstra (Rating & Demo) */
.newsthemes-card-extra-front {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

/* Rating Bintang */
.newsthemes-card-rating-front {
    color: #f1c40f;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

/* Tombol Live Preview */
.newsthemes-card-demo-front a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #475569;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.newsthemes-card-demo-front a:hover {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

.newsthemes-card-demo-front a i {
    font-size: 0.75rem;
}

/* ---------- KARTU ARSIP POSTINGAN ---------- */

.newsthemes-post-card {
    height: 100%;
}

.newsthemes-card-wrapper {
    background: transparent; /* Post biasa tanpa border box biar lebih bersih */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s ease;
}

/* 1. Area Gambar */
.newsthemes-card-image {
    position: relative;
    border-radius: 12px; /* Lebih rounded biar modern */
    overflow: hidden;
    margin-bottom: 15px;
}

.newsthemes-card-image img {
    aspect-ratio: 16 / 9;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.newsthemes-card-wrapper:hover .newsthemes-card-image img {
    transform: scale(1.08);
}

/* 2. Area Konten */
.newsthemes-card-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1;
    flex-grow: 1;
}

.newsthemes-card-cat a {
    font-size: small;
    font-weight: bold;
    text-transform: uppercase;
    color: #3498db;
    text-decoration: none;
}

.newsthemes-entry-title {
    font-size: large;
    line-height: 1.3;
}

/* 3. Footer (Date/Filmtime) */
.newsthemes-card-date {
    font-size: x-small;
    color: #999;
}

/* Tambahan: Aksen untuk Infinite Scroll loading */
.newsthemes-post-grid .newsthemes-post-card {
    animation: fadeInNews 0.5s ease backwards;
}

@keyframes fadeInNews {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- TOMBOL CHAT ---------- */

/* version 1.6.5 - Ultra Smooth Floating Button */

.newsthemes-floating-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Tombol Utama */
.newsthemes-btn-main {
    background: royalblue;
    color: #fff;
    border: none;
    height: 45px;
    min-width: 45px;
    width: auto; /* Biar bisa melebar sesuai teks */
    padding: 0 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Kontainer Ikon & Teks biar bisa diatur opacity-nya */
.newsthemes-btn-main .icon-chat,
.newsthemes-btn-main .newsthemes-text-live {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Ikon Close: Kita taruh di tengah pakai absolute biar gak ganggu layout */
.newsthemes-btn-main .icon-close {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-90deg);
    opacity: 0;
    transition: all 0.3s ease;
    display: block !important; /* Pakai block, mainin opacity saja */
}

/* ---------- SAAT AKTIF ---------- */

.newsthemes-floating-wrapper.active .newsthemes-btn-main {
    background: #ff4757;
    width: 45px; /* Paksa jadi bulat */
    padding: 0;
    border-radius: 50%;
}

/* Sembunyiin konten chat */
.newsthemes-floating-wrapper.active .icon-chat,
.newsthemes-floating-wrapper.active .newsthemes-text-live {
    opacity: 0;
    transform: scale(0);
}

/* Munculin ikon close dengan putaran biar keren */
.newsthemes-floating-wrapper.active .icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* ---------- SUB BUTTONS (TELE & WA) ---------- */

.newsthemes-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsthemes-btn-sub {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px) scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.newsthemes-floating-wrapper.active .newsthemes-btn-sub {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Delay biar muncul satu-satu */
.newsthemes-floating-wrapper.active .newsthemes-btn-sub.whatsapp { transition-delay: 0.1s; }
.newsthemes-floating-wrapper.active .newsthemes-btn-sub.telegram { transition-delay: 0.2s; }

.newsthemes-btn-sub.telegram { background: #0088cc; }
.newsthemes-btn-sub.whatsapp { background: #25d366; }

/* --- DARK MODE --- */

body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* 1. Aturan Dasar (HTML & Body & Text) */
html.dark-mode body { /* Perlu menargetkan body jika kita ingin transisi warna body */
    background-color: #1a1a1a; 
    color: #f1f1ff; 
}

/* 2. Header (Background, Border, Teks) */
html.dark-mode .site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid#333;
}

html.dark-mode .main-navigation .sub-menu {
    background-color: #1a1a1a;
    border: 1px solid#333;
    border-top: 0;
}

html.dark-mode .main-navigation .sub-menu li {
    border-color: #333;
}

html.dark-mode .custom-logo-link img {
    filter: invert(1) grayscale(100%) contrast(100) brightness(100);
}

html.dark-mode a {
    color: #e0e0e0;
}

/* 3. Side Menu Panel */
html.dark-mode .mobile-menu-panel {
    background-color: #212121;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

html.dark-mode .mobile-menu-panel .mobile-menu-header,
html.dark-mode .mobile-menu-panel .mobile-menu-section {
    border-color: #333;
}

html.dark-mode .mobile-menu-panel h4 {
    color: #aaa;
}

/* 5. Utility Icons */
html.dark-mode .utility-icon,
html.dark-mode .mobile-icon {
    color: #fff;
}