/* =============================================================
   Trill – The Voice of Gen-Z  |  public/css/style.css
   ============================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=Open+Sans:wght@400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
    --color-primary:    #e8302f;
    --color-primary-dk: #c72020;
    --color-dark:       #0d0d0d;
    --color-dark-alt:   #1a1a1a;
    --color-text:       #111111;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg:         #ffffff;
    --color-bg-light:   #f5f5f5;
    --color-border:     #e5e5e5;
    --color-white:      #ffffff;

    --font-head:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:  'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1200px;
    --gutter:    20px;
    --radius:    4px;
    --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

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

ul, ol { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Utility ---- */
.left      { float: left; }
.right     { float: right; }
.zoxrel    { position: relative; }
.relative  { position: relative; }
.zox100    { width: 100%; }
.zoxlh0    { line-height: 0; }
.clearfix::after { content: ''; display: table; clear: both; }

.zox-head-width,
.zox-body-width,
.zox-post-width,
.zox-title-width {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- Site Wrapper ---- */
#zox-site { width: 100%; overflow-x: hidden; }
#zox-site-wall,
#zox-site-main { width: 100%; }
#zox-site-wall-small { width: 100%; }
#zox-main-body-wrap { width: 100%; min-height: 60vh; }

/* =============================================================
   FLY-OUT NAV
   ============================================================= */

#zox-fly-wrap {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--color-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}
#zox-fly-wrap.zox-fly-open { left: 0; }

.zox-fly-fade {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.zox-fly-fade.zox-fly-open { display: block; }

#zox-fly-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#zox-fly-logo a { display: block; }
#zox-fly-logo img { height: 28px; width: auto; filter: invert(1); }

.zox-fly-close-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.zox-fly-close-btn:hover { color: var(--color-primary); }

#zox-fly-menu-wrap { padding: 20px 0; }

.zox-fly-nav-menu ul { list-style: none; margin: 0; padding: 0; }
.zox-fly-nav-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.zox-fly-nav-menu ul li a {
    display: block;
    padding: 13px 20px;
    color: var(--color-white);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color var(--transition), padding-left var(--transition);
}
.zox-fly-nav-menu ul li a:hover {
    color: var(--color-primary);
    padding-left: 28px;
}

#zox-fly-soc-wrap {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.zox-fly-soc-head {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: var(--font-head);
}
.zox-fly-soc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.zox-fly-soc-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 13px;
    transition: background var(--transition);
}
.zox-fly-soc-list li a:hover { background: var(--color-primary); color: #fff; }

/* ---- Search Overlay ---- */
#zox-search-wrap {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9997;
    align-items: center;
    justify-content: center;
}
#zox-search-wrap.zox-search-open { display: flex; }
.zox-search-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}
.zox-search-inner input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-family: var(--font-head);
    border: none;
    border-bottom: 2px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    outline: none;
}
.zox-search-inner input::placeholder { color: rgba(255,255,255,0.5); }
.zox-search-close {
    display: block;
    text-align: right;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    margin-bottom: 20px;
    cursor: pointer;
}
.zox-search-close:hover { color: var(--color-white); }

/* =============================================================
   HEADER
   ============================================================= */

#zox-main-head-wrap {
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

#zox-bot-head-wrap {
    width: 100%;
}

#zox-bot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

#zox-bot-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zox-fly-but-wrap {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
}
.zox-fly-but-wrap span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.zox-fly-but-wrap:hover span { background: var(--color-primary); }

#zox-bot-head-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.zox-bot-head-logo { text-align: center; }
.zox-bot-head-logo-main a { display: inline-block; }
.zox-bot-head-logo img { height: 30px; width: auto; display: inline-block; }
.zox-logo-dark { display: none; }

.zox-logo-title {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.zox-bot-head-menu { display: none; }

#zox-bot-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trill-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--color-primary);
    color: var(--color-white) !important;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background var(--transition);
    white-space: nowrap;
}
.trill-support-btn::before {
    content: '♥';
    font-size: 11px;
}
.trill-support-btn:hover {
    background: var(--color-primary-dk);
    color: var(--color-white) !important;
}

