/*
Theme Name: Mediapress
Theme URI: https://newsthemes.web.id/
Author: Mastrymedia
Author URI: https://newsthemes.web.id/
Description: A modern, responsive news and magazine theme. Features custom content injection, optimized mobile UX, and a clean layout for high-performance digital publishing.
Version: 1.2.5
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, magazine, custom-layout, block-editor-styles, ads-ready
Text Domain: mediapress
*/

:root {
	--blue: #024caa;
}

/* --- TYPOGRAPHY DASAR --- */
body {
    background-color: #ffffff;
    font-family: 'Google Sans Flex', 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;
}

.site-wrapper.home {
    padding-bottom: 50px;
}

@media (max-width: 1024px) {
    .site-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        flex-direction: column;
        gap: 50px;
    }
}

@media (max-width: 480px) {
    .site-wrapper.home {
        padding-top: 15px;
    }
}

#primary {
    flex: 7;
    min-width: 0;
	overflow: hidden;
}

#secondary {
    flex: 3;
    position: sticky;
    max-height: fit-content;
    top: 100px;
}

@media (max-width: 768px) {
    #primary,
    #secondary {
        flex: 0 0 100%;
    }
}

.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 {
    display: block;
    height: 81px;
    opacity: 1;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
    contain: strict; 
}

.header-top-wrapper.is-hidden {
    height: 0px !important;
    opacity: 0.9;
}

.header-bottom-wrapper {
    -webkit-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@media (max-width: 1024px) {
    .header-top-wrapper {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .header-top-wrapper,
    .header-bottom-wrapper {
        display: none;
    }
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1055px;
    margin: 0 auto;
    padding: 20px 0;
}

.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;
}

/* Container pembungkus utama */
.mp-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease; /* Tambahan agar transisi border lebih halus */
}

/* Efek saat input sedang diklik/aktif */
.mp-search-wrapper:focus-within {
    outline: 1px solid #000;
    border-color: #000;
}

/* Kolom Input */
.mp-search-input {
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
}

/* Menghilangkan outline bawaan browser pada input */
.mp-search-input:focus {
    outline: none;
}

