/*
Theme Name: Fast Wuzz
Theme URI: https://xmith.id
Author: Rifki
Author URI: https://xmith.id
Description: Tema WordPress cepat dan ringan dari xmith.id
Version: 2.4.67
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fast-wuzz
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {

    --bg: #f2f3f5;
    --surface: #ffffff;
    --text: #1f1f1f;
    --muted: #666666;
    --accent: #c41e3a;
    --nav-bg: #8b1c31;
    --nav-text: #ffffff;
    --border: #e8eaed;
    --title: #c41e3a;
    --shadow: 0 4px 14px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --max: 1140px;

}

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

body {

    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);

}

a {
 color: inherit; text-decoration: none; 
}

a:hover {
 text-decoration: underline; 
}

img {
 max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); 
}

.container {

    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;

}

.screen-reader-text {

    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;

}

/* Header */
.site-header {
 margin-bottom: 0; 
}

/* Header branding */
.header-branding {

    background: transparent;
    padding: 26px 0 20px;

}

.brand {

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 auto;

}

.site-title {

    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 900;
    color: #0b8f8f;
    letter-spacing: -0.5px;

}

h1.site-title {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
}

.site-title:hover {
    text-decoration: none; 
}

.logo-icon {

    color: #f6b100;
    font-size: 34px;
    line-height: 1;

}

.site-tagline {

    margin: 4px 0 0;
    font-size: 13px;
    font-style: italic;
    color: var(--muted);

}

/* Navigation bar - width follows container */
.site-nav-bar {

    background: transparent;
    margin-bottom: 24px;

}

.site-nav-bar > .container {

    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 0;

}

.nav-inner {

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 52px;

}

.nav-menu {

    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: auto;

}

.nav-menu > li {
 position: relative; 
}

.nav-menu > li > a {

    display: block;
    padding: 10px 16px;
    color: var(--nav-text);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background .15s ease;

}

.nav-menu > li > a:hover,
.nav-menu > .current-menu-item > a,
.nav-menu > .current_page_item > a {

    background: rgba(0,0,0,.18);
    text-decoration: none;

}

/* Sub-menu */
.nav-menu .sub-menu {

    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--nav-bg);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    border-radius: var(--radius-sm);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 50;
    overflow: hidden;

}

.nav-menu li:hover > .sub-menu {
 display: block; 
}

.nav-menu .sub-menu a {

    display: block;
    padding: 9px 16px;
    color: var(--nav-text);
    font-size: 13px;

}

.nav-menu .sub-menu a:hover {

    background: rgba(0,0,0,.18);
    text-decoration: none;

}

.mobile-menu-toggle {
 display: none; 
}

/* Search toggle + inline form */
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.15);
    color: var(--nav-text);
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
    flex-shrink: 0;
}

.search-toggle:hover { background: rgba(0,0,0,.18); }

.search-toggle[aria-expanded="true"] { background: rgba(0,0,0,.18); }

.search-toggle svg { width: 18px; height: 18px; }

.header-search-inline,
.header-search-inline[hidden] { display: none; }

.nav-inner.search-active .search-toggle { display: none; }

.nav-inner.search-active .header-search-inline {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 320px;
    margin-left: auto;
    animation: searchGrow .2s ease;
}

@keyframes searchGrow {
    from { opacity: 0; transform: scaleX(.95); }
    to   { opacity: 1; transform: scaleX(1); }
}

.header-search-inline .search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,.12);
    transition: background .15s ease, border-color .15s ease;
}

.header-search-inline .search-form:focus-within {
    background: #fff;
    border-color: rgba(255,255,255,.7);
}

.header-search-inline .search-form label {
    flex: 1;
    display: flex;
    margin: 0;
}

.header-search-inline .search-form input[type="search"] {
    flex: 1;
    width: 100%;
    padding: 8px 12px;
    border: none;
    font-size: 13px;
    background: transparent;
    color: var(--nav-text);
    transition: color .15s ease, background .15s ease;
}

.header-search-inline .search-form input[type="search"]::placeholder { color: rgba(255,255,255,.75); }

.header-search-inline .search-form input[type="search"]:focus {
    outline: none;
    background: #fff;
    color: var(--text);
}

