@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* start public style */
:root {
    --main-color: #F4D04E;
    --primary-text-color: #111111;
    --paragraph-color: #6B6B6B;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Figtree", serif;
    background-color: #F4D04E;
}

/* end public style */

/* start card section */

section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

section .card {
    background-color: white;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

section .card h3:hover {
    cursor: pointer;
    color: #F4D04E;
}


section .card .card-img {
    width: 336px;
    height: 200px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

section .card span:first-of-type {
    background-color: var(--main-color);
    padding: 4px 12px;
    width: fit-content;
    border-radius: 4px;
    margin-top: 24px;
    color: var(--primary-text-color);
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 14px;
}

section .card span:nth-of-type(2) {
    color: var(--primary-text-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

section .card h3 {
    font-size: 24px;
    color: var(--primary-text-color);
    margin-bottom: 12px;
    font-weight: 800;
}

section .card p {
    color: var(--paragraph-color);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

section .card .card-footer img {
    width: 32px;
    object-fit: cover;
}

section .card .card-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

section .card .card-footer h6 {
    font-weight: 800;
    color: var(--primary-text-color);
    font-size: 14px;
}

/* responsive */
@media (max-width:767px) {

    section .card .card-img {
        width: 279px;
        height: 200px;
    }

    section .card span:first-of-type,
    section .card span:nth-of-type(2) {
        font-size: 12px;
    }

    section .card h3 {
        font-size: 20px;
    }

    section .card p {
        font-size: 14px;
    }
}

/* start card section */