/* ============================================
   Blog Layout Styles
   Classes used by template-blog.php, single.php, 
   template-archives.php
   ============================================ */

/* === General === */
.inner_pg {
  padding-bottom: 60px;
}

.inner_title {
  font-size: 32px;
  color: #2e313b;
  margin-bottom: 1.5rem;
}

/* === Popular Section (Most Popular) === */
.popular_sec {
  border-bottom: 1px solid #e4eee8;
  padding: 40px 0 50px;
}

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

.popular_img img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.popular_title {
  margin-top: 15px;
}

.popular_title a {
  color: #1f295e;
  text-decoration: none;
  font-size: 22px;
}

.popular_title a:hover {
  color: #02c153;
}

.popular_content {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
}

.read_mr {
  margin-top: 15px;
}

.rd-more.btn {
  background-color: #02c153;
  color: #fff;
  border: 2px solid #02c153;
  padding: 8px 24px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  border-radius: 0;
}

.rd-more.btn:hover {
  background-color: #019a43;
  border-color: #019a43;
  color: #fff;
}

/* === Blog Title Section (All Articles + Category Dropdown) === */
.blog_title_sec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog_title_sec .inner_title {
  margin-bottom: 0;
}

.cat_select {
  background-color: #02c153;
  color: #fff;
  border: 2px solid #02c153;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 0;
  cursor: pointer;
  max-width: 250px;
}

.cat_select option {
  background: #fff;
  color: #333;
}

/* === Blog Grid Cards === */
.blog_inner_sec.row {
  margin-left: -15px;
  margin-right: -15px;
}

.whole-sec-blog {
  margin-bottom: 30px;
  padding-left: 15px;
  padding-right: 15px;
}

.blog-image {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.blog-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.blog-image a:hover img {
  transform: scale(1.03);
}

.blog-contents {
  padding: 5px 0;
}

.blog-sub_title {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-sub_title a {
  color: #1f295e;
  text-decoration: none;
}

.blog-sub_title a:hover {
  color: #02c153;
}

.blog-excerpt {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.blg_ct {
  color: #777980;
}

/* Hide the old green arrow icon */
.blog_rd {
  display: none;
}

/* === Single Post === */
.blog_detail_section {
  padding-bottom: 40px;
}

.blog_content_inner {
  padding-top: 0;
}

.banner {
  border-radius: 4px;
  margin-bottom: 30px;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
}

.single_title {
  width: 100%;
  padding: 20px 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.single_title h1 {
  color: #fff;
  font-size: 36px;
  margin: 0;
}

.dl_ct {
  padding: 20px 0;
}

.blog_desc_content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.blog_desc_content img {
  max-width: 100%;
  height: auto;
}

.blog_desc_content p {
  margin-bottom: 1.2em;
}

/* === Related Posts === */
.related_post_sec {
  background: #f8f9fa;
  padding: 50px 0;
  margin-top: 30px;
}

.related_inner_sec {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* === Archive Page === */
.archive-page-sec .blog-list-sec {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* === WP-PageNavi Pagination === */
.wp-pagenavi {
  width: 100%;
  text-align: center;
  padding: 30px 0 10px;
  clear: both;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  color: #1f295e;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

.wp-pagenavi a:hover {
  background: #02c153;
  border-color: #02c153;
  color: #fff;
}

.wp-pagenavi span.current {
  background: #1f295e;
  border-color: #1f295e;
  color: #fff;
  font-weight: 600;
}

.wp-pagenavi span.pages {
  border: none;
  color: #999;
  font-size: 13px;
}

.wp-pagenavi span.extend {
  border: none;
  color: #999;
}

/* === Responsive === */
@media (max-width: 767px) {
  .inner_title {
    font-size: 24px;
  }
  
  .blog_title_sec {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .cat_select {
    max-width: 100%;
    width: 100%;
  }
  
  .popular_sec {
    padding: 30px 0 40px;
  }
  
  .single_title h1 {
    font-size: 24px;
  }
}