/* Tombol Submit/Icon */
.mp-search-submit {
    background: none;
    border: none;
    padding: 0 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Opsional: Warna icon SVG-nya */
.mp-search-icon {
    fill: #333;
}

.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 .utility-text {
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #fff;
}

.header-utility .user-link-header {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    font-size: 13px;
    background: none;
    padding: 0;
    color: inherit;
}

.header-avatar-wrapper {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 4px solid #fff;
}

.header-avatar-wrapper img {
    width: 24px;
}

.header-user-name {
    text-transform: capitalize;
}

.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: 15px 0;
    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 {
    text-transform: capitalize;
    display: block;
    font-size: 15px;
    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 {
    display: none;
    padding: 15px;
}

@media (max-width: 768px) {
    .header-mobile-wrapper {
        display: block;
    }
}

.header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.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-right .material-icons-outlined {
    vertical-align: middle;
}

.header-mobile-left img {
    max-width: 160px;
}

.mobile-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* --- LAYOUT SEARCH MOBILE --- */
.mobile-search-bar {
    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 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    padding: 20px;
    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;
}

.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;
    padding: 0;
}

.close-icon .material-icons-outlined {
    vertical-align: middle;
}

.mobile-login-link,
.mobile-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.mobile-avatar {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 4px solid #fff;
}

.mobile-avatar img {
    width: 28px;
    border: 1px solid #ddd;
}

.mobile-login-text,
.mobile-name {
    text-transform: capitalize;
    font-size: small;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-primary > ul > li {
    border-bottom: 1px solid#eee;
}

.mobile-menu-primary > ul > li:last-child {
    border-bottom: 0;
}

.mobile-menu-primary > ul > li.menu-item-has-children {
    position: relative;
}

.mobile-menu-primary li a {
    text-transform: capitalize;
    display: block;
    padding: 8px 0;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu-primary .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-menu-primary .dropdown-toggle i {
    vertical-align: middle;
}

.mobile-menu-primary li.active > .dropdown-toggle {
    transform: rotate(180deg);
}

.mobile-menu-primary .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    display: none;
}

.mobile-menu-primary .sub-menu li a {
    font-size: 15px;
    font-weight: normal;
    padding: 5px 0;
    color: #666;
}

.mobile-menu-panel .menu-dropdown-icon {
    display: none !important; 
}

/* --- LAYOUT MENU MOBILE PAGES --- */

.mobile-menu-pages ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

.mobile-menu-pages ul li a {
    text-transform: capitalize;
    font-size: 13px;
    color: #666;
}

/* --- LAYOUT SOCIAL MOBILE --- */

.mobile-menu-socials .social-icons-list {
    justify-content: left;
}

/* --- LAYOUT CREDIT MOBILE --- */

.mobile-menu-footer-credit p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* ---------- SLOT ADS HEADER FRONTPAGE ---------- */

.ad-wrapper {
    max-width: 1055px;
    margin: 0 auto;
    padding-top: 20px;
    width: 100%;
    text-align: center;
}

.ad-wrapper figure {
    margin: 0;
}

.ad-wrapper img {
    width: auto;
}

.mp-ad-wrapper {
    display: inline-block;
    width: 100%;
}

@media screen and (max-width: 1055px) {
    .ad-wrapper {
        padding: 15px 15px 0;
    }
}

/* --- LAYOUT SLIDER UTAMA --- */

.sticky-slider-section {
    margin-bottom: 50px;
	overflow: hidden;
}

.post-thumbnail-slider {
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail-slider img {
    aspect-ratio: 16 / 9;
	max-width: 715px;
}

@media (max-width: 480px) {
    .post-thumbnail-slider img {
        aspect-ratio: 1 / 1;
    }
}

.slider-post-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 40px;
	line-height: 1;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,   
        rgba(0, 0, 0, 1) 100%
    );
}

.category-slider-link {
    line-height: 1;
}

.category-slider-link a {
    display: inline-block;
    padding: 5px;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    text-transform: capitalize;
}

h2.entry-title-slider {
    font-size: x-large;
    line-height: 1.3;
}

@media (max-width: 480px) {
    h2.entry-title-slider {
        font-size: large;
    }
}

h2.entry-title-slider a {
    color: #fff;
}

.entry-meta-slider {
    font-size: x-small;
    color: #ccc;
}

.sticky-next,
.sticky-prev {
    display: none!important;
    width: 35px!important;
    height: 35px!important;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next {
    right: 0!important;
}

.swiper-button-prev {
    left: 0!important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: initial!important;
    color: #fff;
}

.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 {
    background: #fff!important;
}

/* --- SLIDER RANDOM / BERITA PILIHAN --- */

.random-slider-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid#ccc;
    overflow: hidden;
}

.random-slider-header {
    line-height: 1;
    margin-bottom: 15px;
}

.random-slider-header h2 {
    font-size: 20px;
    text-transform: capitalize;
}

.slider-random-area {
    position: relative;
}

.slider-random-area .swiper-slide {
	max-width: 225px;
	overflow: hidden;
}

.slider-random-thumbnail {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.slider-random-thumbnail img {
    aspect-ratio: 16 / 9;
	max-width: 225px;
}

.slider-random-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 105px;
	line-height: 1;
}

.slider-random-catlink a {
    text-transform: capitalize;
    font-size: 13px;
}

h2.slider-random-title {
    font-size: initial;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-random-meta {
    font-size: x-small;
    color: #999;
}

.random-next,
.random-prev {
    top: 28%!important;
    width: 32px!important;
    height: 32px!important;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%!important;
    transition: all 0.3s ease;
}

.random-next {
    right: 10px!important;
}

.random-prev {
    left: 10px!important;
}

.swiper-random-posts:hover .random-next,
.swiper-random-posts:hover .random-prev {
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper-random-posts:hover .random-next:after,
.swiper-random-posts:hover .random-prev:after {
    color: #333;
}

@media (max-width: 480px) {
    .swiper-random-posts {
        width: 714px;
    }
}

/* --- LAYOUT KARTU POSTINGAN --- */

.page-header-home h1 {
    font-size: 20px;
    text-transform: capitalize;
    margin-bottom: 15px;
    line-height: 1;
}

.post-card {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid#eee;
}

.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;
    border-radius: 6px;
}

.card-image img {
    aspect-ratio: 16 / 9;
}

.card-content-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
	line-height: 1;
}

.card-cat a {
    text-transform: capitalize;
    font-size: 13px;
}

.card-date {
    font-size: x-small;
    color: #999;
}

.card-content-wrap h3 {
    font-size: large;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-button-wrapper {
    text-align: center;
    margin-top: 30px;
    line-height: 1;
}
.view-all-button-wrapper a {
    display: inline-block;
    padding: 10px;
    background-color: var(--blue);
    font-size: 13px;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .card-wrapper {
        gap: 15px;
    }
    .card-image {
        width: 95px;
    }
    .card-image img {
        aspect-ratio: 1 / 1;
    }
    .card-content-wrap h3 {
        font-size: initial;
		-webkit-line-clamp: 3;
    }
    .card-excerpt {
        display: none;
    }
}

/* --- LAYOUT KARTU POSTINGAN INJECT --- */

.injected-rubrik-column {
    padding-top: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid#eee;
    overflow: hidden;
}

.rubrik-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.rubrik-header h2 {
    text-transform: capitalize;
    font-size: 20px;
    line-height: 1;
}
.view-all-rubrik {
    text-transform: capitalize;
    font-size: small;
    color: #999;
    line-height: 1;
}

.rubrik-area {
    padding-bottom: 30px;
}

.rubrik-posts-grid.layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

.rubrik-posts-grid.layout-sejajar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 480px) {
    .rubrik-area.layout-sejajar {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .rubrik-area.layout-sejajar::-webkit-scrollbar {
        display: none; 
    }
    .rubrik-posts-grid.layout-sejajar {
        width: 714px;
    }
    .rubrik-posts-grid.layout-grid {
        grid-template-columns: repeat(2, 1fr);
        width: auto;
        column-gap: 10px;
    }
}

.card-wrapper-inject {
    position: relative;
}

.card-image-inject {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.card-image-inject img {
    aspect-ratio: 16 / 9;
}

.card-content-inject {
    display: flex;
    flex-direction: column;
    gap: 5px;
	line-height: 1;
}

.card-cat-inject a {
    text-transform: capitalize;
    font-size: 13px;
}

.card-content-inject h3 {
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date-inject {
    font-size: x-small;
    color: #999;
}


/* --- LAYOUT HALAMAN KATEGORI --- */

.page-header-not-found h1 {
    font-size: x-large;
    line-height: 1.3;
}

.page-header-category h1 {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 15px;
    text-transform: capitalize;
}

h2.latest-title-cat {
    text-transform: capitalize;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 15px;
}

.sticky-card-category {
    margin-bottom: 50px;
}

.sticky-card-image {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.sticky-card-image img {
    aspect-ratio: 16 / 9;
}

.sticky-card-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
	line-height: 1;
}

.sticky-card-cat a {
    text-transform: capitalize;
    font-size: 13px;
}

.sticky-card-content-wrap h3 {
    font-size: x-large;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .sticky-card-content-wrap h3 {
        font-size: 20px;
    }
}

.sticky-card-excerpt p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticky-card-date {
    font-size: x-small;
    color: #999;
}

/* --- LAYOUT HALAMAN FILTER --- */

h1.title-filter-page {
    text-transform: capitalize;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 15px;
}

.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: 20px;
    line-height: 1;
    margin-bottom: 15px;
}

/* --- LAYOUT SINGLE POST --- */

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-transform: capitalize;
    color: #ddd;
    line-height: 1;
}

.breadcrumb .material-icons-outlined {
    vertical-align: middle;
}

.breadcrumb a {
    font-size: 13px;
    color: #666;
}

.entry-header-single {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.entry-header-single h1 {
    font-size: xx-large;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .entry-header-single h1 {
        font-size: x-large;
    }
}

.entry-summary-single p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.author-and-meta-wrap {
    display: flex;
    align-items: center;
    line-height: 1;
}

.author-info-box {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-details .byline a {
    text-transform: capitalize;
    font-size: small;
}

.author-avatar img {
    width: 32px;
    border-radius: 50%;
}

.post-meta-details {
    font-size: x-small;
    color: #999;
}

.post-thumbnail-figure img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.wp-caption-text {
    font-size: 11px;
    color: #999;
    line-height: 1.3;
    margin-top: 5px;
}

.entry-content {
    margin-top: 30px;
}

.entry-content p {
    font-size: 16px;
    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;
}

.entry-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* ---------- RELATED INLINE ARTICLE ---------- */

.mp-related-inline {
    margin: 30px 0;
}

.mp-related-label {
    font-size: large;
    font-weight: bold;
    color: orangered;
}

.mp-related-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.mp-related-img img {
    width: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
}

.mp-related-content {
    font-weight: bold;
    line-height: 1.5;
}

.mp-related-content a {
    color: steelblue;
}

/* ---------- SLOT ADS IN ARTICLE ---------- */

.mp-in-article-ad {
    display: block;
    margin: 30px auto;
    text-align: center;
    clear: both;
}

.mp-in-article-ad figure {
    margin: 0;
}

.mp-in-article-ad::before {
    content: "ADVERTISEMENT";
    display: block;
    font-size: x-small;
    letter-spacing: 2px;
    color: #ccc;
    margin-bottom: 5px;
}

.mp-in-article-ad img {
    max-width: 100%;
    height: auto;
    width: auto;
    border-radius: 0!important;
}

/* --- PAGE LINK --- */

.page-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
    font-weight: bold;
    line-height: 1;
}

.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%;
    font-weight: normal;
}

.page-links .post-page-numbers.current {
    color: #fff;
}

/* --- TAGS LINK --- */

.tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 30px 0;
}

.tags-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #f4f4f4;
    font-size: 13px;
    line-height: 1;
    transition: color 0.3s ease;
    border-radius: 4px;
}

