/* ===================================================
   Layout: Home Blogs
   File:   template-parts/flexible/home_blogs/home_blogs.css
=================================================== */

.bl-sec {
  position: relative;
  overflow: hidden;
  padding-top: clamp(24px, 3cqi, 48px);
  padding-bottom: clamp(110px, 10cqi, 150px);
}

.bl {
  display: grid;
  grid-template-columns: minmax(0, 3.75fr) minmax(0, 8.25fr);
  gap: clamp(28px, 2.6cqi, 40px);
  align-items: start;
}

.bl-l {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bl-h {
  font-family: var(--fd);
  font-weight: 650;
  font-size: clamp(30px, 2.75cqi, 40px);
  line-height: 1.04;
  letter-spacing: -.032em;
  margin-top: 22px;
  text-wrap: balance;
}

.bl-h .l {
  display: block;
}

.bl-h .hl {
  color: var(--purple);
}

.bl-l .lead {
  margin-top: 22px;
  max-width: 30em;
  color: rgba(0, 0, 0, .72);
}

.bl-l .tlink {
  margin-top: clamp(32px, 3.6cqi, 52px);
}

.bl-l .tlink .ic {
  transform: none;
}

.bl-l .tlink:hover .ic {
  transform: translate(3px, -3px);
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6cqi, 26px);
}

.bc {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #FFFEFA;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: clamp(18px, 1.8cqi, 24px);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s ease;
}

.bc:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -34px rgba(40, 30, 20, .45);
}

.bc-img {
  aspect-ratio: 1.4;
  overflow: hidden;
}

.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.bc:hover .bc-img img {
  transform: scale(1.04);
}

.bc-b {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(18px, 1.7cqi, 24px);
}

.bc-t {
  font-family: var(--fd);
  font-weight: 650;
  font-size: clamp(18px, 1.5cqi, 22px);
  line-height: 1.22;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

.bc-m {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--muted);
}

.bc-m .ic {
  width: 20px;
  height: 20px;
}

.tlink_hc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    padding-bottom: 4px;
    border-bottom: 1.5px solid currentColor;
    text-decoration: none;
}

.bl-deco {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 160px;
  height: 150px;
  pointer-events: none;
}

.bl-deco i {
  position: absolute;
  display: block;
}

.bl-deco .p {
  left: 0;
  bottom: 0;
  width: 48px;
  height: 108px;
  border-radius: 0 12px 0 0;
  background-color: var(--purple);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%);
}

.bl-deco .a {
  left: 50px;
  bottom: 108px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #E4D6F6;
}

.bl-deco .b {
  left: 118px;
  bottom: 49px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #E4D6F6;
}

.bl-deco .c {
  left: 50px;
  bottom: 0;
  width: 68px;
  height: 49px;
  border-radius: 8px 8px 0 0;
  background: #E4D6F6;
}

/* Bootstrap layout integration overrides */
.hc .bl-grid.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6cqi, 26px);
  margin: 0;
}

.hc .bl-grid.row>.bc {
  width: auto;
  max-width: none;
  flex: initial;
  padding: 0;
  color:#000;
  text-decoration: none;
}

/* Responsive Container Queries */
@container page (max-width: 960px) {
  .bl {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc .bl-grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container page (max-width: 800px) {
  .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container page (max-width: 640px) {
  .hc .bl-grid.row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    margin-inline: calc(var(--pad) * -1);
    padding: 4px var(--pad) 12px;
    scrollbar-width: none;
  }

  .hc .bl-grid.row>.bc {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
}

@container page (max-width: 560px) {
  .bl-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    margin-inline: calc(var(--pad) * -1);
    padding: 4px var(--pad) 12px;
    scrollbar-width: none;
  }

  .bc {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .bc:hover {
    transform: none;
  }

  .bl-sec {
    padding-bottom: 104px;
  }

  .bl-deco {
    transform: scale(.6);
    transform-origin: left bottom;
  }
}

