/* Blog pages under the slim layout. Replaces the small Bootstrap/Appset surface the export relied on. */
.pt-blog-index,
.pt-blog-detail {
  --green: #a32c32;
  --blog-title: #a42c35;
  --green-mid: #c24a4f;
  --green-pale: #fdf8f8;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eceff3;
  --ink: #29373b;
  --ink-mid: #636363;
  --ink-light: #969696;
  --border: #e3e7ec;
  --border-strong: #cfd5dc;
  --shadow-sm: 0 1px 4px rgba(38, 48, 62, 0.08);
  --shadow-md: 0 8px 28px rgba(38, 48, 62, 0.12);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.pt-blog-index .section-wrap,
.pt-blog-detail .section-wrap {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.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;
}

.pt-blog-index .blog-hero,
.pt-blog-detail .blog-hero {
  padding: 140px 0 52px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background-color: #1a1f24;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 26, 0.58);
  pointer-events: none;
}

.pt-blog-index .blog-hero::before,
.pt-blog-detail .blog-hero::before {
  content: none;
}

.pt-blog-index .blog-hero .section-wrap,
.pt-blog-detail .blog-hero .section-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.pt-blog-index .blog-hero h1,
.pt-blog-detail .blog-hero h1,
.blog-hero-heading {
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}

.blog-grid-section {
  padding: 40px 0 80px;
}

.pt-blog-index .blog-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.pt-blog-index .blog-search-form {
  display: flex;
  width: min(100%, 530px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.pt-blog-index .blog-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 10px;
}

.pt-blog-index .blog-search-input::placeholder {
  color: var(--ink-light);
  opacity: 1;
}

.pt-blog-index .blog-search-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 7px 16px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pt-blog-index .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
  min-width: 0;
}

.pt-blog-index .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  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;
}

.pt-blog-index .blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
}

.pt-blog-index .blog-thumb {
  display: block;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  overflow: hidden;
}

.pt-blog-index .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pt-blog-index .blog-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 24px 24px;
  min-height: 0;
}

.pt-blog-index .blog-content h3,
.pt-blog-index .blog-content h3 a {
  color: var(--blog-title);
}

.pt-blog-index .blog-content h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
  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);
}

.pt-blog-index .blog-excerpt {
  margin: 0 0 16px;
  color: var(--ink-mid);
  line-height: 1.65;
  font-size: .95rem;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pt-blog-index .blog-readmore {
  margin-top: auto;
  padding-top: 4px;
  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: 48px 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;
  margin-left: 0;
  margin-right: 0;
}

/* Bootstrap col-* flex/max-width fights the grid above and shrinks the sidebar. */
.pt-blog-detail .pt-blog-main,
.pt-blog-detail .pt-blog-sidebar,
.pt-blog-detail .appset-post-sidebar {
  flex: none;
  max-width: none;
  width: 100%;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.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.02em;
  overflow-wrap: break-word;
  color: var(--blog-title) !important;
}

.entry-content {
  color: var(--ink-mid);
  font-size: 1.05rem;
  line-height: 1.82;
}

.entry-content > * + * {
  margin-top: 18px;
}

.pt-blog-detail .entry-content h1,
.pt-blog-detail .entry-content h2,
.pt-blog-detail .entry-content h3,
.pt-blog-detail .entry-content h4 {
  color: var(--blog-title);
  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);
}

.pt-blog-detail .sidebar-div a {
  color: var(--ink-mid);
  font-weight: 650;
  line-height: 1.35;
  display: block;
  overflow-wrap: break-word;
  word-break: normal;
}

.pt-blog-detail .wp-block-latest-posts li {
  min-width: 0;
}

.sidebar-div a:hover,
.pt-blog-cat-active {
  color: var(--green) !important;
}

.pt-blog-detail .search-widget .input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.pt-blog-detail .search-widget .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.pt-blog-detail .search-widget .input-group-append {
  flex: 0 0 auto;
}

.pt-blog-detail .search-widget .btn-preset {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.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) {
  .pt-blog-index .blog-hero,
  .pt-blog-detail .blog-hero {
    padding-top: 120px;
  }

  .pt-blog-index .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .pt-blog-detail .row {
    grid-template-columns: 1fr;
  }

  .appset-post-sidebar .pl-60 {
    position: static;
  }
}

@media (max-width: 640px) {
  .pt-blog-index .blog-hero,
  .pt-blog-detail .blog-hero {
    padding: 100px 0 36px;
    min-height: 180px;
  }

  .blog-grid-section {
    padding: 32px 0 64px;
  }

  .pt-blog-detail .blog-page-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pt-blog-index .section-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pt-blog-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pt-blog-index .blog-search-form {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .pt-blog-index .blog-search-btn {
    width: 100%;
    padding: 9px 16px;
  }
}