/* --- TOMBOL SHARE ARTIKEL --- */

.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share-buttons a,
.copy-share,
.native-share {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    font-size: initial;
}

.native-share .material-icons-outlined {
    font-size: large;
    vertical-align: middle;
}

.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;
    cursor: pointer;
}
.native-share {
    background-color: #6366f1;
    border: none;
    cursor: pointer;
}

/* --- LAYOUT RELATED --- */

.related-posts {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

.related-posts h2 {
    text-transform: capitalize;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1;
}

.related-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 480px) {
    .related-cards-wrap {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }
}

.related-image {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.related-image img {
    aspect-ratio: 16 / 9;
}

.related-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1;
}

.related-cat {
    display: none;
    text-transform: capitalize;
    font-size: 13px;
}

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: x-small;
    color: #999;
}

/* --- LAYOUT LATEST ARTICLE --- */

.latest-posts-section h2 {
    text-transform: capitalize;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1;
}

/* --- HIGHTLIGHT / SOROTAN --- */

.tag-featured-posts-section {
    margin-bottom: 30px;
}

.section-header-tag-title {
    line-height: 1;
    margin-bottom: 15px;
}

.section-header-tag-title h2 {
    font-size: 20px;
    text-transform: capitalize;
}

.main-featured-post article,
.list-small-posts article {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid#eee;
}

