/*
Theme Name: TroxTheme
Description: Very Fast, SEO Full compatible, Full Schema Support.
Author: TroxTheme Team For Programming and Design
Theme URI: https://troxtheme.org
Author URI: https://troxtheme.org
Version: 3.7.4
*/

/* ========================================
   1. CSS Variables & Theme System
   ======================================== */

:root {
    --container: 1200px;
    --gap: 1.25rem;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
    --font: 'troxtheme', 'Segoe UI', Arial, sans-serif, tahoma;
    --header-h: 60px;
}

/* Light Theme */
[data-theme="light"],
body:not([data-theme]) {
    --bg-body: #f2f4f7;
    --bg-card: #ffffff;
    --bg-hover: #f8f9fc;
    --bg-secondary: #f4f6f9;
    --bg-tertiary: rgba(0,0,0,0.035);
    --bg-glass: rgba(255,255,255,0.85);
    --border: #e3e6ed;
    --border-light: rgba(0,0,0,0.05);
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
    color-scheme: light;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #0b0d17;
    --bg-card: #141825;
    --bg-hover: #1c2030;
    --bg-secondary: #111420;
    --bg-tertiary: rgba(255,255,255,0.05);
    --bg-glass: rgba(20,24,37,0.92);
    --border: #252a3d;
    --border-light: rgba(255,255,255,0.07);
    --text-1: #e8ecf4;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
    color-scheme: dark;
}

/* ========================================
   2. Reset & Base
   ======================================== */

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

html {
    font-size: var(--main-font-size, 16px);
    line-height: 1.65;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-body);
    font-family: var(--font);
    color: var(--text-1);
    overflow-y: scroll;
    min-height: 100vh;
}

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

a:hover { color: var(--main-color); }

img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
textarea { width: 100%; }
ul, ol { list-style: none; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--gap) 0;
}

::selection {
    background: var(--main-color);
    color: #fff;
}

/* ========================================
   3. Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-1);
    line-height: 1.35;
    font-weight: 700;
}

h1 {
    font-size: 1.6em;
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.15em;
    margin: 1.5rem 0 0.8rem 0;
}

.article-body h2 {
    padding: 0.65em 1.1em 0.65em 1em;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-right: 4px solid var(--main-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
    overflow: hidden;
}

.article-body h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--main-color);
    border-radius: 4px;
}

h3 { font-size: 1.08em; margin: 1.2rem 0 0.5rem 0; }
h4, h5, h6 { font-size: 1em; margin: 1rem 0 0.5rem 0; }
p { margin-bottom: 1em; }

/* ========================================
   4. Layout
   ======================================== */

main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--gap);
    min-height: 60vh;
    word-break: break-word;
}

/* ========================================
   5. Buttons
   ======================================== */

.submit, .button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.8em;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    gap: 0.4em;
    letter-spacing: 0.01em;
}

.submit:hover, .button:hover, .btn:hover {
    filter: brightness(1.08);
    box-shadow: var(--shadow-md);
    color: #fff;
    transform: translateY(-2px);
}

.add-comment { margin: 1.5rem 0; text-align: center; }

/* ========================================
   6. Header - Premium Glassmorphism
   ======================================== */

.header {
    background: var(--main-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 0 rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    gap: 0;
    height: 60px;
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.65em;
    padding-left: 1.2em;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 0.8em;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.45em;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo .img { max-height: 40px; width: auto; }
.logo .img:hover { opacity: 0.88; transition: opacity 0.2s; }

.logo-desc {
    font-size: 0.52em;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    line-height: 1.3;
    max-width: 120px;
    display: block;
}

/* Header Nav */
.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.header-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.header-nav li { position: relative; }

.header-nav > ul > li > a,
.nav-more-btn {
    display: flex;
    align-items: center;
    gap: 0.25em;
    padding: 0 0.8em;
    height: 60px;
    font-size: 0.875em;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
    transition: color var(--transition);
    border-bottom: 3px solid transparent;
    letter-spacing: 0.01em;
}

.header-nav > ul > li > a:hover,
.nav-more-btn:hover { color: #fff; }

.header-nav .current-menu-item > a,
.header-nav .current-menu-ancestor > a {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.8);
}

/* Dropdown */
.header-nav ul ul {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-top: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    z-index: 100;
    padding: 0.5em;
    overflow: visible;
    list-style: none;
    margin: 0;
}

.header-nav li:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header-nav ul ul a {
    padding: 0.55em 1em;
    font-size: 0.87em;
    color: var(--text-1);
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: block;
    transition: all 0.15s;
}

.header-nav ul ul a:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--main-color) 8%, transparent), var(--bg-tertiary));
    color: var(--main-color);
    padding-right: 1.3em;
}

.header-nav ul ul ul { top: 0; right: 100%; }
.nav-arrow { font-size: 0.7em; margin-right: 0.15em; opacity: 0.5; }

/* Nav More */
.nav-more { position: relative; flex-shrink: 0; }

.nav-more-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0.5em;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    z-index: 100;
}