.header-search-inline .search-form input[type="search"]:focus::placeholder { color: #888; }

.header-search-inline .search-form .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.15);
    color: var(--nav-text);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.header-search-inline .search-form:focus-within .search-submit,
.header-search-inline .search-form .search-submit:hover {
    background: #fff;
    color: var(--text);
    border-left-color: var(--border);
}
/* Hide horizontal rules */
hr {

    display: none;

}

/* Page header */
.page-header-bar {
    padding: 10px 0 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}

.page-header-bar .container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

.page-header-bar .page-title {
    font-size: 20px;
    margin: 0;
    color: var(--title);
    font-weight: 700;
}

.page-header-bar .page-title span {
    font-weight: 400;
}

/* Layout */
.content-area {

    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-bottom: 40px;

}

.content-wrap {
 min-width: 0; 
}

/* Post list */
.post-list {
 margin-bottom: 24px; 
}

.post-item {

    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 18px;
    align-items: start;
    transition: transform .18s ease, box-shadow .18s ease;

}

.post-item:hover {

    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);

}

.post-thumb {

    display: block;
    overflow: hidden;
    background: #eef3fb;
    border-radius: var(--radius-sm);

}

.post-thumb img {

    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .25s ease;
    border-radius: var(--radius-sm);

}

.post-item:hover .post-thumb img {
 transform: scale(1.04); 
}

.post-body {
 padding: 4px 8px 4px 0; 
}

.entry-title {

    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 8px;

}

.entry-title a {

    color: var(--title);
    font-weight: 700;

}

.entry-title a:hover {
 color: #9a1830; text-decoration: underline; 
}

.entry-meta {

    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;

}

.entry-meta a {
 color: var(--muted); 
}

.entry-meta a:hover {
 color: var(--accent); 
}

.entry-summary {

    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;

}

.entry-summary p {
 margin: 0; 
}

/* Category labels */
.entry-cats {
 display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; 
}

.entry-cats.cats-under-title {
 margin-bottom: 10px; 
}

.cat-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 50px;
    background: rgba(196,30,58,.10);
    color: var(--accent) !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.cat-link:hover { background: var(--accent); color: #fff !important; text-decoration: none; }

/* Search results category label — lighter, more compact */
.search-results .post-list .cat-link,
.search-results .post-list .cat-link:hover {
    padding: 3px 0;
    background: transparent;
    color: var(--accent) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.search-results .post-list .cat-link:hover {
    text-decoration: underline;
}

/* Single post category under title */
.entry-single .entry-cats {

    justify-content: flex-start;

}

.entry-single .entry-header {

    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

.entry-single h1.entry-title {
 margin-bottom: 10px; 
}

/* Tags removed — category replaces footer tags */
.entry-cats-footer {

    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);

}

.entry-cats-footer .entry-cats {

    margin-bottom: 0;

}

/* Feature: related posts grid */
.related-posts {

    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 20px;

}

.related-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

}

.related-card {

    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;

}

.related-thumb {

    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #eef3fb;

}

.related-thumb img,
.related-thumb .post-thumb-placeholder {

    width: 90px;
    height: 70px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);

}

.related-thumb .post-thumb-placeholder {

    width: 90px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#eef3fb,#dfe8f7);

}

.post-thumb-letter {

    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;

}

.related-title {

    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 4px;

}

.related-title a {
 color: var(--text); font-weight: 700; 
}

.related-title a:hover {
 color: var(--accent); 
}

.related-meta {

    font-size: 12px;
    color: var(--muted);

}

/* Feature: social share */
.entry-share {

    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);

}

.share-label {

    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-right: 4px;

}

.share-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: transform .15s ease, opacity .15s ease;

}

.share-btn:hover {

    transform: translateY(-2px);
    opacity: .9;
    text-decoration: none;

}

.share-facebook {
 background: #1877f2; 
}

.share-twitter {
 background: #0f1419; 
}

.share-linkedin {
 background: #0a66c2; 
}

.share-whatsapp {
 background: #25d366; 
}

/* Feature: prev/next navigation */
.post-navigation {

    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;

}

.post-navigation:only-child {
 justify-content: flex-end; 
}

.post-nav-link {

    flex: 1 1 0;
    min-width: 0;
    max-width: 48%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: inherit;

}

