/* ==========================================================================
   Bakicubuk Theme - main stylesheet
   ========================================================================== */

:root {
	--mz-primary: #e2264d;
	--mz-secondary: #1b2a49;
	--mz-footer-bg: #111827;
	--mz-bg: #f4f5f7;
	--mz-surface: #ffffff;
	--mz-text: #222831;
	--mz-muted: #6b7280;
	--mz-border: #e5e7eb;
	--mz-heading: #111827;
	--mz-radius: 8px;
	--mz-shadow: 0 2px 12px rgba(17, 24, 39, .06);
	--mz-container: 1240px;
	--mz-font-body: Roboto, sans-serif;
	--mz-font-heading: Poppins, sans-serif;
	--mz-font-menu: Poppins, sans-serif;
	--mz-font-size: 16px;
}

html.bakicubuk-dark {
	--mz-bg: #0f141c;
	--mz-surface: #171e29;
	--mz-text: #d1d5db;
	--mz-muted: #9ca3af;
	--mz-border: #2a3341;
	--mz-heading: #f3f4f6;
	--mz-shadow: 0 2px 12px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--mz-bg);
	color: var(--mz-text);
	font-family: var(--mz-font-body);
	font-size: var(--mz-font-size);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	transition: background .3s, color .3s;
}
html.bakicubuk-dark body { background: var(--mz-bg) !important; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--mz-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mz-secondary); }
html.bakicubuk-dark a:hover { color: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: var(--mz-font-heading); color: var(--mz-heading); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 1.3em; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
.screen-reader-text:focus, .skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; color: #000; padding: 10px 16px; z-index: 100000; top: 8px; left: 8px; }
.container { width: 100%; max-width: var(--mz-container); margin: 0 auto; padding: 0 20px; }
.bakicubuk-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; padding: 10px 14px; border: 1px solid var(--mz-border); border-radius: 6px; background: var(--mz-surface); color: var(--mz-text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--mz-primary); outline-offset: 1px; }
button, .button, .button-primary, input[type="submit"], .read-more {
	display: inline-block; background: var(--mz-primary); color: #fff; border: 0; border-radius: 6px; padding: 10px 20px; cursor: pointer; font-weight: 600; transition: filter .2s, transform .2s;
}
button:hover, .button:hover, .button-primary:hover, input[type="submit"]:hover, .read-more:hover { filter: brightness(1.1); color: #fff; }

/* Boxed layout */
.site-layout-boxed #page { max-width: calc(var(--mz-container) + 40px); margin: 0 auto; background: var(--mz-bg); box-shadow: 0 0 40px rgba(0,0,0,.08); }

/* ---------- Preloader ---------- */
#bakicubuk-preloader { position: fixed; inset: 0; background: var(--mz-surface); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity .4s, visibility .4s; }
#bakicubuk-preloader.is-hidden { opacity: 0; visibility: hidden; }
#bakicubuk-preloader .loader { display: flex; gap: 6px; }
.preloader-spinner .loader { width: 46px; height: 46px; border: 4px solid var(--mz-border); border-top-color: var(--mz-primary); border-radius: 50%; animation: mz-spin .8s linear infinite; }
.preloader-spinner .loader span { display: none; }
.preloader-dots .loader span { width: 12px; height: 12px; border-radius: 50%; background: var(--mz-primary); animation: mz-bounce .6s infinite alternate; }
.preloader-dots .loader span:nth-child(2) { animation-delay: .2s; }
.preloader-dots .loader span:nth-child(3) { animation-delay: .4s; }
.preloader-bars .loader span { width: 6px; height: 34px; background: var(--mz-primary); animation: mz-bars .9s infinite ease-in-out; }
.preloader-bars .loader span:nth-child(2) { animation-delay: .15s; }
.preloader-bars .loader span:nth-child(3) { animation-delay: .3s; }
@keyframes mz-spin { to { transform: rotate(360deg); } }
@keyframes mz-bounce { to { transform: translateY(-14px); opacity: .5; } }
@keyframes mz-bars { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* ---------- Top bar ---------- */
.top-bar { background: var(--mz-secondary); color: rgba(255,255,255,.85); font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.top-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-date { font-weight: 500; }
.top-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.top-menu a { color: rgba(255,255,255,.85); }
.top-menu a:hover { color: #fff; }

/* ---------- Social ---------- */
.bakicubuk-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.bakicubuk-social a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: inherit; transition: background .2s, color .2s, transform .2s; }
.bakicubuk-social a:hover { transform: translateY(-2px); }
.top-social a { color: rgba(255,255,255,.85); width: 26px; height: 26px; }
.top-social a:hover { color: #fff; background: rgba(255,255,255,.12); }
.top-social .bakicubuk-icon { width: 14px; height: 14px; }
.widget-social a { width: 40px; height: 40px; background: var(--mz-bg); color: var(--mz-heading); }
.widget-social.style-colored .social-facebook { background: #1877f2; color: #fff; }
.widget-social.style-colored .social-x { background: #000; color: #fff; }
.widget-social.style-colored .social-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; }
.widget-social.style-colored .social-youtube { background: #ff0000; color: #fff; }
.widget-social.style-colored .social-linkedin { background: #0a66c2; color: #fff; }
.widget-social.style-colored .social-threads { background: #101010; color: #fff; }
.widget-social.style-colored .social-tiktok { background: #010101; color: #fff; }
.widget-social.style-colored .social-telegram { background: #229ed9; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--mz-surface); position: relative; z-index: 50; }
.header-branding-wrap { background-size: cover; background-position: center; }
.header-branding { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo { max-height: 80px; width: auto; }
.site-title { margin: 0; font-family: var(--mz-font-heading); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.site-title a { color: var(--mz-heading); }
.site-description { margin: 4px 0 0; color: var(--mz-muted); font-size: 14px; }
.header-ad img { max-height: 90px; width: auto; }
.header-ad .widget { margin: 0; padding: 0; background: none; box-shadow: none; }
.header-ad-row { display: flex; justify-content: center; padding-top: 16px; padding-bottom: 16px; }

.main-nav-wrap { background: var(--mz-primary); color: #fff; transition: box-shadow .3s; }
.main-nav-inner { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.main-navigation { flex: 1; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul, .main-navigation .menu { display: flex; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 15px 16px; color: #fff; font-family: var(--mz-font-menu); font-weight: 600; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { background: rgba(0,0,0,.15); color: #fff; }
.main-navigation .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.main-navigation .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--mz-surface); box-shadow: 0 10px 30px rgba(0,0,0,.12); border-top: 3px solid var(--mz-primary); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 100; }
.main-navigation .sub-menu .sub-menu { top: -3px; left: 100%; }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { color: var(--mz-text); text-transform: none; font-weight: 500; padding: 10px 18px; border-bottom: 1px solid var(--mz-border); }
.main-navigation .sub-menu a:hover { background: var(--mz-bg); color: var(--mz-primary); }
.menu-toggle, .menu-close { display: none; background: transparent; padding: 8px; color: inherit; }

.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-tools button, .header-tools a { background: transparent; color: inherit; padding: 8px; border-radius: 50%; display: inline-flex; position: relative; }
.header-tools button:hover, .header-tools a:hover { background: rgba(0,0,0,.12); filter: none; }
.dark-toggle .icon-sun { display: none; }
html.bakicubuk-dark .dark-toggle .icon-sun { display: inline-block; }
html.bakicubuk-dark .dark-toggle .icon-moon { display: none; }
.cart-count { position: absolute; top: 0; right: -2px; background: #fff; color: var(--mz-primary); font-size: 10px; font-weight: 700; border-radius: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; }

/* Sticky */
.main-nav-wrap.is-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,.15); animation: mz-slide-down .35s ease; }
.admin-bar .main-nav-wrap.is-sticky { top: 32px; }
@keyframes mz-slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* Layout 2: centered */
.header-layout-2 .header-branding { display: grid; grid-template-columns: 1fr auto 1fr; }
.header-layout-2 .site-branding { flex-direction: column; text-align: center; }
.header-layout-2 .branding-side-right { display: flex; justify-content: flex-end; }
.header-layout-2 .branding-side .header-tools button, .header-layout-2 .branding-side .header-tools a { color: var(--mz-heading); }
.header-layout-2 .branding-side .bakicubuk-social a { color: var(--mz-heading); background: var(--mz-bg); }
.header-layout-2 .main-navigation > .menu, .header-layout-2 .main-navigation > ul { justify-content: center; }
.header-layout-2 .main-nav-wrap { background: var(--mz-surface); color: var(--mz-heading); border-top: 1px solid var(--mz-border); border-bottom: 3px solid var(--mz-primary); }
.header-layout-2 .main-navigation > ul > li > a, .header-layout-2 .main-navigation > .menu > li > a { color: var(--mz-heading); }
.header-layout-2 .main-navigation > ul > li > a:hover, .header-layout-2 .main-navigation > .menu > li > a:hover,
.header-layout-2 .main-navigation > ul > .current-menu-item > a, .header-layout-2 .main-navigation > .menu > .current-menu-item > a,
.header-layout-3 .main-navigation > ul > .current-menu-item > a, .header-layout-3 .main-navigation > .menu > .current-menu-item > a { color: var(--mz-primary); background: transparent; }

/* Layout 3: compact single row */
.header-layout-3 .main-nav-wrap { background: var(--mz-surface); color: var(--mz-heading); border-bottom: 1px solid var(--mz-border); }
.header-layout-3 .main-nav-inner { min-height: 74px; }
.header-layout-3 .site-title { font-size: 1.6rem; }
.header-layout-3 .custom-logo { max-height: 54px; }
.header-layout-3 .main-navigation > ul, .header-layout-3 .main-navigation > .menu { justify-content: flex-end; }
.header-layout-3 .main-navigation > ul > li > a, .header-layout-3 .main-navigation > .menu > li > a { color: var(--mz-heading); position: relative; }
.header-layout-3 .main-navigation > ul > li > a::before, .header-layout-3 .main-navigation > .menu > li > a::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: var(--mz-primary); transform: scaleX(0); transition: transform .25s; }
.header-layout-3 .main-navigation > ul > li > a:hover, .header-layout-3 .main-navigation > .menu > li > a:hover { background: transparent; color: var(--mz-primary); }
.header-layout-3 .main-navigation > ul > li > a:hover::before, .header-layout-3 .main-navigation > .menu > li > a:hover::before { transform: scaleX(1); }
.header-layout-3 .header-tools { margin-left: 0; }
.header-layout-3 .header-tools button:hover { background: var(--mz-bg); }

/* Layout 4: big banner + dark nav */
.header-layout-4 .header-branding-wrap { background-color: var(--mz-secondary); position: relative; }
.header-layout-4 .header-branding-wrap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.header-layout-4 .header-branding { position: relative; justify-content: center; padding-top: 60px; padding-bottom: 60px; text-align: center; }
.header-layout-4 .site-branding { flex-direction: column; }
.header-layout-4 .site-title { font-size: 3rem; }
.header-layout-4 .site-title a, .header-layout-4 .site-description { color: #fff; }
.header-layout-4 .main-nav-wrap { background: #0b0f17; border-bottom: 3px solid var(--mz-primary); }
.header-layout-4 .main-navigation > ul, .header-layout-4 .main-navigation > .menu { justify-content: center; }

/* Search overlay */
.bakicubuk-search-overlay { position: fixed; inset: 0; background: rgba(10, 14, 22, .94); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s; }
.bakicubuk-search-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.search-overlay-inner { width: min(680px, 90%); transform: translateY(-20px); transition: transform .3s; }
.bakicubuk-search-overlay.is-open .search-overlay-inner { transform: none; }
.bakicubuk-search-overlay .search-field { font-size: 1.4rem; padding: 18px 22px; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.4); border-radius: 0; color: #fff; }
.bakicubuk-search-overlay .search-submit { background: transparent; }
.search-close { position: absolute; top: 24px; right: 24px; background: transparent; color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form .search-submit { padding: 10px 14px; display: inline-flex; align-items: center; }

/* ---------- Ticker ---------- */
.bakicubuk-ticker { background: var(--mz-surface); border-bottom: 1px solid var(--mz-border); }
.ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.ticker-label { background: var(--mz-primary); color: #fff; padding: 5px 14px 5px 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.ticker-label .bakicubuk-icon { animation: mz-pulse 1.2s infinite; }
@keyframes mz-pulse { 50% { opacity: .4; } }
.ticker-track-wrap { flex: 1; overflow: hidden; position: relative; height: 28px; }
.ticker-track { list-style: none; margin: 0; padding: 0; }
.ticker-track li { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: all .45s; line-height: 28px; }
.ticker-track li.is-active { opacity: 1; transform: none; }
.ticker-track li.is-leaving { opacity: 0; transform: translateY(-100%); }
.ticker-track a { color: var(--mz-heading); font-weight: 500; }
.ticker-track a:hover { color: var(--mz-primary); }
.ticker-controls { display: flex; gap: 4px; flex-shrink: 0; }
.ticker-controls button { background: var(--mz-bg); color: var(--mz-heading); width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border-radius: 4px; }
.ticker-controls button:hover { background: var(--mz-primary); color: #fff; }

/* ---------- Trending ---------- */
.bakicubuk-trending { padding: 22px 0 0; }
.trending-title { font-size: 1rem; text-transform: uppercase; display: flex; align-items: center; gap: 6px; color: var(--mz-primary); }
.trending-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991px) { .trending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trending-grid { grid-template-columns: 1fr; } }
.trending-item { display: flex; align-items: center; gap: 12px; background: var(--mz-surface); padding: 12px; border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); position: relative; }
.trending-num { position: absolute; top: 6px; left: 6px; background: var(--mz-primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; }
.trending-item .post-thumb { width: 80px; flex-shrink: 0; border-radius: 6px; }
.trending-item .entry-title { font-size: 14px; margin: 0; }

/* ---------- Layout grid ---------- */
.site-content { padding: 30px 0 50px; }
.front-magazine { margin-top: -10px; }
.content-sidebar-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.sidebar-left .content-sidebar-wrap { grid-template-columns: 300px minmax(0, 1fr); }
.sidebar-both .content-sidebar-wrap { grid-template-columns: 260px minmax(0, 1fr) 260px; }
.sidebar-none .content-sidebar-wrap { grid-template-columns: minmax(0, 1fr); }
.front-magazine .content-sidebar-wrap.has-front-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.front-magazine .content-sidebar-wrap.no-front-sidebar { grid-template-columns: minmax(0, 1fr); }
/* No widgets in sidebar → content full width */
.content-sidebar-wrap:not(:has(> aside)) { grid-template-columns: minmax(0, 1fr); }
.sidebar-both .content-sidebar-wrap:has(> .sidebar-right-area):not(:has(> .sidebar-left-area)) { grid-template-columns: minmax(0, 1fr) 300px; }
.sidebar-both .content-sidebar-wrap:has(> .sidebar-left-area):not(:has(> .sidebar-right-area)) { grid-template-columns: 300px minmax(0, 1fr); }
.sticky-sidebar { position: sticky; top: 80px; }
.front-section { padding: 10px 0; }

/* ---------- Cards ---------- */
.post-thumb { position: relative; overflow: hidden; background: var(--mz-border); border-radius: var(--mz-radius) var(--mz-radius) 0 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .6s ease; }
.thumb-placeholder { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--mz-border), var(--mz-bg)); }
.post-card:hover .post-thumb img, .overlay-card:hover .post-thumb img, .small-post:hover .post-thumb img { transform: scale(1.06); }
.format-badge { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; background: rgba(0,0,0,.6); border-radius: 50%; }
.format-badge::after { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; }
.format-gallery::after { left: 10px; top: 10px; border: 2px solid #fff; width: 14px; height: 14px; border-radius: 2px; }
.format-audio::after { left: 11px; top: 9px; border: 0; width: 12px; height: 16px; border-radius: 6px; background: #fff; }

.post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cat-badge { display: inline-block; background: var(--mz-primary); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 3px; line-height: 1.5; }
.cat-badge:hover { color: #fff; filter: brightness(1.12); }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--mz-muted); margin-bottom: 8px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta a { color: var(--mz-muted); }
.post-meta a:hover { color: var(--mz-primary); }
.post-meta .bakicubuk-icon { width: 14px; height: 14px; }
.entry-title a { color: var(--mz-heading); background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s, color .2s; }
.entry-title a:hover { color: var(--mz-primary); background-size: 100% 2px; }

.post-grid { display: grid; gap: 24px; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.post-card { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(17,24,39,.12); }
.card-body { padding: 18px 20px 20px; flex: 1; }
.card-grid .entry-title { font-size: 1.08rem; margin-bottom: 8px; }
.entry-excerpt { color: var(--mz-muted); font-size: 14.5px; }
.entry-excerpt p { margin: 0; }
.no-excerpt .entry-excerpt { display: none; }
.cols-4 .card-grid .entry-title { font-size: .98rem; }

.layout-list { grid-template-columns: 1fr; }
.card-list { flex-direction: row; }
.card-list .post-thumb { width: 40%; flex-shrink: 0; border-radius: var(--mz-radius) 0 0 var(--mz-radius); }
.card-list .post-thumb a, .card-list .post-thumb img { height: 100%; }
.card-list .entry-title { font-size: 1.25rem; }

.layout-classic { grid-template-columns: 1fr; }
.card-classic .post-thumb img { aspect-ratio: 16 / 8; }
.card-classic .card-body { padding: 26px 30px 30px; }
.card-classic .entry-title { font-size: 1.6rem; }
.read-more { margin-top: 16px; font-size: 14px; padding: 8px 18px; }

/* Section titles */
.section-title, .widget-title { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--mz-primary); margin-bottom: 22px; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; flex-wrap: wrap; }
.section-title > span, .widget-title > span { background: var(--mz-primary); color: #fff; padding: 7px 16px; display: inline-block; border-radius: 4px 4px 0 0; }
.view-all { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--mz-muted); }
.view-all:hover { color: var(--mz-primary); }

/* ---------- Widgets / sidebar ---------- */
.widget { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 22px; margin-bottom: 30px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--mz-border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--mz-text); }
.widget li a:hover { color: var(--mz-primary); }
.widget .bakicubuk-social li { padding: 0; border: 0; }
.bakicubuk-block { background: transparent; box-shadow: none; padding: 0; margin-bottom: 40px; }
.bakicubuk-ad-widget { text-align: center; padding: 14px; }
.bakicubuk-ad-widget img { margin: 0 auto; }
.ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--mz-muted); margin-bottom: 6px; }
.bakicubuk-ad { margin: 24px 0; text-align: center; }
.bakicubuk-ad .widget { box-shadow: none; background: transparent; padding: 0; }

.small-posts { counter-reset: mzn; }
.small-post { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--mz-border); position: relative; }
.small-post:last-child { border-bottom: 0; }
.small-post .post-thumb { width: 92px; flex-shrink: 0; border-radius: 6px; }
.small-post .post-thumb img, .small-post .thumb-placeholder { aspect-ratio: 4 / 3; }
.small-post .entry-title { font-size: 14.5px; margin: 0 0 4px; line-height: 1.4; }
.small-post .post-meta { margin: 0; font-size: 12px; }
.numbered .small-post::before { counter-increment: mzn; content: counter(mzn); position: absolute; left: -6px; top: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--mz-primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--mz-surface); }

/* ---------- Slider block ---------- */
.overlay-card { position: relative; overflow: hidden; border-radius: var(--mz-radius); background: #000; }
.overlay-card .post-thumb { border-radius: 0; height: 100%; }
.overlay-card .post-thumb a, .overlay-card .post-thumb img, .overlay-card .thumb-placeholder { height: 100%; aspect-ratio: auto; }
.overlay-card .post-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85)); pointer-events: none; }
.overlay-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.overlay-content .entry-title { margin: 0 0 6px; }
.overlay-content .entry-title a, .overlay-content .post-meta, .overlay-content .post-meta a { color: #fff; }
.overlay-content .entry-title a:hover { color: #fff; }

.slider-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.slider-wrap.has-side { grid-template-columns: 2fr 1fr; }
.bakicubuk-slider { position: relative; height: 500px; border-radius: var(--mz-radius); overflow: hidden; }
.bakicubuk-slider .slides { position: relative; height: 100%; }
.bakicubuk-slider .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.bakicubuk-slider .slide.is-active { opacity: 1; visibility: visible; }
.bakicubuk-slider .slide .overlay-content { transform: translateY(20px); opacity: 0; transition: all .6s .25s; }
.bakicubuk-slider .slide.is-active .overlay-content { transform: none; opacity: 1; }
.bakicubuk-slider .slide .entry-title { font-size: 2rem; max-width: 760px; }
.bakicubuk-slider .slide .overlay-content { padding: 40px 40px 56px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s, background .3s; }
.bakicubuk-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--mz-primary); }
.slider-arrow.prev { left: 16px; } .slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 20px; left: 40px; z-index: 5; display: flex; gap: 6px; }
.slider-dots .dot { width: 10px; height: 10px; padding: 0; border-radius: 10px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.slider-dots .dot.is-active { width: 28px; background: var(--mz-primary); }
.slider-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; height: 500px; }
.slider-side .entry-title { font-size: 1.1rem; }

.mosaic-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.mosaic-1 { grid-row: span 2; }
.mosaic-1 .entry-title { font-size: 1.8rem; }
.mosaic-item:not(.mosaic-1) .entry-title { font-size: 1rem; }
.mosaic-item:not(.mosaic-1) .overlay-content { padding: 16px; }
.mosaic-item:not(.mosaic-1) .post-meta { display: none; }

/* List block */
.list-block-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.style-stack .list-block-inner, .style-list .list-block-inner { grid-template-columns: 1fr; }
.style-stack .list-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.list-items { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 6px 18px; }
.style-list .list-block-inner { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 6px 18px; gap: 0; }
.list-featured .post-card { height: 100%; }

/* Tabs */
.tabs-head { border-bottom: 2px solid var(--mz-primary); }
.tab-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tab-nav button { background: transparent; color: var(--mz-muted); font-size: 12.5px; padding: 6px 12px; text-transform: uppercase; }
.tab-nav button.is-active, .tab-nav button:hover { color: var(--mz-primary); filter: none; }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; animation: mz-fade .4s; }
@keyframes mz-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Carousel */
.carousel-wrap { position: relative; }
.bakicubuk-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.bakicubuk-carousel::-webkit-scrollbar { display: none; }
.bakicubuk-carousel > * { scroll-snap-align: start; }
.bakicubuk-carousel .entry-excerpt { display: none; }
.carousel-arrow { position: absolute; top: 30%; z-index: 3; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.carousel-arrow.prev { left: -14px; } .carousel-arrow.next { right: -14px; }

/* ---------- Page header / breadcrumbs ---------- */
.page-header { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 22px 26px; margin-bottom: 30px; border-left: 4px solid var(--mz-primary); }
.page-header .page-title { margin: 0; font-size: 1.7rem; }
.archive-description { color: var(--mz-muted); margin-top: 8px; }
.archive-description p:last-child { margin: 0; }
.bakicubuk-breadcrumbs { font-size: 13px; color: var(--mz-muted); margin-bottom: 10px; }
.bakicubuk-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.bakicubuk-breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.bakicubuk-breadcrumbs a { color: var(--mz-muted); }
.bakicubuk-breadcrumbs a:hover { color: var(--mz-primary); }

/* ---------- Single ---------- */
.single-article { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 34px; margin-bottom: 30px; }
.single-article .entry-header .entry-title { font-size: 2.2rem; margin-bottom: 12px; }
.single-thumb { margin: 20px -34px 26px; }
.single-thumb img { width: 100%; }
.single-thumb figcaption { font-size: 13px; color: var(--mz-muted); padding: 8px 34px 0; }
.entry-content { font-size: 1.05em; }
.entry-content > * { max-width: 100%; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--mz-primary); background: var(--mz-bg); font-size: 1.12em; font-style: italic; border-radius: 0 var(--mz-radius) var(--mz-radius) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th, .entry-content td { border: 1px solid var(--mz-border); padding: 8px 12px; }
.entry-content pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: var(--mz-radius); overflow: auto; }
.alignwide { margin-left: -34px; margin-right: -34px; max-width: none; }
.alignfull { margin-left: -34px; margin-right: -34px; max-width: none; }
.entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--mz-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-tags span { font-weight: 700; margin-right: 4px; }
.post-tags a, .tagcloud a { display: inline-block; font-size: 13px !important; padding: 3px 12px; border: 1px solid var(--mz-border); border-radius: 20px; color: var(--mz-text); margin: 0 4px 6px 0; }
.post-tags a:hover, .tagcloud a:hover { background: var(--mz-primary); border-color: var(--mz-primary); color: #fff; }
.bakicubuk-share { display: flex; align-items: center; gap: 6px; }
.bakicubuk-share span { font-weight: 700; margin-right: 4px; }
.bakicubuk-share a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s; }
.bakicubuk-share a:hover { transform: translateY(-3px); color: #fff; }
.share-facebook { background: #1877f2; } .share-x { background: #000; } .share-linkedin { background: #0a66c2; } .share-whatsapp { background: #25d366; } .share-telegram { background: #229ed9; }

.bakicubuk-author-box { display: flex; gap: 20px; align-items: center; background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 26px; margin-bottom: 30px; }
.author-avatar img { border-radius: 50%; }
.author-name { margin-bottom: 6px; }
.author-info p { margin: 0; color: var(--mz-muted); }

.post-navigation { margin-bottom: 30px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; background: var(--mz-surface); padding: 20px; border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); height: 100%; }
.post-navigation .nav-next { text-align: right; }
.nav-subtitle { display: block; font-size: 12px; text-transform: uppercase; color: var(--mz-muted); letter-spacing: .05em; }
.nav-title { font-family: var(--mz-font-heading); font-weight: 600; color: var(--mz-heading); }
.bakicubuk-related { margin-bottom: 30px; }
.page-links { margin-top: 20px; font-weight: 600; }

/* Comments */
.comments-area { background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--mz-border); }
.comment-author img { float: left; border-radius: 50%; margin-right: 14px; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: var(--mz-muted); }
.comment-content { clear: both; padding-top: 10px; }
.reply a { font-size: 13px; font-weight: 600; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Pagination */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; background: var(--mz-surface); color: var(--mz-heading); border-radius: 6px; box-shadow: var(--mz-shadow); font-weight: 600; }
.page-numbers.current, a.page-numbers:hover { background: var(--mz-primary); color: #fff; }

/* 404 */
.error-404 { text-align: center; background: var(--mz-surface); border-radius: var(--mz-radius); box-shadow: var(--mz-shadow); padding: 60px 30px; margin-bottom: 40px; }
.error-code { font-size: clamp(6rem, 18vw, 10rem); font-weight: 900; font-family: var(--mz-font-heading); line-height: 1; background: linear-gradient(135deg, var(--mz-primary), var(--mz-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 .search-form { max-width: 460px; margin: 20px auto; }
.no-results { background: var(--mz-surface); padding: 30px; border-radius: var(--mz-radius); }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--mz-footer-bg); color: rgba(255,255,255,.72); position: relative; }
.footer-widgets { padding: 60px 0 20px; }
.footer-grid { display: grid; gap: 30px; }
.footer-grid.cols-1 { grid-template-columns: 1fr; }
.footer-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer .widget-title { border-bottom-color: rgba(255,255,255,.15); }
.site-footer .widget-title > span { background: transparent; padding: 0 0 10px; color: #fff; border-bottom: 2px solid var(--mz-primary); margin-bottom: -2px; border-radius: 0; }
.site-footer a, .site-footer .widget li a, .site-footer .entry-title a { color: rgba(255,255,255,.8); }
.site-footer a:hover, .site-footer .widget li a:hover { color: #fff; }
.site-footer .widget li, .site-footer .small-post { border-color: rgba(255,255,255,.1); }
.site-footer .post-meta, .site-footer .post-meta a { color: rgba(255,255,255,.5); }
.site-info { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 14px; }
.site-info-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-social a { color: rgba(255,255,255,.75); }
.footer-social a:hover { background: var(--mz-primary); color: #fff; }

#bakicubuk-back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; z-index: 900; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
#bakicubuk-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Animations ---------- */
.mz-js .bakicubuk-animate .mz-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, box-shadow .3s; }
.bakicubuk-animate .mz-reveal.is-visible { opacity: 1; transform: none; }
.bakicubuk-animate .mz-reveal.is-visible:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.bakicubuk-animate .mz-reveal { opacity: 1; transform: none; }
}

/* Full width canvas (page builders) */
.full-width-canvas { width: 100%; }
.site-content:has(.full-width-canvas) { padding: 0; }

/* Block editor alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--mz-muted); text-align: center; }
.sticky .card-body { border-top: 3px solid var(--mz-primary); }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--mz-primary); }

/* Responsive show/hide helpers */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .hide-tablet { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.sidebar-both .content-sidebar-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
	.sidebar-both .sidebar-left-area { grid-column: 1 / -1; order: 3; }
	.post-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
	.bakicubuk-carousel { grid-auto-columns: calc((100% - 48px) / 3); }
}

@media (max-width: 991px) {
	.content-sidebar-wrap, .sidebar-left .content-sidebar-wrap, .sidebar-both .content-sidebar-wrap,
	.front-magazine .content-sidebar-wrap.has-front-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar-left-area { order: 2; }
	.sticky-sidebar { position: static; }
	.post-grid.cols-3, .post-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid.cols-3, .footer-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.slider-wrap.has-side { grid-template-columns: 1fr; }
	.slider-side { height: auto; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.slider-side .overlay-card { height: 240px; }
	.mosaic-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 200px 200px; }
	.mosaic-1 { grid-column: span 2; grid-row: auto; }
	.bakicubuk-carousel { grid-auto-columns: calc((100% - 24px) / 2); }

	/* Mobile menu */
	.menu-toggle { display: inline-flex; }
	.main-navigation { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--mz-surface); z-index: 10000; overflow-y: auto; transform: translateX(-105%); transition: transform .35s ease; padding: 60px 0 30px; box-shadow: 10px 0 40px rgba(0,0,0,.2); }
	.main-navigation.is-open { transform: none; }
	.menu-close { display: inline-flex; position: absolute; top: 12px; right: 12px; color: var(--mz-heading); }
	.main-navigation > ul, .main-navigation .menu { display: block; }
	.main-navigation a, .header-layout-2 .main-navigation > ul > li > a, .header-layout-3 .main-navigation > ul > li > a,
	.header-layout-2 .main-navigation > .menu > li > a, .header-layout-3 .main-navigation > .menu > li > a { color: var(--mz-heading); padding: 12px 24px; border-bottom: 1px solid var(--mz-border); }
	.main-navigation a:hover { background: var(--mz-bg); color: var(--mz-primary); }
	.main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; background: var(--mz-bg); }
	.main-navigation .sub-menu .sub-menu { left: 0; }
	.main-navigation li.submenu-open > .sub-menu { display: block; }
	.main-navigation .sub-menu a { padding-left: 40px; }
	.main-navigation .menu-item-has-children > a::after { float: right; margin-top: 10px; }
	.header-layout-3 .main-navigation a::before { display: none; }
	body.menu-opened::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; }
	body.menu-opened .site-header { z-index: 10001; }
	body.menu-opened .main-nav-wrap { transform: none; animation: none; }
	.header-layout-1 .header-branding { flex-direction: column; text-align: center; }
	.header-layout-2 .header-branding { grid-template-columns: 1fr; text-align: center; }
	.header-layout-2 .branding-side { display: none; }
	.header-layout-2 .main-nav-inner .header-tools { display: none; }
}

@media (max-width: 767px) {
	h1 { font-size: 1.7rem; }
	.post-grid.cols-2, .post-grid.cols-3, .post-grid.cols-4, .style-stack .list-items, .list-block-inner { grid-template-columns: 1fr; }
	.card-list { flex-direction: column; }
	.card-list .post-thumb { width: 100%; border-radius: var(--mz-radius) var(--mz-radius) 0 0; }
	.footer-grid.cols-2, .footer-grid.cols-3, .footer-grid.cols-4 { grid-template-columns: 1fr; }
	.bakicubuk-slider { height: 380px; }
	.bakicubuk-slider .slide .entry-title { font-size: 1.35rem; }
	.bakicubuk-slider .slide .overlay-content { padding: 20px 20px 46px; }
	.slider-dots { left: 20px; }
	.slider-side { grid-template-columns: 1fr; }
	.mosaic-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
	.mosaic-1 { grid-column: auto; }
	.mosaic-1 .entry-title { font-size: 1.3rem; }
	.bakicubuk-carousel { grid-auto-columns: 80%; }
	.single-article { padding: 22px; }
	.single-thumb { margin: 16px -22px 20px; }
	.alignwide, .alignfull { margin-left: -22px; margin-right: -22px; }
	.single-article .entry-header .entry-title { font-size: 1.6rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.bakicubuk-author-box { flex-direction: column; text-align: center; }
	.top-bar .top-menu { display: none; }
	.ticker-controls { display: none; }
	.header-layout-4 .site-title { font-size: 2rem; }
	.header-layout-4 .header-branding { padding-top: 36px; padding-bottom: 36px; }
	.site-info-inner { flex-direction: column; text-align: center; }
	.admin-bar .main-nav-wrap.is-sticky { top: 0; }
}