.list-small-posts article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.list-small-posts .tag-card-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tag-card-image-wrap {
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.tag-card-image-wrap img {
    aspect-ratio: 16 / 9;
}

.tag-card-image-wrap-small {
    flex: 0 0 95px;
    border-radius: 6px;
    overflow: hidden;
}

.tag-card-image-wrap-small img {
	aspect-ratio: 1 / 1;
}

.tag-card-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
	line-height: 1;
}

.tag-card-content-wrap-small {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
	line-height: 1;
}

.tag-card-category {
    display: none;
    line-height: 1;
}

.tag-card-category a {
    text-transform: capitalize;
    font-size: 13px;
}

.tag-card-content-wrap h3,
.tag-card-content-wrap-small h3 {
    font-size: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-card-date {
    font-size: x-small;
    color: #999;
}

/* --- LAYOUT SIDEBAR / POPULAR --- */

.popular-posts-section h2 {
    text-transform: capitalize;
    font-size: 20px;
    margin-bottom: 15px;
}

.popular-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid#eee;
}

.popular-list-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-list-thumbnail {
    flex: 0 0 95px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-list-thumbnail img {
    aspect-ratio: 1 / 1;
}

.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: 5px;
}

.popular-list-meta a {
    text-transform: capitalize;
    font-size: 13px;
}

