@media (max-width: 1024px) {
    section.ajblog {
        padding-top: 60px;
    }

    #secondary {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    #primary {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 0px;
    }

    .sidebar-right .inner-sidebar {
        padding-left: 0;
    }

    .pura-grid-wrapper {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    section.ajblog {
        padding-top: 40px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .btn-readmore a {
        width: 100%;
        margin-top: 10px;
    }

    .post-meta {
        width: 100%;
        justify-content: flex-start;
        font-size: 14px;
    }

    section.ajblog #primary img {
        height: 300px;
    }

    /* Sidebar improvements */
    .wp-block-categories {
        padding-left: 0;
    }

    .wp-block-categories li {
        list-style: none;
        margin-bottom: 12px;
    }

    .wp-block-categories li a {
        display: flex;
        justify-content: space-between;
        padding: 12px 15px;
        background: #fcf6f0;
        border-radius: 8px;
        color: #444;
        text-decoration: none;
        transition: 0.3s;
    }

    .wp-block-latest-posts {
        padding-left: 0;
    }
    
    .wp-block-latest-posts li {
        margin-bottom: 20px;
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
}

@media (max-width: 540px) {
     section.ajblog #primary img {
        height: 220px;
    }

    .post-title h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .post-excerpt p {
        font-size: 14px;
        line-height: 1.6;
    }

    .btn-readmore a {
        letter-spacing: 2px;
        font-size: 14px;
        height: 48px;
    }
    
    .head-sec h2 {
        font-size: 26px;
    }

    .pura-grid-wrapper {
        padding: 0 5px;
    }
}
