:root {
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}

/* CSS Resetting */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

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

/*p {
    text-wrap: pretty;
}*/

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

body {
    font-family: "Figtree", sans-serif;
    font-weight: 500;
}

main {
    min-height: 100vh;
    background-color: var(--yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

article {
    max-width: 18rem;
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 1.125rem;
    border: 1px solid var(--gray-950);
    margin: 0 1rem 2rem 1rem;
    box-shadow: 0.75rem 0.75rem 0 rgba(0, 0, 0, 1);
}

img {
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.course-type {
    display: block;
    width: fit-content;
    background-color: var(--yellow);
    color: var(--gray-950);
    font-weight: 800;
    font-size: clamp(.65rem, .6rem + .25vw, .75rem);
    padding: 0.5em 1.125em;
    margin-bottom: 0.75rem;
}

 span + p{
    font-size: clamp(.65rem, .6rem + .25vw, 0.75em);
}

h1 {
    font-weight: 800;
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    margin-bottom: 0.75rem;
}

h1:hover {
    color: var(--yellow);
}

.card-content > p:nth-of-type(1) {
    color: var(--gray-950);
    margin-bottom: 0.75rem;
}

.card-content > p:nth-of-type(2) {
    color: var(--gray-500);
    font-size: clamp(.75rem, .7rem + .25vw, .85rem);
    margin-bottom: 1.25rem;
}

.avatar-container {
    display: flex;
    gap: .75rem;
    align-items: center;
    max-height: 3.5rem;
    margin-bottom: .1rem;
}

.avatar-container > img {
    width: 12%;
    margin: 0;
}

.avatar-container > span {
    font-size: clamp(.8rem, .75rem + .25vw, 0.9rem);
    font-weight: 800;
}

