.custom-home-hero,
.custom-home-section {
  margin-bottom: 1.5rem;
}

.custom-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.custom-home-hero__main,
.custom-home-hero__side,
.custom-feature-card,
.custom-topic-card {
  border: 1px solid rgba(91, 108, 255, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(40, 52, 122, 0.08);
}

.custom-home-hero__main {
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 190, 92, 0.35), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #2444d9 55%, #7aa2ff 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.custom-home-hero__main::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(6px);
}

.custom-home-hero__eyebrow,
.custom-home-section__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-home-hero__title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: #fff;
}

.custom-home-hero__desc {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
}

.custom-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.custom-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-home-btn:hover {
  transform: translateY(-2px);
}

.custom-home-btn--primary {
  background: #fff;
  color: #1d35b5;
  box-shadow: 0 12px 30px rgba(12, 23, 77, 0.2);
}

.custom-home-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.custom-home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.custom-home-stat {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.custom-home-stat__num {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.custom-home-stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.custom-home-hero__side {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.96)),
    linear-gradient(135deg, #ffd89b, #19547b);
}

.custom-home-sidecard__label {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(91, 108, 255, 0.08);
  color: #3751db;
  font-size: 0.78rem;
  font-weight: 700;
}

.custom-home-sidecard__title {
  margin: 1rem 0 0.7rem;
  font-size: 1.4rem;
  color: #15204a;
  font-weight: 800;
}

.custom-home-sidecard__list {
  margin: 0;
  padding-left: 1.1rem;
  color: #425171;
  line-height: 1.9;
}

.custom-home-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.custom-home-section__eyebrow {
  background: rgba(91, 108, 255, 0.08);
  color: #3751db;
}

.custom-home-section__title {
  margin: 0.45rem 0 0;
  font-size: 1.6rem;
  color: #12203d;
}

.custom-home-section__link,
.custom-topic-card__more {
  color: #3751db;
  font-weight: 700;
  text-decoration: none;
}

.custom-feature-grid,
.custom-topic-grid {
  display: grid;
  gap: 1rem;
}

.custom-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.custom-feature-card {
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
}

.custom-feature-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #5f6f94;
  font-size: 0.82rem;
}

.custom-feature-card__title,
.custom-topic-card__title {
  margin: 0.9rem 0 0.55rem;
  color: #12203d;
  font-size: 1.18rem;
  line-height: 1.5;
}

.custom-feature-card__desc,
.custom-topic-card__desc {
  margin: 0;
  color: #56657f;
  line-height: 1.8;
}

.custom-topic-card {
  padding: 1.2rem;
}

.custom-topic-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.custom-topic-card__posts {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.custom-topic-post {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #f5f7ff;
  color: #20304c;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.custom-topic-post:hover,
.custom-feature-card:hover {
  transform: translateY(-2px);
}

.custom-topic-post:hover {
  background: #ebefff;
}

@media (max-width: 1100px) {
  .custom-home-hero,
  .custom-feature-grid,
  .custom-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .custom-home-hero__main,
  .custom-home-hero__side,
  .custom-feature-card,
  .custom-topic-card {
    border-radius: 20px;
  }

  .custom-home-hero__main,
  .custom-home-hero__side {
    padding: 1.25rem;
  }

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

  .custom-home-section__head,
  .custom-topic-card__top {
    display: block;
  }

  .custom-home-section__link,
  .custom-topic-card__more {
    display: inline-block;
    margin-top: 0.65rem;
  }
}
