/* ==============================
   BLOG - Jolo Isuzu
   ============================== */

/* Breadcrumb - match product page style */
.breadcrumb-wrapper {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #a1a1a1 0%, #fcfcfca8 100%);
  color: #252525;
}
.breadcrumb-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../../img/section-bg/simulasi-cicilan.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.breadcrumb-wrapper .container {
  position: relative;
  z-index: 1;
}
.breadcrumb-wrapper .page-heading {
  padding: 60px 0;
  text-align: left;
}
.breadcrumb-wrapper .page-heading h1 {
  font-family: 'Funnel Display', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #252525;
  margin-bottom: 4px;
}
.breadcrumb-wrapper .page-heading p {
  color: #4a4a4a;
  font-size: 15px;
  margin-top: 8px;
}
.breadcrumb-wrapper .breadcrumb-items {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb-wrapper .breadcrumb-items li {
  font-size: 14px;
  color: #252525;
}
.breadcrumb-wrapper .breadcrumb-items li a {
  color: #252525;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb-wrapper .breadcrumb-items li a:hover {
  color: #DC2626;
}

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

/* Featured Card */
.blog-featured-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.blog-featured-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  color: inherit;
}
.blog-featured-thumb {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}
.blog-featured-thumb img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-featured-card:hover .blog-featured-thumb img {
  transform: scale(1.05);
}
.blog-featured-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 320px;
}
.blog-featured-content h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 12px 0;
  line-height: 1.3;
}
.blog-featured-content p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Blog Card */
.blog-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  height: 100%;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  color: inherit;
}
.blog-card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 20px 24px 24px;
}
.blog-card-body h3 {
  font-family: 'Funnel Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 8px 0;
  line-height: 1.4;
}
.blog-card-body p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge */
.blog-badge {
  display: inline-block;
  background: #DC2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: absolute;
  top: 12px;
  left: 12px;
}
.blog-featured-content .blog-badge {
  position: static;
  width: fit-content;
}

/* Meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}
.blog-meta i {
  margin-right: 4px;
}

/* Read More */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #DC2626;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  transition: gap 0.3s ease;
}
.blog-card:hover .blog-read-more,
.blog-featured-card:hover .blog-read-more {
  gap: 10px;
}

/* Placeholder */
.blog-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #d1d5db;
  font-size: 60px;
}
.blog-placeholder-sm {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #d1d5db;
  font-size: 24px;
}

/* ==============================
   DETAIL PAGE
   ============================== */
.blog-detail-section {
  background: #fafafa;
}

.blog-article {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.blog-article-thumb {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.blog-article-thumb img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.blog-article-meta {
  padding: 24px 32px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}
.blog-article-meta .blog-badge {
  position: static;
}
.blog-article-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  padding: 12px 32px 0;
}
.blog-article-content {
  padding: 20px 32px 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}
.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  font-family: 'Funnel Display', sans-serif;
  color: #111827;
  margin-top: 28px;
  margin-bottom: 12px;
}
.blog-article-content h2 { font-size: 22px; }
.blog-article-content h3 { font-size: 19px; }
.blog-article-content h4 { font-size: 17px; }
.blog-article-content p {
  margin-bottom: 16px;
}
.blog-article-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-article-content li {
  margin-bottom: 6px;
}
.blog-article-content blockquote {
  border-left: 4px solid #DC2626;
  padding: 16px 20px;
  margin: 20px 0;
  background: #fef2f2;
  border-radius: 0 8px 8px 0;
  color: #991b1b;
  font-style: italic;
}
.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.blog-article-content th,
.blog-article-content td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.blog-article-content th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
}
.blog-article-content strong {
  color: #111827;
}
.blog-article-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.blog-article-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}
.blog-img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

/* Share */
.blog-article-share {
  padding: 20px 32px 28px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}
.blog-article-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s;
}
.blog-article-share a:hover {
  background: #DC2626;
  color: #fff;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
}
.blog-sidebar-widget {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.blog-sidebar-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

/* Back Button */
.btn-back-blog {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #DC2626;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: gap 0.3s;
}
.btn-back-blog:hover {
  gap: 12px;
  color: #b91c1c;
}

/* Recent Posts */
.blog-recent-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.blog-recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.blog-recent-post:first-of-type {
  padding-top: 0;
}
.blog-recent-post:hover .blog-recent-content h4 {
  color: #DC2626;
}
.blog-recent-thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 12px;
  overflow: hidden;
}
.blog-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-recent-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-recent-date {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}
.blog-recent-content h4 {
  font-family: 'Funnel Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s;
}

/* CTA Card */
.blog-cta-card {
  background: linear-gradient(135deg, #DC2626 0%, #b91c1c 100%) !important;
  color: #fff;
  text-align: center;
}
.blog-cta-card h3 {
  color: #fff;
  font-family: 'Funnel Display', sans-serif;
  margin-bottom: 8px;
}
.blog-cta-card p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 16px;
}
.btn-blog-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #DC2626;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-blog-cta:hover {
  background: #fef2f2;
  transform: translateY(-2px);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 991px) {
  .blog-featured-content {
    padding: 24px;
    min-height: auto;
  }
  .blog-featured-thumb {
    min-height: 220px;
  }
  .blog-featured-thumb img {
    min-height: 220px;
  }
  .blog-article-title {
    font-size: 22px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .blog-article-meta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .blog-article-content {
    padding: 16px 20px 24px;
  }
  .blog-article-share {
    padding: 16px 20px 24px;
  }
  .blog-sidebar {
    position: static;
  }
}
@media (max-width: 575px) {
  .breadcrumb-wrapper .page-heading {
    padding: 40px 0;
  }
  .breadcrumb-wrapper .page-heading h1 {
    font-size: 20px;
  }
  .blog-card-thumb {
    height: 180px;
  }
}
