/* ═══════════════════════════════════════════════════════════
   TERRA EDITORIAL — Gutenberg / Homepage Layer
   v2.1 — Consolidado no child theme (01/04/2026)

   ESCOPO: Homepage Gutenberg, /blog/, newsletter,
   footer layout e ajustes complementares ao design system.
   ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════
   A. VARIÁVEIS AUXILIARES (complementam o child theme)
   ═══════════════════════════════════════════════════════ */
:root {
  --te-pad-x: 18px;
  --te-container: 1120px;
  --te-gap: 18px;
  --te-section-y: 26px;
  --te-section-y-lg: 44px;
  --te-shadow-hover: 0 4px 12px rgba(0,0,0,.08);
}


/* ═══════════════════════════════════════════════════════
   B. LIMPEZA DA HOMEPAGE
   ═══════════════════════════════════════════════════════ */

/* Esconde elementos indesejados na home */
.home .entry-header,
.home .comments-area,
.home #comments,
.home .comment-respond,
.home .sharedaddy,
.home .jp-relatedposts,
.home .post-navigation,
.home .post-navigation-link-previous,
.home .post-navigation-link-next {
  display: none;
}

/* Remove margin-top da home sem afetar páginas internas */
.home .content-area {
  margin-top: 0 !important;
}

/* Remove paragrafos vazios do Gutenberg */
.entry-content > p:empty,
.single-content > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove margin-bottom entre secoes */
.wp-block-group.te-section,
.wp-block-group.te-strip {
  margin-bottom: 0 !important;
}

#main {
  scroll-margin-top: clamp(24px, 6vw, 96px);
}


/* ═══════════════════════════════════════════════════════
   C. SEÇÕES GUTENBERG — Wrappers
   ═══════════════════════════════════════════════════════ */
.te-hero,
.te-strip,
.te-section,
.te-section--cream,
.te-section--white,
.te-section--cream-dk {
  padding-inline: var(--te-pad-x);
}

.te-hero > *,
.te-strip > *,
.te-section > *,
.te-section--cream > *,
.te-section--white > *,
.te-section--cream-dk > * {
  max-width: var(--te-container);
  margin-inline: auto;
}

.te-section,
.te-section--cream,
.te-section--white,
.te-section--cream-dk {
  padding-top: var(--te-section-y);
  padding-bottom: var(--te-section-y);
}

.te-section--cream  { background: var(--te-cream); }
.te-section--white  { background: var(--te-white); }
.te-section--cream-dk { background: var(--te-cream-dk); }


/* ═══════════════════════════════════════════════════════
   D. HERO (homepage)
   ═══════════════════════════════════════════════════════ */
.wp-block-group.te-hero {
  background: var(--te-cream);
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  margin-bottom: 0 !important;
}

.te-hero > .wp-block-columns {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.te-hero > .wp-block-columns > .wp-block-column {
  flex-basis: 100%;
}

/* Overline label */
.te-overline {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.te-text-olive { color: var(--te-olive); }

/* Hero title */
.te-hero-title {
  margin: 0 0 10px;
  font-family: var(--te-font-heading);
  font-size: clamp(26px, 5.5vw, 42px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--te-slate);
}

/* Subtitle */
.te-subtitle {
  margin: 0 0 16px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--te-slate-md);
}

/* Hero buttons */
.te-hero .wp-block-buttons {
  gap: 8px;
  flex-wrap: wrap;
}

/* Hero image */
.te-hero-image,
.te-hero-image figure { margin: 0; }

.te-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--te-radius-lg);
}


/* ═══════════════════════════════════════════════════════
   E. STRIP (barra escura Emery Café)
   ═══════════════════════════════════════════════════════ */
.te-strip {
  background: var(--te-slate);
  padding-top: 12px;
  padding-bottom: 12px;
}

.te-strip > .wp-block-columns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.te-strip__label {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .64);
}

.te-strip__label strong {
  color: #fff;
  font-family: var(--te-font-heading);
  font-size: 17px;
  font-weight: 400;
}

.te-strip .wp-block-buttons { justify-content: center; }

.te-strip__btn .wp-block-button__link {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--te-terracotta-lt);
  border-color: var(--te-terracotta-lt);
  background: transparent;
}


