/*--------------------------------------------------
Theme Name: AkfoBlog Modern Lite
Theme URI: https://blog.akfo.my.id/
Author: Akmal Khair
Author URI: https://www.instagram.com/akmalkhair248
Description: Tema eksklusif untuk AkfoBlog — dirancang dengan desain modern, ringan, dan sepenuhnya responsif. Cocok untuk menyajikan konten seputar teknologi, gaya hidup digital, serta artikel informatif lainnya secara elegan dan optimal.
Version: 1.0.0
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --base-sdb: #11121a;
    --line-sdb: #42434a;
    --hover-sdb: #222533;
    --text-sdb: #e6e6ef;
    --accent-sdb: #3b82f6;
    --secondary-text-sdb: #b0b3c1;
    --section-bg: #181a23;
}

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

html {
    font-family: Poppins, 'Segoe UI';
    line-height: 1.6;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-sdb) var(--base-sdb);
}

body {
    background-color: var(--base-sdb);
    color: var(--text-sdb);
    min-width: 0;
    overflow-x: hidden;
}

a {
    color: var(--accent-sdb);
}

button.to-top {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    border: 0;
    color: var(--text-color);
    text-align: center;
    padding: 0 10px;
    background-color: rgba(0, 0, 0, 0);
    font-size: 20px;
}

/* Custom Icon untuk Logo */
.fa-akfo-brand {
    display: inline-block;
    width: 3em;
    height: 1em;
    background-image: url('./assets/img/logo-brand.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.fa-akfo {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('./assets/img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.fa-akfo-white {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('./assets/img/logo-white.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}


/* Navigation Styles */
nav {
    background: rgba(17, 18, 26, 0.7);
    /* background: rgba(17, 18, 26, 0.1); */
    /* background: linear-gradient(135deg, rgba(17, 18, 26, 0.95) 0%, rgba(34, 37, 51, 0.95) 100%); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* border-bottom: 1px solid var(--line-sdb); */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-sdb);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 1001;
}

.logo i {
    color: var(--accent-sdb);
}

.logo span {
    color: var(--accent-sdb);
}

/* Main Navigation */
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0 2rem 1rem;
    justify-content: center;
    position: relative;
}

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

.nav-links>li>a {
    color: var(--text-sdb);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links>li>a:hover {
    color: var(--accent-sdb);
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-sdb);
    transition: width 0.3s ease;
}

.nav-links>li>a:hover::after {
    width: 100%;
}

.nav-links>li>a .fa-chevron-down {
    margin-right: 5px;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--section-bg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--line-sdb);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.nav-links>li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    color: var(--secondary-text-sdb);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    color: var(--accent-sdb);
}

/* Sub-dropdown Menu */
.sub-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    right: auto;
    background-color: var(--section-bg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--line-sdb);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.sub-dropdown-menu.left {
    left: auto;
    right: 100%;
    transform: translateX(-10px);
}

.dropdown-menu li:hover .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu li:hover .sub-dropdown-menu.left {
    transform: translateX(0);
}

.dropdown-menu li a .fa-chevron-right {
    transition: transform 0.3s ease;
    margin-right: 5px;
    margin-left: 5px;
}

.dropdown-menu li a .fa-chevron-right.left {
    transform: rotate(180deg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-sdb);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 100;
    background: transparent;
    border: none;
    outline: none;
}

.hamburger-inner {
    display: block;
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-sdb);
    border-radius: 4px;
    left: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-sdb);
    border-radius: 4px;
    left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.hamburger.open .hamburger-inner {
    transform: rotate(135deg);
    /* background: var(--primary); */
}

.hamburger.open .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
    /* background: var(--primary); */
}

.hamburger.open .hamburger-inner::after {
    bottom: 0;
    transform: rotate(90deg);
    opacity: 0;
}

/* Mobile Navigation Styles */
@media (max-width: 850px) {
    nav {
        flex-direction: column;
    }

    .nav-links {
        position: fixed;
        padding-top: 200px;
        top: 70px;
        right: -100vw;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background-color: var(--base-sdb);
        padding: 2rem 1.5rem;
        height: calc(100vh - 70px);
        overflow-y: auto;
        width: 100vw;
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(-100vw);
    }

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

    .nav-links>li>a {
        padding: 0.8rem;
        justify-content: space-between;
        font-size: 0.9rem;
    }

    .nav-links>li>a::after {
        display: none;
    }

    .dropdown-menu,
    .sub-dropdown-menu {
        position: static;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: unset;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        background-color: transparent;
    }

    .dropdown-menu.active,
    .sub-dropdown-menu.active {
        max-height: 1000px;
    }

    .dropdown-menu li a {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .hamburger {
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(17, 18, 26, 0.7);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .single-post-container {
        flex-direction: column-reverse !important;
    }
}

/* Very small screens (below 300px) */
@media (max-width: 300px) {
    .nav-links {
        padding: 1rem;
    }

    .nav-links>li>a {
        font-size: 0.8rem;
        padding: 0.6rem 0;
    }

    .dropdown-menu li a {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        font-size: 1.2rem;
    }
}

@media (min-width: 851px) {
    nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links {
        padding: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-links {
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .nav-links {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .logo {
        font-size: 1.3rem;
    }
}


/* Blog Hero */
.blog-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 18, 26, 0.9) 100%);
}

.blog-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.1rem;
    color: var(--secondary-text-sdb);
    margin-bottom: 2rem;
}

/* Single Post Content */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    /* grid-template-columns: 1fr 300px; */
    flex-direction: row;
    gap: 3rem;
}

.single-post-content {
    background-color: var(--section-bg);
    border-radius: 1rem;
    padding: 3rem;
    border: 1px solid var(--line-sdb);
}

.post-header {
    margin-bottom: 2rem;
}

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

.post-meta .post-category {
    background-color: var(--accent-sdb);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem;
    color: var(--text-sdb);
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--line-sdb);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--secondary-text-sdb);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--secondary-text-sdb);
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    overflow: auto;
    background-color: var(--base-sdb);
    border-radius: 10px;
    border: 10px solid transparent;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--secondary-text-sdb);
}

blockquote p {
    margin: 0 !important;
}

pre {
    display: block;
    margin: 10px 0;
    text-shadow: 0 0 .1px rgba(255, 255, 255, .5);
    background: 0 0 !important;
}

pre>code {
    display: block;
    overflow-x: auto;
    padding: 1em;
    color: #fff;
    line-height: 1.2;
    background-color: var(--base-sdb);
    border: 1px solid rgba(127, 127, 127, .4);
    border-radius: 10px;
}

code {
    max-width: 50vw;
    margin-bottom: 0 !important;
    font-size: 100%;
    background: rgba(127, 127, 127, .15);
    padding: 1px 3px;
    border-radius: 5px;
    color: #cd5c81;
    font-family: monospace;
    vertical-align: middle;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Table of Contents */
.toc-container {
    background-color: var(--section-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--line-sdb);
}

.toc-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toc-title i {
    color: var(--accent-sdb);
    transition: transform 0.3s ease;
}

.toc-title.collapsed i {
    transform: rotate(-90deg);
}

.toc-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-content.collapsed {
    max-height: 0;
}

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

.toc-list li {
    position: relative;
    padding-left: 1.2rem;
    transition: all 0.3s ease;
}

.toc-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-sdb);
    font-size: 1.2em;
}

.toc-list .toc-level-3 {
    padding-left: 2rem;
}

.toc-list .toc-level-3::before {
    left: 0.8rem;
}

.toc-list .toc-level-4 {
    padding-left: 3.5rem;
}

.toc-list .toc-level-4::before {
    left: 2.3rem;
}

.toc-list a {
    color: var(--secondary-text-sdb);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-sdb);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(24, 26, 35, 0.9) 100%);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--line-sdb);
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-sdb);
    z-index: 1;
}

.author-info {
    flex: 1;
    z-index: 1;
}

.author-info h3,
.author-info h3 a {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-sdb);
    text-decoration: none;
}

.author-title {
    color: var(--accent-sdb);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: block;
}

.join-date {
    color: var(--secondary-text-sdb);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.join-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--accent-sdb);
}

.author-bio {
    color: var(--secondary-text-sdb);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author-social-links {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-sdb) var(--base-sdb);
    padding: 1rem 0;
    margin-top: 1rem;
    white-space: nowrap;
}