.post-nav-link:hover {
 text-decoration: none; 
}

.post-nav-next {

    margin-left: auto;
    justify-content: flex-end;
    text-align: right;

}

.post-nav-arrow {

    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;

}

.post-nav-title {

    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.post-nav-link:hover .post-nav-title {
 color: var(--accent); 
}

/* Feature: 404 page */
.error-404 {

    padding: 60px 16px;
    display: flex;
    justify-content: center;
    min-height: 70vh;
    align-items: center;

}

.error-card {

    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 560px;
    width: 100%;

}

.error-code {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--accent);

}

.error-digit {

    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;

}

.error-face {

    color: var(--accent);
    opacity: .85;

}

.error-title {

    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);

}

.error-subtitle {

    font-size: 15px;
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.6;

}

.error-suggestions {

    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    margin-bottom: 24px;

}

.error-suggestions h2 {

    font-size: 14px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);

}

.error-suggestions ul {

    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;

}

.error-suggestions li {
 margin-bottom: 4px; 
}

.error-search form {
 justify-content: center; 
}

.error-search input[type="search"] {

    min-width: 220px;

}

.error-actions {

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;

}

.error-btn {

    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);

}

.error-btn:hover {
 background: #9a1830; text-decoration: none; color: #fff; 
}

.error-btn svg {
 width: 18px; height: 18px; 
}

.error-btn-ghost {

    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);

}

.error-btn-ghost:hover {
 background: var(--accent); color: #fff; 
}

.error-help {

    margin: 22px 0 0;
    font-size: 13px;
    color: var(--muted);

}

.error-help a {

    color: var(--accent);
    font-weight: 700;

}

.error-help a:hover {
 text-decoration: underline; 
}

/* Responsive adjustments for new features */
@media (max-width: 640px) {

    .related-grid { grid-template-columns: 1fr; 
}

.error-card {
 padding: 32px 22px; 
}

.error-digit {
 font-size: 72px; 
}

.error-title {
 font-size: 20px; 
}

.error-actions {
 flex-direction: column; 
}

.error-btn {
 width: 100%; justify-content: center; 
}

.page-header-bar {
 padding: 8px 0; 
}

.page-header-bar .page-title {
 font-size: 17px; 
}

}

/* Read more link */
.read-more {

    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);

}

.read-more:hover {
 text-decoration: underline; 
}

.hero-read {
 margin-top: 14px; 
}

/* Thumbnail placeholder */
.post-thumb-placeholder {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    font-size: 48px;
    font-weight: 900;
    color: #0b63ce;
    background: linear-gradient(135deg,#eef3fb,#dfe8f7);
    border-radius: var(--radius-sm);

}

/* Pagination */
.pagination,
.nav-links {

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;

}

.page-numbers,
.nav-links a,
.nav-links span {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);

}

.page-numbers.current,
.nav-links span.current {

    background: var(--accent);
    border-color: var(--accent);
    color: #fff;

}

.page-numbers:hover,
.nav-links a:hover {

    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;

}

/* Sidebar */
.widget-area {
 
    align-self: start; 
    position: sticky;
    top: 20px;

}

.widget {

    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;

}

.widget-title {

    font-size: 16px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;

}

.widget ul {

    list-style: none;
    margin: 0;
    padding: 0;

}

.widget li {

    padding: 9px 0;
    border-bottom: 1px solid var(--border);

}

.widget li:last-child {
 border-bottom: none; 
}

.widget a {
 color: var(--text); font-weight: 600; 
}

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

/* Widget search */
.widget_search form,
.wp-block-search__button-outside {

    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;

}

.widget_search label {

    flex: 1;
    display: flex;
    margin: 0;

}

.widget_search input[type="search"],
.wp-block-search__input {

    flex: 1;
    width: 100%;
    padding: 9px 12px;
    border: none;
    font-size: 13px;
    background: transparent;
    color: var(--text);

}

.widget_search input[type="search"]:focus,
.wp-block-search__input:focus {
 outline: none; 
}

.widget_search button,
.widget_search input[type="submit"],
.wp-block-search__button {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding: 0;
    border: none;
    border-left: 1px solid var(--border);
    background: #f8f9fa;
    color: var(--text);
    cursor: pointer;

}

