/* Blog list + single — CHAC Blocksy layout, GT green brand */
:root {
  --gt-blog-green: #078132;
  --gt-blog-green-dark: #056b28;
  --gt-blog-text: #353535;
  --gt-blog-muted: #5d666f;
  --gt-blog-line: #e0e5eb;
  --gt-blog-soft: #f4f8fc;
  --gt-blog-white: #fff;
  --gt-blog-container: min(1500px, 90vw);
  --gt-blog-narrow: min(750px, 90vw);
}

.gt-blog,
.gt-blog-single {
  color: var(--gt-blog-text);
  background: var(--gt-blog-white);
  font-family: Poppins, system-ui, sans-serif;
}

.gt-blog a,
.gt-blog-single a {
  color: var(--gt-blog-green);
  text-decoration: none;
  transition: color 0.12s ease;
}

.gt-blog a:hover,
.gt-blog-single a:hover {
  color: var(--gt-blog-green-dark);
}

.gt-blog-container {
  width: var(--gt-blog-container);
  margin-inline: auto;
  padding: 60px 0;
  box-sizing: border-box;
}

@media (max-width: 689.98px) {
  .gt-blog-container {
    padding: 40px 0 50px;
  }
}

/* ===== Hero (list) ===== */
.gt-blog-hero {
  position: relative;
  min-height: clamp(280px, 24vw, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #e8e8e8;
}

.gt-blog-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}

.gt-blog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.gt-blog-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 21, 25, 0.15);
}

.gt-blog-hero__inner {
  position: relative;
  z-index: 2;
  width: var(--gt-blog-narrow);
  margin-inline: auto;
  padding: 50px 16px;
  box-sizing: border-box;
}

.gt-blog-hero .page-title {
  margin: 0;
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
}

.gt-blog-hero .gt-blog-crumbs {
  margin-top: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.gt-blog-hero .gt-blog-crumbs a {
  color: #fff;
}

.gt-blog-hero .gt-blog-crumbs a:hover {
  color: #e8ffe8;
}

@media (max-width: 999.98px) {
  .gt-blog-hero {
    min-height: 250px;
  }

  .gt-blog-hero .page-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .gt-blog-hero {
    min-height: 280px;
  }
}

/* Breadcrumbs */
.gt-blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gt-blog-text);
  text-transform: capitalize;
}

.gt-blog-crumbs a {
  color: var(--gt-blog-text);
}

.gt-blog-crumbs a:hover {
  color: var(--gt-blog-green);
}

.gt-blog-crumbs__sep {
  display: inline-flex;
  margin: 0 8px;
  width: 8px;
  height: 8px;
  color: currentColor;
  flex-shrink: 0;
}

.gt-blog-crumbs__sep svg {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

/* ===== Entry grid ===== */
.gt-blog .gt-blog-entries,
.gt-blog-single .gt-blog-entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  grid-template-columns: var(--grid-template-columns);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
}

@media (max-width: 999.98px) {
  .gt-blog .gt-blog-entries,
  .gt-blog-single .gt-blog-entries {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 689.98px) {
  .gt-blog .gt-blog-entries,
  .gt-blog-single .gt-blog-entries {
    --grid-template-columns: 1fr;
  }

  .gt-blog-card {
    text-align: center;
  }
}

.gt-blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.gt-blog-card__media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  margin: 0 0 30px;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  background: var(--gt-blog-soft);
}

.gt-blog-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .gt-blog-card:hover .gt-blog-card__media img {
    transform: scale(1.1);
  }
}

.gt-blog-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.gt-blog-card__title a {
  color: var(--gt-blog-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-blog-card__title a:hover {
  color: var(--gt-blog-green);
}

.gt-blog-card__excerpt {
  margin: 0;
  color: var(--gt-blog-muted);
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 689.98px) {
  .gt-blog-card__title {
    font-size: 18px;
  }
}

/* Pagination */
.gt-blog-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 60px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gt-blog-text);
}

.gt-blog-pagination__pages {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -5px;
}

.gt-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 41px;
  height: 40px;
  margin: 5px;
  padding: 0 8px;
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--gt-blog-text);
  box-sizing: border-box;
}