.author-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    background-color: var(--section-bg);
    color: var(--secondary-text-sdb);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.author-social-links a:hover {
    background-color: var(--accent-sdb);
    color: white;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    background-color: var(--section-bg);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-title i {
    color: var(--accent-sdb);
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(17, 18, 26, 0.5);
    border-radius: 0.5rem;
    position: relative;
}

.comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-sdb);
    border-radius: 4px 0 0 4px;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-sdb);
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-sdb);
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--secondary-text-sdb);
}

.comment-reply-link {
    color: var(--accent-sdb);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-reply-link i {
    font-size: 0.8rem;
}

.comment-text {
    color: var(--secondary-text-sdb);
    line-height: 1.7;
}

.children {
    list-style: none;
    margin-left: 2rem;
    border-left: 2px solid var(--line-sdb);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-reply-title i {
    color: var(--accent-sdb);
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-notes {
    color: var(--secondary-text-sdb);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form label {
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    padding: 0.8rem 1rem;
    background-color: var(--base-sdb);
    border: 1px solid var(--line-sdb);
    border-radius: 0.5rem;
    color: var(--text-sdb);
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-sdb);
}

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

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-text-sdb);
    font-size: 0.9rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--line-sdb);
    border-radius: 0.25rem;
    background-color: var(--base-sdb);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.comment-form-cookies-consent input[type="checkbox"]:checked {
    background-color: var(--accent-sdb);
    border-color: var(--accent-sdb);
}

.comment-form-cookies-consent input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.comment-form-cookies-consent input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.comment-form-cookies-consent label {
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-form-cookies-consent input[type="checkbox"]:hover+label {
    color: var(--text-sdb);
}

.form-submit {
    margin-top: 1rem;
}

.submit {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-sdb);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-title i {
    color: var(--accent-sdb);
}

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

.related-post {
    background-color: var(--section-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--line-sdb);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    border-color: var(--accent-sdb);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.related-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.related-post-meta {
    font-size: 0.8rem;
    color: var(--secondary-text-sdb);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--section-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line-sdb);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-sdb);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-sdb);
}

.search-form {
    display: flex;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--base-sdb);
    border: 1px solid var(--line-sdb);
    border-radius: 0.5rem 0 0 0.5rem;
    color: var(--text-sdb);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-sdb);
}

.search-button {
    padding: 0 1.2rem;
    background-color: var(--accent-sdb);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #2563eb;
}

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

.categories-list li {
    margin-bottom: 0.8rem;
}

.categories-list a {
    color: var(--secondary-text-sdb);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.categories-list a:hover {
    color: var(--accent-sdb);
}

.categories-list a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
}

.popular-posts {
    list-style: none;
}

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-sdb);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--secondary-text-sdb);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--base-sdb);
    color: var(--secondary-text-sdb);
    border-radius: 2rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--accent-sdb);
    color: white;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 0.8rem;
    background-color: var(--base-sdb);
    border: 1px solid var(--line-sdb);
    border-radius: 0.5rem;
    color: var(--text-sdb);
    outline: none;
}

.newsletter-button {
    padding: 0.8rem;
    background-color: var(--accent-sdb);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #2563eb;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--section-bg);
    color: var(--text-sdb);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
}

.share-facebook:hover {
    background-color: #3b5998;
    color: white;
}

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

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

.share-reddit:hover {
    background-color: #ff4500;
    color: white;
}

/* Footer */
footer {
    background-color: #0a0a10;
    padding: 50px 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-sdb);
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.footer-logo i {
    color: var(--accent-sdb);
}

.footer-logo span {
    color: var(--accent-sdb);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--secondary-text-sdb);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-sdb);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
}

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

.footer-social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--section-bg);
    color: var(--text-sdb);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background-color: var(--accent-sdb);
    transform: translateY(-3px);
}

.copyright,
.copyright a {
    color: var(--secondary-text-sdb);
    font-size: 0.9rem;
}

.copyright a {
    font-weight: 700;
    text-decoration: none;
}

/* Animation */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--base-sdb);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-sdb);
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .single-post-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-row: 1;
    }

    code {
        max-width: 90vw;
    }
}