.zox-nav-search-but {
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color var(--transition), background var(--transition);
}
.zox-nav-search-but:hover { color: var(--color-primary); background: var(--color-bg-light); }

/* =============================================================
   FOOTER
   ============================================================= */

#zox-foot-wrap {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 28px 0;
    width: 100%;
}

.zox-foot-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.zox-foot-left-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zox-foot-logo img { height: 24px; width: auto; }

.zox-foot-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    font-size: 12px;
    color: var(--color-text-light);
}
.zox-foot-left a { color: var(--color-text-light); }
.zox-foot-left a:hover { color: var(--color-primary); }

.zox-foot-copyright {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.zox-foot-right-wrap { }
.zox-foot-soc {
    display: flex;
    gap: 8px;
    align-items: center;
}
.zox-foot-soc a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text);
    transition: background var(--transition), color var(--transition);
}
.zox-foot-soc a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* =============================================================
   BACK TO TOP
   ============================================================= */

.zox-fly-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.zox-fly-top.visible {
    opacity: 1;
    visibility: visible;
}
.zox-fly-top:hover { background: var(--color-primary-dk); }

/* =============================================================
   BREADCRUMB
   ============================================================= */

.zox-breadcrumb {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.zox-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.zox-breadcrumb-list li { display: flex; align-items: center; gap: 4px; }
.zox-breadcrumb-list li + li::before {
    content: '›';
    color: var(--color-text-muted);
}
.zox-breadcrumb-list li a { color: var(--color-text-light); }
.zox-breadcrumb-list li a:hover { color: var(--color-primary); }
.zox-breadcrumb-list li.zox-crumb-current { color: var(--color-text-muted); }

/* =============================================================
   ARTICLE CARDS  (zox-art-wrap)
   ============================================================= */

.zox-art-wrap {
    position: relative;
    background: var(--color-white);
}

.zox-art-grid {
    display: flex;
    flex-direction: column;
}

/* Image container */
.zox-art-img {
    overflow: hidden;
    position: relative;
    line-height: 0;
}
.zox-art-img::before {
    content: '';
    display: block;
    padding-top: 62.5%; /* 16:10 ratio */
}
.zox-art-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.zox-art-wrap:hover .zox-art-img img { transform: scale(1.04); }

/* Text section */
.zox-art-text { padding: 12px 0; }
.zox-art-text-cont {}

/* Category badge */
.zox-s-cat {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    margin-bottom: 7px;
}
.zox-s-cat span { display: none; }
.zox-s-cat a { color: inherit; }

/* Title */
.zox-art-title {
    margin-bottom: 6px;
}
.zox-art-title a {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    display: block;
}
.zox-art-title a:hover { color: var(--color-primary); }

/* Summary */
.zox-s-graph {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Byline */
.zox-byline-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-head);
}
.zox-byline-name { color: var(--color-text-light); font-weight: 600; }
.zox-byline-date::before { content: '· '; }

/* LARGE hero card (image with overlay) */
.zox-art-wrap.zox-art-hero {
    display: block;
}
.zox-art-wrap.zox-art-hero .zox-art-img::before { padding-top: 65%; }
.zox-art-wrap.zox-art-hero .zox-art-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 65%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 1;
    pointer-events: none;
}
.zox-art-wrap.zox-art-hero .zox-art-text {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 14px 16px;
    z-index: 2;
}
.zox-art-wrap.zox-art-hero .zox-s-cat {
    background: rgba(232,48,47,0.9);
}
.zox-art-wrap.zox-art-hero .zox-art-title a {
    color: var(--color-white);
    font-size: 18px;
}
.zox-art-wrap.zox-art-hero .zox-art-title a:hover { color: rgba(255,255,255,0.85); }
.zox-art-wrap.zox-art-hero .zox-s-graph { display: none; }
.zox-art-wrap.zox-art-hero .zox-byline-wrap {
    color: rgba(255,255,255,0.7);
}
.zox-art-wrap.zox-art-hero .zox-byline-name { color: rgba(255,255,255,0.85); }

