/* ===================================== */
/* =             CV CATEGORY           = */
/* ===================================== */


/* ===================================== */
/* =              CV ITEM              = */
/* ===================================== */
.item {
    display: grid;
    /* grid-auto-columns: 1fr; */
    grid-template-columns: 50% 50%;
    grid-template-rows: 50px auto auto auto auto; 
    gap: 0px 0px; 
    grid-template-areas: 
        "item-date item-date"
        "item-position item-description"
        "item-company item-description"
        "item-location item-description"
        "item-blank item-description";
    justify-content: center; 
    align-content: center; 
    justify-items: start; 
    align-items: start; 
    /* width: 100%; 
    height: 100%;  */
    /* Dimensions */
    width: calc(100% - 20% - 20%);
    height: auto;
    /* Padding */
    margin: 0;
    margin-bottom: 20px;
    padding: 0;
    padding-bottom: 10px;
    /* Colour */
    background-color: var(--bg-colour-1);
    /* Shadow */
    box-shadow: -15px 15px 16px 0px rgba(138, 131, 124, 0.23);
    position: relative;
}

/* Date */
.item-date {
    grid-area: item-date; 
    /* Alignment */
    justify-self: start; 
    align-self: end; 
    /* Padding */
    padding-left: 20px;
    /* Font */
    font-family: Figtree-Light;
    font-size: 20px;
    color: var(--highlight-colour-1);
}

/* Position */
.item-position {
    grid-area: item-position;
    /* Alignment */
    justify-self: start; 
    align-self: start;  
    /* Padding */
    padding-left: 20px;
    padding-bottom: 10px;
    /* Font */
    font-family: Poppins-Semi-Bold;
    font-size: 30px;
}

/* Company */
.item-company {
    grid-area: item-company;
    /* Alignment */
    justify-self: start; 
    align-self: end;  
    /* Padding */
    padding-left: 20px;
    /* Font */
    font-family: Figtree-Light;
    font-size: 20px;
}

/* Location */
.item-location {
    grid-area: item-location;
    /* Alignment */
    justify-self: start; 
    align-self: start;  
    /* Padding */
    padding-left: 20px;
    padding-right: 20px;
    /* Font */
    font-family: Figtree-Light;
    font-size: 20px;
}

/* Description */
.item-description {
    grid-area: item-description;
    /* Alignment */
    justify-self: start; 
    align-self: start;  
    /* Padding */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    /* Font */
    font-family: Figtree-Light;
    font-size: 17px;
    line-height: 1.8em;
    letter-spacing: 0px;
}

/* List format in description */
.item-description ul {
    margin: 0;
    /* Remove extra margin */
    padding-left: 20px;
    /* Indent the list slightly */
    list-style-type: disc;
    /* Standard bullet points */
}
.item-description li {
    font-family: Figtree-Light;
    font-size: 17px;
    /* Regular text size */
    line-height: 1.8em;
    letter-spacing: 0px;
}

/* ======================================================== */
/* =                    MOBILE STYLING                    = */
/* ======================================================== */
@media (max-width: 768px) {
    /* ===================================== */
    /* =              CV ITEM              = */
    /* ===================================== */
    .item {
        /* Change grid ordering */
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "item-date"
            "item-position"
            "item-company"
            "item-location"
            "item-description";
        /* Dimensions */
        width: 100%;
        /* Padding */
    }

    .item-blank {
        display: blank
    }

    .item-date {
        margin-top: 10px;
        margin-bottom: 5px;
        align-self: center;
    }

    .item-position {
        margin-top: 5px;
        margin-bottom: 5px;
        align-self: center;
    }

    .item-location {
        margin-top: 5px;
        margin-bottom: 10px;
        align-self: center;
    }
}