@media (max-width: 768px) {

    .single-post-content {
        padding: 2rem;
    }

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

@media (max-width: 576px) {
    .blog-hero {
        padding-top: 6rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar img {
        margin-bottom: 1rem;
    }

    .children {
        margin-left: 1rem;
    }
}

/* Consolidated small screen media queries */
@media (max-width: 390px) {
    html {
        font-size: 15px;
    }

    .nav-links {
        top: 62px;
        height: calc(100vh - 62px);
    }

    .single-post-container {
        padding: 0 !important;
    }

    .single-post-content,
    .blog-sidebar,
    .toc-container,
    .sidebar-widget {
        border-radius: 0;
        border: none;
    }

    .blog-hero {
        padding: 6rem 1rem 3rem;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .single-post-content {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .sidebar-widget {
        width: 100vw;
        padding: 1.25rem;
    }

    .comment {
        flex-direction: column;
        padding: 1rem;
    }

    .comment-avatar img {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .comment-meta {
        gap: 0.5rem;
    }

    .comment-form input,
    .comment-form textarea,
    .search-input,
    .newsletter-input {
        padding: 0.7rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links li {
        margin: 0.3rem 0;
    }

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

    .author-box {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .author-social-links {
        justify-content: center;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .nav-links {
        top: 58px;
        height: calc(100vh - 58px);
    }

    .blog-hero h1 {
        font-size: 1.5rem;
    }

    .blog-hero p {
        font-size: 0.9rem;
    }

    .single-post-content {
        padding: 1rem;
    }

    .post-header h1 {
        font-size: 1.6rem;
    }

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

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

    .widget-title {
        font-size: 1.1rem;
    }

    .author-box {
        padding: 1rem;
        align-items: flex-start;
        text-align: left;
    }

    .author-info {
        text-align: left;
    }

    .author-social-links {
        justify-content: flex-start;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .footer-social-links {
        flex-wrap: wrap;
    }

    .footer-social-links li {
        margin: 0.3rem;
    }

    body {
        overflow-x: hidden;
    }

    img,
    iframe,
    video {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 250px) {
    html {
        font-size: 13px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .search-button {
        border-radius: 0 0 0.5rem 0.5rem;
        width: 100%;
    }

    .blog-hero {
        padding-top: 5rem;
    }

    .blog-hero h1 {
        font-size: 1.3rem;
    }

    .post-content h2 {
        font-size: 1.2rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

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

    .comment-form input,
    .comment-form textarea,
    .search-input,
    .newsletter-input {
        padding: 0.5rem;
    }

    .submit,
    .search-button,
    .newsletter-button {
        padding: 0.5rem 1rem;
    }

    .share-button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 280px) {
    html {
        font-size: 13px;
    }

    .nav-links {
        top: 54px;
        height: calc(100vh - 54px);
    }

    .blog-hero {
        padding: 4rem 0.5rem 2rem;
    }

    .blog-hero h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .single-post-content {
        padding: 0.8rem;
    }

    .post-content h2 {
        font-size: 1.1rem;
    }

    .post-content h3 {
        font-size: 1rem;
    }

    .comment-form input,
    .comment-form textarea,
    .search-input {
        padding: 0.4rem 0.6rem;
    }

    .sidebar-widget {
        padding: 0.8rem;
    }

    .submit,
    .search-button {
        padding: 0.4rem 0.8rem;
    }

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

    .comment-avatar img {
        width: 40px;
        height: 40px;
    }

    body,
    .single-post-container {
        min-width: 0;
        overflow-x: hidden;
    }

    .post-meta span {
        display: inline-block;
        margin-right: 0.3rem;
    }
}

@media (max-width: 230px) {
    html {
        font-size: 11.5px;
    }

    .nav-links {
        top: 48px;
        height: calc(100vh - 48px);
    }

    .blog-hero {
        padding: 3.5rem 0.5rem 1.5rem;
    }

    .blog-hero h1 {
        font-size: 1.2rem;
    }

    .single-post-content {
        padding: 0.6rem;
    }

    .post-content h2 {
        font-size: 1.1rem;
    }

    .post-content h3 {
        font-size: 1rem;
    }

    .comment-form input,
    .comment-form textarea,
    .search-input,
    .newsletter-input {
        padding: 0.35rem 0.6rem;
    }

    .submit,
    .search-button,
    .newsletter-button {
        padding: 0.35rem 0.7rem;
    }

    .author-box {
        padding: 1rem;
    }

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

    .comment {
        padding: 0.8rem;
    }

    .comment-avatar img {
        width: 35px;
        height: 35px;
    }

    .footer-links li {
        margin: 0.2rem 0;
    }

    .sidebar-widget {
        padding: 1rem;
    }

    body {
        overflow-x: hidden;
        min-width: 0;
    }

    img,
    .featured-image,
    .related-post-image {
        max-width: 100%;
        height: auto;
    }

    .post-meta span:not(:first-child) {
        display: none;
    }
}

@media (max-width: 216px) {
    html {
        font-size: 11px;
    }

    .nav-links {
        top: 46px;
        height: calc(100vh - 46px);
    }

    .post-meta span:not(:first-child),
    .share-buttons span {
        display: none;
    }

    .related-grid,
    .footer-links,
    .footer-social-links,
    .author-social-links {
        flex-direction: column;
    }

    .blog-hero {
        padding: 3rem 0.5rem 1.5rem;
    }

    .comment-form-comment,
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        margin-bottom: 0.5rem;
    }

    img,
    .featured-image,
    .related-post-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 151px) {
    .blog-hero {
        margin-top: 20px;
    }
}


/* Author Page Styles */
.author-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 18, 26, 0.9) 100%);
}

.author-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.author-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.author-hero-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-sdb);
    margin-bottom: 1.5rem;
}

.author-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.author-title {
    font-size: 1.2rem;
    color: var(--accent-sdb);
    margin-bottom: 1.5rem;
}

/* Author Container */
.author-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.author-content {
    background-color: var(--section-bg);
    border-radius: 1rem;
    padding: 3rem;
    border: 1px solid var(--line-sdb);
}

/* Author Bio Section */
.author-bio-section {
    margin-bottom: 3rem;
}

.author-bio-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-sdb);
    border-bottom: 1px solid var(--line-sdb);
    padding-bottom: 0.5rem;
}

.author-bio-section p {
    margin-bottom: 1rem;
    color: var(--secondary-text-sdb);
    line-height: 1.7;
}

/* Author Stats */
.author-stats {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--line-sdb);
    border-bottom: 1px solid var(--line-sdb);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(17, 18, 26, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-sdb);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-text-sdb);
}

/* Author Articles */
.author-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-sdb);
    border-bottom: 1px solid var(--line-sdb);
    padding-bottom: 0.5rem;
}

