﻿/*
  STEADYNESS front-page styles.
  Load this file only on front-page.php from the GeneratePress child theme.
*/

/* Base tokens */
/* Homepage-only custom header card. */
.sd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: min(1500px, calc(100% - 72px));
  min-height: 92px;
  margin: 20px auto 28px;
  padding: 18px 34px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(6, 31, 74, 0.1);
}

.sd-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 300px;
}

.sd-header__logo,
.sd-header__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.sd-header__logo img {
  display: block;
  width: auto;
  max-width: 72px;
  max-height: 72px;
}

.sd-header__brand-text {
  display: grid;
  gap: 4px;
  margin-left: 14px;
  color: #061f4a;
  text-decoration: none;
}

.sd-header__title {
  color: #061f4a;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.sd-header__tagline {
  color: #4b5e76;
  font-size: 14px;
  line-height: 1.35;
}

.sd-header__nav {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.sd-header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-header__menu li {
  margin: 0;
  padding: 0;
}

.sd-header__menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: #142642;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.sd-header__menu a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: #2f73c8;
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sd-header__menu a:hover,
.sd-header__menu a:focus,
.sd-header__menu .current-menu-item > a,
.sd-header__menu .current_page_item > a {
  color: #1f5fac;
}

.sd-header__menu a:hover::after,
.sd-header__menu a:focus::after,
.sd-header__menu .current-menu-item > a::after,
.sd-header__menu .current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 960px) {
  .sd-header {
    align-items: flex-start;
    flex-direction: column;
    width: min(1500px, calc(100% - 40px));
    gap: 12px;
    padding: 18px 22px;
  }

  .sd-header__brand {
    min-width: 0;
  }

  .sd-header__nav,
  .sd-header__menu {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .sd-header {
    width: min(1500px, calc(100% - 28px));
    margin-top: 12px;
    margin-bottom: 24px;
    padding: 15px 16px;
    border-radius: 10px;
  }

  .sd-header__logo img {
    max-width: 54px;
    max-height: 54px;
  }

  .sd-header__title {
    font-size: 21px;
  }

  .sd-header__tagline {
    font-size: 12px;
  }

  .sd-header__menu {
    gap: 2px 12px;
  }

  .sd-header__menu a {
    min-height: 38px;
    padding: 0 4px;
    font-size: 14px;
  }
}
.sd-home {
  --sd-navy: #061f4a;
  --sd-navy-2: #0c3164;
  --sd-blue: #3f73b7;
  --sd-blue-dark: #285b98;
  --sd-blue-soft: #eef6ff;
  --sd-gold: #e8bd63;
  --sd-gold-dark: #b58a2d;
  --sd-green: #55b983;
  --sd-red: #c9685d;
  --sd-text: #10213a;
  --sd-muted: #60738c;
  --sd-line: #dce7f3;
  --sd-card: #ffffff;
  --sd-shadow: 0 14px 34px rgba(6, 31, 74, 0.08);
  --sd-shadow-soft: 0 10px 24px rgba(6, 31, 74, 0.055);
  color: var(--sd-text);
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;
  background: #ffffff;
  font-family: inherit;
  line-height: 1.65;
}

.sd-home *,
.sd-home *::before,
.sd-home *::after {
  box-sizing: border-box;
}

.sd-home a {
  color: inherit;
  text-decoration: none;
}

.sd-home a:hover,
.sd-home a:focus {
  color: var(--sd-navy);
}

.sd-home h1,
.sd-home h2,
.sd-home h3,
.sd-home p {
  margin: 0;
}

.sd-home ul {
  margin: 0;
}

.sd-home .sd-container {
  width: min(1420px, calc(100% - 32px));
  margin-inline: auto;
}

.sd-home .sd-hero .sd-container {
  width: min(1600px, calc(100% - 28px));
}

.sd-home .sd-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Logo, used in the footer block */
.sd-home .sd-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
  color: var(--sd-navy);
}

.sd-home .sd-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(145deg, #ffffff 0%, #e8f3ff 100%);
  color: var(--sd-gold);
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(242, 183, 63, 0.2);
}

.sd-home .sd-logo__text {
  font-size: 21px;
  line-height: 1;
}

/* Hero */
.sd-home .sd-hero {
  padding: 44px 0 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 46%, rgba(63, 115, 183, 0.13), transparent 28%),
    linear-gradient(90deg, #eef7ff 0%, #f9fcff 48%, #edf6ff 100%);
  border-bottom: 1px solid #e7f0fa;
}

