{%- import '../../css/variable/_variables.css' -%}

{# =============================================
   Guidance Section — RoamGuard Theme
   Node: 15695-1738
   Blog/resource card grid, 3 columns
   Mobile-first: base → mobilept → md → lg → xl
   ============================================= #}

{# ── Annotation padding utilities ── #}
.pt-lg-130   { padding-top: 80px; }
.pb-lg-65    { padding-bottom: 40px; }
.pt-md-80    { padding-top: 80px; }
.pb-md-40    { padding-bottom: 40px; }
.mobilept-60 { padding-top: 60px; }
.mobilepb-30 { padding-bottom: 30px; }
.pt-10  { padding-top: 10px; }
.pt-30  { padding-top: 30px; }
.pt-35  { padding-top: 35px; }
.pt-50  { padding-top: 50px; }


{# ══════════════════════════════════════════════
   SECTION HEADING + INTRO
   ══════════════════════════════════════════════ #}
.guidance-section__heading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 0;
}

.guidance-section__heading {
  width: 100%;
}

.guidance-section__heading h2 {
  color: ;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.guidance-section__intro {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.guidance-section__intro p {
  color: #616161;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}


{# ══════════════════════════════════════════════
   CARDS ROW + COLUMN — annotation: row / col-lg-4 col-md-6 pt-35
   ══════════════════════════════════════════════ #}
.guidance-section__cards-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.guidance-section__card-col {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}


{# ══════════════════════════════════════════════
   BLOG CARD — white, bordered, radius-24
   Entire card is a clickable <a> element
   ══════════════════════════════════════════════ #}
.guidance-section__card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(211, 212, 217, 0.4);
  border-radius: 24px;
  text-decoration: none;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guidance-section__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

{# ── Card image container — 16px inset from top + sides ── #}
.guidance-section__card-img-container {
  padding: 16px 16px 0;
  width: 100%;
  box-sizing: border-box;
}

{# Image wrapper — 196px height, radius-20, clips the image ── #}
.guidance-section__card-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 196px;
  width: 100%;
  position: relative;
}

.guidance-section__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

{# ── Card body — p-16px ── #}
.guidance-section__card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  flex: 1;
}

{# ── Meta: category tag + title ── #}
.guidance-section__card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

{# Category tag — frosted pill chip ── #}
.guidance-section__card-tag-wrap {
  display: flex;
}

.guidance-section__card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(211, 212, 217, 0.2);
  border: 1px solid rgba(211, 212, 217, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #616161;
  white-space: nowrap;
}

{# Article title — H6 semibold, dark green ── #}
.guidance-section__card-title {
  color: ;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

{# Divider ── #}
.guidance-section__card-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(211, 212, 217, 0.4);
  flex-shrink: 0;
}

{# ── Card footer — author left / date right ── #}
.guidance-section__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

{# Author block #}
.guidance-section__card-author,
.guidance-section__card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.guidance-section__card-author-icon,
.guidance-section__card-date-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.guidance-section__card-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.guidance-section__card-author-name,
.guidance-section__card-date-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #616161;
  white-space: nowrap;
}


{# ══════════════════════════════════════════════
   LOAD MORE BUTTON — annotation: pt-50
   Centred below the cards grid
   ══════════════════════════════════════════════ #}
.guidance-section__btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.guidance-section__load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: ;
  color: #ffffff;
  border-radius: 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  padding: 8px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.guidance-section__load-more:hover {
  opacity: 0.88;
  color: #ffffff;
}


{# ═══════════════════════════════════════════════
   MOBILE  (max-width: 767px)
   ═══════════════════════════════════════════════ #}
@media (max-width: 767px) {
  .guidance-section__heading h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .guidance-section__cards-row {
    margin-left: 0;
    margin-right: 0;
  }

  .guidance-section__card-col {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .guidance-section__card {
    border-radius: 16px;
  }

  .guidance-section__card-img-wrap {
    height: 160px;
    border-radius: 12px;
  }

  .guidance-section__card-author-name,
  .guidance-section__card-date-text {
    font-size: 12px;
  }
}


{# ═══════════════════════════════════════════════
   TABLET  (min-width: 768px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 768px) {
  .guidance-section__heading h2 {
    font-size: 36px;
  }

  .guidance-section__intro p {
    font-size: 17px;
  }

  .guidance-section__card-col {
    width: 50%;
  }

  .guidance-section__card-img-wrap {
    height: 196px;
  }
}


{# ═══════════════════════════════════════════════
   LG  (min-width: 992px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 992px) {
  .pt-lg-130 { padding-top: 130px; }
  .pb-lg-65  { padding-bottom: 65px; }

  .guidance-section__heading h2 {
    font-size: 42px;
    line-height: 50px;
  }

  .guidance-section__intro p {
    font-size: 18px;
    line-height: 25px;
  }

  .guidance-section__card-col {
    width: 33.333%;
  }

  .guidance-section__card {
    border-radius: 24px;
  }
}


{# ═══════════════════════════════════════════════
   XL  (min-width: 1200px)
   ═══════════════════════════════════════════════ #}
@media (min-width: 1200px) {
  .guidance-section__cards-row {
    margin-left: -15px;
    margin-right: -15px;
  }
}