.gt-blog-pagination .page-numbers:hover:not(.dots):not(.current) {
  border-color: var(--gt-blog-green);
}

.gt-blog-pagination .page-numbers.current {
  color: #fff;
  background: var(--gt-blog-green);
}

.gt-blog-pagination .next,
.gt-blog-pagination .prev {
  text-transform: uppercase;
  font-size: 12px;
  border-color: var(--gt-blog-line);
  padding: 0 17px;
  gap: 8px;
  white-space: nowrap;
}

.gt-blog-pagination .next {
  grid-column: 3;
  justify-self: end;
}

.gt-blog-pagination .prev {
  grid-column: 1;
  justify-self: start;
}

@media (max-width: 689.98px) {
  .gt-blog-pagination__pages {
    display: none;
  }
}

/* ===== Single ===== */
.gt-blog-single-layout {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 27%;
  gap: 4%;
  align-items: start;
}

@media (max-width: 999.98px) {
  .gt-blog-single-layout {
    grid-template-columns: 1fr;
  }

  .gt-blog-sidebar {
    order: 2;
  }
}

.gt-blog-single .entry-header {
  margin-bottom: 40px;
}

.gt-blog-single .entry-header .gt-blog-crumbs {
  margin-bottom: 20px;
}

.gt-blog-single .page-title {
  margin: 0;
  color: var(--gt-blog-green);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: capitalize;
}

.gt-blog-single .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gt-blog-muted);
}

.gt-blog-single .entry-meta a {
  color: var(--gt-blog-muted);
}

.gt-blog-single .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gt-blog-text);
}

.gt-blog-single .entry-content > *:first-child {
  margin-top: 0;
}

.gt-blog-single .entry-content p {
  margin: 0 0 1.5em;
}

.gt-blog-single .entry-content h2 {
  margin: 1.2em 0 0.5em;
  font-size: 30px;
  font-weight: 700;
  color: var(--gt-blog-text);
  line-height: 1.4;
}

.gt-blog-single .entry-content h3 {
  margin: 1.1em 0 0.45em;
  font-size: 26px;
  font-weight: 700;
  color: var(--gt-blog-text);
}

.gt-blog-single .entry-content h4 {
  margin: 1em 0 0.4em;
  font-size: 22px;
  font-weight: 700;
}

.gt-blog-single .entry-content a {
  color: var(--gt-blog-green) !important;
}

.gt-blog-single .entry-content ul,
.gt-blog-single .entry-content ol {
  margin: 0 0 1.5rem;
  padding-left: 20px;
}

.gt-blog-single .entry-content li {
  list-style: outside;
  margin-bottom: 12px;
  line-height: 1.8;
}

.gt-blog-single .entry-content img {
  border-radius: 8px;
  margin: 20px 0;
  max-width: 100%;
  height: auto;
}

.gt-blog-single .entry-content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 1.5em 0 !important;
  font-size: 16px;
}

.gt-blog-single .entry-content th,
.gt-blog-single .entry-content td {
  border: 1px solid #dadbdd !important;
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
}

.gt-blog-single .entry-content tr:first-child th {
  background: var(--gt-blog-green);
  color: #fff !important;
  font-weight: 700;
}

.gt-blog-single .entry-content tr:hover td {
  background: #eaf8ef;
}

.gt-blog-single .entry-content figure {
  margin: 1.5em 0;
}

.gt-blog-single .entry-content figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--gt-blog-muted);
  margin-top: 0.5em;
}

/* Post navigation */
.gt-blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--gt-blog-line);
  position: relative;
}

.gt-blog-post-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 15px);
  width: 1px;
  height: 50%;
  transform: translate(-50%, -50%);
  background: var(--gt-blog-line);
}

.gt-blog-post-nav__item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gt-blog-text);
  min-width: 0;
}

.gt-blog-post-nav__item:hover {
  color: var(--gt-blog-green);
}

.gt-blog-post-nav__next {
  justify-content: flex-end;
  text-align: end;
}

.gt-blog-post-nav__thumb {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 100%;
  overflow: hidden;
  position: relative;
}