.nav-more.open .nav-more-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-more-dropdown li { list-style: none; }

.nav-more-dropdown > li > a {
    display: block;
    padding: 0.55em 1em;
    font-size: 0.87em;
    color: var(--text-1);
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.15s;
}

.nav-more-dropdown > li > a:hover {
    background: var(--bg-tertiary);
    color: var(--main-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-right: auto;
    padding-right: 0.5em;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    border-radius: 50%;
    color: rgba(255,255,255,0.88);
    font-size: 0.95em;
    transition: all var(--transition);
    padding: 0;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.header-icon-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: scale(1.08);
}

.header-icon-btn .icon-sun { display: none; }
[data-theme="dark"] .header-icon-btn .icon-sun { display: inline; }
[data-theme="dark"] .header-icon-btn .icon-moon { display: none; }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    border-radius: 50%;
    color: rgba(255,255,255,0.88);
    font-size: 1.1em;
    padding: 0;
    line-height: 1;
    transition: all var(--transition);
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    padding: 1em var(--gap);
}

.search-overlay.active { display: block; }

.search-overlay-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.search-overlay .search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: all var(--transition);
}

.search-overlay .search-form:focus-within {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color) 15%, transparent);
    background: var(--bg-card);
}

.search-overlay .search-field {
    flex: 1;
    border: none;
    padding: 0.7em 1.2em;
    font-family: var(--font);
    font-size: 0.93em;
    background: transparent;
    outline: none;
    color: var(--text-1);
    min-width: 0;
}

.search-overlay .search-field::placeholder { color: var(--text-3); }

.search-submit {
    width: 42px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color var(--transition);
}

.search-submit:hover { color: var(--main-color); }

.search-close {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1.3em;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition);
}

.search-close:hover {
    color: var(--main-color);
    background: color-mix(in srgb, var(--main-color) 10%, transparent);
    border-color: var(--main-color);
}

.nav-more-dropdown .sub-menu {
    position: static;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding-right: 1em;
    padding-left: 0;
    min-width: auto;
    background: none;
}

.nav-more-dropdown .sub-menu a { padding: 0.4em 1em; font-size: 0.82em; color: var(--text-2); }
.nav-more-dropdown .sub-menu a:hover { color: var(--main-color); }

/* Mobile Menu */
@media (max-width: 768px) {
    .header { position: fixed; top: 0; left: 0; right: 0; }
    body { padding-top: 60px; }
    .menu-toggle { display: inline-flex; }
    .header-nav { display: none; }

    .header-nav.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        z-index: 99;
        padding: 0.5em;
        overflow: visible;
    }

    .header-nav.mobile-open > ul { flex-direction: column; }

    .header-nav.mobile-open > ul > li > a {
        height: auto;
        padding: 0.7em 1.1em;
        color: var(--text-1);
        border-radius: var(--radius-sm);
        border-bottom: none;
    }

    .header-nav.mobile-open > ul > li > a:hover {
        background: var(--bg-tertiary);
        color: var(--main-color);
    }

    .header-nav.mobile-open ul ul {
        position: static;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        padding-right: 1.5em;
        padding-left: 0;
        border: none;
    }

    .header-nav.mobile-open .nav-more { display: none; }
    .header-nav.mobile-open .nav-cat-item { display: list-item !important; }

    .logo { border-left: none; margin-left: 0; padding-left: 0; }
    .logo-desc { display: none; }
    .search-overlay { position: fixed; top: 60px; left: 0; right: 0; }
}

/* ========================================
   7. Hero Section - Editorial Bold
   ======================================== */

.hero {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    height: 410px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-main {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    grid-row: span 2;
}

.hero-main > a { display: block; height: 100%; position: relative; }

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.hero-main:hover img { transform: scale(1.04); }

.hero-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 3.5em 1.5em 1.5em;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.8em;
    background: var(--main-color);
    color: #fff;
    font-size: 0.73em;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 0.55em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 1.22em;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    letter-spacing: -0.01em;
}

.hero-side-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

.hero-side-item > a { display: block; height: 100%; position: relative; }

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.hero-side-item:hover img { transform: scale(1.06); }

.hero-side-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2.5em 1em 0.9em;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    color: #fff;
}

.hero-side-overlay .cat-badge { font-size: 0.68em; margin-bottom: 0.3em; }

.hero-side-title {
    font-size: 0.83em;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

/* Hero text-only mode */
.hero-text .hero-main { min-height: auto; border: 2px solid var(--border); }
.hero-text .hero-main > a { padding: 1.5em; }
.hero-text .hero-overlay { position: static; background: none; color: var(--text-1); padding: 0; }
.hero-text .hero-title { color: var(--text-1); font-size: 1.3em; text-shadow: none; }
.hero-text .hero-side-item { border: 2px solid var(--border); }
.hero-text .hero-side-item > a { padding: 1.2em; }
.hero-text .hero-side-overlay { position: static; background: none; color: var(--text-1); padding: 0; }
.hero-text .hero-side-title { color: var(--text-1); }
.hero-text .hero-main:hover, .hero-text .hero-side-item:hover { border-color: var(--main-color); }

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
        border-radius: var(--radius);
    }
    .hero-main { grid-column: 1 / -1; grid-row: auto; min-height: 210px; }
    .hero-side-item { min-height: 125px; }
    .hero-text { grid-template-columns: 1fr; }
    .hero-text .hero-main { grid-column: 1; }
}

