/* 
    Table of content
    1. ARTICLE TILE
    2. PERSON TILE
    3. FEATURES
    4. COURSE TILE
    RESIZE
*/

/* 1. ARTICLE TILE */
.article-tile {
    display: block;    
    color: var(--color-black);
    text-decoration: none;
}

.article-tile .image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}

.article-tile .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem 1rem 0 0;
    object-fit: cover;
    object-position: center;
}

.article-tile .info-wrapper {
    padding: 2rem 3rem 3rem;
    border: .1rem solid #ddd;
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
    background-color: white;
    transition: .3s;
}

.article-tile:hover .info-wrapper {
    border-color: var(--color-blue);
    background-color: var(--color-blue);
}

.article-tile .label {
    padding: 0;
    font-size: 1.6rem;
}

.article-tile .label i {
    margin-right: .5rem;
}

.article-tile .info-wrapper > .title {
    font-family: 'Sarabun', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-tile:hover .link-wrapper .title {
    text-decoration: underline;
}

.article-tile:hover .link-wrapper .arrow {
    background-color: var(--color-darkyellow);
}

/* 2. PERSON TILE */
.person-tile {
    display: block;
    padding: 3rem;
    border: .1rem solid #ddd;
    border-radius: 1rem;
    background-color: white;
    text-decoration: none;
    text-align: center;
}

.person-tile:hover {
    border-color: var(--color-yellow);
}

.person-tile .image {
    width: 17rem;
    height: 17rem;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.person-tile .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.person-tile .title {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.person-tile .position {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #777;
}

/* 3. FEATURES */
.features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 0;
    font-size: 1.5rem;
}

.features div:not(.label):not(:last-child)::after {
    content: "|";
    padding: 0 1rem;
    color: #ddd;
}

.features .label {
    margin-right: 1rem;
}

.features .load i {
    margin-right: .5rem;
}

/* 4. COURSE TILE */
.course-tile {
    padding: 1.8rem 2.8rem;
    border: .1rem solid white;
    border-radius: 1rem;
    background-color: white;
    background-image: url(../images/icon-plus2-black.svg);
    background-size: 4rem;
    background-position: calc(100% - 3rem) 3.2rem;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: .3s;
}

.course-tile:not(:first-child) {
    margin-top: 1rem;
}

.course-tile:hover {
    border-color: var(--color-yellow);
}

.course-tile.active {
    border-color: var(--color-yellow);
    background-image: url(../images/icon-minus2-black.svg);
}

.course-tile .content-wrapper {
    width: calc(100% - 7rem);
}

.course-tile h3 {    
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.course-tile .more-wrapper {
    margin-top: 2rem;
    cursor: default;
    display: none;
}

.course-tile .more-wrapper .features {
    display: none;
}

.page-id-2382 .course-tile .more-wrapper .features {
    display: flex;
    margin-bottom: 1rem;
}

.course-tile .text {
    width: calc(100% - 7rem);
    font-size: 1.6rem;
}

.course-tile ul.checklist li:not(:last-child) {
    margin-bottom: .5rem;
}

.course-tile .bottom {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.course-tile .date {
    font-size: 1.6rem;
}

/* RESIZE */
@media (max-width: 767px) {
    /* 1. ARTICLE TILE */
    .article-tile .info-wrapper {
        padding: 2rem 2rem 3rem;
    }

    .article-tile .info-wrapper > .title {
        font-size: 2.2rem;
    }

    /* 2. PERSON TILE */
    .person-tile {
        padding: 2rem;
    }

    .person-tile .image {
        width: 13rem;
        height: 13rem;
    }

    .person-tile .title {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .person-tile .position {
        font-size: 1.4rem;
    }

    /* 4. COURSE TILE */
    .course-tile {
        padding: 1.8rem 1.8rem;
        background-position: calc(100% - 2rem) 1.7rem;
        background-image: url(../images/icon-plus2-small-black.svg);
        background-size: 3rem;
    }

    .course-tilem.active {
        background-image: url(../images/icon-minus2-small-black.svg);
    }

    .course-tile .content-wrapper .features {
        display: none;
    }

    .course-tile h3 {
        margin-bottom: 0;
        width: calc(100% - 6rem);
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .course-tile .more-wrapper .features {
        display: flex;
    }

    .course-tile .text {
        width: calc(100% - 6rem);
        margin-top: 1rem;
    }
}