/* ===========================================================
   DatanXzen Blog - minimal additions on top of the original
   static stylesheets (style.css, mobile-fix.css, etc).

   Nothing in this file redefines DatanXzen's brand colours or
   typography - it only fills in the handful of details the
   original static design never shipped markup/CSS for (a real
   category pill on grid cards, the WP pagination "current"
   state, comment cards, and a few small layout helpers), and
   scopes them narrowly to .blog-page.style-5 so nothing here
   can leak onto other pages of the site.
   =========================================================== */

/* --- Category pill on grid / single-post hero (re-uses the exact
   gradient treatment already defined for .blog.style-1 .tags a) --- */
.blog-page.style-5 .card .img,
.blog-page.style-5 .featured-post .img {
  position: relative;
  overflow: hidden;
}

.blog-page.style-5 .card .img .cat-pill,
.blog-page.style-5 .featured-post .cat-pill {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
}

.blog-page.style-5 .cat-pill a,
.blog-page.style-5 .cat-pill.static-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--color-main-grad);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-block;
}

/* --- Grid card polish (image ratio, hover lift, meta rows) --- */
.blog-page.style-5 .all-news .card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 20px rgba(1, 0, 73, .06);
}

.blog-page.style-5 .all-news .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(1, 0, 73, .12);
}

.blog-page.style-5 .all-news .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.blog-page.style-5 .all-news .card:hover .img img {
  transform: scale(1.08);
}

.blog-page.style-5 .all-news .card .card-body .date span {
  color: #888;
  font-size: 11px;
}

.blog-page.style-5 .all-news .card .card-body .date span i {
  color: var(--color-main);
  margin-right: 4px;
}

.blog-page.style-5 .all-news .card .card-body .card-title a {
  color: #010049;
  transition: color .25s ease;
}

.blog-page.style-5 .all-news .card .card-body .card-title a:hover {
  color: var(--color-main);
}

.blog-page.style-5 .all-news .card .card-body .auther-comments {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef1f6;
  padding-top: 12px;
  margin-top: 12px;
}

.blog-page.style-5 .all-news .card .card-body .auther-comments .auther {
  font-size: 12px;
  color: #666;
}

.blog-page.style-5 .all-news .card .card-body .auther-comments .auther-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}

.blog-page.style-5 .all-news .card .card-body .read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-main);
  white-space: nowrap;
}

.blog-page.style-5 .all-news .card .card-body .read-more i {
  margin-left: 4px;
  transition: margin-left .25s ease;
}

.blog-page.style-5 .all-news .card .card-body .read-more:hover i {
  margin-left: 8px;
}

/* --- Featured / latest post excerpt (blog.style-1 .info .text is
   hidden by default in the original CSS; the featured post needs it
   visible) --- */
.blog.style-1 .content .blog_box.featured-post .info .text.featured-excerpt {
  display: block;
  color: #f1f1f1;
  font-size: 13px;
  max-width: 720px;
}

.blog.style-1 .content .blog_box.featured-post .img {
  height: 460px;
}

.blog.style-1 .content .blog_box.featured-post .info h6 {
  font-size: 28px;
  font-weight: 700;
  max-width: 80%;
}

@media (max-width: 767px) {
  .blog.style-1 .content .blog_box.featured-post .img {
    height: 320px;
  }
  .blog.style-1 .content .blog_box.featured-post .info h6 {
    font-size: 20px;
    max-width: 100%;
  }
}

/* --- Page intro copy under the hero (optional Page content) --- */
.page-intro-copy {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  max-width: 900px;
}

/* --- Pagination: brand-colour variant + WP "current page" span
   (the original CSS only ever styled <a>, WordPress renders the
   current page as a <span>) --- */
.pagination.style-5.color-main a:hover,
.pagination.style-5.color-main span.page-numbers.current {
  color: #fff !important;
  border-color: var(--color-main);
  background-color: var(--color-main);
}

.pagination.style-5 span.page-numbers.current,
.pagination.style-5 span.page-numbers.dots {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: max-content;
  border: 1px solid #9993;
  border-radius: 8px;
  margin-right: 5px;
  font-size: 11px;
  color: #666;
}

.pagination.style-5 span.page-numbers.dots {
  border: none;
}

/* --- Single post meta row --- */
.blog-single-meta span,
.blog-single-meta a.static-pill {
  font-size: 12px;
  color: #666;
}

.blog-single-meta .auther-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 4px;
}

/* --- Prev / next post nav on single articles --- */
.blog-post-nav .post-nav-item a {
  font-size: 13px;
  font-weight: 600;
  color: #010049;
  display: inline-block;
}

.blog-post-nav .post-nav-item a:hover {
  color: var(--color-main);
}

/* --- Comment cards (single post) --- */
.blog-comments .comment-card {
  background-color: #f4f8fc;
}

.blog-comments .comment-card .comment-text {
  font-size: 14px;
  color: #444;
}

.blog-comments .comment-form .form-control {
  border-radius: 8px;
}

/* --- Sidebar newsletter button uses the theme's existing gradient
   button styles already (.btn.butn-gard); just fix width in the
   sidebar context. --- */
.side-blog .side-newsletter .btn {
  display: flex;
}

/* --- Sidebar categories: use brand colour instead of template default --- */
.side-blog .side-categories .cat-item:hover {
  color: var(--color-main);
}

.side-blog .side-recent-post .post-card:hover .inf h6 {
  color: var(--color-main);
}

/* --- Related posts section heading spacing tweak --- */
.related-posts-section .section-head h2 {
  font-size: 32px;
}