@media (max-width: 480px) {
    .hero { grid-template-columns: 1fr; }
    .hero-main { grid-column: 1; }
    .hero-content .hero-title { font-size: 1.1em; }
}

/* ========================================
   7.5 Hero Slider
   ======================================== */

.hero-slider {
    position: relative;
    margin-bottom: var(--gap);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--gap);
    box-shadow: var(--shadow-card);
}

/* ========================================
   8. Category Bar (Pills) - Elevated
   ======================================== */

.cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: calc(var(--gap) * 1.5);
    padding: 0;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.42em 1.1em;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.86em;
    font-weight: 600;
    color: var(--text-1);
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--main-color) 30%, transparent);
}

.cat-pill .cat-icon { font-size: 0.85em; }

/* ========================================
   9. Section Headers - Sharp Editorial
   ======================================== */

.latest-articles-box {
    margin-bottom: var(--gap);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap);
    box-shadow: var(--shadow-card);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap);
    padding-bottom: 0.6em;
    border-bottom: 2.5px solid var(--main-color);
    position: relative;
}

.section-title {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 1.15em;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.section-more {
    font-size: 0.84em;
    font-weight: 600;
    color: var(--main-color);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.3em 0.8em;
    border: 1px solid color-mix(in srgb, var(--main-color) 30%, transparent);
    border-radius: 50px;
}

.section-more:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

/* ========================================
   9.5 Homepage Category Sections
   ======================================== */

.home-section {
    margin-bottom: var(--gap);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition);
}

.home-section:hover { box-shadow: var(--shadow-md); }

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap);
    padding-bottom: 0.6em;
    border-bottom: 3px solid var(--main-color);
}

.home-section-name {
    display: flex;
    align-items: center;
    gap: 0.45em;
    font-size: 1.2em;
    font-weight: 800;
    color: var(--text-1);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    letter-spacing: -0.015em;
}

.home-section-name .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 0.85em;
}

.home-section-name a { color: var(--text-1); transition: color var(--transition); }
.home-section-name a:hover { color: var(--main-color); }

.home-section-more {
    font-size: 0.84em;
    font-weight: 600;
    color: var(--main-color);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.3em 0.8em;
    border: 1px solid color-mix(in srgb, var(--main-color) 30%, transparent);
    border-radius: 50px;
}

.home-section-more:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.home-section-grid {
    display: grid;
    grid-template-columns: repeat(var(--sec-cols, 4), 1fr);
    gap: calc(var(--gap) * 0.85);
}

/* Post card in section */
.home-section-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border-light);
}

.home-section-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: transparent;
}

.home-section-card a { display: block; color: inherit; }

.home-section-img {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
}

.home-section-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.home-section-card:hover .home-section-img img { transform: scale(1.05); }

.home-section-title {
    padding: 0.75em 0.75em 0.55em;
    font-size: 0.91em;
    font-weight: 700;
    line-height: 1.65;
    color: var(--text-1);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Legacy fieldset/legend */
fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 var(--gap) 0;
    border-bottom: 2.5px solid var(--main-color);
    font-weight: bold;
}

legend {
    color: var(--text-1);
    margin: 0;
    padding: 0 0 0.5em 0;
    float: none;
    width: auto;
    font-size: 1.15em;
    font-weight: 800;
}

/* ========================================
   10. Post Cards Grid - Premium
   ======================================== */

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--gap);
}

.column { display: flex; }

.column a {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.column a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.column a:hover img { transform: scale(1.07); }

.ratio {
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    background: var(--bg-tertiary);
}

.ratio img, .column img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.column .title {
    padding: 0.8em 0.8em 0.35em;
    color: var(--text-1);
    font-weight: 700;
    font-size: 0.9em;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.column .card-cat { padding: 0.5em 1em 0; }
.column .card-cat .cat-badge { font-size: 0.68em; }

.column .card-meta {
    padding: 0 1em 0.8em;
    font-size: 0.73em;
    color: var(--text-3);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

/* ========================================
   11. Category Grid (Subcategories)
   ======================================== */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap);
    margin-bottom: calc(var(--gap) * 1.5);
}

.cat-grid-box { width: 100%; }

.cat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.cat-box:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}

.cat-box h2 { margin: 0; padding: 0; background: none; border: none; border-radius: 0; }
.cat-icon { font-size: 1.2em; vertical-align: middle; opacity: 0.8; }

.cat-title-box {
    font-weight: 700;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.cat-title-box:hover {
    background: var(--main-color);
    color: #fff;
}

.cat-title-box a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1em;
    color: var(--main-color);
    font-weight: 700;
}