.author-article {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-sdb);
}

.author-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-image {
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.article-content h3 a {
    color: var(--text-sdb);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--accent-sdb);
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--secondary-text-sdb);
}

.article-category {
    color: var(--accent-sdb);
}

.article-excerpt {
    color: var(--secondary-text-sdb);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-sdb);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.view-all {
    margin-top: 3rem;
    text-align: center;
}

.view-all-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-sdb);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Author Sidebar */
.author-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    background-color: var(--base-sdb);
    border: 1px solid var(--line-sdb);
    border-radius: 0.5rem;
    color: var(--text-sdb);
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-sdb);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    padding: 0.8rem;
    background-color: var(--accent-sdb);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text-sdb);
}

.expertise-list i {
    color: var(--accent-sdb);
    font-size: 0.8rem;
}

.events-list {
    list-style: none;
}

.events-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-sdb);
}

.events-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.events-list h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-sdb);
}

.events-list p {
    font-size: 0.9rem;
    color: var(--secondary-text-sdb);
    margin-bottom: 0.3rem;
}

.event-date {
    font-size: 0.8rem;
    color: var(--accent-sdb);
    display: block;
}

/* Responsive Styles for Author Page */
@media (max-width: 992px) {
    .author-container {
        grid-template-columns: 1fr;
    }

    .author-sidebar {
        grid-row: 1;
    }

    .author-article {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .author-hero h1 {
        font-size: 2rem;
    }

    .author-content {
        padding: 2rem;
    }

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

@media (max-width: 576px) {
    .author-hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

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

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

@media (max-width: 390px) {

    .author-content,
    .author-sidebar {
        padding: 1.5rem;
    }

    .author-hero h1 {
        font-size: 1.8rem;
    }

    .author-title {
        font-size: 1rem;
    }
}


/* Category Hero */
.category-hero {
    min-height: 30vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 18, 26, 0.9) 100%);
}

.category-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.category-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.category-hero p {
    font-size: 1.1rem;
    color: var(--secondary-text-sdb);
    margin-bottom: 0;
}

/* Category Container */
.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.category-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-description {
    background-color: var(--section-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--line-sdb);
    color: var(--secondary-text-sdb);
    line-height: 1.7;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--section-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--line-sdb);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-sdb);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-category {
    display: inline-block;
    background-color: var(--accent-sdb);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-sdb);
    transition: color 0.3s ease;
}

