/* ========================================
   RedKnotr Homepage New Sections
   Trust Bar / Tools / Shop by Intention / Journal
   ======================================== */

/* --- Trust Bar --- */
.home-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #e6e2dc;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 30px;
}

.home-trust-item {
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid #e6e2dc;
}

.home-trust-item:last-child {
  border-right: none;
}

.home-trust-icon {
  font-size: 24px;
  margin-bottom: 6px;
  color: #b8551d;
}

.home-trust-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2328;
  margin-bottom: 2px;
}

.home-trust-desc {
  font-size: 11.5px;
  color: #6b7280;
}

/* --- Section Common --- */
.home-section {
  margin: 50px 0;
}

.home-section-header {
  text-align: center;
  margin-bottom: 28px;
}

.home-section-title {
  font-size: 26px;
  font-weight: 600;
  color: #1f2328;
  margin: 0 0 8px 0;
  font-family: 'Poppins', sans-serif;
}

.home-section-subtitle {
  font-size: 14px;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
}

.home-section-view-all {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #b3261e;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.home-section-view-all:hover {
  color: #8a1e18;
  text-decoration: underline;
}

/* --- Tools Cards --- */
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-tools-grid.single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.home-tools-grid.single.full {
  max-width: none;
}

.home-tool-card.inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-tool-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: block;
}

.home-tool-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.home-tool-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.home-tool-icon {
  font-size: 26px;
  line-height: 1;
}

.home-tool-title {
  font-size: 26px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s;
}

.home-tool-card:hover .home-tool-title {
  color: #8B7355;
}

.home-tool-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* --- Topic Articles (latest article per topic) --- */
.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-article-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-article-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.home-article-thumb {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #f6f4f0;
}

.home-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-article-title {
  padding: 12px 16px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.4;
  transition: color 0.2s;
}

.home-article-card:hover .home-article-title {
  color: #8B7355;
}

/* --- Shop by Intention --- */
.home-intentions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-intention-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #1f2328;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-intention-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.home-intention-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f4f0;
}

.home-intention-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-intention-thumb.all {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #8B7355;
}

.home-intention-name {
  padding: 12px 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2328;
  transition: color 0.2s;
}

.home-intention-card:hover .home-intention-name {
  color: #8B7355;
}

.home-intention-tagline {
  padding: 4px 10px 14px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* --- From the Journal --- */
.home-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-journal-card {
  background: #fff;
  border: 1px solid #e6e2dc;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: block;
}

.home-journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.home-journal-img-wrap {
  width: 100%;
  height: 180px;
  background: #faf9f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-journal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-journal-card:hover .home-journal-img {
  transform: scale(1.05);
}

.home-journal-content {
  padding: 18px;
}

.home-journal-date {
  font-size: 12px;
  color: #b3261e;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.home-journal-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
  margin-bottom: 6px;
  line-height: 1.4;
}

.home-journal-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .home-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .home-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .home-intentions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-journal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .home-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-trust-item:nth-child(2) {
    border-right: none;
  }
  .home-trust-item:nth-child(-n+2) {
    border-bottom: 1px solid #e6e2dc;
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-articles-grid {
    grid-template-columns: 1fr;
  }

  .home-intentions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .home-journal-grid {
    grid-template-columns: 1fr;
  }

  .home-section-title {
    font-size: 22px;
  }

  .home-tool-title {
    font-size: 22px;
  }

  .home-section {
    margin: 36px 0;
  }
}