/* SMALL art card (sidebar/trending) */
.zox-art-wrap.zox-art-small .zox-art-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.zox-art-wrap.zox-art-small .zox-art-img {
    flex: 0 0 80px;
    width: 80px;
}
.zox-art-wrap.zox-art-small .zox-art-img::before { padding-top: 75%; }
.zox-art-wrap.zox-art-small .zox-art-text { padding: 0; flex: 1; }
.zox-art-wrap.zox-art-small .zox-art-title a { font-size: 13px; }
.zox-art-wrap.zox-art-small .zox-s-graph { display: none; }
.zox-art-wrap.zox-art-small .zox-s-cat { font-size: 9px; padding: 1px 5px; }

/* MID art card (category grid) */
.zox-art-wrap.zox-art-mid .zox-art-img::before { padding-top: 66%; }

/* Horizontal list card (LATEST section) */
.zox-art-wrap.zox-art-horiz .zox-art-grid {
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
}
.zox-art-wrap.zox-art-horiz .zox-art-img {
    flex: 0 0 160px;
    width: 160px;
}
.zox-art-wrap.zox-art-horiz .zox-art-img::before { padding-top: 65%; }
.zox-art-wrap.zox-art-horiz .zox-art-text { padding: 4px 0; flex: 1; }
.zox-art-wrap.zox-art-horiz .zox-art-title a { font-size: 15px; }
.zox-art-wrap.zox-art-horiz:hover .zox-art-img img { transform: scale(1.04); }

/* =============================================================
   SECTION HEADERS
   ============================================================= */

.zox-widget-main-head {
    text-align: center;
    margin-bottom: 24px;
}
.zox-widget-main-title {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
}

/* Section with dark background */
.zox-widget-bg-dark .zox-widget-main-title { color: var(--color-white); border-bottom-color: var(--color-primary); }

/* Sidebar section heading */
.zox-widget-side-head { margin-bottom: 14px; }
.zox-widget-side-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}

/* =============================================================
   HOME – FEATURED (2-col hero)
   ============================================================= */

#zox-feat-wrap {
    width: 100%;
    margin-bottom: 0;
}

#zox-feat-ent2-wrap {
    width: 100%;
    padding: 12px 0 0;
}

.zox-feat-ent2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.zox-feat-ent2-main { }
.zox-feat-ent2-bot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

/* 2-col featured: left big, right has top+bot sub columns */
.zox-feat-ent2-sub-wrap { }
.zox-feat-right-wrap { }

/* =============================================================
   HOME – WIDGET SECTIONS
   ============================================================= */

.zox-home-widget-wrap { width: 100%; }

.zox-widget-bg {
    width: 100%;
    padding: 36px 0;
}
.zox-widget-bg + .zox-widget-bg {
    border-top: 1px solid var(--color-border);
}

.zox-widget-bgb {
    background: var(--color-dark);
    border-top: none !important;
}
.zox-widget-bgb + .zox-widget-bg { border-top: none !important; }
.zox-widget-bgb .zox-widget-main-title { color: var(--color-white); }
.zox-widget-bgb .zox-art-title a { color: var(--color-white); }
.zox-widget-bgb .zox-art-title a:hover { color: var(--color-primary); }
.zox-widget-bgb .zox-s-graph { color: rgba(255,255,255,0.6); }
.zox-widget-bgb .zox-byline-wrap { color: rgba(255,255,255,0.5); }
.zox-widget-bgb .zox-byline-name { color: rgba(255,255,255,0.7); }

.zox-widget-txtw {}
.zox-widget-bgb .zox-art-wrap { background: transparent; }

/* 3-col grid for category articles */
.zox-widget-flex1-wrap {
    width: 100%;
}
.zox-widget-flex1-col {
    /* main grid */
}
.zox-widget-flex1-cont { width: 100%; }

.zox-flex-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
}

