.elementor-widget-html .tfys-blog,
.elementor-widget-html .tfys-blog *,
.elementor-widget-shortcode .tfys-blog,
.elementor-widget-shortcode .tfys-blog * {
  box-sizing: border-box;
}

.tfys-blog {
  --tfys-text: #4A4540;
  --tfys-text-mid: #6D6560;
  --tfys-ocher: #C28E4D;
  --tfys-sage-dark: #3E4A3A;
  --tfys-border: rgba(194, 142, 77, 0.28);
  --tfys-cream: #f8f6df;
  --tfys-max: 1120px;
  width: 100%;
  max-width: var(--tfys-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 24px);
  font-family: 'Montserrat', Arial, sans-serif !important;
  color: var(--tfys-text);
  background: transparent !important;
}

.tfys-blog h2,
.tfys-blog h3,
.tfys-blog p,
.tfys-blog a,
.tfys-blog time {
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.tfys-blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tfys-border);
}

.tfys-blog__intro {
  flex: 1;
  min-width: 0;
}

.tfys-blog__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(1.65rem, 2.8vw, 2.1rem) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: var(--tfys-sage-dark) !important;
  margin-bottom: 6px !important;
}

.tfys-blog__subtitle {
  max-width: 520px;
  font-size: 0.92rem !important;
  font-weight: 300 !important;
  line-height: 1.55 !important;
  color: var(--tfys-text-mid) !important;
}

.tfys-blog__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tfys-blog__card {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid var(--tfys-border);
  box-shadow: 0 4px 18px rgba(74, 69, 64, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tfys-blog__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 69, 64, 0.08);
}

.tfys-blog button.tfys-blog__link,
.tfys-blog__link {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  padding: 16px 18px !important;
  height: auto;
  text-align: left;
  text-decoration: none !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tfys-blog button.tfys-blog__cta,
.tfys-blog__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35em;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(194, 142, 77, 0.55) !important;
  color: var(--tfys-ocher) !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  white-space: nowrap;
  background: transparent !important;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tfys-blog__cta:hover,
.tfys-blog__cta:focus-visible {
  background: rgba(194, 142, 77, 0.08) !important;
  border-color: var(--tfys-ocher) !important;
  outline: none;
}

.tfys-blog__media {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f3efe6;
  align-self: center;
}

.tfys-blog__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tfys-blog__card:hover .tfys-blog__media img {
  transform: scale(1.05);
}

.tfys-blog__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 4px 4px 4px 0;
  flex: 1;
  min-width: 0;
}

.tfys-blog__date {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tfys-ocher) !important;
  display: block;
}

.tfys-blog__headline {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem) !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--tfys-sage-dark) !important;
  display: block;
}

.tfys-blog__excerpt {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: var(--tfys-text-mid) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tfys-blog__more {
  margin-top: 2px !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  color: var(--tfys-ocher) !important;
  display: inline-block;
}

/* Blog list modal */
.tfys-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
}

.tfys-blog-modal.is-open,
.tfys-blog-modal.is-open[hidden] {
  display: flex !important;
}

.tfys-blog-modal .tfys-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 45, 38, 0.55);
  backdrop-filter: blur(2px);
}

.tfys-blog-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #f8f6df !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.tfys-blog-modal .tfys-modal__close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 5;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1.5px solid #C28E4D !important;
  background: #fff !important;
  color: #3E4A3A !important;
  font-size: 1.7rem !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

.tfys-blog-modal__content {
  overflow: auto;
  padding: 30px 28px 44px;
  -webkit-overflow-scrolling: touch;
}

.tfys-blog-modal .tfys-modal__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(1.55rem, 3vw, 2rem) !important;
  font-weight: 500 !important;
  color: #3E4A3A !important;
  text-align: center;
  margin: 0 36px 14px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1.3 !important;
}

.tfys-blog-modal .tfys-modal__line {
  display: block;
  width: 44px;
  height: 2px;
  margin: 0 auto 22px !important;
  background: #C28E4D !important;
}

.tfys-blog-modal__lead {
  text-align: center;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: #6D6560 !important;
  margin: 0 auto 24px !important;
  max-width: 520px;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tfys-blog-modal__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

button.tfys-blog-modal__item,
.tfys-blog-modal__item {
  display: grid !important;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  width: 100%;
  padding: 16px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(194, 142, 77, 0.25) !important;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tfys-blog-modal__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(74, 69, 64, 0.08);
}

.tfys-blog-modal__back {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25em;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tfys-ocher, #C28E4D) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none !important;
}

.tfys-blog-modal__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 28px;
  background: #f3efe6;
}

.tfys-blog-modal__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tfys-blog-modal__article-head {
  margin: 0 0 8px;
}

.tfys-blog-modal__article-date {
  display: block;
  text-align: center;
  margin: 0 0 12px !important;
  letter-spacing: 0.1em;
}

.tfys-blog-modal__article-title {
  max-width: 18em;
  margin-left: auto !important;
  margin-right: auto !important;
}

.tfys-blog-modal__article-body {
  margin: 0 auto;
  max-width: 36em;
  text-align: left;
}

.tfys-blog-modal__text {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  line-height: 1.8 !important;
  color: #4A4540 !important;
  margin: 0 0 1.35em !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.tfys-blog-modal__text:last-child {
  margin-bottom: 0.25em !important;
}

.tfys-blog-modal__media {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3efe6;
}

.tfys-blog-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tfys-blog-modal__body {
  min-width: 0;
}

.tfys-blog-modal__headline {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: #3E4A3A !important;
  margin: 6px 0 8px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
}

.tfys-blog-modal__excerpt {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  color: #6D6560 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
}

@media (max-width: 640px) {
  .tfys-blog__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tfys-blog__link {
    gap: 12px;
    padding: 14px !important;
  }

  .tfys-blog__media {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }

  .tfys-blog__excerpt {
    -webkit-line-clamp: 3;
  }

  .tfys-blog-modal__content {
    padding: 24px 18px 36px;
  }

  .tfys-blog-modal__item {
    grid-template-columns: 1fr;
  }

  .tfys-blog-modal__media {
    width: 100%;
    height: 160px;
  }

  .tfys-blog-modal__text {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
  }
}
