/*
Theme Name: Masur
Theme URI: https://example.com/masur
Author: Your Name
Author URI: https://example.com
Description: Temukan informasi terbaru seputar publikasi jurnal Scopus dan SINTA, serta konsultasikan kebutuhan publikasi Anda bersama tim profesional kami.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masur
Tags: blog, news, magazine, responsive, clean, modern
*/

:root {
    --color-bg-light: #faf9f5; /* refined soft cream background */
    --color-bg-dark: #09090b; /* deep slate black background */
    --color-text-light: #18181b; /* zinc-900 */
    --color-text-dark: #f4f4f5; /* zinc-100 */
    --color-accent: #9D4EDD; /* Ungu 70% primary theme color */
    --color-accent-hover: #7b2cbf; /* deep purple hover */
    --color-accent-light: #c77dff; /* light purple tint */
    --color-secondary: #F48C06; /* Orange 30% secondary highlight & CTA */
    --color-secondary-hover: #e85d04; /* dark orange hover */
    --color-secondary-light: #ffaa33; /* light orange tint */
    --color-border: rgba(24, 24, 27, 0.05);
    --color-card-bg: #ffffff;
    --color-overlay: rgba(9, 9, 11, 0.4);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    font-size: 15px; /* slightly smaller base text size */
    line-height: 1.6;
    transition: var(--transition);
}

body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

body.dark-mode .card,
body.dark-mode .featured-card,
body.dark-mode .post-card {
    background-color: #1e1e1e;
    color: var(--color-text-dark);
}

body.dark-mode header {
    background-color: var(--color-bg-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode footer {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1100px; /* scaled down from 1200px for a more snug fit */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--color-bg-light); /* cream matching the body background */
    padding: 12px 0; /* more compact header */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container .custom-logo-link {
    display: block;
    line-height: 0;
}

.logo-container img.custom-logo {
    max-height: 36px;
    width: auto;
    display: block;
    transition: var(--transition);
}

/* Custom Logo Visibility in Dark Mode */
.logo-container .custom-logo-dark,
.logo-container .dark-logo-link {
    display: none !important;
}

body.dark-mode .logo-container .dark-logo-link,
body.dark-mode .logo-container .custom-logo-dark {
    display: block !important;
}

body.dark-mode .logo-container .custom-logo-link:not(.dark-logo-link) {
    display: none !important;
}



.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px; /* scaled down from 24px */
    font-weight: 800;
    text-decoration: none;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

body.dark-mode .logo {
    color: var(--color-text-dark);
}

.logo-icon {
    width: 28px; /* scaled down from 32px */
    height: 28px;
    background: linear-gradient(135deg, var(--color-accent), #7b2cbf);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px; /* scaled down from 18px */
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.25);
}

body.dark-mode .logo-icon {
    background: linear-gradient(135deg, var(--color-accent), #c77dff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.35);
}

#mainNav > ul {
    display: flex;
    list-style: none;
    gap: 22px; /* tighter spacing between menu items */
    align-items: center;
    margin: 0;
    padding: 0;
}

#mainNav > ul > li {
    position: relative;
}

#mainNav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px; /* scaled down from 15px */
    font-weight: 500;
    transition: var(--transition);
}

body.dark-mode #mainNav a {
    color: var(--color-text-dark);
}

#mainNav a:hover,
#mainNav a:focus,
#mainNav a:active,
#mainNav li.current-menu-item > a,
#mainNav li.current-menu-parent > a,
#mainNav li.current-menu-ancestor > a,
#mainNav li.current_page_item > a,
#mainNav li.current_page_parent > a,
#mainNav li.current_page_ancestor > a,
#mainNav li.current-category-ancestor > a {
    color: var(--color-secondary, #F48C06);
}

body.dark-mode #mainNav a:hover,
body.dark-mode #mainNav a:focus,
body.dark-mode #mainNav a:active,
body.dark-mode #mainNav li.current-menu-item > a,
body.dark-mode #mainNav li.current-menu-parent > a,
body.dark-mode #mainNav li.current-menu-ancestor > a,
body.dark-mode #mainNav li.current_page_item > a,
body.dark-mode #mainNav li.current_page_parent > a,
body.dark-mode #mainNav li.current_page_ancestor > a,
body.dark-mode #mainNav li.current-category-ancestor > a {
    color: var(--color-secondary, #F48C06);
}

/* Category Arrow/Caret dropdown indicator */
#mainNav > ul > li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#mainNav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: var(--transition);
    opacity: 0.7;
}

#mainNav > ul > li.menu-item-has-children > a:hover::after {
    transform: translateY(1px) rotate(45deg);
}

/* Submenu dropdown panel */
#mainNav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid var(--color-border);
}

#mainNav > ul > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#mainNav .sub-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

#mainNav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--color-text-light);
    font-weight: 400;
}

body.dark-mode #mainNav .sub-menu a {
    color: var(--color-text-dark);
}

#mainNav .sub-menu a:hover,
#mainNav .sub-menu a:focus,
#mainNav .sub-menu a:active,
#mainNav .sub-menu li.current-menu-item > a,
#mainNav .sub-menu li.current_page_item > a {
    background-color: rgba(244, 140, 6, 0.08);
    color: var(--color-secondary, #F48C06);
}

body.dark-mode #mainNav .sub-menu a:hover,
body.dark-mode #mainNav .sub-menu a:focus,
body.dark-mode #mainNav .sub-menu a:active,
body.dark-mode #mainNav .sub-menu li.current-menu-item > a,
body.dark-mode #mainNav .sub-menu li.current_page_item > a {
    background-color: rgba(244, 140, 6, 0.15);
    color: var(--color-secondary, #F48C06);
}

body.dark-mode #mainNav .sub-menu {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-text-light);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    line-height: 1;
}

