/* ========================================
   Blog Page Styles
   Mama Africa Pendo
======================================== */

/* Blog Card Styles */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.blog-card .thumb {
  position: relative;
  overflow: hidden;
}
.blog-card .thumb img {
  width: 356px;
  height: 260px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.blog-card:hover .thumb img {
  transform: scale(1.05);
}
.blog-card .category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #eb6424;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.3s;
}
.blog-card .category-badge:hover {
  background: #c49353;
}
.blog-card .content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .meta {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  color: #888;
  font-size: 13px;
}
.blog-card .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card .meta-item i {
  color: #eb6424;
  font-size: 14px;
}
.blog-card h5 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}
.blog-card h5 a {
  color: #4c5739;
  text-decoration: none;
  transition: color 0.3s;
}
.blog-card h5 a:hover {
  color: #eb6424;
}
.blog-card .excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eb6424;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.3s;
}
.blog-card .read-more:hover {
  gap: 10px;
}
.blog-card .read-more i {
  font-size: 16px;
}

/* Sidebar Styles */
.blog-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.sidebar-widget h5 {
  color: #4c5739;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eb6424;
  display: inline-block;
}

/* Search Widget */
.sidebar-widget form {
  position: relative;
}
.sidebar-widget input[type="text"] {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}
.sidebar-widget input[type="text"]:focus {
  border-color: #eb6424;
  outline: none;
}
.sidebar-widget button[type="submit"] {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #eb6424;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar-widget button[type="submit"]:hover {
  background: #c49353;
}

/* Recent Posts Widget */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.recent-post-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f9f9f9;
  transition: background 0.3s;
}
.recent-post-item:hover {
  background: rgba(235, 100, 36, 0.08);
}
.recent-post-item .thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}
.recent-post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-post-item .content {
  flex: 1;
}
.recent-post-item .content p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #888;
}
.recent-post-item .content p i {
  color: #eb6424;
  margin-right: 4px;
}
.recent-post-item .content a {
  color: #4c5739;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.3s;
}
.recent-post-item .content a:hover {
  color: #eb6424;
}

/* Categories Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  margin-bottom: 8px;
}
.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  background: #f8f8f8;
}
.category-list a:hover,
.category-list a.active {
  background: rgba(235, 100, 36, 0.1);
  color: #eb6424;
}
.category-list .count {
  background: #eb6424;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* Tags Widget */
.tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-wrapper a {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #f5f5f5;
  color: #666;
  transition: all 0.3s;
}
.tag-wrapper a:hover,
.tag-wrapper a.active {
  background: #eb6424;
  color: #fff;
  transform: translateY(-2px);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, #eb6424 0%, #c49353 100%);
  text-align: center;
  color: #fff;
}
.cta-widget h5 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.cta-widget p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.cta-widget .cta-btn {
  display: inline-block;
  background: #fff;
  color: #eb6424;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.cta-widget .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}
.main-pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-pagination li a,
.main-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}
.main-pagination li a {
  background: #fff;
  color: #4c5739;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.main-pagination li a:hover {
  background: #eb6424;
  color: #fff;
}
.main-pagination .current {
  background: #eb6424;
  color: #fff;
  box-shadow: 0 2px 10px rgba(235, 100, 36, 0.3);
}
.main-pagination .disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.no-posts i {
  font-size: 70px;
  color: #ddd;
  margin-bottom: 20px;
}
.no-posts h4 {
  color: #4c5739;
  font-size: 24px;
  margin-bottom: 12px;
}
.no-posts p {
  color: #888;
  font-size: 16px;
}

/* Blog Header */
.blog-header {
  margin-bottom: 35px;
}
.blog-header h3 {
  color: #4c5739;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.blog-header p {
  color: #888;
  font-size: 15px;
  margin: 0;
}

/* Blog Section Background */
.blog-section {
  background: #f9f9f9;
}

/* Post Detail Page Styles */
.post-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.post-info-card h4 {
  color: #4c5739;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eb6424;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background: rgba(235, 100, 36, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eb6424;
  font-size: 18px;
}

.info-item .info-content small {
  color: #888;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}

.info-item .info-content p {
  margin: 0;
  color: #333;
  font-weight: 600;
}

.post-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.meta-tag {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
}

.post-content {
  line-height: 1.8;
  color: #555;
}

.post-content p {
  margin-bottom: 18px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: #4c5739;
  margin-top: 28px;
  margin-bottom: 16px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.post-content ul,
.post-content ol {
  margin-left: 20px;
  margin-bottom: 18px;
}

.post-content li {
  margin-bottom: 8px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-post-card {
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.related-post-card:hover {
  background: rgba(235, 100, 36, 0.08);
  transform: translateY(-3px);
}

.related-post-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post-card:hover .related-post-thumb img {
  transform: scale(1.05);
}

.related-post-info {
  padding: 15px;
}

.related-post-info h6 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #4c5739;
}

.related-post-info small {
  color: #888;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Responsive */
@media (max-width: 991px) {
  .blog-sidebar {
    position: relative;
    top: 0;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Additional Post Page Styles */
.content-card {
  padding: 30px;
}

.content-card .post-content {
  padding: 0;
}

.blog-card .thumb img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.info-item .info-content a {
  color: #eb6424;
  text-decoration: none;
  transition: color 0.3s;
}

.info-item .info-content a:hover {
  color: #c49353;
}

.back-btn {
  display: block;
  text-align: center;
  padding: 15px;
  background: #4c5739;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.back-btn:hover {
  background: #eb6424;
  transform: translateY(-2px);
}

.social-share .social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

.social-share .social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s;
  text-decoration: none;
}

.social-share .social a:nth-child(1) {
  background: #1877f2;
}

.social-share .social a:nth-child(2) {
  background: #1da1f2;
}

.social-share .social a:nth-child(3) {
  background: #25d366;
}

.social-share .social a:nth-child(4) {
  background: #0077b5;
}

.social-share .social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
