﻿.grid { width: 100%; }
.grid-item { width: 570px; }

@media (max-width: 1199px) {
    .grid-item { width: 455px; }
}

@media (max-width: 991px) {
    .grid-item { width: 100%; }
}

#main {
    margin-top: -50px !important;
}

#section-news {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.news-container {
    background-color: #ECECEE;
    margin-bottom: 40px;
    opacity:0.9;
}

.news-image img {
    width: 100%;
    display: block;
}

.news-container:hover {
    opacity:1;
}

.news-type-title {
    padding: 10px 10px 10px 15px;
}

.news-content-container {
    padding: 40px;
}

.news-content-title {
    display: block;
    font-size: 32px;
    line-height: 38px;
}

.news-content-container .news-content-title  {
    text-decoration: none !important;
}

.news-content-container .news-content-title:hover  {
    text-decoration: underline !important;
}

.news-content-intro {
    display: block;
    padding: 30px 0 30px 0;
    line-height: 26px;
}

.news-content-link-container {
    display: block;
    text-transform: uppercase;
}

.container-row {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

#return-to-top-container {
    width: 100%;
    text-align: right;
}

.return-to-top-button {
    border: none;
    border-radius: unset;
    text-decoration: none !important;
    padding: 15px 20px 15px 20px !important;
    font-size: 18px;
}

.return-to-top-button:hover {
    opacity: 0.8;
    background-color: #E77C70 !important;
}

/* centre */

.news-type-centre .news-type-title {
    background-color: #f3b47f;
    color: #FFF;
}

.news-type-centre .news-content-title {
    color: #f3b47f;
}

.news-type-centre .news-content-link-container a {
    color: #f3b47f !important;
}

#section-news .return-to-top-button-centre {
    background-color: #f3b47f !important;
}

/* learner */

.news-type-learner .news-type-title {
    background-color: #8dc8b6;
    color: #FFF;
}

.news-type-learner .news-content-title {
    color: #8dc8b6;
}

.news-type-learner .news-content-link-container a {
    color: #8dc8b6 !important;
}

#section-news .return-to-top-button-learner {
    background-color: #8dc8b6 !important;
}

/* NOTE: The following are from database table */ 

/* VIDEO COLOUR ********************************************/

.news-type-video .news-type-title {
    background-color: #B5718A;
    color: #FFF;
}

.news-type-video .news-content-title {
    color: #B5718A;
}

.news-type-video .news-content-link-container a {
    color: #B5718A !important;
}

/* PODCAST COLOUR ********************************************/

.news-type-podcast .news-type-title {
    background-color: #8DC8B6;
    color: #FFF;
}

.news-type-podcast .news-content-title {
    color: #8DC8B6;
}

.news-type-podcast .news-content-link-container a {
    color: #8DC8B6 !important;
}

/* UPDATE COLOUR ********************************************/

.news-type-update .news-type-title {
    background-color: #90AFD4;
    color: #FFF;
}

.news-type-update .news-content-title {
    color: #90AFD4;
}

.news-type-update .news-content-link-container a {
    color: #90AFD4 !important;
}

/* RESEARCH AWARD ********************************************/

.news-type-award .news-type-title {
    background-color: #90AED3;
    color: #FFF;
}

.news-type-award .news-content-title {
    color: #90AED3;
}

.news-type-award .news-content-link-container a {
    color: #90AED3 !important;
}

/* New Vision for Mental Health ********************************************/

.news-type-nvfmh .news-type-title {
    background-color: #E13595;
    color: #FFF;
}

.news-type-nvfmh .news-content-title {
    color: #E13595;
}

.news-type-nvfmh .news-content-link-container a {
    color: #E13595 !important;
}

/* DOWNLOAD RESOURCE COLOUR ********************************************/

.news-type-download .news-type-title {
    background-color: #746999;
    color: #FFF;
}

.news-type-download .news-content-title {
    color: #746999;
}

.news-type-download .news-content-link-container a {
    color: #746999 !important;
}

/* COVID ********************************************/

.news-type-covid .news-type-title {
    background-color: #E77C70;
    color: #FFF;
}

.news-type-covid .news-content-title {
    color: #E77C70;
}

.news-type-covid .news-content-link-container a {
    color: #E77C70 !important;
}

/* EVENTS ********************************************/

.news-type-event .news-type-title {
    background-color: #f6b1b7;
    color: #FFF;
}

.news-type-event .news-content-title {
    color: #E77C70;
}

.news-type-event .news-content-link-container a {
    color: #E77C70 !important;
}

@media (max-width: 767px) {
    .news-content-title {
        font-size: 28px;
        line-height: 28px;
    }

    .news-content-container {
        padding: 20px 20px 10px 20px;
    }

    .news-content-intro {
        padding: 15px 0 30px 0;
        line-height: 26px;
    }
}