/*
Theme Name: Cianjur Journey
Theme URI: https://cianjurjourney.com
Author: Cianjur Journey Media
Description: Tema portal media digital wisata, kuliner, akomodasi, transportasi, dan berita Cianjur v3.1 dengan slider otomatis multi-kategori pada hero magazine grid, ticker update postingan running text bergaya rounded dengan live dot menyala, galeri foto lokasi, tag artikel, widget recent post ber-thumbnail, mode gelap, dan pengaturan slot iklan.
Version: 3.1.0
Text Domain: cianjur-journey
*/

:root {
    --cj-primary: #0f766e;
    --cj-primary-dark: #115e59;
    --cj-primary-soft: #f0fdfa;
    --cj-primary-border: #99f6e4;
    --cj-accent: #d97706;
    --cj-bg: #f8fafc;
    --cj-surface: #ffffff;
    --cj-surface-alt: #f1f5f9;
    --cj-text: #1e293b;
    --cj-heading: #0f172a;
    --cj-muted: #64748b;
    --cj-border: #e2e8f0;
    --cj-topbar-bg: #0f172a;
    --cj-topbar-text: #e2e8f0;
    --cj-footer-bg: #0f172a;
    --cj-footer-text: #cbd5e1;
    --cj-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    --cj-radius: 12px;
    --cj-font-heading: 'Plus Jakarta Sans', sans-serif;
    --cj-font-body: 'Inter', sans-serif;
    --cj-font-size: 16px;
}

[data-theme="dark"] {
    --cj-primary: #14b8a6;
    --cj-primary-dark: #0d9488;
    --cj-primary-soft: rgba(20, 184, 166, 0.12);
    --cj-primary-border: rgba(20, 184, 166, 0.35);
    --cj-accent: #f59e0b;
    --cj-bg: #0b1120;
    --cj-surface: #111827;
    --cj-surface-alt: #1e293b;
    --cj-text: #cbd5e1;
    --cj-heading: #f8fafc;
    --cj-muted: #94a3b8;
    --cj-border: #1e293b;
    --cj-topbar-bg: #060a14;
    --cj-topbar-text: #cbd5e1;
    --cj-footer-bg: #060a14;
    --cj-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--cj-bg);
    color: var(--cj-text);
    font-family: var(--cj-font-body);
    font-size: var(--cj-font-size);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cj-font-heading);
    color: var(--cj-heading);
    line-height: 1.3;
    font-weight: 700;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    flex-shrink: 0;
}

.cj-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar (Tanggal, Mode Gelap, Sosmed) */
.cj-topbar {
    background: var(--cj-topbar-bg);
    color: var(--cj-topbar-text);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cj-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 12px;
    padding: 6px 0;
}

.cj-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cj-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.cj-topbar-tagline {
    color: #94a3b8;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 14px;
}

.cj-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cj-topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cj-topbar-socials a {
    color: var(--cj-topbar-text);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cj-topbar-socials a:hover {
    background: var(--cj-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.cj-dark-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cj-dark-toggle:hover {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
}

[data-theme="dark"] .cj-dark-toggle .icon-moon { display: none; }
[data-theme="light"] .cj-dark-toggle .icon-sun,
:root:not([data-theme="dark"]) .cj-dark-toggle .icon-sun { display: none; }

/* Header & Navigasi */
.cj-header {
    background: var(--cj-surface);
    border-bottom: 1px solid var(--cj-border);
    z-index: 990;
    transition: background-color 0.25s ease;
}

.cj-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--cj-shadow);
}

.cj-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}

.cj-brand {
    display: flex;
    flex-direction: column;
}

.cj-brand img {
    max-height: 48px;
    width: auto;
}

.cj-brand-title {
    font-family: var(--cj-font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--cj-primary);
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cj-brand-tagline {
    font-size: 0.75rem;
    color: var(--cj-muted);
}

.cj-nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.cj-nav li {
    position: relative;
}

.cj-nav a {
    color: var(--cj-heading);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* Submenu Desktop */
.cj-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: var(--cj-shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 999;
}

.cj-nav li:hover > ul {
    display: flex;
}

.cj-nav ul ul a {
    padding: 9px 16px;
    font-size: 0.88rem;
}

.cj-nav ul ul a:hover {
    background: var(--cj-surface-alt);
}

.cj-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cj-search-form {
    display: flex;
    border: 1px solid var(--cj-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--cj-bg);
}

.cj-search-form input {
    border: none;
    background: transparent;
    color: var(--cj-text);
    padding: 7px 14px;
    font-size: 0.86rem;
    outline: none;
    width: 175px;
}

.cj-search-form button {
    border: none;
    background: var(--cj-primary);
    color: #fff;
    padding: 7px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Drawer */
.cj-mobile-toggle {
    display: none;
    background: var(--cj-surface-alt);
    color: var(--cj-heading);
    border: 1px solid var(--cj-border);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cj-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cj-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.cj-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--cj-surface);
    z-index: 1100;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cj-mobile-drawer.is-active {
    right: 0;
}

.cj-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cj-border);
    margin-bottom: 16px;
}

.cj-mobile-close {
    background: var(--cj-surface-alt);
    color: var(--cj-heading);
    border: 1px solid var(--cj-border);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cj-mobile-search {
    display: flex;
    border: 1px solid var(--cj-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--cj-bg);
    margin-bottom: 18px;
}

.cj-mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--cj-text);
    padding: 10px 12px;
    font-size: 0.9rem;
    outline: none;
}

.cj-mobile-search button {
    border: none;
    background: var(--cj-primary);
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
}

.cj-mobile-menu-list {
    list-style: none;
    flex: 1;
}

.cj-mobile-menu-list li {
    border-bottom: 1px solid var(--cj-border);
}

.cj-mobile-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    color: var(--cj-heading);
    font-weight: 600;
    font-size: 0.96rem;
}

.cj-mobile-menu-list a:hover {
    color: var(--cj-primary);
}

.cj-mobile-menu-list ul {
    list-style: none;
    padding-left: 16px;
    background: var(--cj-surface-alt);
    border-radius: 8px;
    margin-bottom: 8px;
}

.cj-mobile-menu-list ul li:last-child {
    border-bottom: none;
}

.cj-mobile-drawer-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cj-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Slot Iklan */
.cj-ad-slot {
    margin: 22px auto;
    text-align: center;
    overflow: hidden;
}

.cj-ad-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cj-muted);
    margin-bottom: 4px;
}

.cj-ad-inner {
    display: inline-block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.cj-ad-inner img {
    margin: 0 auto;
    border-radius: 8px;
}

/* Hero Banner Klasik */
.cj-hero {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(17, 94, 89, 0.86)), var(--cj-hero-bg, #0f766e) center/cover no-repeat;
    color: #ffffff;
    padding: 64px 24px;
    border-radius: var(--cj-radius);
    margin: 24px 0 36px;
    text-align: center;
}

.cj-hero h1 {
    color: #ffffff;
    font-size: 2.35rem;
    max-width: 780px;
    margin: 0 auto 14px;
}

.cj-hero p {
    font-size: 1.06rem;
    max-width: 650px;
    margin: 0 auto 28px;
    opacity: 0.95;
}

.cj-cat-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cj-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.cj-cat-pill:hover {
    background: var(--cj-accent);
    border-color: var(--cj-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Ticker Update Postingan (Style Around / Pill dengan Live Dot Menyala) */
.cj-ticker-container {
    margin-top: 18px;
}

.cj-news-ticker {
    display: flex;
    align-items: center;
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: 999px;
    padding: 5px 18px 5px 6px;
    box-shadow: var(--cj-shadow);
    overflow: hidden;
    gap: 14px;
    min-height: 44px;
}

.cj-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cj-ticker-badge-bg, var(--cj-primary));
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 999px;
    font-family: var(--cj-font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}

.cj-live-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--cj-ticker-dot, #ef4444);
    color: var(--cj-ticker-dot, #ef4444);
    box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
    flex-shrink: 0;
    animation: cj-dot-glow 1.6s ease-in-out infinite;
}

.cj-live-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.85;
    animation: cj-dot-ring 1.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes cj-dot-glow {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 8px currentColor, 0 0 18px currentColor, 0 0 24px currentColor;
    }
}

@keyframes cj-dot-ring {
    0% {
        transform: scale(0.75);
        opacity: 0.9;
    }
    75%, 100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

.cj-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.cj-ticker-track {
    display: flex;
    width: max-content;
    animation: cj-ticker-scroll var(--cj-ticker-duration, 32s) linear infinite;
}

.cj-news-ticker:hover .cj-ticker-track,
.cj-news-ticker:focus-within .cj-ticker-track {
    animation-play-state: paused;
}

.cj-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cj-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.cj-ticker-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--cj-primary-soft);
    color: var(--cj-primary);
    border: 1px solid var(--cj-primary-border);
}