.section-footer-tag {
    line-height: 1;
    text-align: center;
    padding-top: 20px;
}

.view-all-link-tag {
    display: inline-block;
    font-size: small;
    color: #999;
}

/* --- PAGINATION --- */

.pagination-wrapper,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
    line-height: 1;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    min-width: 32px;
    height: 32px;
    padding: 0 5px;
    border-radius: 4px;
}

.page-numbers.current {
    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: 10px;
    padding: 25px 15px;
    line-height: 1;
}

.author-avatar-page img {
    width: 96px;
    border-radius: 50%;
}

h1.author-title-page {
    font-size: 20px;
    text-transform: capitalize;
}

.author-bio-page p {
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.author-post-count p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* --- LAYOUT HALAMAN TAG --- */

.page-header-tag {
    margin-bottom: 30px;
    line-height: 1;
}

h1.page-title-tag {
    text-transform: capitalize;
    font-size: 20px;
    margin-bottom: 10px;
}

h1.page-title-tag::before {
    content: "Tag: ";
}

.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: large;
    line-height: 1.3;
}

/* --- LAYOUT HALAMAN 404 --- */

.full-width-404 {
    display: block;
    padding: 50px 20px;
}

.error-404.not-found {
    text-align: center;
}

h1.page-title-404 {
    line-height: 1.3;
}

.error-code {
    font-size: 150px;
    line-height: normal;
}

.page-content-404 {
    max-width: 500px;
    margin: auto;
}

.return-home-404 {
    line-height: 1;
}

.return-home-404 a {
    display: inline-block;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    font-weight: bold;
}

/* --- LAYOUT FOOTER GLOBAL --- */

.site-footer {
    background-color: #222;
    color: #999;
}

.site-footer a {
    color: #999;
}

@media (max-width: 1024px) {
    .site-footer {
        padding: 0 15px;
    }
}

.footer-container {
    display: flex;
    max-width: 1055px;
    margin: 0 auto;
    padding: 50px 0 30px;
    border-bottom: 1px solid #222;
}

.footer-col-left {
    flex: 2;
}

.footer-col-right {
    flex: 1;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-col-left,
    .footer-col-right {
        flex: 0 0 100%;
    }
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    max-width: 160px;
    filter: brightness(0) invert(1);
}

.footer-office-address p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

h3.footer-small-title {
    display: none;
    text-transform: capitalize;
    font-size: initial;
    line-height: 1;
    color: #eee;
    margin-bottom: 15px;
}

.social-icons-list {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #555;
    font-size: initial;
    color: #eee;
    transition: color 0.3s ease;
}

.social-icons-list a:hover {
    color: #444;
    background-color: #eee;
}

.footer-col-3 {
    padding: 20px 0;
}

.footer-col-4 {
    padding: 15px 0;
    border-top: 1px solid #333;
}

.footer-col-right h3 {
    font-size: 20px;
    color: #eee;
    line-height: 1;
    text-transform: capitalize;
    margin-bottom: 15px;
}

ul.footer-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

ul.footer-category-list li a {
    display: block;
    text-transform: capitalize;
    font-size: 15px;
    color: #999;
    padding: 8px 0;
    line-height: 1;
    transition: color 0.3s ease;
}

