/* =========================================
   Blog List Page Styles (Montserrat Font)
   ========================================= */

.blogpage-wrapper,
.blogpage-wrapper * {
  box-sizing: border-box;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.blogpage-wrapper {
  width: 100%;
  background-color: #ffffff;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* 1. Hero Banner */
.blogpage-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: url('../img/zo_daily_bg.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 85px 20px;
  overflow: hidden;
}

.blogpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.blogpage-hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blogpage-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}

/* 2. Intro Section */
.blogpage-content-section {
  width: 100%;
  padding: 70px 20px 100px;
}

.blogpage-container {
  max-width: 1140px;
  margin: 0 auto;
}

.blogpage-intro {
  text-align: center;
  margin-bottom: 55px;
}

.blogpage-intro-title {
  font-size: 38px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.blogpage-intro-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #555555;
  font-weight: 400;
  max-width: 660px;
  margin: 0 auto !important;
}

/* 3. Blog Cards Grid */
.blogpage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.blogpage-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blogpage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.blogpage-card-img-wrap {
  width: 100%;
  height: 235px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.blogpage-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blogpage-card:hover .blogpage-card-img {
  transform: scale(1.04);
}

.blogpage-card-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blogpage-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.blogpage-card-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.blogpage-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.blogpage-card-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blogpage-card-title a:hover {
  color: #4b5563;
}

.blogpage-card-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555555;
  font-weight: 400;
  margin: 0;
}

/* 4. Pagination */
.blogpage-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.blogpage-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blogpage-pagination .page-numbers:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.blogpage-pagination .page-numbers.current {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.blogpage-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

/* 5. Single Blog Post Details Layout */
.singleblog-section {
  width: 100%;
  padding: 60px 20px 100px;
}

.singleblog-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.singleblog-article {
  width: 100%;
}

.singleblog-title {
  font-size: 34px;
  font-weight: 800;
  color: #000000;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.singleblog-meta {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.6;
}

.singleblog-meta a {
  color: #111827;
  text-decoration: underline;
  font-weight: 600;
}

.singleblog-featured-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #f1f5f9;
}

.singleblog-featured-img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.singleblog-content {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b5563;
  font-weight: 400;
}

.singleblog-content p {
  margin-bottom: 20px;
}

.singleblog-content h2,
.singleblog-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
}

/* Sidebar: Most Popular */
.singleblog-sidebar {
  width: 100%;
  position: sticky;
  top: 30px;
}

.singleblog-sidebar-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 20px;
}

.singleblog-sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 22px;
  letter-spacing: -0.2px;
}

.singleblog-popular-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.singleblog-popular-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.singleblog-popular-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.singleblog-popular-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.singleblog-popular-item:hover .singleblog-popular-img {
  transform: scale(1.04);
}

.singleblog-popular-title {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin-top: 10px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.singleblog-popular-item:hover .singleblog-popular-title {
  color: #4b5563;
}

/* Responsive */
@media (max-width: 992px) {
  .blogpage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .singleblog-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blogpage-hero-title {
    font-size: 38px;
  }

  .blogpage-intro-title {
    font-size: 32px;
  }

  .singleblog-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .blogpage-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .blogpage-content-section,
  .singleblog-section {
    padding: 50px 16px 70px;
  }

  .blogpage-hero {
    min-height: 220px;
    padding: 60px 16px;
  }

  .blogpage-hero-title {
    font-size: 30px;
  }

  .blogpage-intro-title {
    font-size: 26px;
  }

  .blogpage-intro-desc {
    font-size: 13.5px;
  }

  .singleblog-title {
    font-size: 24px;
  }
}