:root{--dbx-primary:#1a73e8;--dbx-text:#0f172a}.container{max-width:1200px;margin:0 auto;padding:0 24px}.dbx-ekit-header{position:sticky;top:0;z-index:9999;background:#fff;transition:all .2s ease;box-shadow:0 2px 10px rgb(0 0 0 / .06)}.admin-bar .dbx-ekit-header{top:32px}@media (max-width:782px){.admin-bar .dbx-ekit-header{top:46px}}.primary-nav .menu{display:flex;flex-wrap:wrap;gap:24px;list-style:none;margin:0;padding:0}.primary-nav .menu a{color:var(--dbx-text);text-decoration:none;font-weight:600}.primary-nav .menu a:hover{color:var(--dbx-primary)}.btn-cta{background:var(--dbx-primary);color:#fff;text-decoration:none;padding:10px 16px;border-radius:10px;font-weight:700}.btn-cta:hover{opacity:.92}.site-footer{background:#0b1220;color:#cbd5e1;padding:40px 0}.site-footer a{color:#cbd5e1}.site-content{padding:40px 0}//=====Recent posts shortcode:[digitalboxes_blog_posts]=====function dbx_blog_posts_shortcode($atts){$atts=shortcode_atts(['count'=>6,'columns'=>3],$atts);$q=new WP_Query(['post_type'=>'post','post_status'=>'publish','posts_per_page'=>intval($atts['count']),'ignore_sticky_posts'=>true,]);if (! $q->have_posts()){return '<p style="text-align:center;color:#666;">No posts found.</p>'}$cols=max(1, intval( $atts['columns'] ));ob_start();?><div class="dbx-posts-grid" style="display:grid;grid-template-columns:repeat(<?php echo $cols; ?>,1fr);gap:24px;max-width:1100px;margin:0 auto;padding:20px;"><?php while ($q->have_posts()) :$q->the_post();?><article style="background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.08);display:flex;flex-direction:column;"><?php if (has_post_thumbnail()) :?><a href="<?php the_permalink(); ?>" style="display:block;"><?php the_post_thumbnail('medium_large',['style'=>'width:100%;height:200px;object-fit:cover;display:block;']);?></a><?php endif;?><div style="padding:18px;display:flex;flex-direction:column;flex:1;"><span style="color:#2563eb;font-size:13px;margin-bottom:8px;">📅 <?php echo esc_html(get_the_date());?></span><h3 style="font-size:18px;font-weight:700;line-height:1.3;margin:0 0 14px;"><a href="<?php the_permalink(); ?>" style="color:#111;text-decoration:none;"><?php the_title();?></a></h3><a href="<?php the_permalink(); ?>" style="margin-top:auto;color:#2563eb;font-weight:600;text-decoration:underline;font-size:14px;">Read Full Article →</a></div></article><?php endwhile;?></div><style>@media (max-width:900px){.dbx-posts-grid{grid-template-columns:repeat(2,1fr)!important}}@media (max-width:600px){.dbx-posts-grid{grid-template-columns:1fr!important}}</style><?php wp_reset_postdata();return ob_get_clean()}add_shortcode('digitalboxes_blog_posts','dbx_blog_posts_shortcode');