.zox-flex-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* home body width section */
.zox-home-body-section {
    padding: 36px 0;
    border-top: 1px solid var(--color-border);
}
.zox-home-body-section.dark {
    background: var(--color-dark);
    border-top: none;
}
.zox-home-body-section.dark .zox-widget-main-title { color: var(--color-white); }
.zox-home-body-section.dark .zox-art-title a { color: var(--color-white); }
.zox-home-body-section.dark .zox-art-title a:hover { color: var(--color-primary); }
.zox-home-body-section.dark .zox-s-graph { color: rgba(255,255,255,0.6); }
.zox-home-body-section.dark .zox-byline-wrap { color: rgba(255,255,255,0.5); }
.zox-home-body-section.dark .zox-byline-name { color: rgba(255,255,255,0.7); }
.zox-home-body-section.dark .zox-s-cat { background: var(--color-primary); }

/* =============================================================
   HOME – LATEST / TRENDING SECTION
   ============================================================= */

.zox-home-trending-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 36px 0;
    border-top: 1px solid var(--color-border);
}

.zox-home-trending-head {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.zox-home-trending-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}

.zox-home-trend-list { display: flex; flex-direction: column; gap: 14px; }

.zox-home-trend-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}
.zox-home-trend-item:last-child { border-bottom: none; padding-bottom: 0; }

.zox-trend-num {
    flex: 0 0 24px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    padding-top: 2px;
}

.zox-home-trend-img {
    flex: 0 0 80px;
    width: 80px;
    overflow: hidden;
    position: relative;
    line-height: 0;
}
.zox-home-trend-img::before {
    content: '';
    display: block;
    padding-top: 75%;
}
.zox-home-trend-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.zox-home-trend-item:hover .zox-home-trend-img img { transform: scale(1.05); }

.zox-home-trend-text { flex: 1; }
.zox-home-trend-title a {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
}
.zox-home-trend-title a:hover { color: var(--color-primary); }

/* =============================================================
   HOME – LATEST SECTION  (horizontal list)
   ============================================================= */

.zox-latest-section {
    padding: 36px 0;
    border-top: 1px solid var(--color-border);
}

.zox-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* =============================================================
   MORE POSTS BUTTON
   ============================================================= */

.zox-inf-more-wrap {
    text-align: center;
    padding: 32px 0 20px;
}

.zox-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--color-primary);
    color: var(--color-white) !important;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background var(--transition);
}
.zox-more-btn:hover { background: var(--color-primary-dk); color: var(--color-white) !important; }
.zox-more-btn:active { background: var(--color-primary-dk); }

/* =============================================================
   CATEGORY PAGE
   ============================================================= */

.zox-cat-header {
    text-align: center;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}
.zox-cat-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* Category 2-col featured */
.zox-cat-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 28px;
}

/* Category main + sidebar layout */
.zox-home-cont-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.zox-main-blog-wrap { }
.zox-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
    margin-bottom: 24px;
}

/* Sidebar */
.zox-home-right-wrap { }
#zox-side-wrap {}
.zox-side-widget { margin-bottom: 28px; }

.zox-widget-side-trend-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.zox-widget-side-trend-wrap .zox-art-wrap { margin-bottom: 12px; }
.zox-widget-side-trend-wrap .zox-art-wrap:last-child { margin-bottom: 0; }

/* =============================================================
   PAGINATION
   ============================================================= */

.zox-pagination-wrap {
    text-align: center;
    padding: 16px 0 28px;
}

.zox-page-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.zox-page-list a,
.zox-page-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all var(--transition);
    border-radius: 2px;
}
.zox-page-list a:hover { background: var(--color-bg-light); color: var(--color-text); }
.zox-page-list span.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.zox-page-list span.dots { border: none; color: var(--color-text-muted); }

/* =============================================================
   ARTICLE DETAIL PAGE
   ============================================================= */

/* Article wrapper */
.zox-article-wrap { width: 100%; }

/* Post top area (category + title + byline) */
.zox-post-top-wrap {
    background: var(--color-bg-light);
    padding: 28px 0 24px;
    margin-bottom: 0;
}

.zox-post-head-wrap { width: 100%; }
.zox-post-head { margin: 0 auto; }

.zox-post-cat {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: inherit;
}
.zox-post-cat-link {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 3px 9px;
    font-size: 10px;
}
.zox-post-cat-link:hover { background: var(--color-primary-dk); }

.zox-post-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 12px;
}

