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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary, #ffffff);
    color: var(--text-primary, #333333);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-primary, #204DCC);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary-hover, #3f1fbf);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-primary, #333);
}

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

.topbar {
    background: #F7F7FC;
    color: var(--topbar-text, #000);
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.topbar-left a {
    color: var(--topbar-text, #000);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.topbar-left a:hover {
    color: var(--accent-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-right a {
    color: var(--topbar-text, #000);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.topbar-right a:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }
}

.site-header {
    background: linear-gradient(135deg, var(--header-bg, #1a1a1a) 0%, #0a0a0a 50%, var(--header-bg, #1a1a1a) 100%);
    background-size: 400% 400%;
    animation: headerGradient 20s ease-in-out infinite;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes headerGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height, 70px);
}

.site-branding .custom-logo-link img {
    max-height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-title {
    color: var(--header-text, #fff);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.main-navigation .menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.main-navigation .menu li {
    position: relative;
}

.main-navigation .menu a {
    color: var(--header-text, #fff);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation .menu a i {
    font-size: 0.95rem;
}

.main-navigation .menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fdd970;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation .menu a:hover::after,
.main-navigation .menu .current-menu-item > a::after {
    width: 60%;
}

.main-navigation .menu a:hover {
    color: #fdd970;
}

.main-navigation .menu .current-menu-item > a {
    color: #fdd970;
}

.main-navigation .menu .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.75em;
}

.main-navigation .menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg, #1a1a1a);
    min-width: 220px;
    padding: 8px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.main-navigation .menu .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.main-navigation .menu .sub-menu a {
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.main-navigation .menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text, #fff);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle .close-icon { display: none; }
.menu-toggle.active .hamburger { display: none; }
.menu-toggle.active .close-icon { display: inline; }

.close-menu-btn {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-toggle,
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--header-text, #fff);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.search-toggle:hover,
.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--header-bg, #1a1a1a);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.search-bar.active {
    max-height: 80px;
}

.search-bar .search-form {
    display: flex;
    padding: 12px 0;
}

.search-bar .search-field {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar .search-field::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-bar .search-field:focus {
    border-color: var(--accent-primary, #204DCC);
}

.search-bar .search-submit {
    background: var(--accent-primary, #204DCC);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.search-bar .search-submit:hover {
    background: var(--accent-primary-hover, #3f1fbf);
}

@media (max-width: 991px) {
    .search-toggle { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 38px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 6px;
        cursor: pointer;
        color: var(--header-text, #fff);
        font-size: 1.1rem;
        transition: border-color 0.3s ease;
    }

    .menu-toggle:hover {
        border-color: #fdd970;
    }

    .menu-toggle.active {
        border-color: #fdd970;
    }

    .header-inner {
        position: relative;
        display: flex;
        align-items: center;
    }

    .site-branding {
        order: 1;
        margin-right: auto;
    }

    .header-actions {
        order: 2;
    }

    .main-navigation {
        order: 3;
    }

    .menu-toggle {
        margin-left: 0;
    }

    .main-navigation {
        position: static;
    }

    .main-navigation .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #111;
        flex-direction: column;
        padding: 60px 0 20px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border: none;
        display: flex;
    }

    .close-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 12px;
        right: -100%;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        color: #fff;
        font-size: 1rem;
        cursor: pointer;
        z-index: 1000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
    }

    .close-menu-btn:hover {
        background: rgba(255,255,255,0.2);
    }

    .close-menu-btn.visible {
        right: 12px;
    }

    .main-navigation .menu.active {
        right: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .main-navigation .menu a {
        padding: 14px 24px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .main-navigation .menu a::after {
        bottom: auto;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        transform: translateY(-50%);
        background: #fdd970;
        border-radius: 2px;
    }

    .main-navigation .menu a:hover::after,
    .main-navigation .menu .current-menu-item > a::after {
        width: 3px;
        height: 60%;
    }

    .main-navigation .menu .menu-item-has-children > a::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .main-navigation .menu .menu-item-has-children > a.active-sub::after {
        transform: rotate(180deg);
    }

    .main-navigation .menu .sub-menu {
        position: static;
        display: none;
        background: rgba(255,255,255,0.04);
        box-shadow: none;
        border-radius: 0;
        padding: 4px 0;
        min-width: auto;
    }

    .main-navigation .menu .sub-menu.active {
        display: block;
    }

    .main-navigation .menu .sub-menu a {
        padding: 11px 24px 11px 36px;
        white-space: normal;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        opacity: 0.85;
    }
}

.page-header {
    text-align: center;
    padding: 3rem 0 3rem;
    margin-bottom: 25px;
    background: #E6E6FF;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--header-bg);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
    justify-content: flex-start;
}

.author-header-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
}

.author-header-info .page-title {
    margin-bottom: 8px;
}

.author-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.author-header-website {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-primary, #204DCC);
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    word-break: break-all;
    transition: background 0.3s ease;
}

.author-header-website:hover {
    background: var(--accent-primary-hover, #3f1fbf);
    color: #fff;
}

.author-header-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-primary, #204DCC);
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.author-header-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-description {
    color: var(--text-secondary, #747171);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--text-secondary, #747171);
}

.breadcrumbs a {
    color: var(--accent-primary, #204DCC);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    color: var(--text-secondary, #747171);
}

.main-content {
    padding: 40px 0 60px;
    display: flex;
    gap: 40px;
}

.main-content.has-sidebar .content-area {
    flex: 1;
    min-width: 0;
}

.main-content.no-sidebar .content-area {
    max-width: 800px;
    margin: 0 auto;
}

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

.article-card {
    background: var(--bg-primary, #fff);
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.08));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover, 0 12px 35px rgba(0,0,0,0.12));
}

.article-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

.article-card:hover .article-card-thumb img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary, #747171);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-category a {
    color: var(--accent-primary, #204DCC);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.article-date i {
    margin-right: 4px;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text-primary, #333);
}

.article-card-title a:hover {
    color: var(--accent-primary, #204DCC);
}

.article-card-excerpt {
    color: var(--text-secondary, #747171);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.article-read-time {
    font-size: 0.82rem;
    color: var(--text-secondary, #747171);
}

.article-read-time i {
    margin-right: 4px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary, #204DCC);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 3px;
    border-radius: 8px;
    background: var(--bg-secondary, #f7f7f7);
    color: var(--text-primary, #333);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--accent-primary, #204DCC);
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--accent-primary, #204DCC);
    color: #fff;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts i {
    font-size: 3rem;
    color: var(--accent-primary, #204DCC);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts h2 {
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--text-secondary, #747171);
}

.search-form-inline {
    display: flex;
    max-width: 400px;
    margin: 20px auto 0;
}

.search-form-inline .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #eaeaea;
    border-radius: 8px 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.search-form-inline .search-field:focus {
    border-color: var(--accent-primary, #204DCC);
}

.search-form-inline .search-submit {
    background: var(--accent-primary, #204DCC);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.breadcrumb {
    padding: 1rem 0;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-primary);
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta-item i {
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.post-meta-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.post-meta-item a:hover {
    color: var(--accent-primary);
}

.post-featured-image {
    max-width: 900px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.reading-progress-bar {
    position: fixed;
    top: var(--header-height, 70px);
    left: 0;
    height: 3px;
    background: var(--gradient-primary, linear-gradient(90deg, #204DCC, #5F18EB));
    z-index: 999;
    width: 0;
    transition: width 0.1s linear;
}

.single-article-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary, #333);
}

.single-article-content p {
    margin-bottom: 1.5em;
}

.single-article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.8em;
    scroll-margin-top: 85px;
}

.single-article-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.6em;
    scroll-margin-top: 85px;
}

.single-article-content blockquote {
    border-left: 4px solid var(--accent-primary, #204DCC);
    padding: 16px 24px;
    margin: 2em 0;
    background: var(--bg-secondary, #f7f7f7);
    border-radius: 0 var(--border-radius, 12px) var(--border-radius, 12px) 0;
    font-style: italic;
}

.single-article-content blockquote *::selection {
    background: #204DCC;
    color: #fff;
}

.single-article-content blockquote p {
    margin: 0;
}

.single-article-content img,
.single-article-content figure {
    margin: 2em 0;
    border-radius: var(--border-radius, 12px);
}

.single-article-content ul,
.single-article-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.single-article-content li {
    margin-bottom: 0.5em;
}

.single-article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--border-radius, 12px);
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 2em 0;
    position: relative;
    border: 1px solid #333;
}

.single-article-content code {
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #d63384;
}

.single-article-content pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
}

.single-article-content .code-block-wrapper {
    position: relative;
    margin: 2em 0;
}

.single-article-content .code-block-wrapper pre {
    margin: 0;
}

.single-article-content .copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #333;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-article-content .copy-code-btn:hover {
    background: #444;
    color: #fff;
    border-color: #777;
}

.single-article-content .copy-code-btn.copied {
    background: #2d7d46;
    border-color: #2d7d46;
    color: #fff;
}

.page-links {
    margin: 2em 0;
    padding: 16px;
    background: var(--bg-secondary, #f7f7f7);
    border-radius: var(--border-radius, 12px);
}

.single-article-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

.tag-label {
    font-weight: 600;
    color: var(--text-primary, #333);
    font-size: 0.9rem;
}

.tag-label i {
    margin-right: 6px;
    color: var(--accent-primary, #204DCC);
}

.tag-list a {
    display: inline-block;
    background: var(--bg-secondary, #f7f7f7);
    color: var(--text-primary, #333);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background: var(--accent-primary, #204DCC);
    color: #fff;
}

.single-article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    padding: 20px 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-primary, #333);
    font-size: 0.9rem;
    margin-right: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.reddit { background: #FF4500; }
.share-btn.pinterest { background: #E60023; }
.share-btn.telegram { background: #0088CC; }
.share-btn.email { background: #6B7280; }

.author-box {
    display: flex;
    gap: 24px;
    background: var(--bg-secondary, #f7f7f7);
    padding: 30px;
    border-radius: var(--border-radius, 12px);
    margin: 30px 0;
}

.author-box-avatar img {
    border-radius: 15px;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-box-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.author-box-name a {
    color: var(--text-primary, #333);
}

.author-box-bio {
    color: var(--text-secondary, #747171);
    font-size: 0.92rem;
    line-height: 1.6;
}

.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

.comment-respond {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-bg, #1a1a1a);
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:first-child {
    padding-top: 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
    color: var(--text-primary, #333);
    font-size: 0.95rem;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-secondary, #999);
    margin: 2px 0 8px;
}

.comment-metadata a {
    color: var(--text-secondary, #999);
    text-decoration: none;
}

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

.reply a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.reply a:hover {
    color: var(--accent-primary-hover, #3f1fbf);
}

.comment-form {
    margin-top: 32px;
    background: var(--bg-secondary, #f7f7f7);
    padding: 32px;
    border-radius: 12px;
}

.comment-reply-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--header-bg, #1a1a1a);
    margin-bottom: 8px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-primary, #204DCC);
    box-shadow: 0 0 0 4px rgba(32, 77, 204, 0.08);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-top: 0;
}

.comment-form .form-submit .submit {
    background: linear-gradient(90deg, var(--accent-primary, #204DCC), var(--accent-purple, #5F18EB));
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: auto;
}

.comment-form .form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 77, 204, 0.3);
}

.comment-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    border: none;
    box-shadow: none;
    padding: 0;
    transition: none;
}

.comment-form input[type="checkbox"]:focus {
    box-shadow: none;
    border-color: transparent;
}

.comment-form .comment-notes {
    font-size: 0.85rem;
    color: var(--text-secondary, #999);
    margin-bottom: 16px;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

.related-posts-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-primary, #204DCC);
    color: var(--header-bg, #1a1a1a);
}

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

.related-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.related-post-thumb {
    width: 100%;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.related-post-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-post-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-heading {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary, #333);
    margin: 0;
}

.related-post-card:hover .related-post-heading {
    color: var(--accent-primary);
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--text-secondary, #999);
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Widget Area */
.widget-area {
    width: 320px;
    flex-shrink: 0;
}

.widget {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-primary, #fff);
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.08));
    border: 1px solid #eaeaea;
}

.widget-title,
.widget .wp-block-heading {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-primary, #204DCC);
    position: relative;
    color: var(--header-bg, #1a1a1a);
}

.widget ul,
.widget .wp-block-latest-posts__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li,
.widget .wp-block-latest-posts__list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.widget ul li:last-child,
.widget .wp-block-latest-posts__list li:last-child {
    border-bottom: none;
}

.widget ul li a,
.widget .wp-block-latest-posts__list li a {
    color: var(--text-primary, #333);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.widget ul li a:hover,
.widget .wp-block-latest-posts__list li a:hover {
    color: var(--accent-primary, #204DCC);
}

.widget .wp-block-group__inner-container {
    padding: 0;
}

.widget .wp-block-archives-list li,
.widget .wp-block-categories-list li,
.widget .cat-item {
    justify-content: space-between;
}

.widget .wp-block-archives-list li a,
.widget .wp-block-categories-list li a,
.widget .cat-item a {
    flex: 1;
}

.widget .wp-block-archives-list li a:hover,
.widget .wp-block-categories-list li a:hover,
.widget .cat-item a:hover {
    color: var(--accent-primary, #204DCC);
    font-weight: 700;
}

.widget .cat-count,
.wda-recent-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    background: var(--accent-primary, #204DCC);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.widget ul li:hover .cat-count,
.widget ul li:hover .wda-recent-num {
    background: var(--accent-primary-hover, #3f1fbf);
    transform: scale(1.08);
}

.wda-recent-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wda-recent-list li:last-child {
    border-bottom: none;
}

.wda-recent-list .wda-recent-num {
    margin-left: 0;
    flex-shrink: 0;
}

.wda-recent-list li a {
    flex: 1;
    color: var(--text-primary, #333);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wda-recent-list li a:hover {
    color: var(--accent-primary, #204DCC);
    font-weight: 500;
}

.widget .wp-block-archives-list li a:hover,
.widget .wp-block-categories-list li a:hover,
.widget .cat-item a:hover {
    color: var(--accent-primary, #204DCC);
    font-weight: 500;
}

.widget_search .search-form,
.wp-block-search__inside-wrapper {
    display: flex;
    position: relative;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100%;
}

.widget_search .search-form label {
    flex: 1;
    display: flex;
}

.widget_search .search-field {
    width: 100%;
    min-width: 0;
}

.wp-block-search {
    width: 100%;
}

.widget_search .search-field,
.wp-block-search__input {
    flex: 1;
    padding: 13px 48px 13px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    outline: none;
    background: var(--bg-secondary, #f5f6fa);
    transition: all 0.35s ease;
    width: 100%;
    box-sizing: border-box;
}

.widget_search .search-field:focus,
.wp-block-search__input:focus {
    border-color: var(--accent-primary, #204DCC);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(32, 77, 204, 0.1), inset 0 1px 3px rgba(0,0,0,0.02);
}

.widget_search .search-field::placeholder,
.wp-block-search__input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

.widget_search .search-submit,
.wp-block-search__button {
    background: var(--accent-primary, #204DCC);
    border: none !important;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    color: transparent;
    box-shadow: 0 2px 8px rgba(32, 77, 204, 0.25);
}

.widget_search .search-submit::before,
.wp-block-search__button::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 0.9rem;
}

.widget_search .search-submit:hover,
.wp-block-search__button:hover {
    background: var(--accent-primary-hover, #3f1fbf);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 12px rgba(32, 77, 204, 0.35);
}

.widget_search .search-submit:active,
.wp-block-search__button:active {
    transform: translateY(-50%) scale(0.96);
    box-shadow: 0 1px 4px rgba(32, 77, 204, 0.2);
}

.wp-block-search__label {
    display: none;
}

.wp-block-search__button svg {
    display: none;
}

.widget.widget_search .widget-title {
    margin-bottom: 16px;
}

/* Table of Contents Widget */
.widget_toc .toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.widget_toc .toc-list ul.toc-sublist {
    list-style: none;
    padding-left: 10px;
    margin: 0;
}

.widget_toc .toc-item {
    padding: 0 !important;
    border: none !important;
    display: block !important;
}

.widget_toc .toc-item a {
    display: flex;
    align-items: center;
    padding: 7px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary, #747171);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    line-height: 1.4;
}

.widget_toc .toc-item a::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #204DCC;
    margin-right: 10px;
    flex-shrink: 0;
    pointer-events: none;
}

.widget_toc .toc-item a:hover {
    color: var(--accent-primary, #204DCC);
}


.widget_toc .toc-item.toc-level-3 a {
    font-weight: 500;
    padding-left: 0;
}

.widget_toc .toc-item.toc-level-3 a::before {
    content: '\f0a9';
    margin-right: 8px;
}

.widget_toc .toc-item a.toc-active {
    color: var(--accent-primary, #204DCC);
    font-weight: 600;
}

.widget_toc .toc-item a.toc-active::before {
    color: var(--accent-primary, #204DCC);
}

.widget_toc .toc-list > .toc-item:last-child a {
    border-bottom: none;
}



.toc-mobile {
    display: none;
}

@media (max-width: 992px) {
    .toc-mobile {
        display: block;
        margin-bottom: 30px;
    }
    .toc-mobile .widget_toc {
        margin-bottom: 0;
    }
    .widget-area .widget_toc {
        display: none;
    }
}

@media (min-width: 993px) {
    .widget-area .widget_toc {
        display: block;
    }
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: var(--bg-secondary, #f7f7f7);
    color: var(--text-primary, #333);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem !important;
    margin: 4px 4px;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--accent-primary, #204DCC);
    color: #fff;
}

@media (max-width: 992px) {
    .main-content.has-sidebar {
        flex-direction: column;
    }

    .widget-area {
        width: auto;
        margin: 0 15px;
    }

    .content-area {
        margin: 0 15px;
    }

    .post-featured-image {
        margin: 0 15px 2rem;
    }

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

    .main-content {
        padding: 30px 0 50px;
        gap: 30px;
    }

    .page-header {
        padding: 2.5rem 0 2.5rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .main-content {
        padding: 25px 0 40px;
        gap: 25px;
    }

    .articles-grid {
        margin: 0 15px;
    }

    .article-card-body {
        padding: 20px;
    }

    .article-card-title {
        font-size: 1.1rem;
    }

    .single-article-content {
        font-size: 1rem;
    }

    .single-article-content h2 {
        font-size: 1.4rem;
    }

    .single-article-content h3 {
        font-size: 1.2rem;
    }

    .single-article-content blockquote {
        padding: 14px 20px;
        margin: 1.5em 0;
    }

    .single-article-content pre {
        padding: 16px;
        margin: 1.5em 0;
    }

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

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

    .author-header-info {
        text-align: center;
    }

    .author-header-meta {
        justify-content: center;
    }

    .author-header-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .author-header-avatar img {
        width: 120px;
        height: 120px;
    }

    .author-box {
        padding: 24px;
        gap: 18px;
    }

    .comment-form {
        padding: 24px;
    }

    .widget {
        padding: 20px;
    }

    .pagination .page-numbers {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 40px 0 0;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        margin: 0 15px;
    }

    .page-header {
        padding: 1.8rem 0 1.8rem;
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-description {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 20px 0 40px;
        gap: 20px;
    }

    .single-article-content {
        font-size: 1rem;
    }

    .single-article-content h2 {
        font-size: 1.35rem;
    }

    .single-article-content h3 {
        font-size: 1.15rem;
    }

    .single-article-content pre {
        padding: 14px;
        margin: 1.5em -16px;
        border-radius: 0;
    }

    .single-article-content img,
    .single-article-content figure {
        margin: 1.5em 0;
    }

    .single-article-content blockquote {
        padding: 12px 16px;
        margin: 1.5em 0;
    }

    .post-featured-image {
        margin: 0 15px 1.5rem;
    }

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

    .author-box-avatar img {
        margin: 0 auto;
    }

    .wp-block-table {
        font-size: 0.85rem;
    }

    .wp-block-table figure {
        overflow-x: auto;
    }

    .article-card-body {
        padding: 16px;
    }

    .article-card-title {
        font-size: 1.05rem;
    }

    .article-card-excerpt {
        font-size: 0.88rem;
    }

    .article-card-meta {
        font-size: 0.78rem;
        gap: 8px;
    }

    .article-card-footer {
        padding-top: 12px;
    }

    .post-meta {
        font-size: 0.82rem;
        gap: 0.8rem;
    }



    .single-article-content ul,
    .single-article-content ol {
        padding-left: 1.2em;
    }

    .single-article-tags {
        margin: 20px 0;
        padding: 16px 0;
    }

    .tag-list {
        gap: 6px;
    }

    .single-article-share {
        flex-wrap: wrap;
        gap: 8px;
        margin: 16px 0;
        padding: 16px 0;
    }

    .share-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .author-box {
        padding: 20px;
        gap: 16px;
    }

    .related-post-body {
        padding: 12px;
    }

    .related-post-heading {
        font-size: 0.88rem;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .comment-form .form-submit .submit {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
    }

    .comment-body {
        gap: 12px;
    }

    .comment-author .avatar {
        width: 36px;
        height: 36px;
    }

    .pagination {
        margin-top: 30px;
    }

    .pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
        margin: 0 2px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .search-form-inline {
        max-width: 100%;
    }

    .error-404-number {
        font-size: 5rem;
    }

    .error-404-title {
        font-size: 1.3rem;
    }

    .no-posts {
        padding: 40px 16px;
    }

    .no-posts i {
        font-size: 2.2rem;
    }
}

/* Footer */
.site-footer {
    background: var(--footer-bg, #1a1a1a);
    color: var(--footer-text, #fff);
    padding: 60px 0 0;
    border-top: 3px solid;
    border-image: var(--gradient-primary, linear-gradient(90deg, #204DCC, #5F18EB)) 1;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column .footer-heading {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary, #204DCC);
}

.footer-site-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-menu {
    list-style: none;
}

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

.footer-menu li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-menu li a:hover {
    color: #FFD700;
    padding-left: 4px;
}

.footer-categories {
    list-style: none;
}

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

.footer-categories li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-categories li a:hover {
    color: #FFD700;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #FFD700;
    color: #333;
    transform: translateY(-2px);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: #FFD700;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent-primary, #204DCC);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
    margin-top: 40px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer-bottom-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-bottom-menu a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 992px) {
    .footer-widget-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-widget-area {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom-menu {
        justify-content: center;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--gradient-primary, linear-gradient(90deg, #204DCC, #5F18EB));
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(32, 77, 204, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(32, 77, 204, 0.4);
}

/* 404 Page */
.error-404-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.error-404-content {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.error-404-number {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary, linear-gradient(90deg, #204DCC, #5F18EB));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.error-404-title {
    font-size: 1.8rem;
    margin: 16px 0;
}

.error-404-text {
    color: var(--text-secondary, #747171);
    margin-bottom: 30px;
}

.error-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary, linear-gradient(90deg, #204DCC, #5F18EB));
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-secondary, #f7f7f7);
    color: var(--text-primary, #333);
    border: 2px solid #eaeaea;
}

.btn-secondary:hover {
    border-color: var(--accent-primary, #204DCC);
    color: var(--accent-primary, #204DCC);
    transform: translateY(-2px);
}

.error-404-search form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.error-404-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #eaeaea;
    border-radius: 8px 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.error-404-search input:focus {
    border-color: var(--accent-primary, #204DCC);
}

.error-404-search button {
    background: var(--accent-primary, #204DCC);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1rem;
}

/* Content Page */
.content-page .entry-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-page .entry-content p {
    margin-bottom: 1.5em;
}

.page-featured-image {
    margin-bottom: 30px;
}

.page-featured-image img {
    border-radius: var(--border-radius, 12px);
    width: 100%;
}

.page-comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Footer Widgets */
.footer-widget {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-widget .footer-heading {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary, #204DCC);
}

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

.footer-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.footer-widget ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary, #204DCC);
    font-size: 0.85rem;
    margin-right: 10px;
    flex-shrink: 0;
}

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

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #FFD700;
}

/* Gutenberg overrides */
.wp-block-button__link {
    border-radius: 8px !important;
}

.wp-block-image img {
    border-radius: var(--border-radius, 12px);
}

.wp-block-table {
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
}

.wp-block-separator {
    margin: 2em 0;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.5s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f7f7f7);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary, #204DCC);
    border-radius: 4px;
}

a.wda-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    margin-bottom: 25px;
    background: var(--accent-primary, #204DCC);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 0 #102577, 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.15s ease;
    position: relative;
    top: 0;
}

a.wda-btn::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', 'Font Awesome 5 Pro', FontAwesome;
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

a.wda-btn:hover {
    background: var(--accent-primary-hover, #3f1fbf);
    color: #fff;
    top: 2px;
    box-shadow: 0 2px 0 #102577, 0 4px 8px rgba(0,0,0,0.15);
}

a.wda-btn:hover::after {
    transform: translateX(3px);
}

.rc-card {
    max-width: 950px;
    margin: 30px auto;
    background: #fff;
    border-radius: 20px;
    display: flex;
    border: 1px solid #e0e8f0;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: .3s;
}

.rc-card:hover {
    transform: translateY(-4px);
}

.rc-card p {
    margin-bottom: 0;
}

.rc-logo {
    width: 280px;
    min-width: 280px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    border-right: 1px solid #eee;
    border-radius: 20px 0 0 20px;
}

.rc-logo img {
    width: 100%;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

.rc-body {
    flex: 1;
    padding: 30px;
}

.rc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.rc-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    margin-top: -15px;
}

.rc-stars .fas.fa-star,
.rc-stars .fas.fa-star-half-alt {
    color: #f59e0b;
    font-size: 0.95rem;
}

.rc-stars .far.fa-star {
    color: #d1d5db;
    font-size: 0.95rem;
}

.rc-rating-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-left: 5px;
}

.rc-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px;
}

.rc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 25px;
    padding: 0;
}

.rc-list li {
    display: flex;
    align-items: center;
    color: #444;
    font-size: 15px;
}

.rc-list li::before {
    content: "✓";
    width: 22px;
    height: 22px;
    background: #e8f8ee;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .rc-card {
        flex-direction: column;
    }

    .rc-logo {
        width: 100%;
        min-width: 100%;
        height: 220px;
        border-right: none;
        border-bottom: 1px solid #eee;
        border-radius: 20px 20px 0 0;
    }

    .rc-logo img {
        max-width: 140px;
        max-height: 140px;
    }

    .rc-body {
        padding: 25px;
    }

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

    .rc-list {
        grid-template-columns: 1fr;
    }
}

.wda-faq-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-primary, #fff);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.08));
}

.wda-faq-heading {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-primary, #204DCC);
    color: var(--header-bg, #1a1a1a);
}

.wda-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wda-faq-item-front {
    border-bottom: 1px solid #f0f0f0;
}

.wda-faq-item-front:last-child {
    border-bottom: none;
}

.wda-faq-q {
    padding: 16px 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary, #222);
}

.wda-faq-a {
    padding: 0 0 16px;
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
    line-height: 1.7;
}

.wda-faq-a p {
    margin: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary-hover, #3f1fbf);
}