.cat-title-box:hover a { color: #fff; }
.cat-title { vertical-align: middle; }

.category-subs { padding: 0.65em 1em; margin: 0; }

.category-subs li {
    padding: 0.28em 0;
    list-style: none;
    font-size: 0.88em;
    border-bottom: 1px dashed var(--border-light);
}

.category-subs li:last-child { border-bottom: none; }
.category-subs a { color: var(--text-2); transition: color var(--transition); }
.category-subs a:hover { color: var(--main-color); }

/* ========================================
   12. Breadcrumbs
   ======================================== */

.breadcrumbs {
    padding: 0.6em 1.1em;
    font-size: 0.83em;
    margin: 0 0 var(--gap) 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
}

.breadcrumbs li { display: inline; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--main-color); }

.breadcrumbs .spec {
    margin: 0 0.5em;
    opacity: 0.35;
    font-size: 0.8em;
}

.bread {
    font-size: 0.83em;
    font-weight: normal;
    margin-bottom: var(--gap);
    padding: 0.6em 1.1em;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
}

.bread ul { margin: 0; padding: 0; }
.bread ul li { display: inline; margin-left: 0.5em; }
.bread ul li a { color: var(--text-2); }
.bread ul li a:hover { color: var(--main-color); }

/* ========================================
   13. Article Page - Premium Reading
   ======================================== */

.main-in {
    padding: 1.8rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--gap);
    box-shadow: var(--shadow-card);
}

.article { padding-bottom: 1rem; }

.article h1 {
    font-size: 1.55em;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.article-body {
    line-height: 1.95;
    font-size: 1em;
    color: var(--text-1);
}

.article-body p { margin-bottom: 1.25em; }

.article-body a {
    color: var(--main-color);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--main-color) 35%, transparent);
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
    transition: text-decoration-color var(--transition);
}

.article-body a:hover {
    text-decoration-thickness: 2px;
    text-decoration-color: var(--main-color);
}

/* Article lists */
.article-body ul, .article-body ol {
    padding-right: 1.6em;
    padding-left: 0;
    margin-bottom: 1.2em;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    margin-bottom: 0.5em;
    line-height: 1.85;
    padding-right: 0.3em;
}

.article-body li::marker { color: var(--main-color); font-weight: 700; }
.article-body ul ul { list-style: circle; margin-top: 0.4em; margin-bottom: 0.4em; }
.article-body ul ul ul { list-style: square; }
.article-body ol ol { list-style: lower-alpha; margin-top: 0.4em; margin-bottom: 0.4em; }

/* Article blockquote */
.article-body blockquote {
    border-right: 4px solid var(--main-color);
    border-left: none;
    margin: 1.8em 0;
    padding: 1.1em 1.5em;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
}

/* Article table */
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }

.article-body th, .article-body td {
    border: 1px solid var(--border);
    padding: 0.65em 0.9em;
    text-align: right;
}

.article-body th {
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text-1);
}

.article-body tr:nth-child(even) { background: var(--bg-tertiary); }

.article-body img {
    border-radius: var(--radius);
    margin: 1.2em auto;
    box-shadow: var(--shadow-md);
}

/* ========================================
   14. Article Meta & Share
   ======================================== */

.author-link {
    color: var(--text-1);
    font-weight: 700;
    transition: color var(--transition);
}

.author-link:hover { color: var(--main-color); }

.by {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 1em;
    color: var(--text-2);
    margin-bottom: 1.3rem;
    font-size: 0.83em;
    padding: 0.8em 0;
    border-bottom: 1px solid var(--border);
    border-right: none;
}

.by-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    float: none;
    margin: 0;
}

/* Social Share */
.share {
    display: inline-flex;
    gap: 0.45em;
    margin-right: auto;
}

.icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-size: 15px !important;
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    float: none;
    margin: 0;
}

.icon:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--main-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.twitter { background: url(assets/images/twitter.svg) center no-repeat; background-size: 15px; }
.facebook { background: url(assets/images/facebook.svg) center no-repeat; background-size: 15px; }
.whatsapp { background: url(assets/images/whatsapp.svg) center no-repeat; background-size: 15px; }

/* Featured Image */
.post_thumbnail {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    object-fit: cover;
    max-height: 500px;
    box-shadow: var(--shadow-md);
}

.wp-caption, .figure { margin: 0 0 1.5rem 0; max-width: 100%; width: auto; }

.wp-caption img, .figure img {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
}

.post-caption, .wp-caption-text, .figcaption {
    margin: 0;
    text-align: center;
    background: var(--bg-secondary);
    font-size: 0.76em;
    color: var(--text-2);
    padding: 0.55em 1em;
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--border);
    border-top: none;
}

/* Blockquote */
blockquote {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    margin: 1.2em 0;
    padding: 1.3em 1.5em;
    position: relative;
    border-radius: var(--radius);
    border-right: 4px solid var(--main-color);
    font-style: italic;
    box-shadow: var(--shadow-sm);
}

blockquote::before {
    content: "";
    background: url(assets/images/blockquote.svg) center no-repeat;
    background-size: contain;
    position: absolute;
    right: 0.8em;
    width: 22px;
    height: 22px;
    top: -6px;
    opacity: 0.1;
}