ul.footer-category-list li:hover a {
    color: #eee;
}

.footer-container-info {
    max-width: 1055px;
    margin: 0 auto;
    padding: 30px 0 15px;
    border-top: 1px solid#333;
}

ul.footer-pages-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
    line-height: 1;
}

ul.footer-pages-list li a {
    text-transform: capitalize;
    font-size: 13px;
    color: #999;
    transition: color 0.3s ease;
}

ul.footer-pages-list li:hover a {
    color: #eee;
}

.credit-container {
    max-width: 1055px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.site-info-footer p {
    margin: 0;
    font-size: 12px;
}

/* --- LAYOUT COMMENTS --- */

.mediapress-facebook-comments {
    margin: 50px 0;
}

.mediapress-facebook-comments h2 {
    font-size: 20px;
    line-height: 1;
}

/* --- LAYOUT PAGES --- */

h1.entry-title-page {
    font-size: x-large;
    line-height: 1;
    margin-bottom: 20px;
}

/* --- BACK TO TOP --- */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    background: #333; 
    color: #fff; 
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px; 
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    text-decoration: none;
}

#back-to-top:hover {
    background: #555;
    opacity: 0.9;
}

.back-to-top-icon.material-icons {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 40px;
    display: inline-block;
    vertical-align: top;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: 'liga';
            font-feature-settings: 'liga';
}

/*--- SLIDER RUBRIK --- */

@media (max-width: 1024px) {
    .slider-area-wrap {
        padding: 0 15px;
    }
}

.slider-container-inner {
    max-width: 1055px;
    margin: 0 auto;
    padding: 30px 0;
    overflow: hidden;
    border-top: 1px solid#ccc;
    border-bottom: 1px solid#ccc;
}

.swiper-main-wrapper {
    position: relative;
}

.slider-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
    margin-bottom: 15px;
}

h2.slider-block-title {
    text-transform: capitalize;
    font-size: 20px;
}

.slider-view-all {
    font-size: small;
    text-transform: capitalize;
    color: #999;
    line-height: 1;
}

.sld-box-visual {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sld-box-visual img {
    aspect-ratio: 16 / 9;
}

.sld-box-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 84px;
	line-height: 1;
}

.sld-label-cat {
    display: none;
}

.sld-label-cat a {
    text-transform: capitalize;
    font-size: 13px;
}

