/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* root */
:root {
  --Yellow-Five: hsl(39, 100%, 71%);
  --Yellow-Hundrud: hsl(31, 66%, 93%);
  --Purple-Five: hsl(256, 67%, 59%);
  --Purple-Hundrud: hsl(254, 88%, 90%);
  --border-radius: 0.5rem;
  --pading: 1.8rem;
}
/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}
/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  background-color: white;
  font-family: "DM Sans", serif;
  font-weight: 400;
  background-color: hsl(250, 23%, 95%);
}

.container {
  display: grid;
  grid-template-columns: repeat(4, 170px);
  grid-auto-rows: 185px;
  gap: 1rem;
  padding: 1rem;
}
.content-creation,
.social-media-ai,
.posting-schedule {
  padding: 1rem;
  border-radius: var(--border-radius);
}
.content-creation {
  background-color: hsl(33, 69%, 90%);
  grid-column: 1;
  min-height: 280px;

  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-creation h1 {
  font-size: 1.5rem;
  font-weight: 500;
line-height: .85;
  margin-top: 1.4rem;
}
.content-creation h1 span {
  color: var(--Purple-Five);
  font-style: italic;
}
.create-post {
  margin-top: 0;
  max-width: 120px;
}
.social-media-ai {
  background-color: var(--Purple-Five);
  grid-column: 2/4;
display: grid;
  place-items: center;
}
.social-media-ai h2 {
  color: #fff;
  line-height: 1;
  font-size: 2.4rem;
  font-weight: 500;
  margin: 1rem 0;
}
.social-media-ai h2 span {
  color: var(--Yellow-Five);
}
.social-media-ai h2 div {
  text-align: center;
}
.social-media-ai h2 div span {
  color: white;
  font-style: italic;
}
.stars {
  width: 120px;
}
.reviews {
  color: hsl(35, 38%, 91%);
  margin-top: 0.2rem;
  font-size: .8rem;
}
.posting-schedule {
  background-color: var(--Purple-Hundrud);
  background-color:  hsl(254, 71%, 89%);
  grid-row: span 2;

  overflow: hidden;
}
.posting-schedule h2 {
  line-height: 0.8;
  font-weight: 500;
  font-size: 1.26rem;
  margin-bottom: .8rem;
  margin-left: .8rem;
}
.schedule {
  max-width: 230px;
  height: 200px;
  margin-left: .8rem;
}
.posting-schedule p {
  line-height: 1.1;
  margin-top: .8rem;
  margin-left: .8rem;
font-size: .85rem;
width: 100%;
}
.content-ai {
  background-color: var(--Yellow-Five);
  grid-column: 1/2;
  padding: var(--pading);
  margin-top: 95px;
  min-height: 290px;
}
.content-ai h2 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.2rem;
  margin-top: 0;
}
.content-ai img {
  height: 130px;
  max-width: 170px;
}
.manage-accounts {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  padding: 0.8rem;
  grid-column: 2/3;
}
.platforms {
  max-width: 220px;
}
.manage-accounts p {
  line-height: .85;
  width: 150px;
  font-size: 1.4rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-weight: 500;
 
}
.maintain-posts {
  background-color: var(--Yellow-Five);
  grid-column: 3/4;
  overflow: hidden;
  padding: 0.8rem;
}
.maintain-posts h2 {
  line-height: 0.85;
  font-weight: 500;
  margin-top: 0.5rem;
}

.audience-growth {
  background-color: #fff;
  grid-column: 2/3;
  padding: 0.8rem;
}
.audience-growth p {
  font-size: 1.85rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0rem;
}
.audience-growth span {
  font-size: 0.8rem;
}
.growth-image {
  margin-top: 1rem;
}
.follower-growth {
  background-color: var(--Purple-Five);
  grid-column: 3/5;
  display: flex;

  padding: 0.8rem;
}
.grow-followers-image {
  width: 150px;
  height: 150px;
}
.follower-growth h2 {
  color: white;
  line-height: 0.9;
  font-weight: normal;

  padding-top: 2rem;
}
section {
  border-radius: var(--border-radius);
}
@media screen and (max-width: 767px) {
  .container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.5rem;
    padding: 2rem;
  }
  .content-creation,
  .social-media-ai,
  .posting-schedule,
  .content-ai,
  .manage-accounts,
  .maintain-posts,
  .audience-growth,
  .follower-growth {
    grid-column: 1;
  }
  .social-media-ai {
    order: 0;
    padding: var(--pading);
  }
  .manage-accounts {
    order: 1;
    padding: var(--pading);
  }
  .platforms {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
  .manage-accounts p {
    width: 100%;
    margin-bottom: 0rem;
    font-size: 1.8rem;
    font-weight: 580;
  }
  .maintain-posts {
    order: 2;
    padding: var(--pading);
  }
  .maintain-posts h2 {
    font-size: 1.8rem;
    font-weight: 580;
    line-height: 1;
    margin-top: 0;
  }
  .posts {
    width: 200px;
    margin-bottom: -2.5rem;
  }

  .posting-schedule {
    order: 3;
    padding: var(--pading);


  }
  .posting-schedule h2 
    {
font-size: 1.8rem;
display: flex;

gap: .1rem;

    }
    .schedule
    {
  max-width: 100%;
  height: 70%;
     margin: 1.2rem 0;
    
    }
    .posting-schedule p
     {
      font-size: 1.2rem;
      margin: 0;
      line-height: 1.2;
      text-align: center;
    }
  .follower-growth {
    order: 4;
 flex-direction: column;
align-items: center;
    padding: 1rem 4.5rem;
  }
  .grow-followers-image
  {
    width: 250px;
    height: 250px;
  }
  .follower-growth h2
  {
    padding-top: 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 580;
    line-height: 1;
  }
  .audience-growth {
    order: 5;
    padding: var(--pading);
  }
  .audience-growth span
  {
    font-size: 1.2rem;
  }
  .growth-image
  {
    width: 200px;
  }
  .content-creation {
    order: 6;
 min-height: 170px;
 padding: var(--pading);
  }
  .content-creation h1
  {
    font-size: 1.8rem;
    font-weight: 580;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 1rem;
  }
.create-post
{
 max-width: 200px;
 margin-top: 0;
}
  .content-ai {
    order: 7;
    margin-top: 0;
    padding: 1rem 1.5rem;
  }
  .content-ai h2
    {
      margin-bottom: 1rem;
      font-size: 2rem;
      line-height: 1;
      margin-top: 0;
  }

  .content-ai img
  {
   height: 250px;
    max-width: 500px;
  }
}
