/*
 * Home page (index.php). Same blue, font and container as the rest of the blog.
 */
.eq-home {
  --hm-blue: #007cc3;
  --hm-blue-dark: #00669f;
  --hm-blue-tint: #eef7fd;
  --hm-ink: #0f1c2e;
  --hm-ink-mid: #2d3f55;
  --hm-ink-soft: #5a6e84;
  --hm-ink-faint: #8796a8;
  --hm-border: #e3e8ef;
  --hm-bg-soft: #f6f9fc;
}

/* ── shared bits ── */
.eq-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--hm-blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eq-home .eq-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--hm-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.eq-home .eq-tag:hover { color: var(--hm-blue-dark); text-decoration: underline; }
.eq-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--hm-ink-faint);
  font-size: 13px;
}
.eq-card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.eq-home .eq-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hm-blue);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.eq-home .eq-link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.eq-home .eq-link-arrow:hover svg,
.eq-home a:hover > .eq-link-arrow svg,
.eq-home a:hover > .eq-topic-count svg { transform: translateX(3px); }

.eq-home-section { padding: 56px 0; }
.eq-home-section + .eq-home-section { padding-top: 0; }
.eq-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hm-border);
}
.eq-section-title {
  margin: 0;
  color: var(--hm-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

/* ── featured + latest ── */
.eq-home-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 40px;
}
.eq-featured {
  overflow: hidden;
  border: 1px solid var(--hm-border);
  border-radius: 16px;
  background: #fff;
}
.eq-featured-img { display: block; overflow: hidden; }
.eq-featured-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}
.eq-featured:hover .eq-featured-img img { transform: scale(1.03); }
.eq-featured-body { padding: 24px 28px 26px; }
.eq-featured-labels { display: flex; align-items: center; gap: 12px; }
.eq-featured-labels .eq-tag { margin-bottom: 0; }
.eq-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--hm-blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eq-featured-title {
  margin: 14px 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}
.eq-featured-title a { color: var(--hm-ink); text-decoration: none; }
.eq-featured-title a:hover { color: var(--hm-blue); }
.eq-featured-text {
  margin: 0 0 18px;
  color: var(--hm-ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.eq-featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hm-border);
}

.eq-section-kicker {
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--hm-blue);
  color: var(--hm-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eq-latest ul { margin: 0; padding: 0; list-style: none; }
.eq-latest-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hm-border);
}
.eq-latest-item:last-child { border-bottom: 0; }
.eq-latest-img { display: block; overflow: hidden; border-radius: 10px; }
.eq-latest-img img {
  display: block;
  width: 104px;
  height: 78px;
  object-fit: cover;
}
.eq-latest-item .eq-tag { margin-bottom: 4px; font-size: 11px; }
.eq-latest-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}
.eq-latest-item h3 a { color: var(--hm-ink); text-decoration: none; }
.eq-latest-item h3 a:hover { color: var(--hm-blue); }

/* ── topics ── */
.eq-home-topics { background: var(--hm-bg-soft); padding: 56px 0; border-top: 1px solid var(--hm-border); border-bottom: 1px solid var(--hm-border); }
.eq-home-section + .eq-home-topics { padding-top: 56px; }
.eq-home-topics + .eq-home-section { padding-top: 56px; }
.eq-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.eq-home .eq-topic-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--hm-border);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.eq-home .eq-topic-card:hover {
  border-color: #b9d8ee;
  box-shadow: 0 10px 28px rgba(0, 60, 120, .08);
  transform: translateY(-2px);
}
.eq-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--hm-blue-tint);
  color: var(--hm-blue);
}
.eq-topic-icon svg { width: 24px; height: 24px; }
.eq-topic-card h3 {
  margin: 0 0 8px;
  color: var(--hm-ink);
  font-size: 19px;
  font-weight: 700;
}
.eq-topic-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--hm-ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.eq-topic-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hm-blue);
  font-size: 14px;
  font-weight: 600;
}
.eq-topic-count svg { width: 15px; height: 15px; transition: transform .2s; }

/* ── article cards ── */
.eq-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.eq-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hm-border);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.eq-card:hover { box-shadow: 0 10px 28px rgba(0, 60, 120, .08); transform: translateY(-2px); }
.eq-card-img { display: block; overflow: hidden; }
.eq-card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .4s ease;
}
.eq-card:hover .eq-card-img img { transform: scale(1.04); }
.eq-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}
.eq-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.eq-card-title a { color: var(--hm-ink); text-decoration: none; }
.eq-card-title a:hover { color: var(--hm-blue); }
.eq-card-text {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--hm-ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ── free guides ── */
.eq-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.eq-home .eq-guide-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  background: var(--hm-bg-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.eq-home .eq-guide-card:hover { border-color: #b9d8ee; background: #fff; }
.eq-guide-card img {
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 40, 80, .12);
}
.eq-guide-card h3 {
  margin: 0 0 10px;
  color: var(--hm-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.eq-guide-card .eq-link-arrow { font-size: 13.5px; }

/* ── breakpoints ── */
@media (max-width: 1199px) {
  .eq-home-top-grid { grid-template-columns: 1fr; }
  .eq-topic-grid, .eq-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .eq-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 767px) {
  .eq-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .eq-section-title { font-size: 24px; }
}
@media (max-width: 575px) {
  .eq-home-section { padding: 40px 0; }
  .eq-card-grid, .eq-topic-grid, .eq-guide-grid { grid-template-columns: 1fr; }
  .eq-featured-body { padding: 20px; }
  .eq-featured-title { font-size: 21px; }
  .eq-featured-foot { flex-wrap: wrap; }
  .eq-latest-item { grid-template-columns: 88px minmax(0, 1fr); }
  .eq-latest-img img { width: 88px; height: 66px; }
}

/* ── phones: compact layout (shorter page, same content) ── */
@media (max-width: 575px) {
  .eq-section-head { margin-bottom: 18px; padding-bottom: 12px; }
  .eq-section-title { font-size: 22px; }

  /* topics: 2 x 2 tiles - name and count only */
  .eq-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .eq-home .eq-topic-card { padding: 16px; border-radius: 12px; }
  .eq-topic-icon { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 10px; }
  .eq-topic-icon svg { width: 20px; height: 20px; }
  .eq-topic-card h3 { margin-bottom: 6px; font-size: 16px; }
  .eq-topic-card p { display: none; }
  .eq-topic-count { margin-top: auto; font-size: 13px; }

  /* article cards: thumbnail left, text right - like "Latest articles" */
  .eq-card-grid { gap: 0; }
  .eq-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--hm-border);
    border-radius: 0;
    background: none;
  }
  .eq-card:first-child { padding-top: 0; }
  .eq-card:last-child { border-bottom: 0; }
  .eq-card:hover { box-shadow: none; transform: none; }
  .eq-card-img { align-self: start; border-radius: 10px; }
  .eq-card-img img { width: 112px; height: 84px; aspect-ratio: auto; }
  .eq-card-body { padding: 0; }
  .eq-home .eq-card .eq-tag { margin-bottom: 4px; font-size: 11px; }
  .eq-card-title { margin-bottom: 6px; font-size: 15.5px; line-height: 1.4; }
  .eq-card-text { display: none; }

  /* free guides: one per row */
  .eq-home .eq-guide-card { padding: 14px; }
  .eq-guide-card img { width: 56px; height: 75px; }
  .eq-guide-card h3 { margin-bottom: 6px; font-size: 14.5px; }
}