.widget_search button:hover,
.widget_search input[type="submit"]:hover,
.wp-block-search__button:hover {
 background: #eef0f2; 
}

/* Hero section */
.hero-section {
 margin-bottom: 26px; 
}

.hero-inner {
 background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius-lg); padding: 16px; 
}

/* Hero carousel */
.hero-carousel {
 position: relative; overflow: hidden; border-radius: var(--radius); 
}

.hero-track-wrap {
 overflow: hidden; border-radius: var(--radius); 
}

.hero-track {
 display: flex; transition: transform 0.5s ease; touch-action: pan-y; cursor: grab; 
}

.hero-track.is-dragging {
 cursor: grabbing; transition: none; 
}

.hero-card {
 flex: 0 0 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: center; background: var(--surface); 
}

.hero-image {
 display: block; overflow: hidden; background: #eef3fb; border-radius: var(--radius); 
}

.hero-image img {
 width: 100%; height: 340px; object-fit: cover; display: block; border-radius: var(--radius); 
}

.hero-placeholder {
 display: flex; align-items: center; justify-content: center; height: 340px; font-size: 48px; font-weight: 900; color: var(--accent); background: #eef3fb; border-radius: var(--radius); 
}

.hero-body {
 padding: 8px 12px; 
}

.hero-post-title {
 font-size: 26px; line-height: 1.25; margin: 0 0 10px; 
}

.hero-post-title a {
 color: var(--title); font-weight: 800; 
}

.hero-post-title a:hover {
 color: #9a1830; 
}

.hero-meta {
 font-size: 12px; color: var(--muted); margin-bottom: 10px; 
}

.hero-excerpt {
 font-size: 14.5px; color: #444; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; 
}

.hero-arrow {

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--accent);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s ease, color .15s ease;

}

.hero-arrow:hover {
 background: #fff; color: #9a1830; 
}

.hero-prev {
 left: 12px; 
}

.hero-next {
 right: 12px; 
}

.hero-dots {

    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;

}

.hero-dots button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    padding: 0;
    position: relative;
}

.hero-dots button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background .15s ease, transform .15s ease;
}

.hero-dots button.is-active::before {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.2);
}

.hero-dots button:hover::before {
    background: var(--accent);
}

.hero-carousel.is-single .hero-arrow,
.hero-carousel.is-single .hero-dots {
 display: none; 
}

@media (max-width: 960px) {

    .hero-card { grid-template-columns: 1fr; 
}

.hero-image img, .hero-placeholder {
 height: 260px; 
}

.hero-body {
 padding: 14px; 
}

.hero-post-title {
 font-size: 22px; 
}

.hero-arrow {
 display: none; 
}

}

.section-head {
 font-size: 20px; font-weight: 800; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); text-transform: uppercase; 
}

/* Homepage selected-category article grid (inserted after 4th post) */
.selected-cat-section {
 margin: 28px 0; 
}

.selected-cat-section .section-head {
 margin-bottom: 16px; 
}

.selected-cat-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

}

.selected-cat-card {

    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;

}

.selected-cat-card:hover {

    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);

}

.selected-cat-thumb {

    display: block;
    overflow: hidden;
    background: #eef3fb;
    aspect-ratio: 16 / 10;

}

.selected-cat-thumb img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;

}