blockquote p:last-of-type { margin-bottom: 0; }

/* Tables */
table { max-width: 100%; width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
td, th { border: 1px solid var(--border); padding: 0.5em 1em; }
tr:nth-child(even) { background: var(--bg-secondary); }
th { background: var(--bg-secondary); font-weight: 700; }

/* ========================================
   15. Sidebar & Article Layout
   ======================================== */

.main-in-art {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

@media (min-width: 860px) {
    .main-in-art { flex-direction: row; }
    .main-in-art .article { flex: 1; min-width: 0; }
    .main-in-art aside { width: 300px; flex-shrink: 0; }
}

aside h2.section-heading { margin: 0 0 0.8rem 0; }

/* ========================================
   16. Related & More Posts
   ======================================== */

.more-posts, .related-posts {
    margin-bottom: var(--gap);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap);
    box-shadow: var(--shadow-card);
}

.more-posts-inline { margin: 1.5em 0; }

/* Table of Contents - Premium */
.np-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 0 0 1.8em 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-right: 4px solid var(--main-color);
}

.np-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--main-color) 8%, var(--bg-card)), var(--bg-card));
    border-bottom: 1px solid var(--border);
    cursor: default;
    user-select: none;
}

.np-toc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    background: var(--main-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    flex-shrink: 0;
}

.np-toc-title {
    font-weight: 800;
    font-size: 1em;
    color: var(--text-1);
    flex: 1;
    letter-spacing: -0.01em;
}

.np-toc-toggle {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    border-radius: 50%;
    transition: all 0.2s;
}

.np-toc-toggle:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.np-toc-body {
    padding: 8px 14px 12px;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    max-height: 800px;
    opacity: 1;
    overflow: hidden;
}

.np-toc-body.np-toc-closed {
    max-height: 0;
    padding: 0 14px;
    opacity: 0;
}

.np-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
}

.np-toc-list li {
    counter-increment: toc-counter;
    padding: 0;
    margin: 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--border) 55%, transparent);
    list-style: none;
}

.np-toc-list li:last-child { border-bottom: none; }

.np-toc-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    color: var(--text-1);
    text-decoration: none;
    font-size: 0.89em;
    font-weight: 600;
    line-height: 1.6;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}

.np-toc-list li a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: color-mix(in srgb, var(--main-color) 12%, transparent);
    color: var(--main-color);
    border-radius: var(--radius-sm);
    font-size: 0.78em;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.np-toc-list li a:hover {
    background: color-mix(in srgb, var(--main-color) 6%, transparent);
    color: var(--main-color);
    padding-right: 14px;
}

.np-toc-list li a:hover::before {
    background: var(--main-color);
    color: #fff;
}

.see-also-inline { margin: 1.5em 0; }
.see-also-inline .section-heading { font-size: 1.1em; margin-bottom: 0.6em; }

.see-also-list { list-style: none; margin: 0; padding: 0; }

.see-also-list li {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.65em 0.8em;
    border-bottom: 1px solid var(--border);
    font-size: 0.95em;
    transition: background 0.2s ease;
}

.see-also-list li:last-child { border-bottom: none; }

.see-also-list li:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.see-also-list li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--main-color);
    color: #fff;
    font-size: 0.55em;
    flex-shrink: 0;
    border-radius: 50%;
}

.see-also-list li a {
    color: var(--text-1);
    font-weight: 600;
    transition: color var(--transition);
    text-decoration: none;
}

.see-also-list li a:hover { color: var(--main-color); }

.related-posts .columns { grid-template-columns: repeat(4, 1fr); }

