/* ============================================================
   PPK MSF — Blog page & Blog post specific styles
   ============================================================ */

/* ---- Sticky navbar overrides for inner pages ---- */
.sticky .navbar-nav .nav-item.active > a,
.sticky .navbar-nav .nav-item:hover > a {
  color: #1B6EC2;
}

/* ---- Page header banner ---- */
.page-header-area {
  padding: 120px 0 80px;
  position: relative;
}
.page-header-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0.72);
}
.page-header-area .container { position: relative; z-index: 1; }
.page-header-content h2 {
  font-size: 42px;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 767px) {
  .page-header-content h2 { font-size: 28px; }
}
.breadcrumb {
  background: none;
  padding: 0;
  margin-top: 12px;
}
.breadcrumb-item a { color: rgba(255,255,255,0.75); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Filter buttons ---- */
.blog-filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.cat-btn {
  border: 2px solid #dee2e6;
  background: #fff;
  color: #747E88;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.cat-btn:hover,
.cat-btn.active {
  background: #1B6EC2;
  border-color: #1B6EC2;
  color: #fff;
}

/* ---- Search box ---- */
.blog-search {
  position: relative;
}
.blog-search input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 20px;
  border: 2px solid #dee2e6;
  border-radius: 30px;
  font-size: 14px;
  color: #38424D;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s;
}
.blog-search input:focus {
  outline: none;
  border-color: #1B6EC2;
}
.blog-search i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #747E88;
  font-size: 18px;
}

/* ---- Blog card image in list page ---- */
#blog-list-grid .single_blog .blog_image img,
#blog-list-grid .single_blog .blog_image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

/* ---- Pagination ---- */
.pagination-btn {
  display: inline-block;
  width: 38px; height: 38px; line-height: 36px;
  text-align: center;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #747E88;
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.pagination-btn:hover,
.pagination-btn.active {
  background: #1B6EC2;
  border-color: #1B6EC2;
  color: #fff;
}

/* ---- Blog post content ---- */
.blog-post-content {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
}
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: #1A3A6B;
  margin-top: 32px;
  margin-bottom: 12px;
}
.blog-post-content p { margin-bottom: 16px; }
.blog-post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}
.blog-post-content ul,
.blog-post-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content blockquote {
  border-left: 4px solid #1B6EC2;
  padding: 12px 20px;
  background: #f0f7ff;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: #1A3A6B;
}

/* ---- Share buttons ---- */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: 'Poppins', sans-serif;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.wa   { background: #25D366; }
.share-btn.fb   { background: #1877F2; }
.share-btn.copy { background: #6B7280; }

/* ============================================================
   Blog Post Detail Page — redesigned layout
   ============================================================ */

/* ---- Post meta top (category badge + date) ---- */
.post-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.post-meta-date {
  font-size: 13px;
  color: #747E88;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---- Post title ---- */
.post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: #1A3A6B;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 22px;
}

/* ---- Author + quick share bar ---- */
.post-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #f8faff;
  border-radius: 10px;
  border-left: 4px solid #1B6EC2;
  margin-bottom: 28px;
}
.post-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-author-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #1B6EC2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.post-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #38424D;
}
.post-share-inline {
  display: flex;
  gap: 6px;
}
.post-share-inline .share-btn {
  padding: 7px 12px;
  font-size: 16px;
  border-radius: 8px;
}

/* ---- Hero image ---- */
.post-hero-img-wrap {
  margin-bottom: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(27, 110, 194, 0.12);
}
.post-hero-img-wrap img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ---- Bottom share section ---- */
.post-share-bottom {
  margin-top: 50px;
  padding: 32px;
  background: #f0f7ff;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #d6e8f8;
}
.post-share-bottom .post-share-label {
  font-size: 15px;
  font-weight: 600;
  color: #1A3A6B;
  margin-bottom: 16px;
}
.post-share-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1B6EC2;
  text-decoration: none;
  transition: gap 0.2s;
}
.post-back-link:hover { gap: 10px; color: #1558A8; }

/* ---- Sidebar ---- */
.post-sidebar {
  position: sticky;
  top: 90px;
  padding-top: 40px;
}
.sidebar-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(27, 110, 194, 0.07);
}
.sidebar-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1A3A6B;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card-title i { color: #1B6EC2; font-size: 18px; }

/* Related post items */
.related-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f4f8;
  text-decoration: none;
  transition: background 0.15s;
}
.related-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-post-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  background: #f0f7ff;
  color: #1B6EC2;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background 0.2s, color 0.2s;
}
.related-post-item:hover .related-post-num { background: #1B6EC2; color: #fff; }
.related-post-title {
  font-size: 13px;
  font-weight: 600;
  color: #38424D;
  line-height: 1.45;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.related-post-item:hover .related-post-title { color: #1B6EC2; }
.related-post-date { font-size: 11px; color: #aaa; }

/* CTA card */
.sidebar-cta {
  background: linear-gradient(145deg, #1A3A6B 0%, #1B6EC2 100%);
  border: none;
  text-align: center;
}
.sidebar-cta-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #fff;
}
.sidebar-cta h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}
.sidebar-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.sidebar-cta-btn {
  background: #C0392B;
  display: block;
  width: 100%;
  text-align: center;
}
.sidebar-cta-btn:hover { background: #a93226 !important; }
