/* =========================================================
   BLOG ARCHIVE
========================================================= */

.cb-blog-archive,
.cb-single-post {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fcf8f3;
}

.cb-blog-archive {
  padding: 180px 0 100px;
}

.cb-single-post {
  padding: 88px 0 100px;
}

.cb-blog-archive__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.cb-single-post__container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.cb-blog-archive #breadcrumbs,
.cb-single-post #breadcrumbs {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #8a7768;
}

.cb-blog-archive #breadcrumbs a,
.cb-single-post #breadcrumbs a {
  color: #8a7768;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cb-blog-archive #breadcrumbs a:hover,
.cb-single-post #breadcrumbs a:hover {
  color: #c5768d;
}

.cb-blog-archive__head {
  max-width: 780px;
  margin-bottom: 40px;
}

.cb-blog-archive__title {
  margin: 0px 0 14px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
  font-weight: 700;
  
  color: #000;
  
}

.cb-blog-archive__description {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #000;
}

.cb-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.cb-post-card {
  display: flex;
  flex-direction: column;
  background: #f6eee5;
  border: 1px solid #eadfd2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(86, 60, 35, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cb-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(86, 60, 35, 0.12);
  border-color: #dfc8cf;
}

.cb-post-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  background: #eadfd2;
}

.cb-post-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.cb-post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.cb-post-card:hover .cb-post-card__image {
  transform: scale(1.05);
}

.cb-post-card__image--placeholder {
  background: linear-gradient(135deg, #eadfd2 0%, #f6eee5 100%);
}

.cb-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
  background:#fff;
}

.cb-post-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #000;
}

.cb-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.cb-post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.4;
  color: #8c7868;
}

.cb-post-card__date ion-icon {
  font-size: 16px;
  color: #c5768d;
}

.cb-post-card__button {
  margin-top: auto;
}

.cb-post-card__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 8px;
  background: #cf7890;
  width:100%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(207, 120, 144, 0.22);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cb-post-card__button a:hover {
  background: #bb627b;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(207, 120, 144, 0.28);
}

.cb-blog-empty {
  padding: 28px 30px;
  border-radius: 24px;
  background: #f6eee5;
  border: 1px solid #eadfd2;
  color: #5b4a3f;
  font-size: 17px;
}

/* =========================================================
   PAGINATION
========================================================= */

.cb-blog-pagination {
  margin-top: 40px;
}

.cb-blog-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-blog-pagination .page-numbers li {
  list-style: none;
}

.cb-blog-pagination .page-numbers a,
.cb-blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f2e7db;
  border: 1px solid #e3d5c6;
  color: #4a3a2f;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cb-blog-pagination .page-numbers a:hover {
  background: #cf7890;
  border-color: #cf7890;
  color: #fff;
}

.cb-blog-pagination .page-numbers .current {
  background: #3b2d25;
  border-color: #3b2d25;
  color: #fff;
}

.cb-blog-pagination .page-numbers .dots {
  background: transparent;
  border-color: transparent;
  min-width: auto;
  padding: 0 4px;
}

/* =========================================================
   SINGLE POST
========================================================= */

.cb-single-post__article {
  display: block;
}

.cb-single-post__header {
  margin-bottom: 28px;
  background:transparent;
  position:relative;
  margin-top:66px;
  flex-direction:column;
  align-items:flex-start;
}

.cb-single-post__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.3;
  font-weight: 700;
  color: #000;
}

.cb-single-post__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f2e7db;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
}

.cb-single-post__meta ion-icon {
  font-size: 16px;
  color: #c5768d;
}

.cb-single-post__featured {
  margin-bottom: 36px;
}

.cb-single-post__featured img {
  width: 100%;
  display: block;
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(86, 60, 35, 0.12);
}

.cb-single-post__content {
  color: #000;
}

.cb-single-post__content p,
.cb-single-post__content li,
.cb-single-post__content blockquote,
.cb-single-post__content figcaption {
  font-size: 18px;
  line-height: 1.85;
}

.cb-single-post__content p {
  margin: 0 0 22px;
}

.cb-single-post__content h1,
.cb-single-post__content h2,
.cb-single-post__content h3,
.cb-single-post__content h4,
.cb-single-post__content h5,
.cb-single-post__content h6 {
  margin: 42px 0 18px;
  line-height: 1.18;
  color: #000;
  font-weight: 700;
}

.cb-single-post__content h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.cb-single-post__content h3 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.cb-single-post__content h4 {
  font-size: 24px;
}

.cb-single-post__content ul,
.cb-single-post__content ol {
  margin: 0 0 28px;
  padding-left: 24px;
}

.cb-single-post__content li {
  margin-bottom: 10px;
}

.cb-single-post__content a {
  color: #c5768d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cb-single-post__content a:hover {
  color: #a8546d;
}

.cb-single-post__content strong {
  color: #000;
}

.cb-single-post__content blockquote {
  margin: 34px 0;
  padding: 28px 30px;
  border-left: 4px solid #cf7890;
  background: #f6eee5;
  border-radius: 20px;
  font-style: italic;
  color: #5a473b;
}

.cb-single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
}

.cb-single-post__content figure {
  margin: 34px 0;
}

.cb-single-post__content figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #8a7768;
  text-align: center;
}

.cb-single-post__content hr {
  border: 0;
  height: 1px;
  background: #e6d8ca;
  margin: 40px 0;
}

.cb-single-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: #fffaf6;
  overflow: hidden;
  border-radius: 16px;
}

.cb-single-post__content table th,
.cb-single-post__content table td {
  padding: 14px 16px;
  border: 1px solid #eadfd2;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}

.cb-single-post__content table th {
  background: #f2e7db;
  color: #000;
  font-weight: 700;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .cb-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .cb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .cb-post-card__title {
    font-size: 22px;
  }

  .cb-single-post__content p,
  .cb-single-post__content li,
  .cb-single-post__content blockquote {
    font-size: 17px;
    line-height: 1.8;
  }
}

@media (max-width: 640px) {
  .cb-single-post__header{margin-top:0px;}
  .cb-blog-archive,
  .cb-single-post {
    padding: 88px 0 64px;
  }

  .cb-blog-archive__container,
  .cb-single-post__container {
    padding: 0 16px;
  }

  .cb-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cb-blog-archive__head {
    margin-bottom: 28px;
  }

  .cb-post-card__body {
    padding: 18px;
  }

  .cb-single-post__featured {
    margin-bottom: 26px;
  }

  .cb-single-post__content p,
  .cb-single-post__content li,
  .cb-single-post__content blockquote,
  .cb-single-post__content figcaption {
    font-size: 16px;
  }

  .cb-single-post__content blockquote {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .cb-blog-pagination .page-numbers {
    gap: 8px;
  }

  .cb-blog-pagination .page-numbers a,
  .cb-blog-pagination .page-numbers span {
    min-width: 42px;
    height: 42px;
    font-size: 14px;
    padding: 0 14px;
  }
}