h3.sld-title {
    font-size: initial;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sld-meta {
    font-size: x-small;
    color: #999;
}

.rubrik-next,
.rubrik-prev {
    top: 32%!important;
    width: 32px!important;
    height: 32px!important;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%!important;
    transition: all 0.3s ease;
}

.rubrik-next {
    right: 10px!important;
}

.rubrik-prev {
    left: 10px!important;
}

.swiper-main-wrapper:hover .rubrik-next,
.swiper-main-wrapper:hover .rubrik-prev {
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper-main-wrapper:hover .rubrik-next:after,
.swiper-main-wrapper:hover .rubrik-prev:after {
    color: #333;
}

@media (max-width: 768px) {
    .prefooterSwiper {
        width: 994px;
    }
}

/* --- RUBRIK BOTTOM --- */

.rubrik-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1055px;
    margin: 0 auto;
    padding: 50px 0;
}

@media (max-width: 1024px) {
    .rubrik-grid-container {
        padding: 50px 15px;
    }
}

@media (max-width: 768px) {
    .rubrik-grid-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.rubrik-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
    margin-bottom: 15px;
}

h2.rubrik-header-title {
    text-transform: capitalize;
    font-size: 20px;
}

.rubrik-link-all {
    font-size: small;
    color: #999;
    text-transform: capitalize;
}

.rubrik-list-wrapper article {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid#eee;
}

.rubrik-list-wrapper article:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.feat-media-wrap {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.feat-media-wrap img {
    aspect-ratio: 16 / 9;
}

.feat-info-wrap,
.std-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
	line-height: 1;
}

.feat-summary-text {
    display: none;
}

.rubrik-box-standard {
    display: flex;
    align-items: center;
    gap: 15px;
}

.std-media-wrap {
    flex: 0 0 95px;
    border-radius: 6px;
    overflow: hidden;
}

.std-media-wrap img {
	aspect-ratio: 1 / 1;
}

.std-info-wrap {
    flex: 1;
}

.feat-tag-label,
.std-tag-label {
    line-height: 1;
    display: none;
}

.feat-tag-label a,
.std-tag-label a {
    text-transform: capitalize;
    font-size: 13px;
}

h3.feat-entry-title {
    font-size: initial;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h3.std-entry-title {
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feat-meta-time,
.std-meta-time {
    font-size: x-small;
    color: #999;
}

/* ---------- COLOR GLOBAL CUSTOMIZER ---------- */

/* Di dalam style.css */
.ticker-label, 
.category-slider-link a, 
.view-all-button-wrapper a,
.page-numbers.current, 
.utility-text, 
.return-home-404 a,
.page-links .post-page-numbers.current { 
    background-color: var(--mp-bg-color); /* Pake variabel ini */
}

.swiper-pagination-bullet-active { 
    background: var(--mp-bg-color) !important; 
}

.slider-random-catlink a, 
.card-cat a, 
.card-cat-inject a,
.sld-label-cat a,
.tag-card-category a,
.popular-list-meta a,
.feat-tag-label a,
.std-tag-label a,
.page-header-category h1, 
.sticky-card-cat a,
.author-details .byline a,
.related-cat a,
.comment-navigation .page-numbers.current,
.tags-links a:hover, 
.tab-btn.active, 
.error-code { 
    color: var(--mp-text-color); /* Pake variabel ini */
}

/* ---------- DARK MODE CUSTOMIZER ---------- */
html.dark-mode .slider-random-catlink a,
html.dark-mode .card-cat a,
html.dark-mode .card-cat-inject a,
html.dark-mode .popular-list-meta a,
html.dark-mode .sticky-card-cat a,
html.dark-mode .tags-links a:hover,
html.dark-mode .comment-navigation .page-numbers.current {
    color: var(--mp-text-color); /* Gunakan variabel, bukan PHP echo */
}

/* --- DARK MODE --- */

body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

html.dark-mode body {
    background-color: #1a1a1a; 
    color: #f1f1ff; 
}

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,
html.dark-mode .post-card,
html.dark-mode .injected-rubrik-column,
html.dark-mode .popular-list-item,
html.dark-mode .mobile-menu-primary > ul > li,
html.dark-mode .related-posts {
    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;
}

html.dark-mode .page-numbers,
html.dark-mode .tags-links a,
html.dark-mode .page-links .post-page-numbers {
    color: #333;
}

html.dark-mode .category-slider-link a,
html.dark-mode .view-all-button-wrapper a,
html.dark-mode .page-links .post-page-numbers.current,
html.dark-mode .page-numbers.current,
html.dark-mode .return-home-404 a {
    color: #fff;
}

html.dark-mode .card-excerpt p,
html.dark-mode .entry-summary-single p,
html.dark-mode .sticky-card-excerpt p,
html.dark-mode .mobile-menu-primary .sub-menu li a,
html.dark-mode .mobile-menu-pages ul li a {
    color: #ccc;
}

html.dark-mode .mobile-menu-panel {
    background-color: #212121;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

html.dark-mode .random-slider-section,
html.dark-mode .slider-container-inner,
html.dark-mode .main-featured-post article,
html.dark-mode .list-small-posts article,
html.dark-mode .mobile-menu-panel .mobile-menu-header,
html.dark-mode .mobile-menu-panel .mobile-menu-section,
html.dark-mode .rubrik-list-wrapper article {
    border-color: #333;
}

html.dark-mode .mobile-menu-panel h4 {
    color: #aaa;
}

html.dark-mode .utility-icon,
html.dark-mode .mobile-icon {
    color: #fff;
}

html.dark-mode .tags-links a {
    background-color: #333;
    color: #eee;
}

html.dark-mode .mp-related-content a {
    color: steelblue;
}