.gt-blog-post-nav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gt-blog-post-nav__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.gt-blog-post-nav__title {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

@media (max-width: 689.98px) {
  .gt-blog-post-nav__thumb {
    flex-basis: 45px;
    width: 45px;
    height: 45px;
  }

  .gt-blog-post-nav__title {
    display: none;
  }
}

/* Sidebar */
.gt-blog-sidebar {
  position: sticky;
  top: 120px;
}

.gt-blog-toc {
  background: #f3fff6;
  border: 1px solid #f3fff6;
  border-radius: 15px;
  margin-bottom: 30px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.gt-blog-toc[hidden] {
  display: none !important;
}

.gt-blog-toc__title {
  color: var(--gt-blog-green);
  border-bottom: 1px solid #ccc;
  margin: 0 0 15px;
  padding-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
}

.gt-blog-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gt-blog-toc__list li {
  margin-bottom: 12px;
}

.gt-blog-toc__list a {
  color: #000;
  border-left: 2px solid transparent;
  padding-left: 12px;
  font-size: 15px;
  line-height: 1.5;
  text-transform: capitalize;
  display: block;
  transition: all 0.3s;
}

.gt-blog-toc__list a:hover,
.gt-blog-toc__list a.is-active {
  color: var(--gt-blog-green);
  border-left-color: var(--gt-blog-green);
}

.gt-blog-sidebar-block {
  margin-bottom: 28px;
}

.gt-blog-sidebar-block__title {
  color: var(--gt-blog-green);
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  text-transform: capitalize;
}

.gt-blog-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gt-blog-related-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gt-blog-related-list img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.gt-blog-related-list a {
  color: var(--gt-blog-text);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-blog-related-list a:hover {
  color: var(--gt-blog-green);
}

/* Sidebar inquiry */
.gt-blog-inquiry {
  display: grid;
  gap: 12px;
}

.gt-blog-inquiry label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--gt-blog-text);
}

.gt-blog-inquiry .ff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 689.98px) {
  .gt-blog-inquiry .ff-row {
    grid-template-columns: 1fr;
  }
}

.gt-blog-inquiry input,
.gt-blog-inquiry textarea {
  width: 100%;
  border: 1px solid var(--gt-blog-line);
  border-radius: 7px;
  padding: 11px 15px;
  font: inherit;
  color: var(--gt-blog-text);
  background: #fff;
  box-sizing: border-box;
}

.gt-blog-inquiry input:focus,
.gt-blog-inquiry textarea:focus {
  outline: none;
  border-color: var(--gt-blog-green);
}

.gt-blog-inquiry textarea {
  min-height: 110px;
  resize: vertical;
}

.gt-blog-inquiry .is-required label::after {
  content: " *";
  color: #f56c6c;
}

.gt-blog-inquiry button {
  background: var(--gt-blog-green);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
  transition: background 0.15s ease;
}

.gt-blog-inquiry button:hover {
  background: var(--gt-blog-green-dark);
}

.gt-blog-inquiry .gt-form-note {
  font-size: 14px;
  color: var(--gt-blog-green);
}

/* Related posts bottom */
.gt-blog-related-bottom {
  background: #f6faff;
  padding: 40px 0;
  margin-top: 40px;
}

.gt-blog-related-bottom .gt-blog-container {
  padding-top: 0;
  padding-bottom: 0;
}

.gt-blog-related-bottom__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--gt-blog-text);
}

.gt-blog-related-bottom .gt-blog-entries {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gt-blog-related-bottom .gt-blog-card__media {
  margin-bottom: 12px;
  border-radius: 5px;
}

.gt-blog-related-bottom .gt-blog-card__media img {
  aspect-ratio: 16 / 9;
}

.gt-blog-related-bottom .gt-blog-card__title {
  font-size: 18px;
  text-transform: capitalize;
}

@media (max-width: 999.98px) {
  .gt-blog-related-bottom .gt-blog-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 689.98px) {
  .gt-blog-related-bottom .gt-blog-entries {
    grid-template-columns: 1fr;
  }
}

/* Empty state */
.gt-blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gt-blog-muted);
}