.icon-btn svg {
    display: block;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.icon-btn:hover svg {
    transform: scale(1.1);
}

.theme-icon-light {
    display: none;
    align-items: center;
    justify-content: center;
}

.theme-icon-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .theme-icon-light {
    display: inline-flex;
}

body.dark-mode .theme-icon-dark {
    display: none;
}

.mobile-menu-toggle .menu-icon-bars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle .menu-icon-close {
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle.is-active .menu-icon-bars {
    display: none;
}

.mobile-menu-toggle.is-active .menu-icon-close {
    display: inline-flex;
}

body.dark-mode .icon-btn {
    color: var(--color-text-dark);
}

.icon-btn:hover,
.icon-btn:focus,
.icon-btn:active {
    color: var(--color-secondary, #F48C06);
}

body.dark-mode .icon-btn:hover,
body.dark-mode .icon-btn:focus,
body.dark-mode .icon-btn:active {
    color: var(--color-secondary, #F48C06);
}

.header-divider {
    color: rgba(0, 0, 0, 0.15);
    font-weight: 300;
    font-size: 16px;
    user-select: none;
}

body.dark-mode .header-divider {
    color: rgba(255, 255, 255, 0.15);
}

.mobile-menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 40px 0 20px;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
}

.hero-slider-track {
    position: relative;
    width: 100%;
}

.hero-slide {
    display: none;
    animation: heroSlideFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.is-active {
    display: block;
}

@keyframes heroSlideFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider-nav-arrows {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
}

.hero-arrow-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-arrow-btn:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    transform: scale(1.08);
}

body.dark-mode .hero-arrow-btn {
    background: rgba(24, 24, 27, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f4f4f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-arrow-btn:hover {
    background: var(--color-accent);
    color: #ffffff;
}

.hero-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(157, 78, 221, 0.25);
    background: var(--color-card-bg);
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-tab-btn .tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    transition: all 0.25s ease;
}

.hero-tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.15);
}

.hero-tab-btn.is-active {
    background: linear-gradient(135deg, var(--color-accent) 0%, #7B2CBF 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(157, 78, 221, 0.35);
}

.hero-tab-btn.is-active .tab-dot {
    background: #ffffff;
    transform: scale(1.2);
}

body.dark-mode .hero-tab-btn {
    background: #18181b;
    color: var(--color-text-dark);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .hero-tab-btn.is-active {
    background: linear-gradient(135deg, var(--color-accent) 0%, #5a189a 100%);
    color: #ffffff;
}

@media (max-width: 991px) {
    .hero-slider-nav-arrows {
        display: none;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: stretch;
    position: relative;
}

.hero-image-wrapper {
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.02);
    border: 1px solid rgba(24, 24, 27, 0.05);
    position: relative;
    height: auto;
    min-height: 380px;
}

body.dark-mode .hero-image-wrapper {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content:hover .hero-image-wrapper img {
    transform: scale(1.04);
}

.featured-card {
    z-index: 2;
    background: var(--color-card-bg);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.02);
    border: 1px solid rgba(24, 24, 27, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(9, 9, 11, 0.06);
    border-color: var(--color-accent);
}

body.dark-mode .featured-card {
    background: #18181b;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .featured-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.15);
}

.badge-wrapper {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-tier-badge {
    background: linear-gradient(135deg, var(--color-primary, #9D4EDD), #7B2CBF);
    color: #fff;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.25);
}

.hero-counter-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #777;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

body.dark-mode .hero-counter-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
}

.featured-card .badge {
    background: linear-gradient(135deg, var(--color-secondary), #e85d04);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(244, 140, 6, 0.25);
}

.featured-card h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

body.dark-mode .featured-card h1 {
    color: var(--color-text-dark);
}

.featured-card h1 a {
    text-decoration: none;
    color: inherit;
    position: relative;
    background-image: linear-gradient(120deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

.featured-card h1 a:hover {
    color: var(--color-accent);
    background-size: 100% 2px;
}

.featured-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
    margin-top: 14px;
    align-self: flex-start;
}

.featured-read-more svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-read-more:hover {
    color: var(--color-secondary);
}

.featured-read-more:hover svg {
    transform: translateX(4px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta span svg,
.entry-meta span svg {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.masur-icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.badge .masur-icon,
.popular-pinned-badge .masur-icon,
.tab-label .masur-icon {
    vertical-align: middle;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: #bbb;
    line-height: 1;
}

body.dark-mode .breadcrumbs {
    color: #aaa;
}

body.dark-mode .breadcrumbs a {
    color: #aaa;
}

body.dark-mode .breadcrumbs a:hover {
    color: var(--color-accent);
}

body.dark-mode .breadcrumbs .breadcrumb-separator {
    color: #555;
}

.meta-separator {
    color: #ccc;
    font-weight: bold;
}

body.dark-mode .meta-separator {
    color: #444;
}

.post-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

body.dark-mode .post-excerpt {
    color: #b0b0b0;
}

.read-more-btn-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e2e0;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: var(--transition);
    background-color: transparent;
}

.read-more-btn-square svg {
    transition: var(--transition);
}

body.dark-mode .read-more-btn-square {
    border-color: #333;
    color: #bbb;
}

.read-more-btn-square:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(157, 78, 221, 0.08);
}

.read-more-btn-square:hover svg {
    transform: translateX(2px);
}

body.dark-mode .read-more-btn-square:hover {
    background-color: rgba(157, 78, 221, 0.15);
}

/* Section Headers */
.section-header {
    padding: 40px 0 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: bold;
}

/* Popular Posts Slider */
.popular-slider {
    position: relative;
    padding-bottom: 40px;
}

.slider-wrapper {
    overflow: hidden;
}

.slider-container {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.post-card {
    min-width: calc(33.333% - 14px);
    background: var(--color-card-bg);
    border-radius: 16px; /* more rounded */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.02), 0 1px 3px rgba(9, 9, 11, 0.01);
    border: 1px solid rgba(24, 24, 27, 0.04);
    transition: var(--transition);
}

body.dark-mode .post-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.08);
    border-color: rgba(157, 78, 221, 0.2);
}

body.dark-mode .post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(157, 78, 221, 0.35);
}

.post-card-image {
    position: relative;
    height: 160px; /* scaled down from 200px */
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #18181b;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .category-badge {
    background: rgba(24, 24, 27, 0.85);
    color: #f4f4f5;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popular-pinned-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--color-primary, #9D4EDD) 0%, #7B2CBF 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
}

body.dark-mode .popular-pinned-badge {
    background: linear-gradient(135deg, var(--color-primary, #9D4EDD) 0%, #5a189a 100%);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

.post-card-content {
    padding: 20px;
}

.post-card-content h3 {
    font-size: 16px; /* scaled down from 18px */
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-card-content h3 a {
    text-decoration: none;
    color: var(--color-text-light);
    position: relative;
    background-image: linear-gradient(120deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

body.dark-mode .post-card-content h3 a {
    color: var(--color-text-dark);
}

.post-card-content h3 a:hover {
    color: var(--color-accent);
    background-size: 100% 2px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

body.dark-mode .slider-nav {
    border-color: rgba(255, 255, 255, 0.05);
}

.slider-nav:hover {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev {
    left: -8px; /* shifted inward to avoid screen clipping */
}

.slider-nav.next {
    right: -8px; /* shifted inward to avoid screen clipping */
}

/* Recent Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-bottom: 40px;
}

.grid-post-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: var(--transition);
}

.grid-post-card:hover {
    transform: translateY(-4px);
}

.grid-post-image {
    height: 180px; /* scaled down from 220px */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px; /* scaled down */
}

.grid-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-post-card:hover .grid-post-image img {
    transform: scale(1.04);
}

.grid-post-content {
    padding: 0;
}

.grid-post-content h3 {
    font-size: 16px; /* scaled down from 18px */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.grid-post-content h3 a {
    text-decoration: none;
    color: var(--color-text-light);
    position: relative;
    background-image: linear-gradient(120deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

body.dark-mode .grid-post-content h3 a {
    color: var(--color-text-dark);
}

.grid-post-content h3 a:hover {
    color: var(--color-accent);
    background-size: 100% 2px;
}

.grid-post-excerpt {
    color: #5a5a58;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

body.dark-mode .grid-post-excerpt {
    color: #b5b2ac;
}

.post-category-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}

body.dark-mode .post-category-tag {
    background-color: #404040;
    color: #aaa;
}

.post-category-tag:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* Load More */
.load-more-section {
    text-align: center;
    padding: 20px 0 60px;
}

.load-more-btn {
    padding: 12px 32px;
    background-color: transparent;
    border: 2px solid var(--color-text-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--color-text-light);
}

body.dark-mode .load-more-btn {
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}

.load-more-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #666;
    line-height: 1.8;
}

body.dark-mode .footer-section p {
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px;
    transition: var(--transition);
}

body.dark-mode .footer-links a {
    color: var(--color-text-dark);
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active,
.footer-links li.current-menu-item > a,
footer a:hover,
footer a:focus,
footer a:active {
    color: var(--color-secondary, #F48C06);
}

body.dark-mode .footer-links a:hover,
body.dark-mode .footer-links a:focus,
body.dark-mode .footer-links a:active,
body.dark-mode .footer-links li.current-menu-item > a,
body.dark-mode footer a:hover,
body.dark-mode footer a:focus,
body.dark-mode footer a:active {
    color: var(--color-secondary, #F48C06);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tags a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

body.dark-mode .category-tags a {
    background-color: #404040;
    color: #aaa;
}

.category-tags a:hover,
.category-tags a:focus,
.category-tags a:active,
.category-tags a.current-cat {
    background-color: var(--color-secondary, #F48C06);
    border-color: var(--color-secondary, #F48C06);
    color: #ffffff !important;
}

body.dark-mode .category-tags a:hover,
body.dark-mode .category-tags a:focus,
body.dark-mode .category-tags a:active,
body.dark-mode .category-tags a.current-cat {
    background-color: var(--color-secondary, #F48C06);
    border-color: var(--color-secondary, #F48C06);
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: #888;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .hero-image-wrapper {
        width: 100%;
        height: 380px;
        border-radius: 12px;
    }
    
    .featured-card {
        width: 100%;
        margin-top: -40px; /* Overlaps the bottom of the image slightly */
        padding: 35px 30px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    
    .featured-card h1 {
        font-size: 26px;
        padding-right: 0;
    }
    
    .post-card {
        min-width: calc(50% - 10px);
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 12px 20px 16px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }
    
    #mainNav.active {
        display: block;
        animation: mobileMenuFadeIn 0.2s ease-out;
    }

    body.dark-mode #mainNav {
        background-color: #121215;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    }
    
    #mainNav > ul {
        flex-direction: column;
        gap: 2px;
        align-items: stretch;
        width: 100%;
    }

    #mainNav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    #mainNav > ul > li:last-child {
        border-bottom: none;
    }

    body.dark-mode #mainNav > ul > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.dark-mode #mainNav > ul > li:last-child {
        border-bottom: none;
    }

    #mainNav > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 8px;
        font-size: 15px;
        font-weight: 500;
        color: var(--color-text-light);
        border-radius: 6px;
        transition: var(--transition);
    }

    #mainNav > ul > li > a:hover,
    #mainNav > ul > li > a:focus,
    #mainNav > ul > li > a:active,
    #mainNav > ul > li.current-menu-item > a,
    #mainNav > ul > li.current_page_item > a,
    #mainNav > ul > li.current-menu-ancestor > a {
        color: var(--color-secondary, #F48C06);
        background-color: rgba(244, 140, 6, 0.08);
    }

    body.dark-mode #mainNav > ul > li > a {
        color: #f4f4f5 !important;
    }

    body.dark-mode #mainNav > ul > li > a:hover,
    body.dark-mode #mainNav > ul > li > a:focus,
    body.dark-mode #mainNav > ul > li > a:active,
    body.dark-mode #mainNav > ul > li.current-menu-item > a,
    body.dark-mode #mainNav > ul > li.current_page_item > a,
    body.dark-mode #mainNav > ul > li.current-menu-ancestor > a {
        color: var(--color-secondary, #F48C06) !important;
        background-color: rgba(244, 140, 6, 0.15);
    }
    
    /* Child menus in mobile layout */
    #mainNav > ul li.menu-item-has-children > a::after {
        margin-left: auto;
        transition: transform 0.25s ease;
    }

    #mainNav > ul li.menu-item-has-children.active > a::after {
        transform: translateY(1px) rotate(225deg);
    }

    #mainNav .sub-menu,
    body.dark-mode #mainNav .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: transparent !important;
        padding: 4px 0 8px 16px;
        display: none;
        border: none;
        min-width: unset;
        gap: 2px;
    }

    #mainNav > ul li.active .sub-menu {
        display: flex;
        flex-direction: column;
    }

    #mainNav .sub-menu li {
        width: 100%;
        border: none;
    }

    #mainNav .sub-menu a {
        display: block;
        padding: 8px 10px;
        font-size: 14px;
        font-weight: 400;
        color: #52525b;
        border-radius: 6px;
        transition: var(--transition);
        white-space: normal;
    }

    #mainNav .sub-menu a:hover,
    #mainNav .sub-menu a:focus,
    #mainNav .sub-menu a:active,
    #mainNav .sub-menu li.current-menu-item > a,
    #mainNav .sub-menu li.current_page_item > a {
        color: var(--color-secondary, #F48C06);
        background-color: rgba(244, 140, 6, 0.08);
    }

    body.dark-mode #mainNav .sub-menu a {
        color: #a1a1aa !important;
    }

    body.dark-mode #mainNav .sub-menu a:hover,
    body.dark-mode #mainNav .sub-menu a:focus,
    body.dark-mode #mainNav .sub-menu a:active,
    body.dark-mode #mainNav .sub-menu li.current-menu-item > a,
    body.dark-mode #mainNav .sub-menu li.current_page_item > a {
        color: var(--color-secondary, #F48C06) !important;
        background-color: rgba(244, 140, 6, 0.15);
    }

    @keyframes mobileMenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .post-card {
        min-width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-nav {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-card {
        padding: 30px 25px;
        margin-top: -30px;
    }
    
    .featured-card h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-image-wrapper {
        height: 250px;
    }
    
    .featured-card {
        padding: 25px 20px;
    }
    
    .featured-card h1 {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
}

/* Header Search Bar slide down */
.header-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.header-search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

body.dark-mode .header-search-bar {
    background-color: var(--color-bg-dark);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-search-bar .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
    align-items: center;
}

.header-search-bar .search-form label {
    flex: 1;
    display: block;
}

.header-search-bar .search-form .search-field {
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-primary);
    transition: var(--transition);
}

body.dark-mode .header-search-bar .search-form .search-field {
    background-color: #121214;
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-dark);
}

.header-search-bar .search-form .search-field:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.15);
}

.header-search-bar .search-form .search-submit {
    background-color: var(--color-secondary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(244, 140, 6, 0.25);
}

.header-search-bar .search-form .search-submit:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(244, 140, 6, 0.35);
}

/* Load More Button styling */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    outline: none;
}

body.dark-mode .load-more-btn {
    color: var(--color-text-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.load-more-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.25);
}

body.dark-mode .load-more-btn:hover {
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* WhatsApp CTA Button in Header */
.cta-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    margin-left: 10px;
}

.cta-wa-btn:hover {
    background-color: #1ebd5b;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.cta-wa-btn svg.wa-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}

@media (max-width: 768px) {
    .cta-wa-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .cta-wa-btn span {
        display: none;
    }
    .cta-wa-btn {
        padding: 8px;
        border-radius: 50%;
        margin-left: 5px;
    }
}

/* ==========================================================================
   Waspada Penipuan (Fraud Warning) Flyer & Modal System
   ========================================================================== */

.single-post-layout-wrapper {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
}

/* Sidebar Column - Hidden by default on small viewports */
.single-post-flyer-col {
    display: none;
}

/* Medium Desktop Viewports: 1180px - 1319px (Slightly narrower flyer for margin clearance) */
@media (min-width: 1180px) and (max-width: 1319px) {
    .single-post-flyer-col {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 195px;
        z-index: 80;
        pointer-events: none;
    }
    
    .single-post-flyer-col.pos-left {
        right: calc(100% + 18px);
    }
    
    .single-post-flyer-col.pos-right {
        left: calc(100% + 18px);
    }
}

/* Wide Desktop Viewports: 1320px+ (Full size 215px flyer) */
@media (min-width: 1320px) {
    .single-post-flyer-col {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 215px;
        z-index: 80;
        pointer-events: none;
    }
    
    .single-post-flyer-col.pos-left {
        right: calc(100% + 24px);
    }
    
    .single-post-flyer-col.pos-right {
        left: calc(100% + 24px);
    }
}

.single-post-flyer-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post-flyer-sticky.is-minimized {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.96);
}

/* Flyer Card Styling */
.fraud-flyer-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(244, 140, 6, 0.25);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(244, 140, 6, 0.08);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fraud-flyer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.12), 0 6px 16px -2px rgba(244, 140, 6, 0.15);
}

body.dark-mode .fraud-flyer-card {
    background: #18181b;
    border-color: rgba(244, 140, 6, 0.35);
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 140, 6, 0.08);
}

/* Card Header */
.fraud-flyer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(244, 140, 6, 0.08);
    border-bottom: 1px solid rgba(244, 140, 6, 0.15);
}

body.dark-mode .fraud-flyer-header {
    background: rgba(244, 140, 6, 0.12);
    border-bottom-color: rgba(244, 140, 6, 0.2);
}

.fraud-flyer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #e85d04;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .fraud-flyer-badge {
    color: #f48c06;
}

.fraud-badge-dot {
    width: 6px;
    height: 6px;
    background-color: #f48c06;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(244, 140, 6, 0.7);
    animation: fraudPulse 2s infinite;
}

@keyframes fraudPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(244, 140, 6, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0);
    }
}

.fraud-flyer-close-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #71717a;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.fraud-flyer-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #18181b;
}

body.dark-mode .fraud-flyer-close-btn {
    color: #a1a1aa;
}

body.dark-mode .fraud-flyer-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Card Image Wrapper with Hover Zoom */
.fraud-flyer-img-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    display: block;
}

.fraud-flyer-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.fraud-flyer-img-wrap:hover .fraud-flyer-img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

.fraud-flyer-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #ffffff;
}

