/* Vectras news theme: layout glue on top of Crafto (demo-business blog / blog-single-modern) */

/* list: BlogEngine renders <div class="posts"> + cards, so mirror Crafto's
   grid-4col xl-grid-4col lg-grid-3col md-grid-2col xs-grid-1col gutter-double-extra-large */
.posts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 40px}
@media (max-width:1199px){.posts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:991px){.posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px}}
@media (max-width:575px){.posts{grid-template-columns:1fr}}
.posts:empty::before,.search-page:not(:has(.searchresult))::after{content:"No news has been published yet. Please check back soon.";grid-column:1/-1;display:block;padding:80px 20px;margin-bottom:40px;color:var(--dark-gray,#0e1b3d);font-size:18px;text-align:center;border-radius:6px;background:var(--solitude-blue,#eef6fc)}
.news-card .blog-image img{width:100%;height:auto;aspect-ratio:600/430;object-fit:cover;transition:transform .5s}
.news-card:hover .blog-image img{transform:scale(1.05)}
.post-body{overflow-wrap:break-word}
.post-body table{display:block;max-width:100%;overflow-x:auto}
.news-search .form-control{padding-right:55px}
.news-search-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--dark-gray,#0e1b3d);font-size:18px;padding:8px 14px;min-width:44px;min-height:44px}

/* single post */
.news-hero{width:100%;height:auto}
.post-body img{max-width:100%;height:auto;border-radius:5px}
.post-adminlinks{margin-top:20px;text-align:center}
/* comments/related posts come from shared BlogEngine controls: keep them in the article column */
@media (min-width:992px){.news-single .container>:not(article){max-width:75%;margin-left:auto;margin-right:auto}}

#postPaging{display:none}
.pager{margin-top:30px;text-align:center}.pager a,.pager span{margin:0 4px}
/* BlogEngine PostPager -> template pagination-style-01 look */
#PostPager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;list-style:none;padding:0;margin:40px 0 0}#PostPager li{display:flex}#PostPager li a,#PostPager li.PagerLinkCurrent,#PostPager li.PagerLinkDisabled{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;border-radius:100px;font-size:15px;color:var(--dark-gray,#232323);background:#fff;box-shadow:0 0 15px rgba(0,0,0,.08);text-decoration:none}#PostPager li a:hover,#PostPager li.PagerLinkCurrent{background:var(--base-color);color:#fff}#PostPager li.PagerLinkDisabled{opacity:.45}

/* comments (shared BlogEngine controls) */
.comment-item{list-style:none;margin-bottom:25px}
.comment-content{display:grid;grid-template-columns:48px 1fr;gap:4px 15px;padding:20px;border-radius:6px;background:var(--solitude-blue,#eef6fc)}
.comment-content>img{grid-row:span 4;border-radius:50%}
.comment-author a{font-weight:600;color:var(--dark-gray)}
.comment-replylink{font-size:14px}
.comment-form,#relatedPosts{margin-top:50px}
.navigation-posts{margin-top:40px;padding-top:25px;border-top:1px solid #e4e4e4}

/* search page (BlogEngine core search.aspx): the header search box already holds the query, so drop the duplicate bootstrap box */
.search-page #searchpage{display:none}
.search-page .page-global-title{color:var(--dark-gray);font-size:32px;line-height:40px;font-weight:600;letter-spacing:-1px;margin-bottom:30px}
.search-page:not(:has(.searchresult))::after{content:"No news matched your search."}
.searchresult{display:block;padding:25px 30px;margin-bottom:20px;border-radius:6px;background:#fff;box-shadow:0 0 15px rgba(0,0,0,.08)}
.searchresult>a{display:block;font-size:18px;font-weight:600;color:var(--dark-gray);margin-bottom:8px}
.searchresult .text{display:block}.searchresult .type,.searchresult .url{font-size:14px;color:var(--medium-gray,#717580)}
