/* =========================================
   BUSH BAGS - HOMEPAGE JOURNAL
========================================= */

.bb-home-journal {
  width: 100%;
  padding: var(--bb-padding);
  background: var(--bb-white, #fff);
  box-sizing: border-box;
}

/* Section heading */

.bb-home-journal__header {
  text-align: center;
  margin: 0 auto 40px;
  width: var(--bb-container);
}

.bb-home-journal__header h2 {
  margin: 0 0 8px;
  color: var(--bb-grey, #65654d);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 700;
}

.bb-home-journal__header p {
  margin: 0 auto 28px;
  color: var(--bb-grey, #65654d);

  line-height: 1.7;
}

/* Visit Journal button */

.bb-home-journal__visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 42px;
  padding: 10px 24px;
  background: var(--bb-black, #252525);
  color: var(--bb-white, #fff);
  border-radius: 7px;
  text-decoration: none;

  font-weight: 500;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  box-sizing: border-box;
}

.bb-home-journal__visit:hover {
  background: var(--bb-orange, #b84f26);
  color: #fff;
  transform: translateY(-2px);
}

/* Post grid */

.bb-home-journal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  width: var(--bb-container);
  margin: 0 auto;
}

/* Individual cards */

.bb-home-journal__card {
  position: relative;
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid #777761;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

/* Featured image */

.bb-home-journal__image {
  position: relative;
  display: block;
  height: 45vh;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #f0efec;
  text-decoration: none;
}

.bb-home-journal__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.bb-home-journal__image:hover img {
  transform: scale(1.04);
}

/* Subtle overlay behind title */

.bb-home-journal__image::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.58) 100%
  );
  pointer-events: none;
}

/* Post title */

.bb-home-journal__title {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Fallback if there is no featured image */

.bb-home-journal__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: #eeece8;
  color: var(--bb-orange, #b84f26);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

/* Publication date */

.bb-home-journal__date {
  min-height: 42px;
  padding: 11px 14px;
  color: #222;

  line-height: 1.5;
  box-sizing: border-box;
}

/* Read more button */

.bb-home-journal__read {
  position: absolute;
  z-index: 2;
  bottom: -19px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  min-height: 34px;
  padding: 8px 16px;
  background: var(--bb-black, #333);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;

  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.bb-home-journal__read:hover {
  background: var(--bb-orange, #b84f26);
  color: #fff;
}

.bb-home-journal__empty {
  text-align: center;
  color: var(--bb-grey, #777);
}

/* Tablet */

@media (max-width: 900px) {
  .bb-home-journal {
    padding: 55px 3% 50px;
  }

  .bb-home-journal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .bb-home-journal__image {
    height: 210px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .bb-home-journal {
    padding: 42px 5% 40px;
  }

  .bb-home-journal__header {
    margin-bottom: 30px;
  }

  .bb-home-journal__header h2 {
    font-size: 28px;
  }

  .bb-home-journal__header p {
    font-size: 15px;
    line-height: 1.6;
  }

  .bb-desktop-break {
    display: none;
  }

  .bb-home-journal__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bb-home-journal__image {
    height: 230px;
  }

  .bb-home-journal__title {
    font-size: 17px;
  }
}