h2.section-heading {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.2em;
    font-weight: 800;
    color: var(--text-1);
    padding: 0 0 0.65em 0;
    margin: 0 0 0.8em 0;
    border-bottom: 3px solid var(--main-color);
    border-right: none;
    border-left: none;
    border-top: none;
    background: none;
    border-radius: 0;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

h2.section-heading .section-icon {
    color: var(--main-color);
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rp, .mp { float: none; }

.list-posts { margin-bottom: var(--gap); }

.list-posts-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-post-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.7em 0.6em;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.list-post-item:last-child { border-bottom: none; }

.list-post-item:hover { background: var(--bg-secondary); }

.list-post-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 0.85em;
    opacity: 0.55;
    transition: all var(--transition);
}

.list-post-item:hover .list-post-icon { opacity: 1; transform: scale(1.15); }

.list-post-title {
    flex: 1;
    min-width: 0;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.list-post-item:hover .list-post-title { color: var(--main-color); }

/* ========================================
   17. Tags
   ======================================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
    margin: 1rem 0;
}

.tags div {
    margin: 0;
    font-size: 0.82em;
    padding: 0.3em 0.9em;
    float: none;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    transition: all var(--transition);
}

.tags div:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px color-mix(in srgb, var(--main-color) 25%, transparent);
}

.tags a { color: var(--text-1); }
.tags div:hover a { color: #fff; }

/* ========================================
   18. Comments - Refreshed
   ======================================== */

.comments-area { margin-top: var(--gap); }

.comments-area > h2 {
    font-size: 1.05em;
    margin-bottom: 1rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 2.5px solid var(--main-color);
    padding-bottom: 0.55em;
}

.comment-list { margin: 0; padding: 0; }

.comment-list .comment-body {
    margin: 0.65em 0;
    background: var(--bg-secondary);
    padding: 1.1em;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.comment-list .comment-body:hover { border-color: color-mix(in srgb, var(--main-color) 30%, transparent); }

.comment-list .comment-meta {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0 0 0.6em 0;
    overflow: visible;
    position: relative;
}

.comment-list li { display: block; }
.comment-list .children { padding-right: 2em; }

.comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 0.5em;
    float: none;
}

.comment-list .comment-metadata { float: none; font-size: 0.78em; color: var(--text-3); margin-right: auto; }

.comment-list .comment-author img {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    margin: 0;
    float: none;
    border: 2px solid var(--border);
}

.comment-list .comment-author .fn { font-weight: 700; margin: 0; }

.comment-awaiting-moderation {
    display: block;
    margin-top: 0.5em;
    color: var(--text-3);
    font-size: 0.83em;
}

.comment-list .comment-content, .comment-list .pingback .comment-body {
    padding: 0;
    line-height: 1.65;
}

.comment-list .reply { padding: 0.5em 0 0; text-align: left; }
.comment-list .says { display: none; }

.comment-list .comment-reply-link {
    display: inline-block;
    padding: 0.25em 1em;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82em;
    transition: all var(--transition);
    font-weight: 600;
}

.comment-list .comment-reply-link:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.comment-list .comment-metadata, .comment-list .comment-metadata a { color: var(--text-3); }

.comment-form {
    width: 100%;
    max-width: 600px;
    margin: 1.5em auto;
}

.comment-form input[type="text"],
.comment-form textarea {
    -webkit-appearance: none;
    appearance: none;
    padding: 0.7em 1em;
    font-weight: 400;
    line-height: 1.5;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    background: var(--bg-card);
    width: 100%;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    border-color: var(--main-color);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color) 15%, transparent);
}

.form-submit, .comment-reply-title { text-align: center; }
.comment-reply-title { font-weight: 700; margin-bottom: 1em; }

/* ========================================
   19. Pagination - Crisp
   ======================================== */

.comment-navigation {
    text-align: center;
    margin: var(--gap) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em;
}

.comment-navigation .page-numbers,
.page-numbers {
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.5em 1em;
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-1);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    font-weight: 700;
    font-size: 0.88em;
    min-width: 38px;
    text-align: center;
}

.comment-navigation .page-numbers:hover,
.page-numbers:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-1px);
}

.comment-navigation .current,
.page-numbers.current {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
    box-shadow: 0 3px 8px color-mix(in srgb, var(--main-color) 30%, transparent);
}

/* ========================================
   19.5 Author Page
   ======================================== */

.author-page { max-width: var(--container); margin: 0 auto; }

.author-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2em;
    margin-bottom: calc(var(--gap) * 1.5);
    box-shadow: var(--shadow-md);
}

.author-card-inner {
    display: flex;
    gap: 2em;
    align-items: flex-start;
}

.author-avatar { flex-shrink: 0; }

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--main-color);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--main-color) 25%, transparent);
}

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

.author-name {
    margin: 0 0 0.4em;
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-1);
    border: none;
    padding: 0;
    background: none;
    letter-spacing: -0.02em;
}

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1.5em;
    margin-bottom: 1em;
    font-size: 0.85em;
    color: var(--text-2);
}

.author-meta-item { display: inline-flex; align-items: center; gap: 0.4em; }
.author-meta-item i { color: var(--main-color); font-size: 0.9em; }

.author-bio {
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 1em;
    font-size: 0.95em;
}

.author-website {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--main-color);
    font-size: 0.88em;
    font-weight: 600;
    margin-bottom: 1em;
    transition: opacity var(--transition);
}

.author-website:hover { opacity: 0.7; }

.author-socials { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 0.5em; }

.author-social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-2);
    font-size: 1em;
    transition: all var(--transition);
}