.zox-post-excerpt {
    display: block;
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Byline */
.zox-post-info-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.zox-post-byline-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zox-author-thumb img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.zox-author-info-wrap { }
.zox-author-name-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-light);
    font-family: var(--font-head);
}
.zox-author-name {
    font-weight: 700;
    color: var(--color-text);
}
.zox-author-name a { color: inherit; }
.zox-author-name a:hover { color: var(--color-primary); }

.zox-post-date-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-head);
    margin-top: 2px;
}
.zox-post-date { color: var(--color-text-muted); }

/* Social share top */
.zox-post-soc-top-wrap {
    display: flex;
    gap: 8px;
}
.zox-post-soc-top-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
    color: var(--color-white);
    transition: opacity var(--transition);
}
.zox-post-soc-top-wrap a:hover { opacity: 0.85; }
.zox-soc-fb { background: #1877f2; }
.zox-soc-tw { background: #1da1f2; }
.zox-soc-copy { background: var(--color-text-muted); cursor: pointer; }

/* Post main grid (content + sidebar) */
.zox-post-main-grid { width: 100%; padding: 28px 0; }

.zox-post-main-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.zox-post-main { }

/* Article body */
.zox-post-bot-wrap { }
.zox-post-img-wrap { display: none; } /* head_img is forbidden on article detail */

.zox-post-body-wrap { }
.zox-post-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    max-width: 720px;
}

.zox-post-body p { margin-bottom: 18px; }
.zox-post-body h2 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    margin: 28px 0 14px;
    color: var(--color-text);
    line-height: 1.3;
}
.zox-post-body h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--color-text);
}
.zox-post-body ul,
.zox-post-body ol {
    margin: 0 0 18px 24px;
}
.zox-post-body ul { list-style: disc; }
.zox-post-body ol { list-style: decimal; }
.zox-post-body li { margin-bottom: 6px; }
.zox-post-body a { color: var(--color-primary); text-decoration: underline; }
.zox-post-body a:hover { color: var(--color-primary-dk); }
.zox-post-body img { max-width: 100%; height: auto; margin: 16px 0; }
.zox-post-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 10px 20px;
    margin: 20px 0;
    background: var(--color-bg-light);
    font-style: italic;
    color: var(--color-text-light);
}
.zox-post-body strong { font-weight: 700; }
.zox-post-body em { font-style: italic; }

/* Post body table styles */
.zox-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}
.zox-post-body table th,
.zox-post-body table td {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.zox-post-body table th {
    background: var(--color-bg-light);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-text);
}
.zox-post-body table tr:nth-child(even) td { background: #fafafa; }
.zox-post-body table tr:hover td { background: #f0f0f0; }

/* Post body bottom (tags, etc.) */
.zox-post-body-bot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.zox-filed-under { color: var(--color-text-muted); }
.zox-filed-under a {
    display: inline-block;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    font-size: 11px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--color-text);
    border-radius: 2px;
}
.zox-filed-under a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* Sidebar (article page) */
.zox-post-side-wrap { }

/* Popular Articles sidebar – shadow / 立体 card effect */
.zox_side_trend_widget {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 28px;
}
.zox_side_trend_widget .zox-widget-side-head {
    background: var(--color-primary);
    margin-bottom: 0;
    padding: 12px 16px;
}
.zox_side_trend_widget .zox-widget-side-head .zox-widget-side-title {
    color: #fff;
    border-left-color: rgba(255,255,255,.6);
}
.zox_side_trend_widget .zox-widget-side-trend-wrap {
    padding: 12px 16px;
}
.zox_side_trend_widget .zox-art-wrap {
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-bottom: 12px;
}
.zox_side_trend_widget .zox-art-wrap:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Floating share bar */
.zox-post-soc-scroll {
    display: none; /* hidden on mobile, optional */
}

/* =============================================================
   FAQ
   ============================================================= */

.zox-faq-wrap {
    margin-top: 36px;
    max-width: 720px;
}

.zox-faq-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.zox-faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.zox-faq-question {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: var(--color-bg-light);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: none;
}
.zox-faq-question::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.zox-faq-item.open .zox-faq-question::after {
    content: '−';
}
.zox-faq-question:hover { background: #ebebeb; }
.zox-faq-question:focus { outline: 2px solid var(--color-primary); outline-offset: -2px; }

.zox-faq-answer {
    display: none;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-light);
}
.zox-faq-item.open .zox-faq-answer { display: block; }

/* =============================================================
   ARTICLE – RELATED POSTS
   ============================================================= */

.zox-post-more-wrap {
    padding: 32px 0 36px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.zox-post-more {
    width: 100%;
}

.zox-post-main-head {
    margin-bottom: 20px;
}
.zox-post-more-label {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
    display: block;
}

.zox-post-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.zox-post-more-grid .zox-art-title a { font-size: 14px; }

/* =============================================================
   STATIC PAGE
   ============================================================= */

.zox-page-wrap {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 var(--gutter);
}
.zox-page-wrap .zox-page-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-primary);
}
.zox-page-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
}
.zox-page-body p { margin-bottom: 18px; }
.zox-page-body h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
.zox-page-body a { color: var(--color-primary); text-decoration: underline; }

