/*
Theme Name: Keonah Football Pro
Theme URI: https://example.com/keonah
Author: xiaoxin
Author URI: https://example.com
Description: A professional, data-dense football betting theme.
Version: 2.1
License: GNU General Public License v2 or later
Text Domain: keonah
*/

:root {
    --brand-dark: #0f172a;    
    --brand-primary: #00897b; 
    --brand-accent: #f59e0b;  
    --brand-red: #ef4444;     
    
    --bg-body: #f1f5f9;       
    --bg-card: #ffffff;
    
    --text-main: #334155;     
    --text-light: #64748b;    
    
    --header-height: 64px;
    --nav-height: 52px;       
}

* { box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    margin: 0; padding: 0; 
    background-color: var(--bg-body);
    color: var(--text-main); 
    font-size: 14px;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

header.site-header { 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky; top: 0; z-index: 9999;
}

.header-top-strip { background: #000; color: #94a3b8; font-size: 11px; padding: 6px 0; border-bottom: 1px solid #1e293b; }
.header-top-strip .container { display: flex; justify-content: space-between; }

.header-main { background: var(--brand-dark); height: var(--header-height); color: #fff; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

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

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.85;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.logo-text span {
    color: var(--brand-accent);
}

.header-search { flex: 1; max-width: 420px; position: relative; margin: 0 30px; }
.search-field { width: 100%; background: #1e293b; border: 1px solid #334155; color: #fff; padding: 9px 15px; border-radius: 6px; font-size: 13px; transition: all 0.2s; }
.search-field:focus { border-color: var(--brand-primary); background: #0f172a; box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.2); }
.search-submit { position: absolute; right: 8px; top: 8px; background: none; border: none; color: #64748b; cursor: pointer; }

.header-actions { display: flex; gap: 20px; align-items: center; }
.action-btn { display: flex; flex-direction: column; align-items: center; color: #94a3b8; font-size: 10px; font-weight: 600; letter-spacing: 0.5px; transition: color 0.2s; }
.action-btn i { font-size: 18px; margin-bottom: 4px; color: var(--brand-accent); transition: transform 0.2s; }
.action-btn:hover { color: #fff; }
.action-btn:hover i { transform: translateY(-2px); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
    transition: opacity 0.2s;
}
.mobile-toggle:hover { opacity: 0.7; }

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    transition: all 0.2s;
}
.mobile-menu-close:hover {
    color: var(--brand-primary);
    transform: rotate(90deg);
}

body.menu-open {
    overflow: hidden;
}

.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.nav-links > ul,
.nav-links > div > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links > ul > li,
.nav-links > div > ul > li {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links > ul > li > a,
.nav-links > div > ul > li > a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    position: relative;
    white-space: nowrap;
}

.nav-links > ul > li.menu-item-has-children > a,
.nav-links > div > ul > li.menu-item-has-children > a {
    position: relative;
    padding-right: 28px !important;
}

.nav-links > ul > li.menu-item-has-children > a::after,
.nav-links > div > ul > li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.nav-links > ul > li.menu-item-has-children:hover > a::after,
.nav-links > div > ul > li.menu-item-has-children:hover > a::after {
    opacity: 1;
    border-top-color: var(--brand-primary);
}

.nav-links > ul > li:hover > a,
.nav-links > div > ul > li:hover > a,
.nav-links > ul > li.current-menu-item > a,
.nav-links > div > ul > li.current-menu-item > a {
    background: #f1f5f9;
    color: var(--brand-primary);
}

.nav-links ul ul,
.nav-links .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    z-index: 1000;
    padding: 8px 0;
    margin: 0;
    margin-top: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    visibility: hidden;
    pointer-events: none;
}

.nav-links > ul > li.menu-item-has-children,
.nav-links > div > ul > li.menu-item-has-children {
    position: relative;
}

.nav-links li.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -5px;
    background: transparent;
    z-index: 999;
    pointer-events: auto;
}

.nav-links li.menu-item-has-children:hover > ul,
.nav-links li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.nav-links ul ul:hover,
.nav-links .sub-menu:hover {
    opacity: 1;
    visibility: visible;
}

.nav-links ul ul::after,
.nav-links .sub-menu::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    z-index: 1001;
}

.nav-links ul ul li,
.nav-links .sub-menu li {
    height: auto;
    display: block;
}

.nav-links ul ul a,
.nav-links .sub-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    text-transform: none;
    display: block;
    border-radius: 0;
    height: auto;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links ul ul a:hover,
.nav-links .sub-menu a:hover {
    background: linear-gradient(90deg, #f0fdfa 0%, #f8fafc 100%);
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
    padding-left: 24px;
}

.nav-links ul ul li:not(:last-child),
.nav-links .sub-menu li:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.nav-links ul ul li.current-menu-item > a,
.nav-links .sub-menu li.current-menu-item > a {
    background: #f0fdfa;
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
    font-weight: 600;
}

@media (min-width: 993px) {
    .nav-links ul ul,
    .nav-links .sub-menu {
        display: block !important;
    }
}

.main-content { padding: 25px 0; min-height: 80vh; }
.single-column { 
    max-width: 1200px; margin: 0 auto; 
    background: var(--bg-card); 
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden; 
}

.section-title-bar {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: 15px 25px; display: flex; align-items: center; justify-content: space-between;
}
.section-title-bar h1 {
    font-size: 18px; margin: 0; color: var(--brand-dark); font-weight: 800; text-transform: uppercase;
    display: flex; align-items: center; letter-spacing: 0.5px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    padding: 10px 0; 
}

.article-content h2 { 
    font-size: 24px; 
    color: var(--brand-dark); 
    margin-top: 35px; 
    margin-bottom: 20px; 
    font-weight: 800;
    position: relative; 
    padding-left: 18px;
    letter-spacing: -0.5px;
}
.article-content h2::before {
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 6px; 
    bottom: 6px; 
    width: 6px; 
    background: var(--brand-accent); 
    border-radius: 3px;
}
.article-content h3 {
    font-size: 20px;
    color: var(--brand-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}
.article-content p { 
    font-size: 16px; 
    color: #475569; 
    margin-bottom: 20px; 
    text-align: justify; 
    line-height: 1.8; 
}
.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
    color: #475569;
}
.article-content li {
    margin-bottom: 12px;
}

.table-responsive { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; margin: 25px 0; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { background: #f1f5f9; color: #475569; font-weight: 600; padding: 12px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; color: #1e293b; font-size: 14px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.6);
    height: 100%; 
}

.post-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
    border-color: rgba(226, 232, 240, 0.8);
}

.post-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px; 
    overflow: hidden;
    background: #e2e8f0;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.post-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: #fff;
    font-size: 20px;
    background: var(--brand-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-card:hover .thumbnail-overlay i {
    transform: scale(1);
}

.post-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    margin-bottom: 12px;
}

.post-card-category a {
    display: inline-block;
    background: #f0fdfa; 
    color: var(--brand-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.post-card-category a:hover {
    background: var(--brand-primary);
    color: #fff;
}

.post-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.post-card-title a {
    color: var(--brand-dark);
    text-decoration: none;
    background-image: linear-gradient(to right, var(--brand-primary), var(--brand-primary));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s, color 0.2s;
    padding-bottom: 2px;
}

.post-card:hover .post-card-title a {
    color: var(--brand-primary);
    background-size: 100% 2px;
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    margin-top: auto; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.post-card-meta i {
    color: var(--brand-primary);
    margin-right: 5px;
}

.site-footer { background: #0f172a; color: #94a3b8; margin-top: 60px; font-size: 13px; border-top: 4px solid var(--brand-primary); }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 50px 0; border-bottom: 1px solid #1e293b; }
.widget-title { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.5px; }
.footer-links-list li { border-bottom: 1px solid #1e293b; padding: 8px 0; }
.footer-links-list a:hover { color: var(--brand-primary); padding-left: 5px; }

.footer-main-logo {
    margin-bottom: 25px;
}

.footer-main-logo .logo-text {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-main-logo .logo-text:hover {
    color: var(--brand-primary);
}

.footer-main-logo .logo-text span {
    color: var(--brand-primary);
    margin: 0 3px;
}

.footer-main-logo .custom-logo-link img {
    max-height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.footer-main-logo .custom-logo-link:hover img {
    opacity: 0.8;
}

.site-info { background: #020617; padding: 30px 0 20px; }

.footer-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 30px;
    margin-bottom: 25px;
    border-bottom: 1px solid #1e293b;
}

.footer-bottom-col {
    text-align: left;
}

.footer-bottom-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links li {
    margin-bottom: 10px;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-bottom-links a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

.copyright-row {
    text-align: center;
}

.copyright-text {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 992px) {
    
    .header-search, .header-actions span { display: none; }

    .mobile-toggle {
        display: block !important;
        margin-left: auto;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        left: auto;
        z-index: 11;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 10000;
        padding-top: 0;
    }

    .main-nav::after {
        content: 'MENU';
        display: block;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        padding: 18px 20px;
        background: var(--brand-dark);
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: 2px;
        border-bottom: 3px solid var(--brand-primary);
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .main-nav .nav-links {
        width: 100%;
        padding-top: 55px;
    }

    .nav-links > ul,
    .nav-links > div > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links > ul > li,
    .nav-links > div > ul > li {
        height: auto;
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
        display: block;
        margin: 0;
    }

    .nav-links > ul > li > a,
    .nav-links > div > ul > li > a {
        padding: 16px 20px;
        height: auto;
        border-radius: 0;
        font-size: 15px;
        font-weight: 600;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-main);
        background: transparent;
        transition: background 0.2s ease;
    }

    .nav-links > ul > li > a:active,
    .nav-links > div > ul > li > a:active {
        background: #f8fafc;
    }

    .nav-links > ul > li.current-menu-item > a,
    .nav-links > div > ul > li.current-menu-item > a {
        color: var(--brand-primary);
        background: #f0fdfa;
    }

    .nav-links li.menu-item-has-children::before {
        display: none;
    }

    .nav-links li.menu-item-has-children > a::after {
        position: static;
        margin-left: auto;
        transform: translateY(0) rotate(0deg);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        transition: transform 0.3s ease;
    }

    .nav-links li.menu-item-has-children.submenu-open > a::after {
        transform: rotate(180deg);
    }

    .nav-links ul ul,
    .nav-links .sub-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #f8fafc;
        padding: 0;
        width: 100%;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: none !important;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .menu-item-has-children.submenu-open > ul,
    .menu-item-has-children.submenu-open > .sub-menu {
        max-height: 600px;
        opacity: 1;
    }

    .nav-links ul ul::after,
    .nav-links .sub-menu::after {
        display: none !important;
    }

    .nav-links ul ul li,
    .nav-links .sub-menu li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
        margin: 0;
    }

    .nav-links ul ul li:last-child,
    .nav-links .sub-menu li:last-child {
        border-bottom: none;
    }

    .nav-links ul ul a,
    .nav-links .sub-menu a {
        padding: 14px 20px 14px 40px;
        font-size: 14px;
        font-weight: 500;
        border-left: none !important;
        background: transparent;
        width: 100%;
        display: flex;
        align-items: center;
        color: var(--text-light);
        transition: all 0.2s ease;
        position: relative;
    }

    .nav-links ul ul a::before,
    .nav-links .sub-menu a::before {
        content: '';
        position: absolute;
        left: 20px;
        width: 4px;
        height: 4px;
        background: var(--text-light);
        border-radius: 50%;
        opacity: 0.5;
    }

    .nav-links ul ul a:active,
    .nav-links .sub-menu a:active {
        background: #e2e8f0;
        color: var(--brand-primary);
    }

    .nav-links ul ul a:active::before,
    .nav-links .sub-menu a:active::before {
        background: var(--brand-primary);
        opacity: 1;
    }

    .nav-links ul ul li.current-menu-item > a,
    .nav-links .sub-menu li.current-menu-item > a {
        color: var(--brand-primary);
        font-weight: 600;
    }

    .nav-links ul ul li.current-menu-item > a::before,
    .nav-links .sub-menu li.current-menu-item > a::before {
        background: var(--brand-primary);
        opacity: 1;
    }

    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    .container{
        padding: 0 5px;
    }
    .footer-widgets { grid-template-columns: 1fr; }

    .footer-about-col {
        text-align: center;
        padding-bottom: 30px;
        border-bottom: 1px solid #1e293b;
        margin-bottom: 30px;
    }

    .footer-main-logo .logo-text {
        font-size: 28px;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-bottom-grid {
        grid-template-columns: 1fr;
    }
    .header-actions { gap: 10px; }
    .action-btn { font-size: 9px; }
    .action-btn i { font-size: 16px; }

    .footer-bottom-col {
        text-align: center;
    }

    .footer-main-logo .logo-text {
        font-size: 24px;
    }

    .footer-main-logo .custom-logo-link img {
        max-height: 50px;
    }

    .logo-text { font-size: 20px; }
    .custom-logo {
        max-height: 45px;
        max-width: 150px;
    }
}

.collapsible-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collapsible-wrapper.collapsed {
    max-height: var(--max-height, 600px);
}

.collapsible-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 5;
}

.toggle-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: -20px; 
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.expand-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 35px;
    background: #fff;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expand-trigger-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 137, 123, 0.2);
    transform: translateY(-2px);
}

.expand-trigger-btn i {
    transition: transform 0.3s ease;
}

.expand-trigger-btn.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.expand-trigger-btn.active i {
    transform: rotate(180deg);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    align-items: start;
}

.main-content-area {
    min-width: 0; 
}

.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--brand-primary);
    font-size: 20px;
}

.widget-content {
    font-size: 14px;
}

.sidebar-search-form {
    margin: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #00695c;
    transform: translateY(-50%) scale(1.05);
}

.popular-posts-list,
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.popular-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 14px;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.popular-post-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-post-meta i {
    color: var(--brand-primary);
}

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

.category-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s;
}

.category-item a:hover {
    color: var(--brand-primary);
    padding-left: 8px;
}

.category-name {
    flex: 1;
}

.category-count {
    background: #f1f5f9;
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.category-item a:hover .category-count {
    background: var(--brand-primary);
    color: #fff;
}

.recent-post-item {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.recent-post-item a {
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s;
    line-height: 1.4;
}

.recent-post-item a i {
    color: var(--brand-primary);
    margin-top: 2px;
    font-size: 12px;
}

.recent-post-item a:hover {
    color: var(--brand-primary);
    padding-left: 8px;
}

.recent-post-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    padding-left: 20px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f1f5f9;
    color: var(--text-main);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

.tag-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
}

.archive-page-wrapper {
    padding: 30px 0 60px;
    background: var(--bg-body);
}

.archive-header {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--brand-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.archive-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.archive-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}

.archive-title-wrap {
    flex: 1;
}

.archive-title {
    font-size: 32px;
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-title i {
    font-size: 28px;
    color: var(--brand-accent);
}

.archive-description {
    color: #cbd5e1;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.archive-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.stat-item {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--brand-accent);
    font-size: 16px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.post-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.post-card-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: #fff;
    font-size: 24px;
    background: var(--brand-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.post-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #00695c 100%);
}

.post-card-no-image i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.post-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    margin-bottom: 12px;
}

.post-card-category a {
    display: inline-block;
    background: #ecfdf5;
    color: var(--brand-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.post-card-category a:hover {
    background: var(--brand-primary);
    color: #fff;
}

.post-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
}

.post-card-title a {
    color: var(--brand-dark);
    font-weight: 700;
    transition: color 0.2s;
}

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

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

.post-card-meta {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: var(--text-light);
}

.meta-date,
.meta-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-date i,
.meta-author i {
    color: var(--brand-primary);
    font-size: 13px;
}

.archive-posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.archive-post-item {
    background: var(--bg-card);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
}

.archive-post-thumbnail {
    flex-shrink: 0;
    flex-basis: 320px; 
    min-width: 280px;
    max-width: 400px;
    aspect-ratio: 16 / 9; 
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 0;
}

@supports not (aspect-ratio: 16 / 9) {
    .archive-post-thumbnail {
        height: 0;
        padding-top: 56.25%;
    }

    .archive-post-thumbnail a {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

.archive-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.archive-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.thumbnail-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

.archive-post-content {
    flex: 1;
    padding: 25px 25px 25px 0;
    display: flex;
    flex-direction: column;
}

.archive-post-meta-top {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0;
    text-decoration: none;
}

.post-category:hover {
    text-decoration: underline;
}

.archive-post-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.archive-post-title a {
    color: var(--brand-dark);
    text-decoration: none;
}

.archive-post-title a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.archive-post-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-post-excerpt mark {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.archive-post-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.archive-post-meta span {
    display: flex;
    align-items: center;
}

.archive-post-meta .meta-author {
    margin-right: auto;
}

.archive-post-meta .meta-comments {
    margin-right: auto;
    margin-left: 0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    gap: 4px;
    white-space: nowrap; 
}

.read-more-btn:hover {
    color: #00695c;
}

.archive-pagination {
    margin-top: 50px;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    gap: 6px;
}

.archive-pagination .page-numbers:hover {
    background: var(--brand-primary);
    color: #fff;
}

.archive-pagination .page-numbers.current {
    background: var(--brand-primary);
    color: #fff;
}

.archive-pagination .page-numbers.dots {
    background: transparent;
    pointer-events: none;
}

.no-posts-found {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: 12px;
}

.no-posts-found i {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-posts-found h3 {
    font-size: 24px;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.no-posts-found p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back-home:hover {
    background: #00695c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

.single-post-wrapper {
    padding: 30px 0 60px;
    background: var(--bg-body);
}

.single-article {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.breadcrumb-nav {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-light);
    transition: color 0.2s;
}

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

.breadcrumb-nav i.fa-chevron-right {
    font-size: 10px;
    opacity: 0.5;
}

.breadcrumb-nav span {
    color: var(--brand-primary);
    font-weight: 600;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-categories {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #00695c 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

.entry-title {
    font-size: 36px;
    line-height: 1.3;
    color: var(--brand-dark);
    margin: 0 0 20px 0;
    font-weight: 800;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.meta-item i {
    color: var(--brand-primary);
    font-size: 16px;
}

.meta-item strong {
    color: var(--text-main);
}

.entry-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

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

.share-facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0c8cd6;
    transform: translateY(-3px);
}

.share-linkedin {
    background: #0077b5;
}

.share-linkedin:hover {
    background: #005f92;
    transform: translateY(-3px);
}

.entry-featured-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #5b21b6 100%);
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.toc-header i.fa-list-ul {
    font-size: 20px;
    color: #fbbf24;
}

.toc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    color: #fff;
}

.toc-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toc-toggle i {
    color: #fff;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.table-of-contents.collapsed .toc-toggle i {
    transform: rotate(180deg);
}

.toc-list {
    padding: 20px 24px;
    transition: all 0.3s ease;
    max-height: 600px;
    overflow-y: auto;
    counter-reset: toc-h1 toc-h2 toc-h3;
}

.table-of-contents.collapsed .toc-list {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
}

.toc-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
}

.toc-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    padding-left: 0;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    border-left: 3px solid transparent;
    padding-left: 16px;
    margin-left: -16px;
    transition: all 0.2s ease;
    position: relative;
}

.toc-item a:hover {
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
    padding-left: 20px;
}

.toc-h1 {
    counter-increment: toc-h1;
    counter-reset: toc-h2;
}

.toc-h1 a {
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-dark);
}

.toc-h1 a::before {
    content: counter(toc-h1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-h2 {
    padding-left: 20px;
    counter-increment: toc-h2;
    counter-reset: toc-h3;
}

.toc-h2 a {
    font-weight: 600;
    font-size: 15px;
}

.toc-h2 a::before {
    content: counter(toc-h1) "." counter(toc-h2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 6px;
}

.toc-h3 {
    padding-left: 40px;
    counter-increment: toc-h3;
}

.toc-h3 a {
    font-size: 14px;
    color: #64748b;
}

.toc-h3 a::before {
    content: counter(toc-h1) "." counter(toc-h2) "." counter(toc-h3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 24px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 6px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
}

@media (max-width: 768px) {
    .table-of-contents {
        margin: 20px 0;
    }

    .toc-title {
        font-size: 16px;
    }

    .toc-list {
        padding: 16px 20px;
        max-height: 400px;
    }

    .toc-h2 {
        padding-left: 15px;
    }

    .toc-h3 {
        padding-left: 30px;
    }

    .toc-item a {
        font-size: 14px;
        padding: 8px 0;
        gap: 8px;
    }

    .toc-h1 a::before {
        min-width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .toc-h2 a::before {
        min-width: 32px;
        height: 22px;
        font-size: 12px;
    }

    .toc-h3 a::before {
        min-width: 38px;
        height: 22px;
        font-size: 11px;
    }
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.entry-content h2 {
    font-size: 28px;
    color: var(--brand-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: var(--brand-primary);
    border-radius: 3px;
}

.entry-content h3 {
    font-size: 22px;
    color: var(--brand-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.entry-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #00695c;
    text-decoration: underline;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8fafc;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.entry-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-tags i {
    color: var(--brand-primary);
    font-size: 18px;
}

.entry-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: var(--text-main);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.entry-tags a:hover {
    background: var(--brand-primary);
    color: #fff;
}

.author-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 2px solid #e2e8f0;
}

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

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    color: var(--brand-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-name i {
    color: var(--brand-primary);
    font-size: 16px;
}

.author-bio {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.post-navigation {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.nav-previous,
.nav-next {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.15);
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--brand-primary);
}

.nav-next {
    text-align: right;
}

.nav-next .nav-subtitle {
    justify-content: flex-end;
}

.related-posts-fullwidth {
    margin-top: 50px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-title-fullwidth {
    font-size: 28px;
    color: var(--brand-dark);
    margin-bottom: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--brand-primary);
}

.related-title-fullwidth i {
    color: var(--brand-primary);
    font-size: 26px;
}

.related-grid-fullwidth {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.related-card-fullwidth {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card-fullwidth:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.related-card-thumbnail-fullwidth {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.related-card-thumbnail-fullwidth img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card-fullwidth:hover .related-card-thumbnail-fullwidth img {
    transform: scale(1.1);
}

.related-card-thumbnail-fullwidth .thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card-fullwidth:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: #fff;
    font-size: 24px;
    background: var(--brand-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.related-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #00695c 100%);
}

.related-card-no-image i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

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

.related-card-category {
    margin-bottom: 10px;
}

.related-card-category a {
    display: inline-block;
    background: #ecfdf5;
    color: var(--brand-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.related-card-category a:hover {
    background: var(--brand-primary);
    color: #fff;
}

.related-card-title-fullwidth {
    font-size: 17px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex: 1;
}

.related-card-title-fullwidth a {
    color: var(--brand-dark);
    font-weight: 700;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-title-fullwidth a:hover {
    color: var(--brand-primary);
}

.related-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-meta-fullwidth {
    font-size: 12px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.related-card-meta-fullwidth .meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-card-meta-fullwidth i {
    color: var(--brand-primary);
}

@media (max-width: 992px) {
    
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .main-content-area {
        order: 1;
    }

    .archive-header {
        padding: 30px 20px;
    }

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

    .archive-post-item {
        flex-direction: column;
    }

    .archive-post-thumbnail {
        flex-basis: auto;
        min-width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .archive-post-content {
        padding: 20px;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .single-article {
        padding: 30px 20px;
    }

    .entry-title {
        font-size: 28px;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

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

    .related-posts-fullwidth {
        padding: 30px 20px;
    }

    .related-grid-fullwidth {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .archive-header-content {
        flex-direction: column;
        text-align: center;
    }

    .archive-title {
        font-size: 22px;
    }

    .archive-post-title {
        font-size: 18px;
    }

    .archive-post-excerpt {
        font-size: 13px;
    }

    .archive-post-meta {
        font-size: 11px;
        gap: 10px;
    }

    .read-more-btn {
        font-size: 12px;
    }

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

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

    .entry-content {
        font-size: 15px;
    }

    .meta-items {
        flex-direction: column;
        gap: 10px;
    }

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

    .related-title-fullwidth {
        font-size: 22px;
    }

    .nav-next {
        text-align: left;
    }

    .nav-next .nav-subtitle {
        justify-content: flex-start;
    }
}

.search-page-wrapper {
    padding: 30px 0 60px;
    background: var(--bg-body);
}

.search-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.search-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.search-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.search-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}

.search-title-wrap {
    flex: 1;
}

.search-title {
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.search-query {
    color: #fbbf24;
    font-style: italic;
}

.search-stats {
    display: flex;
    gap: 15px;
}

.search-stats .stat-item {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
}

.stat-item i {
    font-size: 16px;
}

.stat-item.no-results {
    background: rgba(239, 68, 68, 0.2);
}

.search-form-wrapper {
    position: relative;
    z-index: 1;
}

.search-page-form {
    margin: 0;
}

.search-input-group {
    display: flex;
    gap: 12px;
    max-width: 800px;
}

.search-field-large {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
}

.search-field-large:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.search-submit-large {
    padding: 16px 32px;
    background: #fbbf24;
    color: var(--brand-dark);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-submit-large:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.search-pagination {
    margin-top: 40px;
}

.search-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    gap: 6px;
}

.search-pagination .page-numbers:hover {
    background: var(--brand-primary);
    color: #fff;
}

.search-pagination .page-numbers.current {
    background: var(--brand-primary);
    color: #fff;
}

.no-search-results {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.no-results-icon {
    font-size: 100px;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.no-search-results h3 {
    font-size: 28px;
    color: var(--brand-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.no-search-results > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-search-results strong {
    color: var(--brand-primary);
}

.search-suggestions {
    background: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h4 {
    font-size: 18px;
    color: var(--brand-dark);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-suggestions h4 i {
    color: #fbbf24;
    font-size: 20px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 8px 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestions li::before {
    content: '→';
    color: var(--brand-primary);
    font-weight: 700;
}

.popular-categories {
    margin-bottom: 40px;
}

.popular-categories h4 {
    font-size: 18px;
    color: var(--brand-dark);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popular-categories h4 i {
    color: var(--brand-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.category-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-box:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.15);
}

.category-box i {
    font-size: 32px;
    color: var(--brand-primary);
}

.cat-name {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 15px;
}

.cat-count {
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .search-header {
        padding: 30px 20px;
    }

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

    .search-input-group {
        flex-direction: column;
    }

    .search-submit-large {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .search-header-content {
        flex-direction: column;
        text-align: center;
    }

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

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .no-search-results {
        padding: 40px 20px;
    }

    .no-results-icon {
        font-size: 70px;
    }
}

.entry-content .wp-block-image figure,
.article-content .wp-block-image figure,
.entry-content figure.wp-block-image,
.article-content figure.wp-block-image {
    margin: 30px auto;
    display: table; 
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    background-color: #f8fafc; 
    border: 1px solid #e2e8f0;
}

.entry-content .wp-block-image figure img,
.article-content .wp-block-image figure img,
.entry-content figure.wp-block-image img,
.article-content figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px 8px 0 0; 
}

.entry-content .wp-block-image figure figcaption,
.article-content .wp-block-image figure figcaption,
.entry-content figcaption,
.article-content figcaption {
    display: block;
    background-color: #adadad; 
    color: #64748b; 
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 15px;
    text-align: center;
    margin-bottom: unset;
    margin-top: unset;
    border-top: 1px solid #e2e8f0; 
    font-style: italic;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; 
}

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