.cj-ticker-item a {
    color: var(--cj-heading);
}

.cj-ticker-item a:hover {
    color: var(--cj-primary);
}

.cj-ticker-sep {
    color: var(--cj-accent);
    margin: 0 14px;
    font-size: 1rem;
}

@keyframes cj-ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Majalah Headline Grid dengan Slider Otomatis Per Grid / Kategori (Halaman Utama) */
.cj-mag-hero {
    margin: 24px 0 38px;
}

.cj-mag-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cj-mag-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cj-surface);
    color: var(--cj-heading);
    border: 1px solid var(--cj-border);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
}

.cj-mag-pill-chip:hover {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
    color: #ffffff;
}

.cj-mag-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
}

.cj-mag-side-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.cj-mag-slider {
    position: relative;
    border-radius: var(--cj-radius);
    overflow: hidden;
    min-height: 215px;
    background: #1e293b;
}

.cj-mag-main .cj-mag-slider {
    min-height: 448px;
    height: 100%;
}

.cj-mag-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.cj-mag-card {
    position: relative;
    border-radius: var(--cj-radius);
    overflow: hidden;
    min-height: 215px;
    background: #1e293b;
    display: flex;
    align-items: flex-end;
}

.cj-mag-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.cj-mag-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.cj-mag-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cj-primary-dark), var(--cj-primary));
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cj-mag-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cj-mag-slide.is-active img {
    transform: scale(1.03);
}

.cj-mag-card:hover img {
    transform: scale(1.07);
}

.cj-mag-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    padding: 5px 8px;
    border-radius: 999px;
}

.cj-mag-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.cj-mag-dot.is-active {
    width: 18px;
    background: var(--cj-accent);
}

.cj-mag-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.cj-mag-slider:hover .cj-mag-nav {
    opacity: 1;
}

.cj-mag-nav:hover {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
}

.cj-mag-prev { left: 10px; }
.cj-mag-next { right: 10px; }

.cj-mag-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 22px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.55) 60%, transparent 100%);
    color: #ffffff;
}

.cj-mag-main .cj-mag-overlay h2 {
    color: #ffffff;
    font-size: 1.65rem;
    margin: 8px 0;
}

.cj-mag-side-grid .cj-mag-overlay {
    padding: 16px;
}

.cj-mag-side-grid .cj-mag-overlay h3 {
    color: #ffffff;
    font-size: 0.98rem;
    margin: 6px 0 4px;
}

.cj-mag-meta {
    font-size: 0.78rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Section Headers & Category Layouts */
.cj-section {
    margin-bottom: 48px;
}

.cj-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--cj-border);
    padding-bottom: 12px;
}

.cj-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cj-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cj-primary-soft);
    color: var(--cj-primary);
    border: 1px solid var(--cj-primary-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cj-section-title {
    font-size: 1.4rem;
}

.cj-view-all {
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Grid Variations */
.cj-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cj-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Magazine Split Layout (1 Besar Kiri + 3 Daftar Kanan) */
.cj-layout-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
}

.cj-split-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Horizontal List Layout */
.cj-layout-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cj-card-horizontal {
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 240px 1fr;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cj-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--cj-shadow);
}

.cj-card-horizontal.is-compact {
    grid-template-columns: 125px 1fr;
}

.cj-card-horizontal .cj-card-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 110px;
}

.cj-card-horizontal.is-compact .cj-card-body {
    padding: 12px 16px;
}

