/* Latest Posts V2 */
.lp2-section {
  --lp2-border: #E3EBF2;
  --lp2-divider: #EDF2F7;
  --lp2-img-bg: #E8EEF6;
  --v2-text: #5B6E80;
  --v2-accent: #006EA6;
  --v2-card-radius: 20px;
  border-top: 1px solid var(--lp2-divider);
  background: #F6F9FC;
}

/* header */
.lp2-section .v2-head {
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.lp2-section .v2-title {
  margin-top: 0;
}

.lp2-section .v2-head-split .v2-head-aside {
  text-align: right;
}
.lp2-section .v2-link {
  font-size: 15px;
  line-height: 22px;
}

/* shared bits */
.lp2-section .lp2-cat {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0074AE;
}
.lp2-section .lp2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--v2-text);
}
.lp2-section .lp2-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp2-section .lp2-meta svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #7A8DA0;
}
.lp2-section .lp2-meta-sm {
  gap: 4px 12px;
  font-size: 13px;
  line-height: 20px;
}
.lp2-section .lp2-meta-sm svg {
  width: 14px;
  height: 14px;
}

/* latest post */
.lp2-section .lp2-ft {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--lp2-border);
  border-radius: var(--v2-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lp2-section .lp2-ft:hover {
  border-color: #C9DDEA;
  box-shadow: 0 30px 60px -40px rgba(10, 30, 56, .45);
  transform: translateY(-3px);
}
.lp2-section .lp2-ft-img {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: var(--lp2-img-bg);
}
.lp2-section .lp2-ft-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.lp2-section .lp2-ft:hover .lp2-ft-img img {
  transform: scale(1.03);
}
.lp2-section .lp2-flag {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #0A1E38;
  background: #FFFFFF;
  box-shadow: 0 8px 20px -10px rgba(10, 30, 56, .5);
}
.lp2-section .lp2-flag:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A98A;
}
.lp2-section .lp2-ft-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 30px 30px;
}
.lp2-section .lp2-ft-body .v2-card-title {
  font-family: var(--v2-font-head);
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -.01em;
  transition: color .2s ease;
}
.lp2-section .lp2-ft:hover .v2-card-title {
  color: #006EA6;
}
.lp2-section .lp2-ft-body .v2-card-text {
  font-size: 16px;
  line-height: 26px;
}
.lp2-section .lp2-read {
  margin-top: auto;
  padding-top: 6px;
}
.lp2-section .lp2-ft:hover .v2-arrow {
  width: 16px;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
}

/* list */
.lp2-section .lp2-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px 24px;
  border: 1px solid var(--lp2-border);
  border-radius: var(--v2-card-radius);
  background: #FFFFFF;
}
.lp2-section .lp2-new-h {
  margin: 18px 0 6px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0074AE;
}
.lp2-section .lp2-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--lp2-divider);
  text-decoration: none;
  color: inherit;
}
.lp2-section .lp2-new-h + .lp2-row,
.lp2-section .lp2-new > .lp2-row:first-child {
  border-top: 0;
}
.lp2-section .lp2-row-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--lp2-img-bg);
}
.lp2-section .lp2-row-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.lp2-section .lp2-row:hover .lp2-row-img img {
  transform: scale(1.05);
}
.lp2-section .lp2-row-body {
  min-width: 0;
}
.lp2-section .lp2-row .v2-card-title {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--v2-font-head);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -.01em;
  transition: color .2s ease;
}
.lp2-section .lp2-row:hover .v2-card-title {
  color: #006EA6;
}
.lp2-section .lp2-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto -24px -8px;
  padding: 16px 24px;
  border-top: 1px solid var(--lp2-divider);
  border-radius: 0 0 var(--v2-card-radius) var(--v2-card-radius);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  color: #006EA6;
}
.lp2-section .lp2-more:hover {
  color: #006EA6;
  background: #F4F9FC;
}
.lp2-section .lp2-more .v2-arrow {
  width: 16px;
  margin-left: 8px;
  opacity: 1;
  transform: none;
}

/* Bootstrap breakpoints: side by side from xl (1200px), stacked below */
@media (max-width: 991px) {
  .lp2-section .v2-head-split .v2-head-aside {
    text-align: left;
  }
}
@media (max-width: 767px) {
  .lp2-section .lp2-ft-body {
    padding: 22px;
  }
  .lp2-section .lp2-ft-body .v2-card-title {
    font-size: 20px;
    line-height: 28px;
  }
  .lp2-section .lp2-new {
    padding: 4px 18px;
  }
  .lp2-section .lp2-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }
  .lp2-section .lp2-row .v2-card-title {
    font-size: 17px;
    line-height: 24px;
  }
  .lp2-section .lp2-more {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp2-section .lp2-ft,
  .lp2-section .lp2-ft-img img,
  .lp2-section .lp2-row-img img {
    transition: none;
  }
}
