/* =========================================
   BUSH BAGS — JOURNAL LANDING PAGE
========================================= */

.bb-journal-page {
  width: 100%;
  padding: var(--bb-padding);
  color: var(--bb-black, #050505);
}

.bb-journal-page *,
.bb-journal-page *::before,
.bb-journal-page *::after {
  box-sizing: border-box;
}

.bb-journal-page a {
  color: inherit;
  text-decoration: none;
}

.bb-journal-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-journal-page h1,
.bb-journal-page h2,
.bb-journal-page h3,
.bb-journal-page p {
  margin-top: 0;
}

/* =========================================
   FEATURED ARTICLE
========================================= */

.bb-journal-featured {
  max-width: var(--bb-container);
  margin: 0 auto 75px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 55px;
  align-items: center;
}

.bb-journal-featured__image {
  min-width: 0;
  height: 450px;
  overflow: hidden;
  background: #f2f0ed;
}

.bb-journal-featured__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.bb-journal-featured__image img {
  transition: transform 0.5s ease;
}

.bb-journal-featured__image a:hover img {
  transform: scale(1.04);
}

.bb-journal-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f2f0ed;
  color: var(--bb-black);
  letter-spacing: 2px;
  text-align: center;
}

.bb-journal-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--bb-orange, #b84f26);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bb-journal-featured__category,
.bb-journal-card__category {
  margin-bottom: 12px;
  color: var(--bb-orange, #b84f26);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.bb-journal-featured__content h1 {
  margin-bottom: 16px;

  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.15;
}

.bb-journal-featured__content h1 a:hover,
.bb-journal-card h3 a:hover {
  color: var(--bb-orange, #b84f26);
}

.bb-journal-meta {
  margin-bottom: 18px;
  color: var(--bb-black);
  letter-spacing: 0.5px;
}

.bb-journal-featured__excerpt {
  margin-bottom: 25px;
  color: var(--bb-black);
  line-height: 1.8;
}

.bb-journal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 14px 24px;
  background: var(--bb-orange, #b84f26);
  color: var(--bb-white, #fff) !important;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.25s ease;
}

.bb-journal-button:hover {
  background: var(--bb-black, #050505);
}

.bb-journal-button span,
.bb-journal-card__read span {
  transition: transform 0.25s ease;
}

.bb-journal-button:hover span,
.bb-journal-card__read:hover span {
  transform: translateX(4px);
}

/* =========================================
   MAIN CONTENT + SIDEBAR
========================================= */

.bb-journal-layout {
  max-width: var(--bb-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 65px;
  align-items: start;
}

.bb-journal-main {
  min-width: 0;
}

.bb-journal-section-heading {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bb-border, #dedede);
}

.bb-journal-section-heading h2,
.bb-journal-sidebar__section h2 {
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.bb-journal-section-heading p {
  margin-bottom: 0;
  color: var(--bb-black);
  line-height: 1.7;
}

/* =========================================
   ARTICLE GRID
========================================= */

.bb-journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 45px;
}

.bb-journal-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bb-journal-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f2f0ed;
}

.bb-journal-card__image img {
  transition: transform 0.5s ease;
}

.bb-journal-card__image:hover img {
  transform: scale(1.04);
}

.bb-journal-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.bb-journal-card__category {
  margin-bottom: 10px;
}

.bb-journal-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.bb-journal-card .bb-journal-meta {
  margin-bottom: 12px;
}

.bb-journal-card__content > p {
  margin-bottom: 20px;
  color: var(--bb-black);
  line-height: 1.75;
}

.bb-journal-card__read {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--bb-orange, #b84f26);
  color: var(--bb-orange, #b84f26) !important;
  font-weight: 600;
  letter-spacing: 1.2px;
}

/* =========================================
   PAGINATION
========================================= */

.bb-journal-pagination {
  margin-top: 55px;
}

.bb-journal-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-journal-pagination li {
  margin: 0;
  padding: 0;
}

.bb-journal-pagination a,
.bb-journal-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--bb-border, #dedede);
  transition: all 0.25s ease;
}

.bb-journal-pagination a:hover,
.bb-journal-pagination .current {
  border-color: var(--bb-orange, #b84f26);
  background: var(--bb-orange, #b84f26);
  color: var(--bb-white, #fff);
}

.bb-journal-empty {
  color: var(--bb-black);
  line-height: 1.7;
}

/* =========================================
   SIDEBAR
========================================= */

.bb-journal-sidebar {
  min-width: 0;
  padding-left: 30px;
  border-left: 1px solid var(--bb-border, #dedede);
}

.bb-journal-sidebar__section {
  margin-bottom: 38px;
}

.bb-journal-sidebar__section h2 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bb-border, #dedede);
  letter-spacing: 1.2px;
}

/* Search */

.bb-journal-search {
  display: flex;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--bb-border, #dedede);
}

.bb-journal-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  outline-offset: -2px;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.bb-journal-search button {
  flex: 0 0 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bb-orange, #b84f26);
  color: var(--bb-white, #fff);
  font-size: 25px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.bb-journal-search button:hover {
  background: var(--bb-black, #050505);
}

/* Categories */

.bb-journal-category-list,
.bb-journal-category-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-journal-category-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #eeeeee;
}

.bb-journal-category-list li a {
  display: inline-block;
  padding: 11px 0;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.bb-journal-category-list li a:hover {
  color: var(--bb-orange, #b84f26);
}

.bb-journal-category-list .children {
  padding-left: 15px;
}

/* Recent posts */

.bb-journal-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bb-journal-recent-post {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.bb-journal-recent-post__image {
  display: block;
  width: 82px;
  height: 72px;
  overflow: hidden;
  background: #f2f0ed;
}

.bb-journal-recent-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-journal-recent-post__details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.bb-journal-recent-post__details strong {
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.bb-journal-recent-post:hover strong {
  color: var(--bb-orange, #b84f26);
}

.bb-journal-recent-post__details small {
  color: var(--bb-black);
}

/* Tags */

.bb-journal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-journal-tags a {
  display: inline-block;
  margin: 0 !important;
  padding: 7px 10px;
  border: 1px solid var(--bb-border, #dedede);
  color: var(--bb-black) !important;
  line-height: 1.3;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bb-journal-tags a:hover {
  border-color: var(--bb-orange, #b84f26);
  background: var(--bb-orange, #b84f26);
  color: var(--bb-white, #fff) !important;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {
  .bb-journal-featured {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 55px;
  }

  .bb-journal-featured__image {
    height: 360px;
  }

  .bb-journal-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 35px;
  }

  .bb-journal-sidebar {
    padding-left: 22px;
  }

  .bb-journal-grid {
    column-gap: 22px;
    row-gap: 35px;
  }

  .bb-journal-card h3 {
    font-size: 19px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
  .bb-journal-page {
    padding: 30px 0 55px;
  }

  .bb-journal-featured,
  .bb-journal-layout {
    width: var(--bb-container, 90%);
  }

  .bb-journal-featured {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 50px;
  }

  .bb-journal-featured__image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .bb-journal-featured__content h1 {
    font-size: 31px;
  }

  .bb-journal-featured__excerpt {
    font-size: 14px;
  }

  .bb-journal-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .bb-journal-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .bb-journal-card__image {
    aspect-ratio: 4 / 3;
  }

  .bb-journal-card h3 {
    font-size: 21px;
  }

  .bb-journal-sidebar {
    padding: 35px 0 0;
    border-top: 1px solid var(--bb-border, #dedede);
    border-left: 0;
  }

  .bb-journal-sidebar__section {
    margin-bottom: 32px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .bb-journal-featured__content h1 {
    font-size: 27px;
  }

  .bb-journal-section-heading h2 {
    font-size: 16px;
  }

  .bb-journal-card h3 {
    font-size: 19px;
  }

  .bb-journal-recent-post {
    grid-template-columns: 75px minmax(0, 1fr);
  }

  .bb-journal-recent-post__image {
    width: 75px;
    height: 65px;
  }
}

/* =========================================
   JOURNAL LANDING — HOMEPAGE-STYLE CARDS
========================================= */

.bb-journal-page .bb-journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 22px;
  align-items: stretch;
}

.bb-journal-page .bb-journal-card {
  position: relative;
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid #777761;
  border-radius: 8px;
  background: var(--bb-white, #fff);
  box-sizing: border-box;
}

/* Image */

.bb-journal-page .bb-journal-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: 270px;
  margin: 0;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #f0efec;
  aspect-ratio: auto;
}

.bb-journal-page .bb-journal-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.bb-journal-page .bb-journal-card__image:hover img {
  transform: scale(1.04);
}

/* Dark gradient behind the title */

.bb-journal-page .bb-journal-card__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;
}

/* Title overlay */

.bb-journal-page .bb-journal-card__title {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Publication date */

.bb-journal-page .bb-journal-card__date {
  min-height: 65px;
  padding: 11px 14px;
  color: var(--bb-black);
  line-height: 1.5;
  box-sizing: border-box;
}

/* Overlapping Read More button */

.bb-journal-page .bb-journal-card__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;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--bb-black, #050505);
  color: #fff !important;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-decoration: none;
  transform: translateX(-50%);
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.bb-journal-page .bb-journal-card__read:hover {
  background: var(--bb-orange, #b84f26);
  color: #fff !important;
}

.bb-journal-page .bb-journal-card__read span {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.bb-journal-page .bb-journal-card__read:hover span {
  transform: translateX(3px);
}

/* Tablet */

@media (max-width: 1024px) {
  .bb-journal-page .bb-journal-card__image {
    height: 220px;
  }

  .bb-journal-page .bb-journal-card__title {
    font-size: 15px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .bb-journal-page .bb-journal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bb-journal-page .bb-journal-card__image {
    height: 250px;
  }

  .bb-journal-page .bb-journal-card__title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .bb-journal-page .bb-journal-card__image {
    height: 230px;
  }
}
