/***
====================================================================
            LADY IN WHITE — HOME BLOG FINAL
====================================================================
***/

.liw-home-blog {
  position: relative;
  padding: 58px 0 64px;

  background: linear-gradient(180deg, #f7f9fd 0%, #f8fafe 12%, #fafbfe 25%, #ffffff 48%, #fafbfe 72%, #f7f9fd 100%);

  overflow: hidden;
}

.liw-home-blog .container {
  position: relative;
  z-index: 2;
}

/* =====================================================
   HEADER
===================================================== */

.liw-home-blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 26px;
}

.liw-home-blog__eyebrow {
  display: block;

  margin-bottom: 7px;

  color: #ffb400;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.liw-home-blog__title {
  margin: 0;

  color: #1239ac;

  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.liw-home-blog__intro {
  max-width: 560px;

  margin: 8px 0 0;

  color: #657087;

  font-size: 14px;
  line-height: 1.55;
}

/* =====================================================
   DESKTOP VIEW ALL
===================================================== */

.liw-home-blog__desktop-link {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  flex-shrink: 0;

  margin-bottom: 5px;

  color: #1239ac;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.liw-home-blog__desktop-link span {
  color: #ffb400;

  font-size: 16px;

  transition: transform 0.25s ease;
}

.liw-home-blog__desktop-link:hover {
  color: #ffb400;

  gap: 10px;
}

.liw-home-blog__desktop-link:hover span {
  transform: translateX(2px);
}

/* =====================================================
   GRID
===================================================== */

.liw-home-blog__grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
}

/* =====================================================
   CARD
===================================================== */

.liw-home-blog-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid rgba(18, 57, 172, 0.07);
  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 3px 12px rgba(18, 57, 172, 0.035);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.liw-home-blog-card:hover {
  transform: translateY(-3px);

  border-color: rgba(18, 57, 172, 0.14);

  box-shadow: 0 10px 22px rgba(18, 57, 172, 0.07);
}

/* =====================================================
   IMAGE
===================================================== */

.liw-home-blog-card__media {
  position: relative;

  display: block;

  height: 175px;

  overflow: hidden;

  background: #eef2fb;
}

.liw-home-blog-card__media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1.001);

  transition: transform 0.45s ease;
}

.liw-home-blog-card:hover .liw-home-blog-card__media img {
  transform: scale(1.035);
}

/* =====================================================
   DATE
===================================================== */

.liw-home-blog-card__date {
  position: absolute;

  left: 11px;
  bottom: 10px;

  padding: 5px 9px;

  color: #1239ac;
  background: rgba(255, 255, 255, 0.96);

  border-radius: 5px;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* =====================================================
   CARD BODY
===================================================== */

.liw-home-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 15px 15px 16px;
}

/* =====================================================
   META
===================================================== */

.liw-home-blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  margin-bottom: 9px;

  color: #8b95a8;

  font-size: 10px;
  font-weight: 500;
}

.liw-home-blog-card__category {
  color: #1239ac;

  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.liw-home-blog-card__category::before {
  content: "";

  display: inline-block;

  width: 4px;
  height: 4px;

  margin-right: 6px;

  vertical-align: 1px;

  background: #ffb400;

  border-radius: 50%;
}

/* =====================================================
   TITLE
===================================================== */

.liw-home-blog-card__title {
  margin: 0 0 7px;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

.liw-home-blog-card__title a {
  color: #1e2b46;

  text-decoration: none;

  transition: color 0.2s ease;
}

.liw-home-blog-card__title a:hover {
  color: #1239ac;
}

/* =====================================================
   DESCRIPTION
===================================================== */

.liw-home-blog-card__text {
  margin: 0 0 13px;

  color: #6f7889;

  font-size: 12px;
  line-height: 1.55;
}

/* =====================================================
   READ MORE
===================================================== */

.liw-home-blog-card__link {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  width: fit-content;

  margin-top: auto;

  color: #1239ac;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.liw-home-blog-card__link span {
  color: #ffb400;

  font-size: 15px;
}

.liw-home-blog-card__link:hover {
  color: #ffb400;

  gap: 8px;
}

/* =====================================================
   MOBILE VIEW ALL
===================================================== */

.liw-home-blog__mobile-footer {
  display: none;
}

.liw-home-blog__mobile-link {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 46px;

  padding: 0 20px;

  color: #ffffff;
  background: #1239ac;

  border: 2px solid #1239ac;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.liw-home-blog__mobile-link span {
  color: #ffb400;

  font-size: 17px;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.liw-home-blog__mobile-link:hover {
  color: #ffb400;
  background: #ffffff;

  border-color: #1239ac;

  transform: translateY(-1px);
}

.liw-home-blog__mobile-link:hover span {
  color: #ffb400;

  transform: translateX(3px);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {
  .liw-home-blog {
    padding: 52px 0 56px;
  }

  .liw-home-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .liw-home-blog-card:last-child {
    grid-column: 1 / -1;

    width: calc(50% - 8px);

    justify-self: center;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {
  .liw-home-blog {
    padding: 44px 0 48px;
  }

  .liw-home-blog__header {
    display: block;

    margin-bottom: 21px;
  }

  .liw-home-blog__eyebrow {
    margin-bottom: 6px;

    font-size: 10px;
  }

  .liw-home-blog__title {
    font-size: 28px;
  }

  .liw-home-blog__intro {
    max-width: 100%;

    margin-top: 7px;

    font-size: 13px;
    line-height: 1.5;
  }

  .liw-home-blog__desktop-link {
    display: none;
  }

  .liw-home-blog__grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .liw-home-blog-card:last-child {
    grid-column: auto;

    width: 100%;
  }

  .liw-home-blog-card__media {
    height: 180px;
  }

  .liw-home-blog-card__body {
    padding: 15px;
  }

  .liw-home-blog-card__title {
    font-size: 17px;
  }

  .liw-home-blog-card__text {
    font-size: 12px;
  }

  .liw-home-blog__mobile-footer {
    display: block;

    margin-top: 18px;
  }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {
  .liw-home-blog {
    padding: 40px 0 44px;
  }

  .liw-home-blog-card__media {
    height: 165px;
  }

  .liw-home-blog-card__meta {
    gap: 6px;
  }

  .liw-home-blog__mobile-link {
    min-height: 44px;
  }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
  .liw-home-blog-card,
  .liw-home-blog-card__media img,
  .liw-home-blog-card__link,
  .liw-home-blog__desktop-link,
  .liw-home-blog__mobile-link {
    transition: none;
  }
}