/* =============================================================
   404 PAGE
   ============================================================= */

.zox-404-wrap {
    text-align: center;
    padding: 80px var(--gutter) 60px;
}
.zox-404-num {
    font-family: var(--font-head);
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: var(--color-border);
    margin-bottom: 8px;
}
.zox-404-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
}
.zox-404-desc {
    font-size: 15px;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 8px;
    line-height: 1.6;
}
.zox-404-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--color-primary);
    color: var(--color-white) !important;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background var(--transition);
}
.zox-404-btn:hover { background: var(--color-primary-dk); }

.zox-404-cats {
    margin-top: 48px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}
.zox-404-cats-title {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.zox-404-cat-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.zox-404-cat-list a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--transition);
}
.zox-404-cat-list a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* =============================================================
   FONT AWESOME fallback icons (inline SVG via CSS)
   ============================================================= */

/* We use font-awesome webfonts already in public/webfonts/ */

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1100px) {
    .zox-flex-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .zox-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .zox-post-more-grid { grid-template-columns: repeat(2, 1fr); }
    .zox-home-cont-wrap { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
    .zox-post-main-wrap { grid-template-columns: 1fr; }
    .zox-feat-ent2-bot { grid-template-columns: 1fr; }
    .zox-latest-grid { grid-template-columns: 1fr; }
    .zox-flex-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .zox-feat-ent2-grid { grid-template-columns: 1fr; }
    .zox-cat-feat-grid { grid-template-columns: 1fr; }
    .zox-home-cont-wrap { grid-template-columns: 1fr; }
    .zox-home-right-wrap { display: none; }
    .zox-home-trending-wrap { grid-template-columns: 1fr; }
    .zox-art-wrap.zox-art-horiz .zox-art-grid { flex-direction: column; }
    .zox-art-wrap.zox-art-horiz .zox-art-img { flex: 0 0 auto; width: 100%; }
    .zox-flex-grid-3 { grid-template-columns: 1fr; }
    .zox-blog-grid { grid-template-columns: 1fr 1fr; }
    .zox-post-more-grid { grid-template-columns: repeat(2, 1fr); }
    .zox-cat-title { font-size: 26px; }
    #zox-bot-head { height: 54px; }
    .trill-support-btn { padding: 6px 10px; font-size: 11px; }
    .zox-foot-grid { flex-direction: column; gap: 14px; }
    .zox-foot-left-wrap { width: 100%; }
    .zox-foot-right-wrap { width: 100%; }
    .zox-foot-soc { flex-wrap: wrap; }
    .zox-404-num { font-size: 80px; }
}

@media (max-width: 480px) {
    .zox-blog-grid { grid-template-columns: 1fr; }
    .zox-post-more-grid { grid-template-columns: 1fr 1fr; }
    .zox-latest-grid { grid-template-columns: 1fr; }
    .zox-flex-grid-4 { grid-template-columns: 1fr; }
    .zox-widget-main-title { font-size: 18px; }
}

/* ---- Global hover fallback ---- */
a:not([href]):hover { opacity: 0.8; }
