
.view-teaching-materials { margin-top: 0; }

.view-teaching-materials .views-row {
    background-color: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border_gray);
    display: grid;
    grid-template-areas: 
        'collection'
        'title'
        'date'
        'files';
    gap: 0 2rem;
    position: relative;
}
.view-teaching-materials .views-row:hover { cursor: pointer; }

.view-teaching-materials .views-row::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-image: url(../../assets/icons/icon_arrow_right.svg);
}
article.single-color.hecap .view-teaching-materials .views-row::after { background-image: url(../../assets//icons/icon_arrow_right_hecap.svg);}
article.single-color.cmsp .view-teaching-materials .views-row::after { background-image: url(../../assets//icons/icon_arrow_right_cmsp.svg);}
article.single-color.math .view-teaching-materials .views-row::after { background-image: url(../../assets//icons/icon_arrow_right_math.svg);}
article.single-color.sti .view-teaching-materials .views-row::after { background-image: url(../../assets//icons/icon_arrow_right_sti.svg);}
article.single-color.qls .view-teaching-materials .views-row::after { background-image: url(../../assets//icons/icon_arrow_right_qls.svg);}
article.single-color.esp .view-teaching-materials .views-row::after { background-image: url(../../assets//icons/icon_arrow_right_esp.svg);}

.view-teaching-materials .views-row .views-field-field-attachments {
    grid-area: files;
    width: 100%;
    height: 2em;
    background-image: url(../../assets/icons/icon_file.svg);
    background-repeat: no-repeat;
    background-size: 1.5rem 1.5rem;
    background-position: left center;
    position: relative;
    margin: 1rem 0;
}

.view-teaching-materials .views-row .views-field-field-attachments .field-content {
    color: var(--main_blue);
    font-weight: 700;
    font-size: 14px;
    position: absolute;
    bottom: 50%;
    left: 2rem;
    transform: translateY(50%);
}

.view-teaching-materials .views-row .views-field-field-collection {
    grid-area: collection;
    color: var(--main_blue);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    padding: .5rem 0 .25rem 0;
}

.view-teaching-materials .views-row .views-field-title { grid-area: title; }
.view-teaching-materials .views-row .views-field-title a {
    color: #000;
    font-size: 22px;
    font-weight: 500;
}
.view-teaching-materials .views-row:hover .views-field-title a { text-decoration: underline; }

.view-teaching-materials .views-row .views-field-field-date { grid-area: date; }
.view-teaching-materials .views-row .views-field-field-date time {
    color: var(--medium_gray);
    font-size: 16px;
    padding: .5rem 0 1rem 0;
    font-weight: 400;
}


article.single-color.hecap .view-teaching-materials .views-row .views-field-field-attachments .field-content,
article.single-color.hecap .view-teaching-materials .views-row .views-field-field-collection { color: var(--hecap); }

article.single-color.cmsp .view-teaching-materials .views-row .views-field-field-attachments .field-content,
article.single-color.cmsp .view-teaching-materials .views-row .views-field-field-collection { color: var(--cmsp); }

article.single-color.math .view-teaching-materials .views-row .views-field-field-attachments .field-content,
article.single-color.math .view-teaching-materials .views-row .views-field-field-collection { color: var(--math); }

article.single-color.sti .view-teaching-materials .views-row .views-field-field-attachments .field-content,
article.single-color.sti .view-teaching-materials .views-row .views-field-field-collection { color: var(--sti); }

article.single-color.qls .view-teaching-materials .views-row .views-field-field-attachments .field-content,
article.single-color.qls .view-teaching-materials .views-row .views-field-field-collection { color: var(--qls); }

article.single-color.esp .view-teaching-materials .views-row .views-field-field-attachments .field-content,
article.single-color.esp .view-teaching-materials .views-row .views-field-field-collection { color: var(--esp); }

@media (min-width: 1024px) {
    .view-teaching-materials { margin-top: 3rem; }

    .view-teaching-materials .views-row {
        display: grid;
        grid-template-areas: 
            'files collection'
            'files title'
            'files date';
        grid-template-columns: 120px calc(100% - 120px);
        grid-template-rows: 1fr 2fr 1fr;
        gap: 0 2rem;
    }

    .view-teaching-materials .views-row .views-field-field-attachments {
        grid-area: files;
        width: 120px;
        height: 120px;
        aspect-ratio: 1;
        border: 2px solid var(--border_gray);
        background-image: url(../../assets/icons/icon_file.svg);
        background-repeat: no-repeat;
        background-size: 2rem 2rem;
        background-position: center center;
        position: relative;
        margin: 0;
    }
    .view-teaching-materials .views-row:hover .views-field-field-attachments { background-color: var(--border_gray); }

    .view-teaching-materials .views-row .views-field-field-attachments .field-content {
        color: var(--main_blue);
        font-weight: 700;
        font-size: 14px;
        position: absolute;
        bottom: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .view-teaching-materials .views-row .views-field-field-attachments .field-content {
        bottom: 1.25rem;
    }
}