.post-card:hover .post-card-title {
    color: var(--accent-sdb);
}

.post-card-excerpt {
    color: var(--secondary-text-sdb);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary-text-sdb);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background-color: var(--section-bg);
    color: var(--text-sdb);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--line-sdb);
    gap: 0.5rem;
}

.pagination-button:hover {
    background-color: var(--accent-sdb);
    color: white;
    border-color: var(--accent-sdb);
}

.pagination-button.active {
    background-color: var(--accent-sdb);
    color: white;
    border-color: var(--accent-sdb);
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Widget Meta */
.widget-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.widget-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text-sdb);
    font-size: 0.9rem;
}

.widget-meta-item i {
    color: var(--accent-sdb);
}

/* Category Sidebar */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-container {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        grid-row: 1;
    }

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

@media (max-width: 768px) {
    .category-hero {
        padding: 6rem 1rem 3rem;
    }

    .category-hero h1 {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    .category-container {
        padding: 1rem;
    }

    .post-card-image {
        height: 180px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .category-hero {
        padding: 5rem 1rem 2rem;
    }

    .category-hero h1 {
        font-size: 1.8rem;
    }

    .post-card-content {
        padding: 1rem;
    }

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

    .post-card-excerpt {
        font-size: 0.9rem;
    }
}


/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 3rem;
}

.blog-post {
    background-color: var(--section-bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line-sdb);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-sdb);
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.part-post-content {
    padding: 2rem;
}

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

.post-meta .post-category {
    background-color: var(--accent-sdb);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--secondary-text-sdb);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-sdb);
    font-weight: 600;
    text-decoration: none;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: var(--section-bg);
    color: var(--text-sdb);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--accent-sdb);
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding-top: 6rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .post-meta {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Search Hero */
.search-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 18, 26, 0.9) 100%);
}

.search-hero-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.search-form-large {
    display: flex;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-input-large {
    flex: 1;
    padding: 1rem;
    background-color: var(--base-sdb);
    border: 1px solid var(--line-sdb);
    border-radius: 0.5rem 0 0 0.5rem;
    color: var(--text-sdb);
    outline: none;
    font-size: 1rem;
}

.search-input-large:focus {
    border-color: var(--accent-sdb);
}

.search-button-large {
    padding: 0 1.5rem;
    background-color: var(--accent-sdb);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button-large:hover {
    background-color: #2563eb;
}

.search-results-count {
    color: var(--secondary-text-sdb);
    font-size: 1rem;
}

/* Search Container */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Search Results */
.search-results {
    display: grid;
    gap: 2rem;
}

.search-result {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    background-color: var(--section-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line-sdb);
    transition: all 0.3s ease;
}

.search-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-sdb);
}

.search-result-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.search-result h2 a {
    color: var(--text-sdb);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result:hover h2 a {
    color: var(--accent-sdb);
}

.search-excerpt {
    color: var(--secondary-text-sdb);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.search-result-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.search-result:hover .search-result-image {
    transform: scale(1.05);
}

/* Search Sidebar */
.search-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .search-container {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .search-hero h1 {
        font-size: 2.5rem;
    }

    .search-result {
        grid-template-columns: 1fr;
    }

    .search-result-image {
        height: 200px;
        order: -1;
    }
}

@media (max-width: 576px) {
    .search-hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .search-hero h1 {
        font-size: 2rem;
    }

    .search-form-large {
        flex-direction: column;
    }

    .search-input-large {
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .search-button-large {
        border-radius: 0 0 0.5rem 0.5rem;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Archive Page Styles */
.archive-section {
    margin-bottom: 3rem;
}

.archive-year {
    font-size: 2rem;
    color: var(--text-sdb);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-sdb);
    position: relative;
}

.archive-year::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-sdb);
}

.archive-month {
    margin-bottom: 2rem;
}

.archive-month-title {
    font-size: 1.5rem;
    color: var(--text-sdb);
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-sdb);
}

.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: 0.8rem;
}

.archive-list a {
    color: var(--secondary-text-sdb);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.archive-list a:hover {
    color: var(--accent-sdb);
}

.archive-list a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
}