.home-v3 {
  --home-bg: #f7f9fc;
  --home-card: #ffffff;
  --home-text: #0b1324;
  --home-muted: #64748b;
  --home-line: #e6ebf3;
  --home-blue: #3157ea;
  --home-blue-dark: #1d3fc5;
  background: var(--home-bg);
  color: var(--home-text);
  overflow-x: clip;
}

.home-v3 *,
.home-v3 *::before,
.home-v3 *::after {
  min-width: 0;
}

.home-v3 img {
  max-width: 100%;
}

.home-v3 .home-shell-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.home-v3 .top-info-bar {
  padding: 0.38rem 0;
  background: #071225;
}

.top-story {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #dbe5f7;
  font-size: 0.76rem;
}

.top-story:hover,
.top-story:focus-visible {
  color: #fff;
}

.top-story > i {
  color: #facc15;
}

.top-story strong {
  color: #7fa5ff;
  font-weight: 600;
}

.home-v3 .factash-navbar {
  background: #fff;
}

.home-dashboard {
  padding: 1.75rem 0 3rem;
}

.home-feature {
  overflow: hidden;
  min-height: 410px;
  border: 1px solid #dfe7fa;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 88% 22%, rgba(96, 115, 255, 0.24), transparent 29%),
    linear-gradient(125deg, #f5f7ff 0%, #eef2ff 58%, #e6ebff 100%);
  box-shadow: 0 18px 50px rgba(28, 52, 120, 0.09);
}

.home-feature-content {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  min-height: 410px;
}

.home-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4.2rem);
  padding-right: 1rem;
  position: relative;
  z-index: 2;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  color: #fff;
  background: var(--home-blue);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-feature h1 {
  max-width: 640px;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.home-feature-copy > p {
  max-width: 590px;
  margin: 1rem 0 0;
  color: #4b5e7b;
  font-size: 1rem;
  line-height: 1.65;
}

.home-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.15rem 0 1.35rem;
  color: #52637d;
  font-size: 0.78rem;
}

.home-feature-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.1rem;
  border-radius: 0.65rem;
  background: var(--home-blue);
  box-shadow: 0 10px 22px rgba(49, 87, 234, 0.24);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.home-feature-cta:hover,
.home-feature-cta:focus-visible {
  background: var(--home-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.home-feature-art {
  position: relative;
  min-height: 410px;
  overflow: hidden;
}

.home-feature-art::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, #eef2ff 0%, rgba(238, 242, 255, 0.15) 36%, transparent 72%);
}

.home-feature-art img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.96);
}

.home-art-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(31, 52, 115, 0.16);
  color: var(--home-blue);
  backdrop-filter: blur(8px);
}

.home-art-badge.one { top: 17%; left: 13%; }
.home-art-badge.two { top: 42%; right: 9%; }
.home-art-badge.three { bottom: 13%; left: 23%; }