.selected-cat-thumb img,
.selected-cat-placeholder {

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.selected-cat-placeholder {

    background: linear-gradient(135deg,#eef3fb,#dfe8f7);
    color: var(--accent);
    font-size: 62px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;

}

.selected-cat-body {

    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;

}

.selected-cat-body .entry-cats {
 margin-bottom: 8px; 
}

.selected-cat-title {

    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 6px;

}

.selected-cat-title a {

    color: var(--title);
    font-weight: 800;

}

.selected-cat-title a:hover {
 color: #9a1830; text-decoration: underline; 
}

.selected-cat-meta {

    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;

}

.selected-cat-excerpt {

    margin-top: auto;
    font-size: 13.5px;
    color: #444;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

@media (max-width: 960px) {

    .selected-cat-grid { grid-template-columns: repeat(2, 1fr); 
}

}

@media (max-width: 640px) {

    .selected-cat-grid { grid-template-columns: 1fr; 
}

}

/* Single post / page content */
.entry-single,
.entry-page {

    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 20px;

}

.entry-page {
 margin-bottom: 20px; 
}

.entry-single .entry-hero,
.entry-page .entry-hero {

    margin: -20px -20px 20px -20px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;

}

.entry-single .entry-hero img,
.entry-page .entry-hero img {

    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 0;

}

.entry-single .entry-header,
.entry-page .entry-header {

    margin-bottom: 16px;

}

.entry-single h1.entry-title,
.entry-page h1.entry-title {

    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 10px;
    color: var(--title);
    font-weight: 800;

}

.entry-single .entry-content,
.entry-page .entry-content {

    font-size: 15.5px;
    line-height: 1.75;
    color: #222;

}

.entry-content h2,
.entry-content h3 {

    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.3;

}

.entry-content p {
 margin: 0 0 16px; 
}

.entry-content ul, .entry-content ol {
 margin: 0 0 16px; padding-left: 24px; 
}

.entry-content img {
 border-radius: var(--radius); margin: 12px 0; 
}

.entry-content blockquote {

    margin: 20px 0;
    padding: 16px 20px;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;

}

.entry-content blockquote p {
 margin: 0 0 10px; 
}

.entry-content blockquote p:last-child {
 margin-bottom: 0; 
}

.entry-content blockquote cite {

    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--muted);

}

/* Tags */
.entry-footer {
 margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); 
}

.tag-links {
 display: flex; flex-wrap: wrap; gap: 8px; align-items: center; 
}

.tag-links span {
 font-size: 13px; font-weight: 700; color: var(--text); 
}

.tag-links a {

    display: inline-block;
    padding: 8px 12px;
    border-radius: 50px;
    background: #f2f3f5;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;

}

.tag-links a:hover {
 background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; 
}

.page-links {
 margin: 20px 0; 
}

.page-links a,
.page-links span {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin-right: 6px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;

}

.page-links span {
 background: var(--accent); color: #fff; border-color: var(--accent); 
}

.page-links a:hover {
 border-color: var(--accent); color: var(--accent); 
}

/* Comments */
.comments-area {

    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 20px;

}

.comments-title {

    font-size: 20px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);

}

.comment-list {

    list-style: none;
    margin: 0;
    padding: 0;

}

.comment-list > li {
 margin-bottom: 18px; 
}

.comment-list .children {
 list-style: none; margin: 14px 0 0 24px; padding: 0; 
}

.comment-body {

    display: flex;
    gap: 14px;
    align-items: flex-start;

}

.comment-avatar .avatar {

    width: 48px;
    height: 48px;
    border-radius: 50%;

}

.comment-meta {

    flex: 1;
    min-width: 0;

}

.comment-author-name {

    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;

}

.comment-author-name a {
 color: var(--text); 
}

.comment-author-name a:hover {
 color: var(--accent); 
}

.comment-metadata {

    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;

}

.comment-metadata a {
 color: var(--muted); 
}

.comment-metadata a:hover {
 color: var(--accent); 
}

.comment-content {

    font-size: 14px;
    line-height: 1.65;
    color: #333;

}

.comment-content p {
 margin: 0 0 10px; 
}

.reply {
 margin-top: 8px; 
}

.reply a {

    font-size: 12px;
    font-weight: 700;
    color: var(--accent);

}

.reply a:hover {
 text-decoration: underline; 
}

/* Comment form */
.comment-respond {
 margin-top: 24px; 
}

.comment-reply-title {

    font-size: 18px;
    margin: 0 0 14px;
    font-weight: 800;

}

#commentform {

    display: grid;
    gap: 12px;

}

#commentform label {

    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;

}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {

    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fafafa;

}

#commentform textarea {
 min-height: 120px; resize: vertical; 
}

#commentform input:focus,
#commentform textarea:focus {

    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196,30,58,.10);

}

#commentform .form-submit {
 margin: 0; 
}

#commentform input[type="submit"] {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);

}

#commentform input[type="submit"]:hover {
 background: #9a1830; 
}

#cancel-comment-reply-link {
 font-size: 12px; color: var(--accent); margin-left: 8px; 
}