.author-social-link:hover {
    background: var(--social-color, var(--main-color));
    color: #fff;
    border-color: var(--social-color, var(--main-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.no-posts {
    text-align: center;
    color: var(--text-2);
    padding: 2em;
    font-size: 1.05em;
}

@media (max-width: 576px) {
    .author-card { padding: 1.2em; }
    .author-card-inner { flex-direction: column; align-items: center; text-align: center; }
    .author-meta { justify-content: center; }
    .author-socials { justify-content: center; }
    .author-avatar img { width: 100px; height: 100px; }
}

/* ========================================
   20. Footer - Rich Dark
   ======================================== */

.footer {
    background: var(--text-1);
    color: rgba(255,255,255,0.75);
    overflow: hidden;
    margin-top: calc(var(--gap) * 2.5);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), color-mix(in srgb, var(--main-color) 50%, #6366f1), #6366f1);
}

[data-theme="dark"] .footer {
    background: #070910;
    border-top: 1px solid var(--border);
}

.footer-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.5rem var(--gap) 2rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 0.8em; flex-shrink: 0; }

.footer-logo { display: inline-flex; align-items: center; }

.footer-logo-img {
    max-height: 36px;
    width: auto;
    filter: brightness(10);
}

[data-theme="dark"] .footer-logo-img { filter: brightness(1.2); }
.footer-logo-text { font-size: 1.2em; font-weight: 800; color: #fff; }
.footer-sep { color: rgba(255,255,255,0.18); font-size: 1.1em; }
.footer-desc { font-size: 0.85em; color: rgba(255,255,255,0.4); }

.footer-nav { display: flex; align-items: center; gap: 0; }

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-links li { position: relative; }

.footer-links li:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 13px;
    background: rgba(255,255,255,0.12);
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.2em;
}

.footer-links a {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.87em;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.18);
}

.footer-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.1em var(--gap);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82em;
    color: rgba(255,255,255,0.35);
}

.silver { color: rgba(255,255,255,0.42); }

@media (max-width: 768px) {
    .footer-row { flex-direction: column; text-align: center; }
    .footer-brand { flex-direction: column; gap: 0.4em; }
    .footer-sep { display: none; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ========================================
   21. Scroll to Top - Elevated
   ======================================== */

.scroll {
    position: fixed;
    bottom: 1.8em;
    cursor: pointer;
    width: 44px;
    height: 44px;
    background: var(--main-color) url(assets/images/arrow-up.svg) center/45% no-repeat;
    border-radius: 50%;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--main-color) 40%, rgba(0,0,0,0.3));
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    right: -70px;
    border: none;
}

.scroll.visible { right: 1.5em; }

.scroll:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--main-color) 50%, rgba(0,0,0,0.3));
}

/* ========================================
   22. Utility
   ======================================== */

.center { text-align: center; margin: 0 auto; margin-bottom: var(--gap); }

/* ========================================
   23. Responsive
   ======================================== */

