/* Reset */
*, *::after, *::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body {
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    --webkit-font-smoothing: antialiased;
    font-family: "DMSans";
    background-color: #F6F5F6;
}

img, video, picture, canvas, svg {
    display: block;
    width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

/* Style - Utilities */

/* body {
    display: grid;
    grid-template-columns: 1fr;
    place-content: center;
    height: 100dvh;
} */

.main__container {
    max-width: 1200px;
    padding: 84px 16px;
    margin: 0 auto;
}

.main__wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 32px;
}

.card {
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
    padding: 24px;
    line-height: 0;
}

.card__content {
    display: grid;
    align-items: center;
    gap: 24px;
}

.card__schedule {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background-color: hsl(31, 66%, 93%);
    padding-top: 62px;
    padding-bottom: 0;
}

.card__social-ai {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    background-color: hsl(256, 67%, 59%);
    padding-block: 62px;
}

.card__social-media {
    grid-column: 4 / -1;
    grid-row: 1 / 4;
    background-color: hsl(254, 88%, 90%);
    padding-top: 62px;
}

.card__content-ai {
    grid-column: 1 /2;
    grid-row: 3 / 5;
    background-color: hsl(39, 100%, 71%);
}

.card__manage {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    background-color: hsl(0, 0%, 100%);
}

.card__posting {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
    background-color: hsl(39, 100%, 71%);
    border-radius: 10px;
}

.card__audience {
    grid-column: 2 /3;
    grid-row: 4 / 5;
    background-color: hsl(0, 0%, 100%);
}

.card__followers {
    grid-column: 3 / -1;
    grid-row: 4 / 5;
    background-color: hsl(256, 67%, 59%);
}

.card__followers .card__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.card__schedule .card__image {
    max-width: 190px;
}

.card__schedule-title {
    font-weight: 500;
    font-size: 2.5rem;
    color: hsl(0, 0%, 7%);
    line-height: 1;
}

.card__schedule-title--purple {
    font-style: italic;
    color: hsl(256, 67%, 59%);
}

.card__social-ai .card__image {
    margin: 0 auto;
    max-width: 182px;
}

.card__social-ai-title {
    text-align: center;
    font-weight: 500;
    font-size: 3.875rem;
    color: hsl(0, 0%, 100%);
    line-height: 1;
}

.card__social-ai-title--yellow {
    color: hsl(39, 100%, 71%);
}

.card__social-ai-title--italic {
    font-style: italic;
}

.card__social-ai-img {
    margin: 0 auto;
    max-width: 40%;
}

.card__social-ai-text {
    text-align: center;
    font-weight: 400;
    font-size: 1.125rem;
    color: hsl(0, 0%, 100%);
}

.card__social-media-title {
    font-weight: 500;
    font-size: 2rem;
    line-height: 1;
    color: hsl(0, 0%, 7%);
}

.card__social-media-img {
    width: 180%;
}

.card__social-media-text {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.3;
    color: hsl(0, 0%, 7%);
}

.card__content-ai-title {
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1;
    color: hsl(0, 0%, 7%);
    margin-bottom: 54px;
}

.card__manage-title {
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    color: hsl(0, 0%, 7%);
}

.card__manage-img {
    width: 150%;
    filter: drop-shadow(-4px 6px 4px hsla(0, 0%, 24%, 0.065));
}

.card__posting-title {
    color: hsl(0, 0%, 7%);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    color: hsl(0, 0%, 7%);
}

.card__posting-img {
    margin-bottom: -260px;
}

.card__audience-title {
    color: hsl(0, 0%, 7%);
    font-weight: 500;
    font-size: 3.875rem;
    line-height: 1;
    color: hsl(0, 0%, 7%);
}

.card__audience-text {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1;
    color: hsl(0, 0%, 7%);
    margin-bottom: 32px;
}

.card__audience-img {
    max-width: 80%;
}

.card__followers-title {
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1;
    color: hsl(0, 0%, 100%)
}

.card__followers-img {
    order: -1;
}

@media (max-width: 68.75rem) {
        .main__wrapper {
            grid-template-columns: repeat(2, 1fr);
    }
        .card__schedule {
            grid-column: 1 / 2;
            grid-row: 7 / 8;
    }
        .card__social-ai {
            grid-column: 1 / -1;
            grid-row: 1 / 2;
    }
        .card__social-media {
            grid-column: 1 / -1;
            grid-row: 3 / 5;
            text-align: center;
    }
        .card__social-media-img {
            margin-inline: auto;
            width: 50%;
    }
        .card__content-ai {
            grid-column: 2 / 3;
            grid-row: 7 / 8;
    }
        .card__manage {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
    }
        .card__posting {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
    }
        .card__audience {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            grid-column: 1 / -1;
            grid-row: 6 / 7;
    }
        .card__followers {
            grid-column: 1 / -1;
            grid-row: 5 / 6;
    }
        .card__manage-img {
        width: 100%;
    }
        .card__posting-img {
            width: 70%;
            margin-bottom: -30px;
    }
}

@media (max-width: 34.375rem) {
        .main__wrapper {
        grid-template-columns: 1fr;
    }
        .card__schedule {
        grid-column: 1 / -1;
        grid-row: 7 / 8;
    }
        .card__social-ai {
            grid-column: 1 / -1;
            grid-row: 1 / 2;
    }
        .card__social-media {
            grid-column: 1 / -1;
            grid-row: 3 / 4;
            text-align: center;
    }
        .card__social-media-img {
            margin-inline: auto;
            width: 50%;
    }
        .card__content-ai {
            grid-column: 1 / -1;
            grid-row: 8 / 9;
    }
        .card__manage {
           grid-column: 1 / -1;
            grid-row: 2 / 3;
    }
        .card__posting {
            grid-column: 1 / -1;
            grid-row: 3 / 4;
    }
        .card__audience {
            display: grid;
            grid-template-columns: 1fr;
            grid-column: 1 / -1;
            grid-row: 6 / 7;
    }
        .card__followers {
            grid-column: 1 / -1;
            grid-row: 5 / 6;
    }  
}