/* ═══════════════════════════════════════════════════════
   F. SECTION TITLES / DIVIDERS
   ═══════════════════════════════════════════════════════ */
.te-section-title {
  margin: 0 0 8px;
  font-family: var(--te-font-heading);
  font-size: 22px;
  line-height: 1.14;
  font-weight: 400;
  color: var(--te-slate);
}

.te-mb-xl { margin-bottom: 20px; }
.te-mt-xl { margin-top: 20px; }

.te-divider {
  margin: 24px 0;
  border-color: var(--te-divider);
}

/* Título Temas centralizado */
.wp-block-group.te-section--cream .te-section-title {
  text-align: center !important;
}


/* ═══════════════════════════════════════════════════════
   G. BOTÕES GUTENBERG (wp-block-button)
   ═══════════════════════════════════════════════════════ */
.te-btn-primary .wp-block-button__link,
.te-btn-outline .wp-block-button__link {
  padding: 10px 16px;
  border-radius: var(--te-radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s var(--te-ease),
              color .2s var(--te-ease),
              border-color .2s var(--te-ease);
}

.te-btn-primary .wp-block-button__link {
  background: var(--te-terracotta);
  color: #fff;
  border: none;
}
.te-btn-primary .wp-block-button__link:hover {
  background: var(--te-terracotta-dk);
}

.te-btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--te-terracotta);
  border: 1px solid var(--te-terracotta);
}
.te-btn-outline .wp-block-button__link:hover {
  background: var(--te-terracotta);
  color: #fff;
}


/* ═══════════════════════════════════════════════════════
   H. GUIDE CARDS (homepage)
   ═══════════════════════════════════════════════════════ */
.te-guides-row,
.te-cats-row {
  display: flex;
  flex-direction: column;
  gap: var(--te-gap);
}

.te-guides-row .wp-block-column,
.te-cats-row .wp-block-column {
  flex-basis: 100%;
}

.te-guide-card {
  position: relative;
  overflow: hidden;
  padding: 0 16px 16px;
  background: var(--te-white);
  border: 1px solid var(--te-divider);
  border-radius: var(--te-radius-md);
  box-shadow: var(--te-shadow-card);
}

.te-guide-card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--te-terracotta);
}

