/* =========================================================================
   HOME BLOG — partials/homePage/homeBlogSection
   Magazine layout: 1 featured card (left) + 2 horizontal cards (right).
   Uses the --pt-* tokens from premium-theme.css.
   ========================================================================= */
.bl-head {
  max-width: 820px;
  margin: 0 auto 44px;
}

.bl .bl-title {
  display: block;
  margin: 0 0 14px;
  color: var(--pt-ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.bl-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pt-gold), var(--pt-gold-light));
}

.bl-head p {
  margin: 0;
  color: var(--pt-slate);
  font-size: 15.5px;
  line-height: 1.8;
}

/* ---- Grid ---- */
.bl-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.bl-card {
  position: relative;
  min-width: 0;
}

.bl-card-feature {
  grid-row: span 2;
}

.bl .bl-card-link {
  display: grid;
  grid-template-columns: 44% 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--pt-shadow-sm);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.45s var(--pt-ease), box-shadow 0.45s var(--pt-ease);
}

.bl .bl-card-link:hover,
.bl .bl-card-link:focus {
  transform: translateY(-5px);
  box-shadow: var(--pt-shadow-md);
}

.bl .bl-card-link:focus-visible {
  outline: 3px solid var(--pt-gold);
  outline-offset: 3px;
}

.bl-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--pt-navy-800);
}

.bl-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--pt-ease);
}

.bl-card-link:hover .bl-media img {
  transform: scale(1.07);
}

.bl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 28px;
}

.bl .bl-card-title {
  margin: 0 0 10px;
  color: var(--pt-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  transition: color 0.3s var(--pt-ease);
}

.bl-card-link:hover .bl-card-title {
  color: var(--pt-gold-dark);
}

.bl-excerpt {
  display: -webkit-box;
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--pt-slate);
  font-size: 14.5px;
  line-height: 1.75;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.bl-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pt-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.bl-more i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pt-gold);
  color: var(--pt-ink);
  font-size: 12px;
  transition: transform 0.3s var(--pt-ease);
}

.bl-card-link:hover .bl-more i {
  transform: translateX(4px);
}

/* ---- Featured card: full-bleed image with text over it ---- */
.bl-card-feature .bl-card-link {
  display: block;
  position: relative;
  min-height: 560px;
  border: 0;
  box-shadow: var(--pt-shadow-lg);
}

.bl-card-feature .bl-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bl-card-feature .bl-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0) 30%, rgba(5, 11, 22, 0.55) 60%, rgba(5, 11, 22, 0.92) 100%);
}

.bl-card-feature .bl-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
}

.bl-card-feature .bl-card-title {
  color: #fff;
  font-size: 30px;
}

.bl-card-feature .bl-card-link:hover .bl-card-title {
  color: var(--pt-gold-light);
}

.bl-card-feature .bl-excerpt {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.bl-card-feature .bl-more {
  color: #fff;
}

/* ---- Footer button ---- */
.bl-foot {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.bl .bl-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--pt-radius-pill);
  background: var(--pt-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--pt-shadow-md);
  transition: background 0.3s var(--pt-ease), transform 0.3s var(--pt-ease);
}

.bl .bl-all:hover,
.bl .bl-all:focus {
  background: var(--pt-navy-700);
  color: #fff;
  transform: translateY(-2px);
}

.bl .bl-all i {
  color: var(--pt-gold);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .bl-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bl-card-feature {
    grid-row: auto;
  }

  .bl-card-feature .bl-card-link {
    min-height: 460px;
  }
}

@media (max-width: 575px) {
  .bl .bl-title {
    font-size: 28px;
  }

  .bl .bl-card-link {
    grid-template-columns: 1fr;
  }

  .bl-media {
    min-height: 200px;
  }

  .bl-body {
    padding: 20px;
  }

  .bl-card-feature .bl-card-link {
    min-height: 400px;
  }

  .bl-card-feature .bl-body {
    padding: 24px 20px;
  }

  .bl-card-feature .bl-card-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl .bl-card-link,
  .bl-media img,
  .bl-more i {
    transition: none;
  }
}
