/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lexend Deca', sans-serif;
  background-color: hsl(0, 0%, 95%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Card container */
.card-container {
  display: flex;
  max-width: 920px;
  border-radius: 10px;
  overflow: hidden;
}

/* Individual card styles */
.sedan-card,
.suv-card,
.luxury-card {
  padding: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.sedan-card {
  background-color: hsl(31, 77%, 52%);
}

.suv-card {
  background-color: hsl(184, 100%, 22%);
}

.luxury-card {
  background-color: hsl(179, 100%, 13%);
}

/* Card icons */
.card-icon {
  width: 75px;
  height: 48px;
  margin-bottom: 35px;
}

/* Typography */
h1 {
  font-family: 'Big Shoulders', sans-serif;
  font-size: 2.5rem;
  color: hsl(0, 0%, 95%);
  text-transform: uppercase;
  margin-bottom: 25px;
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: hsla(0, 0%, 100%, 0.75);
  margin-bottom: 80px;
  flex-grow: 1;
}

/* Learn More Button Styles */
.learn-more-btn {
  background-color: hsl(0, 0%, 95%);
  border: 2px solid hsl(0, 0%, 95%);
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start
}

.sedan-btn {
  color: hsl(31, 77%, 52%);
}

.suv-btn {
  color: hsl(184, 100%, 22%);
}

.luxury-btn {
  color: hsl(179, 100%, 13%);
}

.learn-more-btn:hover {
  background-color: transparent;
  color: hsl(0, 0%, 95%);
}

/* Responsive design */
@media (max-width: 1040px) {
  .card-container {
    max-width: 90%;
    margin: 0 20px;
  }
}

@media (max-width: 768px) {
  .card-container {
      max-width: 730px;
    }
    
    .sedan-card,
    .suv-card,
    .luxury-card {
        padding: 48px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .card-container {
        max-width: 280px;
        flex-direction: column;
        margin: 5rem 0;
    }
  
  .sedan-card,
  .suv-card,
  .luxury-card {
    padding: 24px;
  }
  
  h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  p {
    margin-bottom: 60px;
  }
  
  .learn-more-btn {
    padding: 12px 24px;
  }
}
