.rovers-section {
  background: #081226;
  width: 100%;
  margin: 0;
  padding: 100px 20px 80px;
}
.section-header {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 60px;
}
.section-title {
  color: #00d4ff;
  margin-bottom: 18px;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.section-subtitle {
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}
.rovers-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
}
.rover-card {
  cursor: pointer;
  background: #0f172a;
  border-radius: 24px;
  width: 100%;
  height: 380px;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px #00000059;
}
.rover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 50px #00000073;
}
.rover-image-panel {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.rover-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  display: block;
}
.rover-card:hover .rover-image {
  transform: scale(1.08);
}
.rover-image-panel:after {
  content: "";
  background: linear-gradient(#02061714 0%, #0206178c 52%, #020617f2 88%);
  position: absolute;
  inset: 0;
}
.rover-content {
  z-index: 2;
  text-align: center;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 26px;
  display: flex;
  position: absolute;
  inset: 0;
}
.rover-title {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 12px #000000b3;
  opacity: 1;
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
}
.rover-btn-link {
  text-decoration: none;
}
.rover-btn {
  color: #fff;
  cursor: pointer;
  opacity: 1;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%) 0
    0/200% 200%;
  border: none;
  border-radius: 999px;
  outline: none;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: auto;
  transition:
    background-position 0.4s,
    transform 0.25s,
    box-shadow 0.25s;
}
.rover-btn:hover {
  background-position: 100%;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px #7c3aed73;
}
.rover-card:hover .rover-btn:hover,
.rover-card:focus-within .rover-btn:hover {
  transform: translateY(-3px) scale(1.05);
}
@media (max-width: 1100px) {
  .section-title {
    font-size: 2.8rem;
  }
  .rovers-grid {
    gap: 28px;
  }
  .rover-card {
    height: 350px;
  }
}
@media (max-width: 900px) {
  .rovers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 650px;
  }
  .rover-card {
    height: 360px;
  }
  .rover-title {
    font-size: 1.1rem;
  }
  .rover-content {
    padding: 22px;
  }
}
@media (max-width: 768px) {
  .rovers-section {
    padding: 80px 16px 60px;
  }
  .section-header {
    margin-bottom: 50px;
  }
  .section-title {
    font-size: 2.4rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .rovers-grid {
    gap: 26px;
    max-width: 100%;
  }
  .rover-card {
    height: 330px;
  }
  .rover-content {
    padding: 20px;
  }
  .rover-title {
    font-size: 1rem;
  }
  .rover-btn {
    padding: 12px 22px;
    font-size: 0.92rem;
  }
}
@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  .rover-card {
    border-radius: 20px;
    height: 310px;
  }
  .rover-content {
    padding: 18px;
  }
  .rover-btn {
    width: 100%;
    padding: 12px 16px;
  }
}