.cj-card-horizontal.is-compact .cj-card-title {
    font-size: 0.98rem;
    margin-bottom: 4px;
}

/* Standard Cards */
.cj-card {
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cj-shadow);
}

.cj-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cj-surface-alt);
}

.cj-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cj-card:hover .cj-card-thumb img {
    transform: scale(1.04);
}

.cj-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: linear-gradient(135deg, var(--cj-primary-dark), var(--cj-primary));
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cj-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--cj-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.cj-badge-inline {
    background: var(--cj-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cj-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cj-card-meta {
    font-size: 0.79rem;
    color: var(--cj-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cj-card-title {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.cj-card-title a {
    color: var(--cj-heading);
}

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

.cj-card-excerpt {
    font-size: 0.9rem;
    color: var(--cj-muted);
    margin-bottom: 14px;
    flex: 1;
}

.cj-card-location {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--cj-accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Single Post & Sidebar */
.cj-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin: 28px 0 56px;
}

.cj-article-box {
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 32px;
}

.cj-breadcrumb {
    font-size: 0.84rem;
    color: var(--cj-muted);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.cj-article-title {
    font-size: 2rem;
    margin-bottom: 14px;
}

.cj-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.86rem;
    color: var(--cj-muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cj-border);
    margin-bottom: 24px;
}

.cj-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cj-featured-image {
    border-radius: var(--cj-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

/* Kotak Informasi Wisata dengan Ikon */
.cj-wisata-card {
    background: var(--cj-primary-soft);
    border: 1px solid var(--cj-primary-border);
    border-left: 5px solid var(--cj-primary);
    border-radius: var(--cj-radius);
    padding: 24px;
    margin: 24px 0 28px;
}

.cj-wisata-card-title {
    font-size: 1.15rem;
    color: var(--cj-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cj-wisata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.cj-wisata-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cj-wisata-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--cj-surface);
    color: var(--cj-primary);
    border: 1px solid var(--cj-primary-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cj-wisata-item strong {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--cj-muted);
    letter-spacing: 0.4px;
}

.cj-wisata-item span {
    font-weight: 600;
    color: var(--cj-heading);
    font-size: 0.94rem;
}

.cj-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    background: var(--cj-primary);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
}

.cj-maps-btn:hover {
    background: var(--cj-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Galeri Foto pada Kotak Detail Informasi Wisata */
.cj-wisata-gallery {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed var(--cj-primary-border);
}

.cj-wisata-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.cj-wisata-gallery-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cj-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cj-wisata-gallery-badge {
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--cj-surface);
    color: var(--cj-muted);
    border: 1px solid var(--cj-primary-border);
    padding: 3px 10px;
    border-radius: 999px;
}

.cj-gallery-stage {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.cj-gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.cj-gallery-slide.is-active {
    display: block;
}

.cj-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.cj-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 14px 10px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
    color: #f8fafc;
    font-size: 0.82rem;
}

.cj-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease;
}

.cj-gallery-nav:hover {
    background: var(--cj-primary);
}

.cj-gallery-prev { left: 10px; }
.cj-gallery-next { right: 10px; }

.cj-gallery-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.cj-gallery-zoom-btn:hover {
    background: var(--cj-primary);
}

.cj-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.cj-gallery-thumb-btn {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: var(--cj-surface);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    opacity: 0.68;
    transition: all 0.2s ease;
}

.cj-gallery-thumb-btn:hover,
.cj-gallery-thumb-btn.is-active {
    opacity: 1;
    border-color: var(--cj-primary);
    transform: translateY(-1px);
}

.cj-gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Galeri */
.cj-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 20, 0.92);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cj-lightbox.is-open {
    display: flex;
}

.cj-lightbox-content {
    position: relative;
    max-width: 960px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cj-lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    object-fit: contain;
}

.cj-lightbox-caption {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.cj-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cj-entry-content p {
    margin-bottom: 18px;
}

.cj-entry-content h2, .cj-entry-content h3 {
    margin: 28px 0 12px;
}

/* Tag Artikel di Bawah Postingan */
.cj-post-tags {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--cj-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cj-tags-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cj-heading);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.cj-post-tags a {
    display: inline-flex;
    align-items: center;
    background: var(--cj-surface-alt);
    color: var(--cj-text);
    border: 1px solid var(--cj-border);
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.cj-post-tags a:hover {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Tombol Share Media Sosial dengan Ikon */
.cj-share-box {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--cj-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cj-share-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--cj-heading);
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cj-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cj-share-btn:hover {
    color: #ffffff;
    opacity: 0.92;
    transform: translateY(-2px);
}

.cj-share-wa { background: #16a34a; }
.cj-share-fb { background: #1d4ed8; }
.cj-share-x  { background: #0f172a; border: 1px solid rgba(255,255,255,0.15); }
.cj-share-tg { background: #0284c7; }
.cj-share-copy { background: var(--cj-muted); }

/* Sidebar & Widget Populer / Recent Post */
.cj-sidebar .widget {
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 22px;
    margin-bottom: 24px;
}

.cj-sidebar .widget-title {
    font-size: 1.08rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cj-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cj-sidebar ul:not(.cj-popular-list) {
    list-style: none;
}

.cj-sidebar ul:not(.cj-popular-list) li {
    padding: 9px 0;
    border-bottom: 1px solid var(--cj-border);
    font-size: 0.92rem;
}

.cj-sidebar ul:not(.cj-popular-list) li:last-child {
    border-bottom: none;
}

.cj-popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cj-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cj-border);
}

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

.cj-popular-thumb {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cj-surface-alt);
}

.cj-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cj-popular-rank {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--cj-accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

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

.cj-popular-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cj-primary);
    display: block;
    margin-bottom: 2px;
}

.cj-popular-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cj-popular-title a {
    color: var(--cj-heading);
}

.cj-popular-title a:hover {
    color: var(--cj-primary);
}

.cj-popular-meta {
    font-size: 0.75rem;
    color: var(--cj-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer dengan Logo */
.cj-footer {
    background: var(--cj-footer-bg);
    color: var(--cj-footer-text);
    padding: 54px 0 24px;
}

.cj-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.cj-footer-logo {
    margin-bottom: 14px;
    display: inline-block;
}

.cj-footer-logo img {
    max-height: 48px;
    width: auto;
}

.cj-footer-brand-text {
    font-family: var(--cj-font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cj-footer h3, .cj-footer .widget-title {
    color: #ffffff;
    font-size: 1.08rem;
    margin-bottom: 14px;
}

.cj-footer a {
    color: #94a3b8;
}

.cj-footer a:hover {
    color: #ffffff;
}

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

.cj-footer li {
    margin-bottom: 8px;
}

.cj-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cj-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
}

.cj-social-links a:hover {
    background: var(--cj-primary);
    transform: translateY(-2px);
}

.cj-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 8px 14px;
    background: var(--cj-surface);
    border: 1px solid var(--cj-border);
    border-radius: 8px;
    color: var(--cj-heading);
    font-weight: 600;
    font-size: 0.88rem;
}

.page-numbers.current {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
    color: #ffffff;
}

@media (max-width: 980px) {
    .cj-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cj-mag-grid, .cj-layout-split, .cj-layout-sidebar, .cj-footer-grid { grid-template-columns: 1fr; }
    .cj-mag-main .cj-mag-card, .cj-mag-main .cj-mag-slider { min-height: 320px; }
}

@media (max-width: 768px) {
    .cj-topbar-tagline { display: none; }
    .cj-nav, .cj-search-form { display: none; }
    .cj-mobile-toggle { display: inline-flex; }
    .cj-news-ticker { padding: 4px 12px 4px 5px; gap: 10px; min-height: 40px; }
    .cj-ticker-badge { padding: 5px 11px; font-size: 0.7rem; gap: 6px; }
    .cj-ticker-item { font-size: 0.82rem; }
    .cj-grid-3, .cj-grid-2, .cj-wisata-grid, .cj-mag-side-grid { grid-template-columns: 1fr; }
    .cj-card-horizontal { grid-template-columns: 1fr; }
    .cj-hero h1 { font-size: 1.75rem; }
    .cj-article-box { padding: 20px; }
    .cj-article-title { font-size: 1.55rem; }
}