.fraud-flyer-img-wrap:hover .fraud-flyer-img-overlay {
    opacity: 1;
}

.fraud-flyer-img-overlay .zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.fraud-flyer-img-overlay .zoom-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Card Body / Actions */
.fraud-flyer-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fraud-flyer-note {
    font-size: 11px;
    line-height: 1.4;
    color: #52525b;
    margin: 0;
    text-align: center;
}

body.dark-mode .fraud-flyer-note {
    color: #a1a1aa;
}

.fraud-flyer-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #25d366, #1eb753);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fraud-flyer-wa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
    filter: brightness(1.05);
}

.fraud-flyer-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #71717a;
    gap: 4px;
}

body.dark-mode .fraud-flyer-footer-meta {
    color: #a1a1aa;
}

/* ==========================================================================
   Mobile & Minimized Floating Badge Trigger
   ========================================================================== */
.masur-fraud-mobile-badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 995;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* On desktop, hide floating badge unless sidebar flyer is minimized */
@media (min-width: 1180px) {
    .masur-fraud-mobile-badge {
        display: none;
    }
    .masur-fraud-mobile-badge.is-visible {
        display: block;
    }
}

.fraud-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid #f48c06;
    color: #18181b;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(244, 140, 6, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fraud-badge-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(244, 140, 6, 0.35);
    background: #ffffff;
}

