.page-blog .page-intro {
    padding: 22px 22px;
    margin: 20px 0 30px;
}

.page-blog .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 10px;
}

.page-blog .blog-card-link {
    display: grid;
    grid-template-rows: auto 1fr;
    color: inherit;
    text-decoration: none;
}

.page-blog .blog-thumb {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.page-blog .blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-blog .blog-thumb-placeholder {
    height: 220px;
    background: linear-gradient(135deg, rgba(172, 209, 58, 0.18), rgba(11, 212, 243, 0.12));
}

.page-blog .blog-card-body {
    padding: 18px 18px 20px;
}

.page-blog .blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.page-blog .blog-dot {
    opacity: 0.6;
}

.page-blog .blog-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.page-blog .blog-excerpt {
    opacity: 0.85;
    margin-bottom: 12px;
}

.page-blog .blog-readmore {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-blog .blog-pagination {
    margin-top: 26px;
    padding: 18px 18px;
    text-align: center;
}

.page-blog .blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 4px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-blog .blog-pagination .current {
    border-color: rgba(176, 209, 54, 0.45);
    box-shadow: 0 0 20px rgba(176, 209, 54, 0.12);
}

@media (max-width: 1200px) {
    .page-blog .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-blog .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BLOG SINGLE STYLES ========== */
.blog-single-section {
    /* background: #0a0a0f; */
    padding-top: 100px;
    /* Hardcoded to ensure clearing the fixed navbar */
    padding-bottom: 80px;
}

.blog-single-container {
    display: grid !important;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.blog-single-content-area {
    min-width: 0;
}

.blog-single {
    color: #e6e6e6;
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
}

.blog-title {
    font-size: 38px;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-secondary);
}

.blog-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.blog-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.blog-featured-image img {
    width: 100% !important;
    max-width: 100%;
    height: 480px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 17px;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #00E5FF;
}

.blog-content ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* ========== SIDEBAR STYLES ========== */
.blog-sidebar {
    position: sticky;
    top: calc(var(--ko-nav-h, 80px) + 20px);
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-secondary);
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #e6e6e6;
    margin-bottom: 20px;
}

.sidebar-premium-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #acd13a, #0bf31e);
    color: #000;
    font-family: var(--font-primary, 'Roboto', sans-serif);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(176, 209, 54, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sidebar-premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.sidebar-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(176, 209, 54, 0.8);
    color: #000;
}

.sidebar-premium-btn:hover::before {
    left: 100%;
}

.sidebar-premium-btn-dark {
    background: #000;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(176, 209, 54, 0.5);
    margin-top: 10px;
}

.sidebar-premium-btn-dark:hover {
    background: rgba(176, 209, 54, 0.1);
    color: #acd13a;
    box-shadow: 0 8px 25px rgba(176, 209, 54, 0.3);
    border-color: #acd13a;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.recent-post-item:hover {
    transform: translateX(5px);
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

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

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-thumb.placeholder {
    background: linear-gradient(135deg, rgba(172, 209, 58, 0.18), rgba(11, 212, 243, 0.12));
}

.recent-post-info {
    display: flex;
    flex-direction: column;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #fff;
}

.recent-post-date {
    font-size: 12px;
    color: #999;
}

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

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

.categories-list li:last-child {
    margin-bottom: 0;
}

.categories-list a {
    color: #e6e6e6;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #00E5FF;
}

.tag-cloud-wrapper a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px !important;
    /* override inline styles */
    color: #e6e6e6;
    text-decoration: none;
    margin: 0 4px 8px 0;
    transition: all 0.3s ease;
}

.tag-cloud-wrapper a:hover {
    background: #FF00FF;
    color: #fff;
    border-color: #FF00FF;
}

.widget-cta {
    background: linear-gradient(135deg, rgba(176, 209, 54, 0.08), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(176, 209, 54, 0.3);
    border-radius: 16px;
    text-align: center;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
}

.widget-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(176, 209, 54, 0.2);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner {
    position: relative;
    z-index: 1;
}

.cta-banner h4 {
    font-family: var(--font-secondary, 'Alphacorsa Personal Use', sans-serif);
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(176, 209, 54, 0.2);
}

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

    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 26px;
    }

    .blog-content p {
        font-size: 16px;
    }

    .blog-featured-image img {
        height: 300px;
    }
}