/* Homepage layout — matches catpregnancyguide-refresh-preview */

.shell {
  max-width: 1080px;
  margin: auto;
  padding: 0 18px;
  width: 100%;
}

.main-container.shell {
  max-width: 1080px;
  padding: 0 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  padding: 42px 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.eyebrow {
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  font-size: clamp(35px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 12px 0 16px;
  max-width: 530px;
  color: var(--ink);
  font-weight: 800;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 440px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 23px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.primary {
  background: var(--green);
  color: white;
}

.primary:hover {
  background: #4f6e5d;
  color: white;
}

.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.secondary:hover {
  color: var(--green);
  border-color: var(--green);
}

.hero-art {
  background: var(--sage);
  border-radius: 28px;
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-art:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(38, 53, 47, 0.14);
  color: inherit;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--yellow);
  right: -50px;
  top: -50px;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 280px;
  object-fit: cover;
  border-radius: 120px 120px 24px 24px;
  box-shadow: 0 15px 30px rgba(38, 53, 47, 0.12);
}

/* Section heads */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 34px 0 14px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.section-head a {
  font-size: 12px;
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
}

.section-head a:hover {
  color: var(--green);
}

/* Topics */
.topics {
  display: flex;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.topics::-webkit-scrollbar {
  display: none;
}

.topic {
  flex: 0 0 180px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.topic:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(38, 53, 47, 0.08);
}

.topic b {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink);
}

.topic span {
  color: var(--muted);
  font-size: 12px;
}

.topic:nth-child(2) {
  background: #edf1df;
}

.topic:nth-child(3) {
  background: #f8e8e2;
}

.topic:nth-child(4) {
  background: #e8eef0;
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: block;
}

.feature:hover {
  box-shadow: 0 10px 24px rgba(38, 53, 47, 0.1);
  color: inherit;
}

.feature img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.feature-copy {
  padding: 16px 18px 18px;
}

.tag {
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feature h3 {
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 7px 0;
  color: var(--ink);
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.side {
  display: grid;
  gap: 14px;
}

.mini {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: stretch;
}

.mini img {
  width: 116px;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.mini .feature-copy {
  padding: 14px;
}

.mini h3 {
  font-size: 15px;
  margin: 7px 0 0;
}

/* Latest feed */
.feed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  margin-bottom: 20px;
}

.row {
  display: grid;
  grid-template-columns: 90px 1fr 18px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.row:last-child {
  border: 0;
}

.row:hover {
  color: inherit;
}

.row:hover h3 {
  color: var(--green);
}

.row img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.row small {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.row h3 {
  font-size: 15px;
  line-height: 1.2;
  margin: 4px 0;
  color: var(--ink);
  font-weight: 700;
}

.row time {
  color: var(--muted);
  font-size: 11px;
}

.arrow {
  color: var(--coral);
  font-size: 21px;
}

@media (max-width: 680px) {
  .shell,
  .main-container.shell {
    padding: 0 14px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 14px 0 6px;
    gap: 12px;
  }

  /* Flatten copy so image can sit under the title */
  .hero-copy {
    display: contents;
  }

  .hero h1 {
    order: 1;
    font-size: 36px;
    margin: 0 0 0;
  }

  .hero-art {
    order: 2;
    width: 100%;
    min-height: 250px;
  }

  .hero p {
    order: 3;
    font-size: 14px;
    margin-bottom: 0;
  }

  .hero-actions {
    order: 4;
    margin-top: 0;
  }

  .hero-art img {
    height: 220px;
  }

  .section-head {
    margin-top: 16px;
    margin-bottom: 10px;
  }

  .topic {
    flex-basis: 155px;
  }

  .featured {
    display: block;
  }

  .feature {
    margin-bottom: 12px;
  }

  .feature img {
    height: 205px;
  }

  .side {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 10px;
  }

  .mini {
    display: block;
  }

  .mini img {
    width: 100%;
    height: 100px;
    min-height: 0;
  }

  .mini .feature-copy {
    padding: 11px;
  }

  .mini h3 {
    font-size: 13px;
  }

  .feed {
    padding: 0 12px;
  }

  .row {
    grid-template-columns: 74px 1fr 14px;
    gap: 10px;
  }

  .row img {
    width: 74px;
    height: 60px;
  }

  .row h3 {
    font-size: 14px;
  }
}