body.dark-mode .fraud-badge-btn {
    background: rgba(24, 24, 27, 0.92);
    color: #f4f4f5;
    border-color: #f48c06;
    box-shadow: 0 8px 24px rgba(244, 140, 6, 0.3);
}

body.dark-mode .fraud-badge-btn:hover {
    background: #202024;
}

.fraud-badge-btn .badge-icon {
    font-size: 15px;
    line-height: 1;
}

.fraud-badge-btn .badge-pulse-dot {
    width: 7px;
    height: 7px;
    background: #e85d04;
    border-radius: 50%;
    animation: fraudPulse 2s infinite;
}

@media (max-width: 576px) {
    .masur-fraud-mobile-badge {
        bottom: 20px;
        left: 16px;
    }
    .fraud-badge-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Lightbox Modal for High-Resolution Flyer Preview
   ========================================================================== */
.masur-fraud-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.masur-fraud-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.fraud-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fraud-modal-dialog {
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.masur-fraud-modal.is-active .fraud-modal-dialog {
    transform: scale(1) translateY(0);
}

.fraud-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    background: #18181b;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    z-index: 5;
}

.fraud-modal-close:hover {
    background: #e85d04;
    transform: rotate(90deg) scale(1.08);
    border-color: #e85d04;
}

.fraud-modal-content {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

body.dark-mode .fraud-modal-content {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fraud-modal-img-container {
    overflow-y: auto;
    max-height: calc(92vh - 75px);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .fraud-modal-img-container {
    background: #09090b;
}

.fraud-modal-img {
    width: 100%;
    height: auto;
    display: block;
}

.fraud-modal-footer {
    padding: 12px 16px 10px;
    background: #faf9f5;
    border-top: 1px solid rgba(24, 24, 27, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.dark-mode .fraud-modal-footer {
    background: #121215;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.fraud-modal-dismiss-btn {
    background: none;
    border: none;
    color: #71717a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    font-family: var(--font-primary);
}

.fraud-modal-dismiss-btn:hover {
    color: #18181b;
}

body.dark-mode .fraud-modal-dismiss-btn {
    color: #a1a1aa;
}

body.dark-mode .fraud-modal-dismiss-btn:hover {
    color: #ffffff;
}

.fraud-modal-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #25d366, #1eb753);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.fraud-modal-wa-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

@media (max-width: 480px) {
    .fraud-modal-dialog {
        max-width: 95vw;
    }
    .fraud-modal-close {
        top: -10px;
        right: -6px;
        width: 32px;
        height: 32px;
    }
    .fraud-modal-wa-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
}

