/* ===== BLOG LIST PAGE ===== */

/* === Section header === */
.bl-hd {
  padding: 4rem 6% 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.bl-hd .sec-label {
  font-family: "Raleway", serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28rem;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: .6rem;
}

.bl-hd h1 {
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--blue);
  line-height: 1.15;
}

.bl-count {
  font-family: "Raleway", serif;
  font-size: .68rem;
  letter-spacing: .18rem;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: .4rem;
}

/* Divider */
.bl-divider {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6%;
}

.bl-divider hr {
  border: none;
  border-top: 1px solid rgba(23, 63, 99, .1);
}

/* === Grid === */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 3rem 6% 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* === Card === */
.bl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 99, .08);
  transition: box-shadow .4s ease, transform .4s ease;
}

.bl-card:hover {
  box-shadow: 0 18px 48px rgba(23, 63, 99, .13);
  transform: translateY(-5px);
}

/* --- Image --- */
.bl-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.bl-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .75s ease;
}

.bl-card:hover .bl-card__img img {
  transform: scale(1.07);
}

/* Hover overlay */
.bl-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(23, 63, 99, .78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 3;
}

.bl-card__hover span {
  font-family: "Raleway", serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(255, 255, 255, .55);
  padding: .75rem 1.75rem;
  transition: background .25s ease, border-color .25s ease;
}

.bl-card__hover span:hover {
  background: var(--brown);
  border-color: var(--brown);
}

.bl-card:hover .bl-card__hover {
  opacity: 1;
}

/* --- Card body --- */
.bl-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 2px solid transparent;
  transition: border-top-color .35s ease;
}

.bl-card:hover .bl-card__body {
  border-top-color: var(--brown);
}

.bl-card__date {
  font-family: "Raleway", serif;
  font-size: .64rem;
  letter-spacing: .1rem;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.bl-card__date i {
  font-size: .6rem;
}

.bl-card__title {
  font-family: "EB Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: .65rem;
}

.bl-card__excerpt {
  font-family: "Raleway", serif;
  font-size: .8rem;
  line-height: 1.7;
  color: #777;
  margin-bottom: 1.2rem;
  flex: 1;
}

.bl-card__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.bl-card__author {
  font-family: "Raleway", serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1rem;
  text-transform: uppercase;
  color: var(--ash);
  background: #f8f7f5;
  padding: .3rem .75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.bl-card__author i {
  font-size: .6rem;
  color: var(--brown);
}

/* === Empty state === */
.bl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
}

.bl-empty p {
  font-family: "EB Garamond", serif;
  font-size: 1.25rem;
  color: var(--ash);
}

/* === Hero override === */
.ab_hero_con {
  margin-bottom: 0 !important;
}

/* === Responsive === */
@media screen and (max-width: 1100px) {
  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .bl-hd {
    padding: 3rem 5% 2rem;
  }

  .bl-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 5% 4rem;
  }

  .bl-divider {
    padding: 0 5%;
  }
}
