* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --Red: hsl(0, 78%, 62%);
  --Cyan: hsl(180, 62%, 55%);
  --Orange: hsl(34, 97%, 64%);
  --Blue: hsl(212, 86%, 64%); 

  /* Neutral */
  --Grey-500: hsl(234, 12%, 34%);
  --Grey-400: hsl(212, 6%, 44%);
  --White: hsl(0, 0%, 100%);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--White);
  color: var(--Grey-500);
  padding: 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 3rem;
  color: var(--Grey-400);
  font-weight: 300;
  line-height: 1.2;
}

h1 strong {
  display: block; 
  color: var(--Grey-500);
  font-weight: 600;
}

.principal-p {
  max-width: 700px; 
  margin: 3rem auto;
  font-size: 1.3rem;
  text-align: center;
  color: var(--Grey-400); 
}

p {
  color: var(--Grey-400);
  margin-bottom: 2rem;
}

.four-card-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 3rem 1rem; 
  align-items: start;
}
.cards {
  background-color: var(--White);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative; 
  display: block;
}

.card-content {
  padding-bottom: 3rem; 
}

.card-icon {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}


.cards:nth-child(1) {
  border-top: 5px solid var(--Cyan); 
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  align-self: center;
}

.cards:nth-child(2) {
  border-top: 5px solid var(--Red); 
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  z-index: 2;
}

.cards:nth-child(3) {
  border-top: 5px solid var(--Orange);
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin-top: -2rem;
  z-index: 1;
}

.cards:nth-child(4) {
  border-top: 5px solid var(--Blue); 
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: center;
}

.cards h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.cards p {
  font-size: 0.95rem;
  color: var(--Grey-400);
  margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 375px) {
  .four-card-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .cards {
    margin: 0 auto;
    width: 100%;
    flex-direction: row;
    text-align: left;
  }

  .cards:nth-child(3) {
    margin-top: 0;
  }

  h1 {
    font-size: 1.4rem;
    line-height: 1;
  }

  h1 strong {
    font-size: 1.4rem;
  }

  .principal-p {
    font-size: 0.9rem;
    margin: 2rem;
    max-width: 100%;
  }
}
