/* WiseSaverGuide homepage redesign */
body.home-v3 {
  background: #ffffff;
  color: var(--body);
  overflow-x: hidden;
}

body.home-v3 .topbar {
  line-height: 1.45;
}

body.home-v3 .topbar .container {
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wsg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.35), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.2), transparent 32%),
    linear-gradient(135deg, #031126 0%, #062766 47%, #0a58df 100%);
  color: #ffffff;
  padding: 70px 0 58px;
}

.wsg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 38, 0.9) 0%, rgba(3, 17, 38, 0.58) 48%, rgba(3, 17, 38, 0.16) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 18px);
}

.wsg-hero .container {
  position: relative;
  z-index: 1;
}

.wsg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

@media (min-width: 760px) {
  .wsg-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
    gap: 48px;
    align-items: start;
  }
}

@media (min-width: 1160px) {
  .wsg-hero-grid {
    grid-template-columns: minmax(0, 560px) minmax(480px, 1fr);
    gap: 70px;
    justify-content: space-between;
  }
}

.wsg-hero-copy {
  min-width: 0;
}

.wsg-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.28);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
}

.wsg-trust-pill::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2f8cff;
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.18);
}

.wsg-hero h1 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(46px, 4.55vw, 64px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.wsg-hero h1 .headline-line {
  display: block;
  white-space: nowrap;
}

.wsg-hero h1 .headline-line.white {
  color: #ffffff;
}

.wsg-hero h1 .headline-line.blue {
  color: #2f8cff;
}

.wsg-hero p {
  max-width: 570px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wsg-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
}

@media (min-width: 700px) {
  .wsg-proof-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.wsg-proof-row div {
  position: relative;
  padding-left: 38px;
  color: #bfdbfe;
}

.wsg-proof-row div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background-color: rgba(47, 140, 255, 0.18);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.wsg-proof-row div:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3l7 3v5c0 4.6-2.9 8.8-7 10-4.1-1.2-7-5.4-7-10V6l7-3z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 12l2 2 4-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wsg-proof-row div:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4h10v14H9z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M5 8h4v12H5z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 8h4M12 12h4M12 16h2' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.wsg-proof-row div:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8' stroke='white' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wsg-proof-row strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.wsg-proof-row span {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

.wsg-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (min-width: 680px) {
  .wsg-hero-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (min-width: 1160px) {
  .wsg-hero-panel {
    align-self: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.wsg-category-tile {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  background: rgba(9, 25, 52, 0.38);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wsg-category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
  background: rgba(26, 86, 219, 0.34);
  color: #ffffff;
  text-decoration: none;
}

.tile-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.wsg-category-tile strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.wsg-category-tile small {
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.35;
}

.wsg-section {
  padding: 70px 0;
  background: #ffffff;
}

.wsg-soft-section {
  background: #f6f9ff;
}

.wsg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.wsg-section-heading span {
  display: block;
  margin-bottom: 6px;
  color: #0a6dff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.wsg-section-heading h2 {
  margin: 0;
  color: #0f2348;
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.wsg-section-heading a {
  color: #0a6dff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.wsg-section-heading a::after {
  content: " ->";
}

.wsg-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 650px) {
  .wsg-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .wsg-guide-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.wsg-guide-card {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  color: var(--body);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wsg-guide-card:hover,
.wsg-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  text-decoration: none;
}

.wsg-guide-card img {
  width: 100%;
  aspect-ratio: 4 / 2.7;
  object-fit: cover;
}

.wsg-guide-card div {
  padding: 13px 14px 16px;
}

.wsg-guide-card span,
.wsg-article-card span {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0a6dff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.wsg-guide-card h3 {
  min-height: 48px;
  margin: 0 0 7px;
  color: #10203f;
  font-size: 15px;
  line-height: 1.22;
  letter-spacing: 0;
}

.wsg-guide-card p {
  margin: 0;
  color: var(--body);
  font-size: 12px;
  line-height: 1.5;
}

.wsg-curated {
  padding: 28px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
}

.wsg-choice-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #d7e7ff;
}

.wsg-choice-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #31517c;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.wsg-choice-tabs button.active {
  background: #0a6dff;
  color: #ffffff;
}

.wsg-choice-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 820px) {
  .wsg-choice-panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }
}

.wsg-choice-panel span {
  display: block;
  color: #0a6dff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.wsg-choice-panel h3 {
  margin: 8px 0 10px;
  color: #0f2348;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.wsg-choice-panel p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

.wsg-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 7px;
  background: #0a6dff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.wsg-primary-btn:hover {
  background: var(--blue-dark);
  color: #ffffff;
  text-decoration: none;
}

.wsg-choice-card {
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(26, 86, 219, 0.09);
}

.wsg-choice-card span {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
}

.wsg-choice-card strong {
  display: block;
  color: #0f2348;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.wsg-choice-card p {
  margin: 0;
  font-size: 15px;
}

.wsg-value-band {
  padding: 42px 0;
  background: #062766;
  color: #ffffff;
}

.wsg-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

@media (min-width: 820px) {
  .wsg-value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wsg-value-grid div {
  padding: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (min-width: 820px) {
  .wsg-value-grid div {
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .wsg-value-grid div:last-child {
    border-right: 0;
  }
}

.wsg-value-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #0a6dff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.wsg-value-grid strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.wsg-value-grid p {
  margin: 0;
  color: #cfe2ff;
  font-size: 13px;
  line-height: 1.55;
}

.wsg-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .wsg-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .wsg-article-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wsg-article-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--body);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wsg-article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wsg-article-card div {
  padding: 16px;
}

.wsg-article-card h3 {
  margin: 0 0 11px;
  color: #10203f;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.wsg-article-card small {
  color: #64748b;
  font-size: 13px;
}

.wsg-newsletter {
  padding: 0 0 70px;
  background: #ffffff;
}

.wsg-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #dbeafe;
}

@media (min-width: 850px) {
  .wsg-newsletter-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.wsg-newsletter-inner > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.newsletter-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dbeafe;
  color: #0a6dff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.wsg-newsletter h2 {
  margin: 0 0 5px;
  color: #0f2348;
  font-size: 28px;
  letter-spacing: 0;
}

.wsg-newsletter p {
  margin: 0;
  color: #52647e;
  font-size: 15px;
  line-height: 1.5;
}

.wsg-newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wsg-newsletter input {
  min-width: 0;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  padding: 14px 15px;
  font: inherit;
  font-size: 14px;
  outline-color: #0a6dff;
}

.wsg-newsletter button {
  border: 0;
  border-radius: 6px;
  background: #0a6dff;
  color: #ffffff;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 400;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
}

.mobile-cta-bar a {
  display: block;
  padding: 14px;
  border-radius: 7px;
  background: var(--orange);
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 768px) {
  .wsg-hero {
    padding: 42px 0 44px;
  }

  .wsg-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 12.5vw, 58px);
    line-height: 1;
  }

  .wsg-hero h1 .headline-line {
    white-space: normal;
  }

  .wsg-hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .wsg-trust-pill {
    display: flex;
    width: fit-content;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.25;
  }

  .wsg-trust-pill::before {
    flex: 0 0 auto;
  }

  .wsg-proof-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  .wsg-proof-row div {
    min-width: 0;
    padding-top: 26px;
    padding-left: 0;
    text-align: center;
  }

  .wsg-proof-row div::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-size: 12px 12px;
  }

  .wsg-proof-row strong {
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }

  .wsg-proof-row span {
    display: none;
  }

  .wsg-category-tile {
    min-height: 136px;
    min-width: 0;
    padding: 16px 10px;
  }

  .wsg-category-tile strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .wsg-category-tile small {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .wsg-newsletter form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .wsg-newsletter button {
    min-height: 48px;
  }

  .wsg-section {
    padding: 52px 0;
  }

  .wsg-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .wsg-curated {
    padding: 20px;
  }

  .wsg-newsletter-inner > div {
    align-items: start;
  }

  .mobile-cta-bar {
    display: block;
  }
}

@media (max-width: 420px) {
  .wsg-proof-row {
    gap: 8px;
  }

  .wsg-proof-row div {
    padding-left: 0;
    padding-top: 24px;
  }

  .wsg-proof-row div::before {
    top: 0;
  }

  .wsg-proof-row strong {
    font-size: 12px;
  }

  .wsg-proof-row span {
    font-size: 10px;
  }

  .wsg-hero-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wsg-category-tile {
    min-height: 128px;
  }

  .tile-icon {
    width: 34px;
    height: 34px;
  }

  .wsg-newsletter-inner {
    padding: 22px;
  }

  .newsletter-icon {
    width: 58px;
    height: 58px;
  }
}