.home-topic-ribbon {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 1.2rem;
  padding: 0.85rem 0.7rem;
  border: 1px solid var(--home-line);
  border-radius: 1rem;
  background: var(--home-card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.home-topic {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.25rem;
  border-radius: 0.7rem;
  color: #26344a;
  font-size: 0.7rem;
  font-weight: 650;
  text-align: center;
}

.home-topic:hover,
.home-topic:focus-visible {
  color: var(--home-blue);
  background: #f2f5ff;
}

.home-topic i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0.7rem;
  color: var(--home-blue);
  background: #edf2ff;
}

.home-block {
  margin-top: 2.15rem;
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.home-section-heading h2,
.home-trending > h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.home-section-heading h2 i,
.home-trending > h2 i {
  margin-right: 0.25rem;
  color: #f97316;
}

.home-section-heading a {
  color: var(--home-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-picks-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(250px, 0.95fr);
  gap: 1rem;
}

.home-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-pick-card,
.home-panel,
.home-latest-card,
.home-sidebar-card {
  border: 1px solid var(--home-line);
  border-radius: 0.9rem;
  background: var(--home-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.home-pick-card {
  overflow: hidden;
}

.home-pick-card > a {
  display: block;
  height: 100%;
  color: inherit;
}

.home-pick-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.home-pick-copy {
  padding: 0.85rem;
}

.home-category-label {
  color: var(--home-blue);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.home-pick-copy h3 {
  margin: 0.4rem 0;
  color: var(--home-text);
  font-size: 0.96rem;
  line-height: 1.35;
}

.home-card-meta {
  color: var(--home-muted);
  font-size: 0.7rem;
}

.home-panel {
  padding: 1rem;
}

.home-trending-list {
  display: grid;
  gap: 0.72rem;
  margin: 1rem 0 0;
  padding: 0;
  counter-reset: trending;
  list-style: none;
}

.home-trending-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.55rem;
  align-items: start;
  counter-increment: trending;
}

.home-trending-list li::before {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  content: counter(trending);
  color: var(--home-blue);
  background: #edf2ff;
  font-size: 0.68rem;
  font-weight: 800;
}

.home-trending-list a {
  color: #26344a;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.home-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(280px, 0.95fr);
  gap: 1rem;
}

.home-latest-list {
  display: grid;
  gap: 0.8rem;
}

.home-latest-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 28px;
  gap: 0.85rem;
  padding: 0.65rem;
  color: inherit;
}

.home-latest-card:hover,
.home-pick-card:hover {
  border-color: #cbd7fb;
  box-shadow: 0 12px 28px rgba(31, 52, 115, 0.09);
  transform: translateY(-2px);
}

.home-latest-card img {
  width: 190px;
  height: 122px;
  border-radius: 0.66rem;
  object-fit: cover;
}

.home-latest-copy {
  align-self: center;
}

.home-latest-copy h3 {
  margin: 0.25rem 0 0.35rem;
  color: var(--home-text);
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-latest-copy p {
  margin: 0 0 0.4rem;
  color: var(--home-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.home-bookmark {
  align-self: center;
  color: #94a3b8;
}

.home-sidebar {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.home-sidebar-card {
  padding: 1rem;
}

.home-newsletter {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #3157ea, #5f73f5);
}

.home-newsletter h2,
.home-newsletter p {
  color: #fff;
}

.home-newsletter h2 {
  font-size: 1.05rem;
}

.home-newsletter p {
  opacity: 0.9;
  font-size: 0.78rem;
}

.home-newsletter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.66rem 0.82rem;
  border-radius: 0.5rem;
  color: var(--home-blue);
  background: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.home-newsletter-link:hover,
.home-newsletter-link:focus-visible {
  color: var(--home-blue-dark);
  background: #f8faff;
}

.home-socials,
.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.home-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: #334155;
}

.home-tags a {
  padding: 0.28rem 0.58rem;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: #475569;
  font-size: 0.67rem;
}

.home-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 2.15rem;
  padding: 1.05rem;
  border: 1px solid var(--home-line);
  border-radius: 0.95rem;
  background: var(--home-card);
}

.home-trust-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.35rem;
}

.home-trust-item i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 0.6rem;
  color: var(--home-blue);
  background: #edf2ff;
}

.home-trust-item strong {
  display: block;
  color: var(--home-text);
  font-size: 0.8rem;
}

.home-trust-item span {
  display: block;
  margin-top: 0.12rem;
  color: var(--home-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

[data-theme="dark"] .home-v3 {
  --home-bg: #07101f;
  --home-card: #0f1b2e;
  --home-text: #f8fafc;
  --home-muted: #9fb0c8;
  --home-line: #22324a;
  background: var(--home-bg);
}

[data-theme="dark"] .home-v3 .home-shell-header,
[data-theme="dark"] .home-v3 .factash-navbar {
  background: #0b1628;
}

[data-theme="dark"] .home-feature {
  background: linear-gradient(125deg, #101b35, #172448);
}

[data-theme="dark"] .home-feature-copy > p,
[data-theme="dark"] .home-feature-meta,
[data-theme="dark"] .home-topic,
[data-theme="dark"] .home-trending-list a,
[data-theme="dark"] .home-tags a,
[data-theme="dark"] .home-socials a {
  color: #c2d0e5;
}

[data-theme="dark"] .home-feature-art::before {
  background: linear-gradient(90deg, #172448 0%, rgba(23, 36, 72, 0.2) 42%, transparent);
}

@media (max-width: 1199.98px) {
  .home-topic-ribbon {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-feature-content {
    grid-template-columns: 1fr;
  }

  .home-feature-copy {
    padding-right: clamp(2rem, 5vw, 4.2rem);
  }

  .home-feature-art {
    min-height: 300px;
  }

  .home-feature-art img {
    min-height: 300px;
  }

  .home-feature-art::before {
    background: linear-gradient(180deg, #eef2ff 0%, rgba(238, 242, 255, 0.08) 38%, transparent);
  }

  .home-picks-layout,
  .home-latest-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .home-dashboard {
    padding-top: 1rem;
  }

  .home-feature,
  .home-feature-content {
    min-height: 0;
  }

  .home-feature-copy {
    padding: 1.5rem;
  }

  .home-feature h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .home-picks-grid {
    grid-template-columns: 1fr;
  }

  .home-pick-card {
    display: grid;
    grid-template-columns: 132px 1fr;
  }

  .home-pick-card > a {
    display: contents;
  }

  .home-pick-card img {
    width: 132px;
    height: 100%;
    min-height: 136px;
  }

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

  .home-latest-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .home-latest-card img {
    width: 112px;
    height: 100%;
    min-height: 112px;
  }

  .home-bookmark {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .top-story strong,
  .home-art-badge {
    display: none;
  }

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

  .home-latest-card,
  .home-pick-card {
    grid-template-columns: 1fr;
  }

  .home-latest-card img,
  .home-pick-card img {
    width: 100%;
    height: 190px;
  }

  .home-trust {
    grid-template-columns: 1fr;
  }
}
