/* Blog pages under the slim layout. Replaces the small Bootstrap/Appset surface the export relied on. */
.pt-blog-index,
.pt-blog-detail {
  background: var(--surface);
  color: var(--ink);
}

.pt-blog-index .cp-load-after-post,
.pt-blog-detail .cp-load-after-post {
  display: none;
}

.pt-blog-index a,
.pt-blog-detail a {
  color: inherit;
  text-decoration: none;
}

.blog-hero {
  padding: 140px 24px 72px;
  background: linear-gradient(180deg, var(--green-pale) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.28;
  pointer-events: none;
}

.blog-hero .section-wrap {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.blog-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-mid);
  font-size: 1.08rem;
  line-height: 1.7;
}

.blog-grid-section {
  padding: 72px 24px 96px;
}

.blog-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.blog-search-form {
  display: flex;
  width: min(100%, 620px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.blog-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

.blog-search-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.blog-content h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-content h3 a:hover,
.blog-readmore:hover,
.pt-blog-filter a:hover,
.pt-blog-detail a:hover {
  color: var(--green);
}

.blog-excerpt {
  margin: 0 0 20px;
  color: var(--ink-mid);
  line-height: 1.65;
  font-size: .95rem;
}

.blog-readmore {
  margin-top: auto;
  color: var(--green);
  font-size: .9rem;
  font-weight: 800;
}

.pt-blog-filter,
.pt-blog-empty {
  margin: 0 0 24px;
  color: var(--ink-mid);
  text-align: center;
}

.blog-pagination {
  margin-top: 42px;
  display: flex;
  justify-content: center;
}

.custom-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-number,
.page-next {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink-mid);
  background: var(--surface);
  font-weight: 700;
}

.page-number.active,
.page-number:hover,
.page-next:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.pt-blog-detail .blog-page-section {
  padding: 128px 24px 96px;
}

.pt-blog-detail .container {
  max-width: 1180px;
  margin: 0 auto;
}

.pt-blog-detail .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: start;
}

.post.single-post-details {
  background: var(--surface);
}

.blog-post-img {
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.blog-post-img img,
.popular-posts img {
  width: 100%;
  display: block;
  height: auto;
}

.post-meta {
  margin-bottom: 14px;
  color: var(--ink-light);
  font-size: .9rem;
  font-weight: 600;
}

.pt-blog-detail-title {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.entry-content {
  color: var(--ink-mid);
  font-size: 1.05rem;
  line-height: 1.82;
}

.entry-content > * + * {
  margin-top: 18px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.entry-content h2 {
  margin-top: 38px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.entry-content h3 {
  margin-top: 30px;
  font-size: 1.3rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
}

.entry-content li + li {
  margin-top: 10px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.appset-post-sidebar .pl-60 {
  padding: 0;
  position: sticky;
  top: 92px;
}

.sidebar-div {
  margin-bottom: 22px;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.widget-title {
  margin: 0 0 14px;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
}

.sidebar-div ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-div li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar-div a {
  color: var(--ink-mid);
  font-weight: 650;
  line-height: 1.35;
}

.sidebar-div a:hover,
.pt-blog-cat-active {
  color: var(--green) !important;
}

.search-widget .input-group {
  display: flex;
  gap: 8px;
}

.search-widget .form-control {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.search-widget .btn-preset {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.popular-posts .has-thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.popular-posts img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-blog-detail .row {
    grid-template-columns: 1fr;
  }

  .appset-post-sidebar .pl-60 {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 112px 20px 56px;
  }

  .blog-grid-section,
  .pt-blog-detail .blog-page-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-grid,
  .blog-search-form {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    gap: 18px;
  }

  .blog-search-form {
    flex-direction: column;
  }
}