@media (max-width: 768px) {
    .search { display: none; }
    h1 { font-size: 1.28em; }
    .footer-content { flex-direction: column; text-align: center; }
    .home-section-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    :root { --gap: 1rem; }
    main { padding: var(--gap) 0.8rem; }

    .main-in {
        border-radius: 0;
        margin-right: -0.8rem;
        margin-left: -0.8rem;
        border-left: none;
        border-right: none;
    }

    .breadcrumbs, .bread {
        border-radius: 0;
        margin-right: -0.8rem;
        margin-left: -0.8rem;
        border-left: none;
        border-right: none;
    }

    .columns { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .home-section-grid { grid-template-columns: 1fr; }
    .home-section-title { padding: 0.55em 0.55em 0.35em; }

    .hero-overlay { padding: 2em 1em 1em; }
    .hero-title { font-size: 1em; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Admin bar fix */
.admin-bar .header { top: 32px; }

@media screen and (max-width: 782px) {
    .admin-bar .header { top: 46px; }
}

/* ========================================
   24. Dark Mode Extras
   ======================================== */

[data-theme="dark"] .icon { filter: brightness(1.4); }
[data-theme="dark"] blockquote::before { filter: invert(1); opacity: 0.07; }

[data-theme="dark"] .hero-text .hero-title,
[data-theme="dark"] .hero-text .hero-side-title { color: var(--text-1); }

[data-theme="dark"] .column a { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-theme="dark"] .home-section { box-shadow: 0 2px 10px rgba(0,0,0,0.25); }

/* ========================================
   25. LTR Overrides
   ======================================== */

body.ltr h2, html[dir="ltr"] h2 { border-right: none; }

body.ltr .article-body h2,
html[dir="ltr"] .article-body h2 {
    border-right: none;
    border-left: 4px solid var(--main-color);
    border-radius: var(--radius) 0 0 var(--radius);
}

body.ltr blockquote, html[dir="ltr"] blockquote {
    border-right: none;
    border-left: 4px solid var(--main-color);
}

body.ltr .article-body ul, html[dir="ltr"] .article-body ul,
body.ltr .article-body ol, html[dir="ltr"] .article-body ol {
    padding-right: 0;
    padding-left: 1.6em;
}

body.ltr .article-body li, html[dir="ltr"] .article-body li {
    padding-right: 0;
    padding-left: 0.3em;
}

body.ltr .article-body blockquote,
html[dir="ltr"] .article-body blockquote {
    border-right: none;
    border-left: 4px solid var(--main-color);
    border-radius: var(--radius) 0 0 var(--radius);
}

body.ltr .article-body th, html[dir="ltr"] .article-body th,
body.ltr .article-body td, html[dir="ltr"] .article-body td { text-align: left; }

body.ltr blockquote::before, html[dir="ltr"] blockquote::before {
    right: auto;
    left: 0.8em;
}

body.ltr .scroll.visible, html[dir="ltr"] .scroll.visible {
    right: auto;
    left: 1.5em;
}

body.ltr .comment-list .children, html[dir="ltr"] .comment-list .children {
    padding-right: 0;
    padding-left: 2em;
}

body.ltr .share, html[dir="ltr"] .share { margin-right: 0; margin-left: auto; }

html[dir="ltr"] .logo {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-left: 0;
    padding-right: 1.2em;
    margin-left: 0;
    margin-right: 0.8em;
}

html[dir="ltr"] .header-actions {
    margin-right: 0;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0.5em;
}

/* ========================================
   26. Print
   ======================================== */

@media print {
    .header, .topbar, .footer, .scroll, .breadcrumbs, .bread,
    .share, .tags, .add-comment, .more-posts, .related-posts,
    .list-posts, aside, .hero, .hero-slider, .cat-bar, .cat-grid,
    .home-section, .comment-navigation { display: none !important; }

    main { margin-top: 0; }
    .main-in { box-shadow: none; border: none; }
    body { background: #fff; color: #000; }
}

@media (max-width: 900px) { .related-posts .columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .related-posts .columns { grid-template-columns: 1fr; } }

/* =========================================
   27. FAQ Accordion (RTL) - Enhanced
   ========================================= */

.trox-faq-section {
    direction: rtl;
    margin: 35px 0 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.trox-faq-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 22px 24px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-1);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, color-mix(in srgb, var(--main-color) 7%, var(--bg-card)), var(--bg-card));
    border-right: 4px solid var(--main-color);
    letter-spacing: -0.01em;
}

.trox-faq-item { border-bottom: 1px solid var(--border-light); }
.trox-faq-item:last-child { border-bottom: none; }

.trox-faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    color: var(--text-1);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.trox-faq-question:hover {
    background: color-mix(in srgb, var(--main-color) 5%, transparent);
    color: var(--main-color);
}

.trox-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.trox-faq-icon::after {
    content: '';
    width: 9px;
    height: 9px;
    border-left: 2.5px solid var(--main-color);
    border-bottom: 2.5px solid var(--main-color);
    transform: rotate(-45deg);
    margin-top: -3px;
    transition: transform 0.3s ease;
}

.trox-faq-item.active .trox-faq-icon::after { transform: rotate(135deg); margin-top: 3px; }

.trox-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px 0 24px;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.95;
    text-align: right;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.trox-faq-item.active .trox-faq-answer {
    max-height: 300px;
    padding: 0 60px 22px 24px;
}

/* Source Attribution */
.trox-source-ref {
    direction: rtl;
    margin: 20px 0 10px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.trox-source-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-2);
    transition: color 0.2s;
}

.trox-source-toggle:hover { color: var(--text-1); }

.trox-source-arrow {
    width: 8px;
    height: 8px;
    border-left: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-top: -2px;
}

.trox-source-ref.open .trox-source-arrow { transform: rotate(135deg); margin-top: 2px; }
.trox-source-link { display: none; padding: 0 20px 14px; }
.trox-source-ref.open .trox-source-link { display: block; }

.trox-source-link a {
    color: var(--main-color);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-word;
}

.trox-source-link a:hover { text-decoration: underline; }

/* ========================================
   Author Box - Premium Profile Card
   ======================================== */

.author-box {
    margin: 30px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.author-box-banner {
    height: 110px;
    background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 40%, #6366f1) 60%, #818cf8 100%);
    position: relative;
}

.author-box-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.author-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 30px 32px;
    margin-top: -55px;
    position: relative;
}

.author-box-avatar { margin-bottom: 14px; }
.author-box-avatar a { display: block; }

.author-box-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-box-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.author-box-name { margin-bottom: 8px; }

.author-box-name a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-1);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: -0.02em;
}

.author-box-name a:hover { color: var(--main-color); }

.author-box-role {
    display: inline-block;
    padding: 4px 18px;
    background: var(--main-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.author-box-bio {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-2);
    margin: 0 0 18px;
    max-width: 520px;
}

.author-box-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.author-box-social:empty { display: none; }

.author-box-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-2);
    transition: all 0.25s ease;
    text-decoration: none;
}

.author-box-social-link:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--main-color) 30%, transparent);
}

.author-box-social-link svg { display: block; }

.author-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 30px;
    background: var(--main-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid var(--main-color);
    letter-spacing: 0.01em;
}

.author-box-btn:hover {
    background: transparent;
    color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px color-mix(in srgb, var(--main-color) 25%, transparent);
}

.author-box-btn svg { transition: transform 0.25s ease; }
.author-box-btn:hover svg { transform: translateX(-4px); }

@media (max-width: 600px) {
    .author-box-content { padding: 0 16px 26px; }
    .author-box-banner { height: 85px; }
    .author-box-avatar img { width: 92px; height: 92px; }
    .author-box-content { margin-top: -46px; }
}

/* ========================================
   28. Micro-interactions & Polish
   ======================================== */

/* Smooth focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading shimmer */
.ratio::after,
.home-section-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.ratio img, .home-section-img img { z-index: 2; position: relative; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