/* Author box (optional) */
.author-box {

    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 18px;
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: var(--radius);

}

.author-box .avatar {
 width: 64px; height: 64px; border-radius: 50%; 
}

.author-box h4 {
 margin: 0 0 6px; font-size: 16px; 
}

.author-box p {
 margin: 0; font-size: 14px; color: #444; 
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #d1d1d1;
    padding: 32px 0 24px;
    margin-top: 20px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-menu a { 
    display: inline-block; 
    padding: 8px 0;
    color: #f0f0f0; 
    font-size: 14px; 
}

.footer-menu a:hover {
    color: #fff;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #b0b0b0;
    text-align: center;
}

/* Back to top */
.back-to-top {

    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;

}

.back-to-top.visible {

    opacity: 1;
    visibility: visible;

}

.back-to-top:hover {
 transform: translateY(-2px); background: #9a1830; 
}

/* Responsive */
@media (max-width: 960px) {

    .content-area { grid-template-columns: 1fr; 
}

.widget-area {
 position: static; 
}

.post-item {
 grid-template-columns: 220px 1fr; 
}

.site-title {
 font-size: 26px; 
}

.hero-card {
 grid-template-columns: 1fr; gap: 16px; 
}

.hero-image img, .hero-placeholder {
 height: 260px; 
}

}

@media (max-width: 640px) {

    .post-item { grid-template-columns: 1fr; 
}

.post-thumb img {
 height: 200px; 
}

/* Mobile topbar: brand left, toggler right */
.site-header {
    background: transparent;
}

.header-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.header-branding .mobile-menu-toggle {
    display: flex;
    margin-left: 12px;
}

.header-branding .mobile-menu-toggle span {
    background: var(--text);
}

.site-title {
    font-size: 24px;
}

.site-tagline {
    display: none;
}

.nav-inner {
    flex-wrap: wrap;
}

.search-toggle {
    display: none;
}

.nav-menu {

        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        background: var(--nav-bg);
        padding: 8px;
        border-radius: 0 0 var(--radius) var(--radius);
    
}

.nav-menu.is-open {
 display: flex; 
}

.nav-menu > li {
 width: 100%; 
}

.nav-menu > li > a {
    padding: 12px 14px;
}

.nav-menu .sub-menu {

        position: static;
        box-shadow: none;
        padding-left: 18px;
        background: rgba(0,0,0,.12);
    
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {

        display: block;
        height: 3px;
        background: var(--nav-text);
        border-radius: 2px;
    
}

.nav-inner.search-active .header-search-inline {

        order: 3;
        width: 100%;
        max-width: none;
        margin: 8px 0 0;
    
}

.widget-area {
 margin-top: 8px; 
}

.site-nav-bar > .container {
 border-radius: 0; 
}

}

/* Xmith Media style widgets — adapted to Fast Wuzz */
.widget .xmith-widget-posts {

    display: flex;
    flex-direction: column;
    gap: 14px;

}

.xmith-widget-post-card {

    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    transition: transform .12s ease;

}

.xmith-widget-post-card:hover {

    transform: translateX(4px);

}

.xmith-widget-post-card.xmith-title-only-card {

    display: block;
    padding-left: 16px;
    position: relative;

}

.xmith-widget-post-card.xmith-title-only-card::before {

    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);

}

.xmith-widget-thumb {

    display: block;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: box-shadow .15s ease, border-color .15s ease;

}

.xmith-widget-post-card:hover .xmith-widget-thumb {

    border-color: rgba(196,30,58,.35);
    box-shadow: var(--shadow-sm);

}

.xmith-widget-thumb img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius-sm) - 1px);

}

.xmith-widget-placeholder {

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: linear-gradient(135deg, #eef3fb, #dfe8f7);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;

}

.xmith-widget-post-body {

    display: flex;
    align-items: center;
    min-height: 48px;

}

.xmith-widget-post-title {

    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.xmith-widget-post-title:hover {

    color: var(--accent);
    text-decoration: none;

}

.xmith-title-only-card .xmith-widget-post-title {

    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

/* Sticky Xmith widget */
.xmith-sticky-enabled {

    position: sticky;
    top: 20px;
    align-self: flex-start;

}
