A* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

:root {
    --color-primary: #ED4D1B;
    --color-secondary:#FF9A3C;
    --color-black: #000;
    --color-white: #fff;
}

body {
    background: linear-gradient(90deg, #FFE7D1 0%, #FFF2E6 100%);
    padding: 0 1rem;
}

header,
.hero-section, 
.courses-section, 
footer {
    border-color: var(--color-black);
    border-style: solid;
    border-width: 0 1px 1px 1px;
    padding: 1.25rem;
}

header img {
    display: block;
    margin: 1rem auto;
}

header nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 1rem auto 0;
}

nav a {
    color: var(--color-black);
    font-size: 1.25rem;
    padding: 0.5rem;
    text-decoration: none;

}

/* Pegando os elementos na posição ímpar (2n - 1), para pegar na posição par é (2n( */ 
header nav a:nth-child(2n -1) {
    text-align: right;
}

.button {
    background-color: var(--color-primary);
    border: 2px solid var(--color-black);
    box-shadow: 4px 4px 0 var(--color-black);
    color: var(--color-black);
    display: block;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    max-width: 14rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: .2s;
}

.button:hover {
    transform: translateX(4px);
}

.hero-section {
    padding-right: 0;
    padding-bottom: 16rem; /* Para sobrepor o card*/
}

.hero-section img {
    display: block;
    margin: 1.25rem 0 0 auto;
    max-width: 100%;
}

h1 {
    font-size: 3rem;
    line-height: 105%;
}

h2 {
    font-size: 2.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    padding-right:1.25rem ;
}

/*inserindo as ilustrações */
.hero-section .button {
    position: relative;
}

.hero-section .button::after{
    content: '';
    background: url(./assets/arrow-curve.svg);
    position: absolute;
    top: 5rem;
    right: -4rem;
    height: 48px;
    width: 132px;


}

.decoration {
    display: block;
    position: relative;
}

.decoration::after {
    content: '';
    background: url(./assets/three-dashes.svg);
    position: absolute;
    height: 36px;
    width: 40px;
    top: -0.75rem;
}

.courses-section {
    padding-bottom:8rem ;
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1.25rem;
    margin-top: -8rem;
    margin-bottom: 4rem;
}

.card {
    background-color: var(--color-primary);
    border: 2px solid var(--color-black);
    box-shadow: 4px 4px 0 var(--color-black);
    max-width: 17rem;
    padding: 2rem 0 0 2rem;
}

/*Pegar os cards em posições pares*/
.card:nth-child(2n){
    align-self: end;
    background-color: var(--color-secondary);
}

.card strong {
    display: block;
    font-size: 1.5rem;
    margin: 1rem 0;
    
}

.card a {
    display: block;
    margin: 3rem 0 0 auto;
    width: fit-content;

}




/*footer*/ 

footer {
    border-bottom: 0;
    padding: 1rem 1.25rem 4rem;
}

footer nav a {
    display: block;
    padding-left: 0;

}

.newsletter-form label {
    display: block;
    font-size: 1.5rem;
}

.newsletter-form input {
    border: 2px solid var(--color-black);
    box-shadow: 4px 4px 0 var(--color-black);
    font-size: 1.5rem;
    padding: .5rem;
    width: 90%;
}


/*utilitários*/

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-primary {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

/*Resposividade*/

@media screen and (min-width: 40rem) { /*Aproximadamente 640px*/
    header nav {
        display: block;
        text-align: center;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
      }
    
      .card:nth-child(2n) {
        margin-top: 1rem;
      }
}

@media screen and (min-width: 48rem) {
    header div {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  
    header img,
    header nav,
    header .button {
      margin: 0;
    }
  }
  
  @media screen and (min-width: 72rem) {
    h1, h2 {
      font-size: 4rem;
    }
  
    .container {
      display: flex;
      align-items: center;
      margin: 0 auto;
      max-width: 72rem;
    }
  
    .container.row-reverse {
      flex-direction: row-reverse;
    }
  
    .about-column {
      flex: 2;
    }
  
    .about-column p {
      font-size: 1.25rem;
      max-width: 16rem;
    }
  
    footer nav {
      flex: 1;
    }
  
    .newsletter-form {
      flex: 3;
    }
  }
  
  @media screen and (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }