/* ===== FAULKNER RELATED POSTS STYLING ===== */

.faulkner-related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0 40px;
}

.related-post-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(0, 93, 170, 0.1); /* Light blue separator */
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.related-post-item:hover {
  transform: translateY(-2px);
}

.related-post-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 7px solid var(--Primary-Blue);
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 20px 20px 20px 0;
  flex-grow: 1;
}

.related-post-category {
  margin-bottom: 12px;
}

.related-post-category a {
  color: var(--black);
  font-family: var(--fira);
  font-size: var(--smallestFontMax);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.related-post-category a:hover {
  color: var(--Primary-Blue);
}

.related-post-title a {
  color: var(--Primary-Blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: var(--black);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 981px) {
  .faulkner-related-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 20px;
  }

  .related-post-image {
    height: 180px;
  }

  .related-post-content {
    padding: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .faulkner-related-posts {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px;
  }

  .related-post-item {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 93, 170, 0.1);
    border-radius: 8px;
    overflow: hidden;
  }

  .related-post-image {
    height: 160px;
  }

  .related-post-content {
    padding: 20px;
  }

  .related-post-title {
    font-size: var(--postContentFontMin);
  }
}

/* ===== ACCESSIBILITY ===== */
.related-post-image a:focus,
.related-post-title a:focus,
.related-post-category a:focus {
  outline: 2px solid var(--Primary-Blue);
  outline-offset: 2px;
}

/* ===== NO POSTS MESSAGE ===== */
.faulkner-related-posts p {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--Primary-Blue);
  font-family: var(--fira);
  font-size: var(--postContentFontMax);
  padding: 40px 20px;
  margin: 0;
}