/* Barra colorida por categoria */
.te-guide-card--terracotta::before { background: #B8572A; }
.te-guide-card--brown::before     { background: #6B4D3A; }
.te-guide-card--olive::before     { background: #3D4F2F; }
.te-guide-card--green::before     { background: #5A6E4A; }
.te-guide-card--earth::before     { background: #7A6C5B; }
.te-guide-card--blue::before      { background: #4A7C8F; }

.te-guide-card .te-badge {
  display: inline-block;
  margin: 12px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.te-badge--olive {
  background: var(--te-olive);
  color: #fff;
}

.te-guide-card__title {
  margin: 10px 0 8px;
  font-family: var(--te-font-heading);
  font-size: 18px;
  line-height: 1.24;
  font-weight: 400;
  color: var(--te-slate);
}

.te-guide-card__desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--te-slate-lt);
}

.te-guide-card__link {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.te-guide-card__link a {
  color: var(--te-terracotta);
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════════
   I. CATEGORY PILLS ("Temas do site")
   ═══════════════════════════════════════════════════════ */
.te-cat-pill {
  margin: 0;
  padding: 12px 14px;
  background: var(--te-white);
  border-radius: var(--te-radius-md);
  box-shadow: var(--te-shadow-card);
}

.te-cat-pill a {
  color: var(--te-slate);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* Hover por tema */
.te-cat-pill--coffee:hover  { background: #6B4D3A; }
.te-cat-pill--agri:hover    { background: #3D4F2F; }
.te-cat-pill--fish:hover    { background: #4A7C8F; }
.te-cat-pill--forest:hover  { background: #5A6E4A; }
.te-cat-pill--stoic:hover   { background: #5A5490; }
.te-cat-pill--bible:hover   { background: #8E5A4A; }
.te-cat-pill--health:hover  { background: #4A7A5A; }
.te-cat-pill:hover a { color: #fff; }

/* Layout: centrado, sem quebra */
.te-cats-row {
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.te-cats-row .wp-block-column {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: unset !important;
}

.te-cat-pill,
.te-cat-pill a {
  white-space: nowrap !important;
  display: inline-block !important;
}


/* ═══════════════════════════════════════════════════════
   J. QUERY LOOP / POSTS (homepage "Últimos posts")
   ═══════════════════════════════════════════════════════ */
.wp-block-post-template { gap: 16px; }

.wp-block-post-template .wp-block-post,
.te-latest-posts.wp-block-latest-posts li {
  overflow: hidden;
  background: var(--te-white);
  border-radius: var(--te-radius-md);
  box-shadow: var(--te-shadow-card);
}

.wp-block-post-template .wp-block-post {
  padding-bottom: 14px;
}

/* Featured image — aspect ratio fixo */
.wp-block-post-template .wp-block-post-featured-image,
.te-latest-posts .wp-block-latest-posts__featured-image {
  margin: 0;
}

.wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category badge nos posts */
.wp-block-post-template .wp-block-post-terms,
.wp-block-post-template .te-card__cat {
  margin: 0;
  padding: 12px 14px 0;
}

.wp-block-post-template .wp-block-post-terms a,
.wp-block-post-template .te-card__cat a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--te-terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
}

/* Post title */
.wp-block-post-template .wp-block-post-title,
.te-latest-posts .wp-block-latest-posts__post-title {
  margin: 0;
  padding: 8px 14px 0;
  font-family: var(--te-font-heading);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 400;
}

.wp-block-post-template .wp-block-post-title a,
.te-latest-posts .wp-block-latest-posts__post-title {
  display: block;
  color: var(--te-slate);
  text-decoration: none;
}

/* Excerpt */
.wp-block-post-template .wp-block-post-excerpt,
.te-latest-posts .wp-block-latest-posts__post-excerpt {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--te-slate-lt);
}

.wp-block-post-template .wp-block-post-excerpt__excerpt { margin: 0; }

/* Date */
.wp-block-post-template .wp-block-post-date,
.te-latest-posts .wp-block-latest-posts__post-date {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 12px;
  color: var(--te-slate-lt);
}

.te-latest-posts .wp-block-latest-posts__post-date {
  padding-bottom: 14px;
}

/* Latest posts list reset */
.te-latest-posts.wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.te-latest-posts li {
  padding: 0;
  margin: 0 0 16px;
}


/* ═══════════════════════════════════════════════════════
   K. /BLOG/ — Loop Entry fixes
   (Kadence archive loop, não Gutenberg query loop)
   ═══════════════════════════════════════════════════════ */

/* Thumbnail aspect-ratio no archive */
.loop-entry .post-thumbnail {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.loop-entry .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove share buttons nas listagens */
.archive .sharedaddy,
.blog .sharedaddy {
  display: none !important;
}

/* Imagens genéricas — aspect ratio pré-carregamento */
.wp-post-image,
.entry-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

figure.wp-block-image img {
  width: 100%;
  height: auto;
}


/* ═══════════════════════════════════════════════════════
   L. NEWSLETTER — Full-width breakout
   ═══════════════════════════════════════════════════════ */
.wp-block-group.te-section--cream-dk {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wp-block-group.alignfull.is-style-section-3 {
  position: relative;
  color: #fff !important;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
  box-sizing: border-box;
  isolation: isolate;
}

.wp-block-group.alignfull.is-style-section-3::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background-color: #2C2C2A;
}

.wp-block-group.alignfull.is-style-section-3 h2,
.wp-block-group.alignfull.is-style-section-3 p {
  color: #fff !important;
}

.wp-block-group.alignfull.is-style-section-3 > .wp-block-group__inner-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Newsletter styles live in terra-editorial-overrides.css */


/* ═══════════════════════════════════════════════════════
   M. FOOTER — Widgets, crédito, layout
   ═══════════════════════════════════════════════════════ */

/* Footer widgets: transparente, sem borda */
.site-footer .widget,
.site-footer .widget-area .widget {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, .64);
}

.site-footer .widget p,
.site-footer .widget span,
.site-footer .textwidget,
.site-footer .custom-html-widget p {
  color: rgba(255, 255, 255, .64);
  background: transparent;
}

.site-info { color: rgba(255, 255, 255, .38); }

/* Esconde crédito Kadence */
.site-info a[href*="kadencewp"] { display: none; }

/* Footer layout centralizado */
.site-footer-wrap {
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

.site-middle-footer-inner-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.site-footer-row-container-inner {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-lower-footer-row {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
}


/* ═══════════════════════════════════════════════════════
   N. STICKY FOOTER LAYOUT
   (remove o hack de fundo escuro no body)
   ═══════════════════════════════════════════════════════ */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--te-cream);
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
}


/* ═══════════════════════════════════════════════════════
   O. MOBILE (max-width: 767px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Hero empilha */
  .te-hero .wp-block-columns {
    flex-direction: column !important;
  }
  .te-hero .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .te-hero-image img {
    max-height: 280px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 16 / 9;
  }

  /* Font sizes */
  .te-hero-title { font-size: 28px; }
  .te-section-title { font-size: 22px; }

  /* Desativa hover effects no mobile */
  .te-guide-card:hover,
  .wp-block-post-template .wp-block-post:hover,
  .te-latest-posts li:hover,
  .te-cat-pill:hover {
    transform: none;
    box-shadow: var(--te-shadow-card);
  }
}

/* Newsletter: input/button empilhados no mobile pequeno */
@media (max-width: 600px) {
  .emailBtnElement {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .emailBtnElement input[type="email"],
  .emailBtnElement button,
  .emailBtnElement input[type="submit"] {
    width: 100% !important;
  }

}


/* ═══════════════════════════════════════════════════════
   P. TABLET / DESKTOP (min-width: 768px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .te-hero,
  .te-strip,
  .te-section,
  .te-section--cream,
  .te-section--white,
  .te-section--cream-dk {
    padding-inline: 24px;
  }

  .te-hero {
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .te-strip {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .te-strip > .wp-block-columns {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .te-hero > .wp-block-columns {
    flex-direction: row;
    gap: 30px;
  }

  .te-hero > .wp-block-columns > .wp-block-column {
    flex: 1 1 0;
  }

  .te-section,
  .te-section--cream,
  .te-section--white,
  .te-section--cream-dk {
    padding-top: var(--te-section-y-lg);
    padding-bottom: var(--te-section-y-lg);
  }

  .te-section-title { font-size: 26px; }

  .te-guides-row,
  .te-cats-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* ═══════════════════════════════════════════════════════
   Q. HOVER SÓ NO DESKTOP (min-width: 1025px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .te-guide-card,
  .wp-block-post-template .wp-block-post,
  .te-latest-posts li,
  .te-cat-pill {
    transition:
      box-shadow .22s var(--te-ease),
      transform .22s var(--te-ease),
      border-color .22s var(--te-ease),
      color .22s var(--te-ease),
      background-color .22s var(--te-ease);
  }

  .te-guide-card:hover {
    transform: translateY(-2px);
    border-color: var(--te-terracotta);
    box-shadow: var(--te-shadow-hover);
  }

  .te-guide-card:hover .te-guide-card__link a,
  .wp-block-post-template .wp-block-post:hover .wp-block-post-title a {
    color: var(--te-terracotta);
  }

  .wp-block-post-template .wp-block-post:hover,
  .te-latest-posts li:hover {
    transform: translateY(-2px);
    box-shadow: var(--te-shadow-hover);
  }

  .te-btn-primary .wp-block-button__link:hover,
  .te-btn-outline .wp-block-button__link:hover {
    transform: translateY(-1px);
  }
}

/* Front-end polish v2.4.0 */
.te-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 246, 241, 0.98) 100%);
  border: 1px solid rgba(44, 44, 44, 0.06);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(31, 43, 68, 0.08);
}

.te-hero > .wp-block-columns {
  gap: clamp(18px, 4vw, 42px);
}

.te-hero-image,
.te-hero-image img {
  border-radius: 8px;
}

.te-strip > .wp-block-columns {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 44, 44, 0.07);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 43, 68, 0.06);
}

.te-guide-card,
.wp-block-post-template .wp-block-post,
.te-latest-posts li,
.te-cat-pill {
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 43, 68, 0.06);
  transition:
    transform 0.24s var(--te-ease),
    box-shadow 0.24s var(--te-ease),
    border-color 0.24s var(--te-ease),
    color 0.24s var(--te-ease),
    background-color 0.24s var(--te-ease);
}

.te-guide-card {
  padding: 0 18px 18px;
}

.te-guide-card__title {
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}

.te-guide-card__desc {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.65;
}

.te-guide-card__link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(184, 87, 42, 0.22);
  transition:
    color 0.24s var(--te-ease),
    border-color 0.24s var(--te-ease),
    transform 0.24s var(--te-ease);
}

.te-guide-card__link a::after {
  content: '->';
  font-size: 12px;
  transition: transform 0.24s var(--te-ease);
}

.wp-block-post-template .wp-block-post {
  padding-bottom: 18px;
}

.wp-block-post-template .wp-block-post-featured-image,
.te-latest-posts .wp-block-latest-posts__featured-image {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.wp-block-post-featured-image img,
.te-latest-posts .wp-block-latest-posts__featured-image img {
  transition: transform 0.6s var(--te-ease);
}

.wp-block-post-template .wp-block-post-terms,
.wp-block-post-template .te-card__cat {
  padding: 16px 18px 0;
}

.wp-block-post-template .wp-block-post-title,
.te-latest-posts .wp-block-latest-posts__post-title {
  padding: 10px 18px 0;
  letter-spacing: -0.01em;
}

.wp-block-post-template .wp-block-post-title a,
.te-latest-posts .wp-block-latest-posts__post-title a {
  transition: color 0.24s var(--te-ease);
}

.wp-block-post-template .wp-block-post-excerpt,
.te-latest-posts .wp-block-latest-posts__post-excerpt,
.wp-block-post-template .wp-block-post-date,
.te-latest-posts .wp-block-latest-posts__post-date {
  padding-left: 18px;
  padding-right: 18px;
}

.te-cat-pill {
  overflow: hidden;
}

.te-cat-pill a {
  padding: 12px 16px;
  transition: color 0.24s var(--te-ease), transform 0.24s var(--te-ease);
}

@media (min-width: 1025px) {
  .te-guide-card:hover,
  .wp-block-post-template .wp-block-post:hover,
  .te-latest-posts li:hover,
  .te-cat-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(31, 43, 68, 0.12);
  }

  .te-guide-card:hover .te-guide-card__link a::after,
  .te-cat-pill:hover a {
    transform: translateX(3px);
  }

  .wp-block-post-template .wp-block-post:hover .wp-block-post-featured-image img,
  .te-latest-posts li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.05);
  }
}

@media (max-width: 767px) {
  .te-strip > .wp-block-columns,
  .te-guide-card,
  .wp-block-post-template .wp-block-post,
  .te-latest-posts li {
    border-radius: 8px;
  }

  .te-guide-card,
  .wp-block-post-template .wp-block-post {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wp-block-post-template .wp-block-post-terms,
  .wp-block-post-template .te-card__cat,
  .wp-block-post-template .wp-block-post-title,
  .te-latest-posts .wp-block-latest-posts__post-title,
  .wp-block-post-template .wp-block-post-excerpt,
  .te-latest-posts .wp-block-latest-posts__post-excerpt,
  .wp-block-post-template .wp-block-post-date,
  .te-latest-posts .wp-block-latest-posts__post-date {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Responsive system v2.5.1 */
@media (max-width: 767px) {
  .te-guides-row,
  .te-cats-row {
    gap: 14px !important;
  }

  .te-guides-row .wp-block-column,
  .te-cats-row .wp-block-column {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .te-guide-card {
    width: 100%;
    padding: 0 16px 16px;
  }

  .te-guide-card__title {
    font-size: 18px;
    line-height: 1.24;
  }

  .te-guide-card__desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .te-guide-card__link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@supports (container-type: inline-size) {
  .wp-block-group.alignfull.te-home-newsletter > .wp-block-group__inner-container,
  .te-home-newsletter > .wp-block-group__inner-container {
    container-type: inline-size;
  }

  @container (max-width: 46rem) {
    .te-home-newsletter .wp-block-columns {
      grid-template-columns: 1fr !important;
      gap: 20px !important;
    }
  }
}