.sd-home .sd-hero__grid {
  display: grid;
  gap: 24px;
}

.sd-home .sd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #e2f0ff;
  color: var(--sd-navy-2);
  font-size: 14px;
  font-weight: 750;
}

.sd-home .sd-eyebrow::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #ffffff 0 2px, transparent 3px),
    linear-gradient(145deg, #8fb9e6, var(--sd-blue));
}

.sd-home .sd-hero__title {
  max-width: 720px;
  margin-top: 12px;
  color: var(--sd-navy);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.sd-home .sd-hero__desc {
  max-width: 620px;
  margin-top: 14px;
  color: #223a58;
  font-size: 18px;
}

.sd-home .sd-search {
  display: flex;
  width: min(100%, 590px);
  margin-top: 22px;
  border: 1px solid #cfddeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(6, 31, 74, 0.11);
  overflow: hidden;
}

.sd-home .sd-search__input {
  min-width: 0;
  flex: 1 1 auto;
  height: 52px;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: var(--sd-text);
  font-size: 15px;
}

.sd-home .sd-search__input:focus {
  outline: 2px solid rgba(47, 120, 212, 0.25);
  outline-offset: -2px;
}

.sd-home .sd-search__button {
  flex: 0 0 auto;
  min-width: 78px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  background: linear-gradient(145deg, var(--sd-navy-2), var(--sd-navy));
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.sd-home .sd-search__button:hover,
.sd-home .sd-search__button:focus {
  background: #08285a;
}

/* Hero illustration */
.sd-home .sd-hero__visual {
  position: relative;
  display: block;
  min-height: 230px;
  isolation: isolate;
}

.sd-home .sd-hero-illustration {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.sd-home .sd-hero__visual::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 0;
  width: 420px;
  height: 50px;
  border-radius: 50%;
  background: rgba(6, 31, 74, 0.12);
  filter: blur(14px);
  z-index: -1;
}

.sd-home .sd-guide-card {
  position: absolute;
  top: 8px;
  left: 34px;
  width: 210px;
  min-height: 218px;
  padding: 42px 24px 20px;
  border: 8px solid #3478ca;
  border-radius: 16px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #8fb9e6, #285b98) border-box;
  box-shadow: 0 22px 42px rgba(6, 31, 74, 0.18);
}

.sd-home .sd-guide-card__clip {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 72px;
  height: 34px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #c2cbd6, #8d9aa9);
  transform: translateX(-50%);
  box-shadow: 0 4px 9px rgba(6, 31, 74, 0.2);
}

.sd-home .sd-guide-card__clip::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #8d9aa9;
  border-radius: 50%;
  background: #f8fbff;
  transform: translateX(-50%);
}

.sd-home .sd-guide-card__label {
  display: block;
  color: var(--sd-navy);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.sd-home .sd-guide-card ul {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  color: #233c5d;
  font-size: 14px;
  font-weight: 750;
}

.sd-home .sd-guide-card li {
  position: relative;
  padding-left: 29px;
  border-bottom: 1px solid #d8e3ef;
  line-height: 1.7;
}

.sd-home .sd-guide-card li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 46%, #ffffff 47% 54%, transparent 55%),
    linear-gradient(145deg, #75c98f, #46a96c);
}

.sd-home .sd-piggy {
  position: absolute;
  right: 34px;
  bottom: 22px;
  width: 230px;
  height: 154px;
  z-index: 3;
}

.sd-home .sd-piggy__body {
  position: absolute;
  inset: 36px 12px 17px 0;
  border-radius: 50% 44% 45% 46%;
  background:
    radial-gradient(circle at 64% 34%, rgba(255, 255, 255, 0.45), transparent 12%),
    linear-gradient(145deg, #94bfeb 0%, #3f73b7 60%, #285b98 100%);
  box-shadow: inset -16px -18px 24px rgba(8, 40, 90, 0.16), 0 22px 32px rgba(47, 120, 212, 0.24);
}

.sd-home .sd-piggy__ear {
  position: absolute;
  top: 20px;
  left: 76px;
  width: 45px;
  height: 52px;
  border-radius: 42% 52% 22% 52%;
  background: linear-gradient(145deg, #6ab0ef, #2d78d0);
}

.sd-home .sd-piggy__nose {
  position: absolute;
  right: 0;
  top: 70px;
  width: 48px;
  height: 36px;
  border-radius: 50%;
  background: #8cc6f4;
  border: 5px solid #2c6dbc;
}

.sd-home .sd-piggy__nose::before,
.sd-home .sd-piggy__nose::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1c4f91;
}

.sd-home .sd-piggy__nose::before {
  left: 15px;
}

.sd-home .sd-piggy__nose::after {
  right: 15px;
}

.sd-home .sd-piggy__eye {
  position: absolute;
  top: 62px;
  right: 74px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b2a58;
}

.sd-home .sd-piggy__leg {
  position: absolute;
  bottom: 6px;
  width: 28px;
  height: 22px;
  border-radius: 0 0 10px 10px;
  background: #2568bd;
}

.sd-home .sd-piggy__leg--one {
  left: 70px;
}

.sd-home .sd-piggy__leg--two {
  right: 70px;
}

.sd-home .sd-calculator {
  position: absolute;
  left: 156px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 13px);
  gap: 6px;
  width: 82px;
  height: 114px;
  padding: 34px 12px 12px;
  border-radius: 10px;
  background: linear-gradient(145deg, #4b5f78, #1e2e44);
  transform: rotate(9deg);
  box-shadow: 0 18px 24px rgba(6, 31, 74, 0.22);
  z-index: 2;
}

.sd-home .sd-calculator::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 16px;
  border-radius: 4px;
  background: #c7d6e5;
}

.sd-home .sd-calculator span {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #dce7f3;
}

.sd-home .sd-coin-stack {
  position: absolute;
  left: 16px;
  bottom: 28px;
  width: 98px;
  height: 70px;
  z-index: 2;
}

.sd-home .sd-coin-stack span {
  position: absolute;
  width: 56px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4d991, var(--sd-gold));
  border: 2px solid var(--sd-gold-dark);
}

.sd-home .sd-coin-stack span:nth-child(1) { left: 0; bottom: 0; }
.sd-home .sd-coin-stack span:nth-child(2) { left: 14px; bottom: 9px; }
.sd-home .sd-coin-stack span:nth-child(3) { left: 28px; bottom: 18px; }
.sd-home .sd-coin-stack span:nth-child(4) { left: 42px; bottom: 27px; }

.sd-home .sd-coin {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff2a7, transparent 28%),
    linear-gradient(145deg, #f3d58a, var(--sd-gold));
  border: 3px solid var(--sd-gold-dark);
  box-shadow: 0 10px 14px rgba(201, 145, 25, 0.16);
}

.sd-home .sd-coin--one {
  right: 166px;
  top: 34px;
}

.sd-home .sd-coin--two {
  right: 122px;
  top: 92px;
  background:
    radial-gradient(circle at 35% 28%, #85bdff, transparent 28%),
    linear-gradient(145deg, #3f73b7, #285b98);
  border-color: #174f9b;
}

.sd-home .sd-coin--three {
  left: 112px;
  bottom: 82px;
}

/* Shared sections */
.sd-home .sd-section {
  padding: 30px 0;
  background: #ffffff;
}

.sd-home .sd-section__head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding-left: 12px;
  padding-bottom: 10px;
  border-left: 4px solid var(--sd-navy);
  border-bottom: 1px solid #dce7f3;
}

.sd-home .sd-section__head::before {
  content: none !important;
  display: none !important;
}

.sd-home .sd-section__head--row {
  justify-content: space-between;
  gap: 16px;
}

.sd-home .sd-section__head h2 {
  padding-left: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  color: var(--sd-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.sd-home .sd-section__head h2::before,
.sd-home .sd-section__head h2::after,
.sd-home .sd-section__head.sd-section__head h2::before,
.sd-home .sd-section__head.sd-section__head h2::after {
  content: none !important;
  display: none !important;
}

.sd-home .sd-more-link {
  margin-left: auto;
  color: var(--sd-navy-2);
  font-size: 14px;
  font-weight: 850;
}

.sd-home .sd-more-link::after {
  content: ">";
  margin-left: 7px;
}

/* Category cards */
.sd-home .sd-category-grid {
  display: grid;
  gap: 14px;
}

.sd-home .sd-category-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 15px;
  row-gap: 4px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: var(--sd-card);
  box-shadow: var(--sd-shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sd-home .sd-category-card:hover,
.sd-home .sd-category-card:focus {
  border-color: #bdd3ea;
  box-shadow: var(--sd-shadow);
  transform: translateY(-2px);
}

.sd-home .sd-card-icon {
  position: relative;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 16px rgba(6, 31, 74, 0.06);
}

.sd-home .sd-card-icon svg {
  display: block;
  width: 50px;
  height: 50px;
  overflow: visible;
  filter: drop-shadow(0 6px 8px rgba(6, 31, 74, 0.12));
}

.sd-home .sd-card-icon--blue { background: linear-gradient(145deg, #f1f7fd, #e1edf8); }
.sd-home .sd-card-icon--navy { background: linear-gradient(145deg, #f1f5fa, #e0e9f3); }
.sd-home .sd-card-icon--green { background: linear-gradient(145deg, #eff8f2, #dfeee5); }
.sd-home .sd-card-icon--gold { background: linear-gradient(145deg, #fbf5e7, #f4e8cd); }
.sd-home .sd-card-icon--sky { background: linear-gradient(145deg, #f2f8fc, #e2eff8); }
.sd-home .sd-card-icon--red { background: linear-gradient(145deg, #fbf2f1, #f4e3e0); }

.sd-home .sd-category-card__title {
  align-self: end;
  color: var(--sd-navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.sd-home .sd-category-card__text {
  color: #314762;
  font-size: 13px;
  line-height: 1.62;
}

/* Category icon illustrations */
.sd-home .sd-bar,
.sd-home .sd-invest-bar {
  position: absolute;
  bottom: 15px;
  width: 9px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #63b0f5, #1f65bc);
  box-shadow: inset -2px -2px 0 rgba(6, 31, 74, 0.08);
}

.sd-home .sd-bar--one { left: 16px; height: 22px; }
.sd-home .sd-bar--two { left: 29px; height: 33px; }
.sd-home .sd-bar--three { left: 42px; height: 42px; }

.sd-home .sd-mini-coin {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f9e7aa, transparent 28%), linear-gradient(145deg, #f0d184, var(--sd-gold));
  border: 2px solid var(--sd-gold-dark);
}

.sd-home .sd-icon-shield span {
  position: absolute;
  inset: 11px 14px 8px;
  background: linear-gradient(145deg, #63a7ef, #1f65bc);
  clip-path: polygon(50% 0, 88% 13%, 83% 58%, 50% 100%, 17% 58%, 12% 13%);
}

.sd-home .sd-icon-shield span::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 18px;
  height: 10px;
  border-left: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: rotate(-45deg);
}

.sd-home .sd-wallet-body {
  position: absolute;
  left: 12px;
  right: 9px;
  bottom: 15px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #62c4d6, #2a98bc);
  box-shadow: inset -5px -6px 0 rgba(6, 31, 74, 0.08);
}

.sd-home .sd-wallet-flap {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 36px;
  height: 22px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(145deg, #86d68e, #45aa6a);
  transform: rotate(-6deg);
}

.sd-home .sd-wallet-body::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f7d36c;
}

.sd-home .sd-person {
  position: absolute;
  bottom: 13px;
  width: 26px;
  height: 26px;
  border-radius: 12px 12px 7px 7px;
}

.sd-home .sd-person::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.sd-home .sd-person--one {
  left: 15px;
  background: linear-gradient(145deg, #ffc95b, #e5a425);
}

.sd-home .sd-person--one::before {
  background: #ffc95b;
}

.sd-home .sd-person--two {
  right: 13px;
  background: linear-gradient(145deg, #c8d1dc, #8d99a8);
}

.sd-home .sd-person--two::before {
  background: #c8d1dc;
}

.sd-home .sd-tax-paper {
  position: absolute;
  left: 15px;
  top: 10px;
  width: 34px;
  height: 42px;
  padding-top: 9px;
  border-radius: 7px;
  background: #ffffff;
  border: 2px solid #b7d8f6;
  color: #1d65ba;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.sd-home .sd-tax-badge {
  position: absolute;
  right: 10px;
  bottom: 13px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9d79f0, #6749c8);
}

.sd-home .sd-tax-badge::before,
.sd-home .sd-tax-badge::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.sd-home .sd-tax-badge::before {
  left: 5px;
  top: 8px;
  width: 9px;
  height: 3px;
}

.sd-home .sd-tax-badge::after {
  left: 8px;
  top: 5px;
  width: 3px;
  height: 9px;
}

.sd-home .sd-invest-bar--one { left: 15px; height: 17px; background: linear-gradient(180deg, #e8bd63, #b58a2d); }
.sd-home .sd-invest-bar--two { left: 29px; height: 27px; background: linear-gradient(180deg, #68c68a, #36a461); }
.sd-home .sd-invest-bar--three { left: 43px; height: 37px; background: linear-gradient(180deg, #d8897f, #c9685d); }

.sd-home .sd-invest-line {
  position: absolute;
  left: 15px;
  top: 19px;
  width: 37px;
  height: 22px;
  border-top: 4px solid #c9685d;
  border-right: 4px solid #c9685d;
  transform: skewY(-30deg);
}

.sd-home .sd-invest-line::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -8px;
  width: 10px;
  height: 10px;
  border-top: 4px solid #c9685d;
  border-right: 4px solid #c9685d;
  transform: rotate(12deg);
}

/* Latest posts: WP_Query cards */
.sd-home .sd-latest {
  padding-top: 22px;
}

.sd-home .sd-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sd-home .sd-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--sd-shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sd-home .sd-post-card:hover {
  border-color: #bdd3ea;
  box-shadow: 0 16px 36px rgba(6, 31, 74, 0.12);
  transform: translateY(-3px);
}

.sd-home .sd-post-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf2fb;
}

.sd-home .sd-post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-home .sd-post-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(63, 115, 183, 0.16), rgba(232, 189, 99, 0.12)),
    #eef6ff;
}

.sd-home .sd-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 17px 17px;
}

.sd-home .sd-post-card__category {
  margin-bottom: 6px;
  color: var(--sd-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.sd-home .sd-post-card__title {
  margin: 0;
  color: var(--sd-navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.38;
}

.sd-home .sd-post-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sd-home .sd-post-card__date {
  margin-top: 10px;
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Frequently searched information */
.sd-home .sd-topics {
  padding-top: 24px;
}

.sd-home .sd-topic-grid {
  display: grid;
  gap: 12px;
}

.sd-home .sd-topic-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 13px 42px 13px 54px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--sd-navy);
  font-size: 15px;
  font-weight: 850;
  box-shadow: var(--sd-shadow-soft);
}

.sd-home .sd-topic-card::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e8f3ff;
}

.sd-home .sd-topic-card::after {
  content: ">";
  position: absolute;
  right: 17px;
  color: var(--sd-navy);
  font-size: 18px;
  line-height: 1;
}

.sd-home .sd-topic-card--pension::before {
  background:
    radial-gradient(circle at 36% 38%, #3f73b7 0 4px, transparent 5px),
    radial-gradient(circle at 64% 38%, #7fb5ef 0 4px, transparent 5px),
    linear-gradient(#7fb5ef 0 100%);
}

.sd-home .sd-topic-card--insurance::before {
  background: linear-gradient(145deg, #6aa7ec, #1f65bc);
  clip-path: polygon(50% 0, 90% 15%, 82% 62%, 50% 100%, 18% 62%, 10% 15%);
}

.sd-home .sd-topic-card--health::before {
  background:
    linear-gradient(#3f73b7 0 100%),
    linear-gradient(#ffffff 0 100%);
  border: 2px solid #8cbff0;
}

.sd-home .sd-topic-card--tax::before {
  background:
    linear-gradient(90deg, transparent 0 40%, #55b983 40% 58%, transparent 58%),
    linear-gradient(#55b983 0 100%);
}

.sd-home .sd-topic-card--car::before {
  border-radius: 7px 7px 5px 5px;
  background:
    radial-gradient(circle at 28% 82%, #061f4a 0 3px, transparent 4px),
    radial-gradient(circle at 72% 82%, #061f4a 0 3px, transparent 4px),
    linear-gradient(180deg, transparent 0 30%, #3f73b7 31% 100%);
}

.sd-home .sd-topic-card--isa::before {
  background:
    linear-gradient(90deg, transparent 0 16%, #55b983 16% 26%, transparent 26% 36%, #55b983 36% 46%, transparent 46% 56%, #55b983 56% 66%, transparent 66% 100%),
    linear-gradient(180deg, transparent 0 32%, #dcf5e5 32% 100%);
  border: 2px solid #55b983;
}

.sd-home .sd-topic-card:hover,
.sd-home .sd-topic-card:focus {
  border-color: #bdd3ea;
  box-shadow: var(--sd-shadow);
}

/* Footer */
.sd-home .sd-footer {
  margin-top: 18px;
  padding: 40px 0 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 120, 212, 0.28), transparent 28%),
    linear-gradient(135deg, #061f4a 0%, #082a5d 100%);
  color: #dce8f7;
}

.sd-home .sd-footer__grid {
  display: grid;
  gap: 30px;
}

.sd-home .sd-logo--footer {
  color: #ffffff;
}

.sd-home .sd-logo--footer .sd-logo__mark {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sd-gold);
}

.sd-home .sd-footer__brand {
  max-width: 360px;
}

.sd-home .sd-footer__brand-title {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.sd-home .sd-footer__brand-copy {
  margin-top: 13px;
  color: #d7e4f2;
  font-size: 14px;
  line-height: 1.75;
}

.sd-home .sd-footer__nav h2 {
  margin: 0 0 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.sd-home .sd-footer__nav a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: #dce8f7;
  font-size: 14px;
  font-weight: 650;
}

.sd-home .sd-footer__nav a:hover,
.sd-home .sd-footer__nav a:focus {
  color: #ffffff;
}

.sd-home .sd-footer__copy {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c2d3e7;
  font-size: 13px;
  text-align: center;
}

/* Tablet */
@media (min-width: 640px) {
  .sd-home .sd-container {
    width: min(1420px, calc(100% - 40px));
  }

  .sd-home .sd-category-grid,
  .sd-home .sd-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sd-home .sd-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .sd-home .sd-hero {
    padding: 38px 0 36px;
  }

  .sd-home .sd-hero .sd-container {
    width: min(1600px, calc(100% - 40px));
  }

  .sd-home .sd-hero__grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    align-items: center;
    gap: 0;
  }

  .sd-home .sd-hero__content {
    width: 100%;
    max-width: 760px;
    justify-self: start;
  }

  .sd-home .sd-hero__visual {
    display: block;
    width: 100%;
    min-height: 300px;
    justify-self: start;
  }

  .sd-home .sd-hero-illustration {
    width: min(128%, 760px);
    margin-left: 0;
    transform: translateX(-28px);
  }

  .sd-home .sd-section {
    padding: 26px 0;
  }

  .sd-home .sd-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sd-home .sd-category-card {
    grid-template-columns: 64px 1fr;
    min-height: 126px;
  }

  .sd-home .sd-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sd-home .sd-topic-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sd-home .sd-topic-card {
    min-height: 62px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .sd-home .sd-category-card {
    grid-template-columns: 64px 1fr;
    padding: 17px;
  }

  .sd-home .sd-category-card__title {
    font-size: 17px;
  }

  .sd-home .sd-category-card__text {
    font-size: 12px;
  }
}

/* Mobile refinements */
@media (max-width: 639px) {
  .sd-home .sd-hero {
    padding: 32px 0 34px;
  }

  .sd-home .sd-hero .sd-container {
    width: min(1600px, calc(100% - 28px));
  }

  .sd-home .sd-hero__grid {
    gap: 22px;
    text-align: center;
  }

  .sd-home .sd-hero__desc br {
    display: none;
  }

  .sd-home .sd-eyebrow {
    margin-inline: auto;
  }

  .sd-home .sd-hero__title,
  .sd-home .sd-hero__desc,
  .sd-home .sd-search {
    margin-left: auto;
    margin-right: auto;
  }

  .sd-home .sd-search {
    flex-direction: column;
  }

  .sd-home .sd-search__button {
    width: 100%;
  }

  .sd-home .sd-hero__visual {
    min-height: 210px;
  }

  .sd-home .sd-hero-illustration {
    width: min(100%, 370px);
  }

  .sd-home .sd-footer {
    padding-top: 34px;
  }
}

@media (max-width: 420px) {
  .sd-home .sd-container {
    width: min(1420px, calc(100% - 28px));
  }

  .sd-home .sd-hero__title {
    font-size: 34px;
  }

  .sd-home .sd-hero__visual {
    min-height: 188px;
  }

  .sd-home .sd-hero-illustration {
    width: min(100%, 330px);
  }

  .sd-home .sd-category-card {
    grid-template-columns: 58px 1fr;
    padding: 16px;
  }

  .sd-home .sd-card-icon {
    width: 58px;
    height: 58px;
  }
}


/* Hide GeneratePress default footer only on the custom front page. */
body.home .site-footer {
  display: none;
}


