﻿/* =========================================================
   TPS Public Website - News
   Screen-specific public website styles
   ========================================================= */

.tps-public-news {
    background: #f6f8fa;
    color: #333;
    line-height: 1.7;
}

    .tps-public-news * {
        box-sizing: border-box;
    }

    .tps-public-news a,
    .tps-public-news a:hover,
    .tps-public-news a:focus {
        text-decoration: none;
    }

.tps-public-news-hero {
    padding: 38px 0 30px;
    border-bottom: 1px solid #e7ebef;
    background: #fff;
}

.tps-public-news-hero-content {
    display: flex;
    align-items: center;
}

.tps-public-news-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 58px;
    margin-left: 16px;
    border-radius: 50%;
    background: #337ab7;
    color: #fff;
    font-size: 24px;
}

.tps-public-news[dir="ltr"] .tps-public-news-hero-icon {
    margin-right: 16px;
    margin-left: 0;
}

.tps-public-news-hero h1 {
    margin: 0;
    color: #263746;
    font-size: 30px;
    font-weight: 700;
}

.tps-public-news-hero p {
    margin: 5px 0 0;
    color: #7c8994;
    font-size: 14px;
}

.tps-public-news-content {
    padding: 34px 0 42px;
}

.tps-public-news-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.tps-public-news-col {
    display: flex;
    width: 33.333333%;
    padding: 0 12px 24px;
}

.tps-public-news-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e5e9ed;
    border-radius: 10px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .tps-public-news-card:hover,
    .tps-public-news-card:focus {
        color: #333;
        border-color: #d5dde4;
        box-shadow: 0 7px 20px rgba(0, 0, 0, .10);
        transform: translateY(-3px);
    }

.tps-public-news-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    background: #eef1f3;
}

    .tps-public-news-card-image > img,
    .tps-public-news-card-image > .tps-public-news-no-image {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .tps-public-news-card-image > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: none;
    }

.tps-public-news-card:hover .tps-public-news-card-image > img {
    transform: none;
}

.tps-public-news-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf1f4;
    color: #b3bdc5;
    font-size: 36px;
}

.tps-public-news-date {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 11px;
}

.tps-public-news[dir="ltr"] .tps-public-news-date {
    right: auto;
    left: 12px;
}

.tps-public-news-date i {
    margin-left: 4px;
}

.tps-public-news[dir="ltr"] .tps-public-news-date i {
    margin-right: 4px;
    margin-left: 0;
}

.tps-public-news-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px;
}

    .tps-public-news-card-body h2 {
        display: -webkit-box;
        overflow: hidden;
        min-height: 52px;
        margin: 0 0 9px;
        color: #263746;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tps-public-news-card-body p {
        display: -webkit-box;
        overflow: hidden;
        min-height: 66px;
        margin: 0 0 15px;
        color: #74808a;
        font-size: 13px;
        line-height: 1.7;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

.tps-public-news-read-more {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
    color: #337ab7;
    font-size: 13px;
    font-weight: 700;
}

    .tps-public-news-read-more i {
        margin-right: 7px;
        font-size: 16px;
    }

.tps-public-news[dir="ltr"] .tps-public-news-read-more i {
    margin-right: 0;
    margin-left: 7px;
}

.tps-public-news-pagination {
    margin-top: 10px;
    text-align: center;
}

    .tps-public-news-pagination .pagination {
        margin: 0;
    }

        .tps-public-news-pagination .pagination > li > a,
        .tps-public-news-pagination .pagination > li > span {
            min-width: 38px;
            padding: 8px 11px;
            color: #337ab7;
        }

        .tps-public-news-pagination .pagination > .active > a,
        .tps-public-news-pagination .pagination > .active > span {
            border-color: #337ab7;
            background: #337ab7;
            color: #fff;
        }

.tps-public-news-empty {
    padding: 65px 20px;
    border: 1px solid #e5e9ed;
    border-radius: 10px;
    background: #fff;
    color: #87939d;
    text-align: center;
}

    .tps-public-news-empty > i {
        margin-bottom: 12px;
        color: #b8c1c8;
        font-size: 48px;
    }

    .tps-public-news-empty h3 {
        margin: 0 0 6px;
        color: #4c5964;
        font-size: 20px;
    }

    .tps-public-news-empty p {
        margin: 0;
    }

/* =========================================================
   News Details
   ========================================================= */

.tps-public-news-details-hero {
    padding: 32px 0 27px;
    border-bottom: 1px solid #e5e9ed;
    background: #fff;
}

.tps-public-news-back {
    display: inline-block;
    margin-bottom: 13px;
    color: #337ab7;
    font-size: 13px;
    font-weight: 700;
}

    .tps-public-news-back i {
        margin-left: 5px;
    }

.tps-public-news[dir="ltr"] .tps-public-news-back i {
    margin-right: 5px;
    margin-left: 0;
}

.tps-public-news-details-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #263746;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.45;
}

.tps-public-news-details-meta {
    margin-top: 12px;
    color: #81909b;
    font-size: 12px;
}

    .tps-public-news-details-meta i {
        margin-left: 5px;
        color: #337ab7;
    }

.tps-public-news[dir="ltr"] .tps-public-news-details-meta i {
    margin-right: 5px;
    margin-left: 0;
}

.tps-public-news-details-content {
    padding: 32px 0 45px;
}

.tps-public-news-details-layout {
    display: flex;
    align-items: flex-start;
    margin-right: -12px;
    margin-left: -12px;
}

.tps-public-news-article {
    overflow: hidden;
    width: 68%;
    margin: 0 12px;
    border: 1px solid #e5e9ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
}

.tps-public-news-main-image {
    width: 100%;
    background: #eef1f3;
}

    .tps-public-news-main-image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

.tps-public-news-article-body {
    padding: 28px 30px;
    color: #3d4851;
    font-size: 15px;
    line-height: 2;
}

.tps-public-news[dir="rtl"] .tps-public-news-article-body {
    text-align: right;
}

.tps-public-news[dir="ltr"] .tps-public-news-article-body {
    text-align: left;
}

.tps-public-news-article-body img {
    max-width: 100% !important;
    height: auto !important;
}

.tps-public-news-article-body iframe,
.tps-public-news-article-body video {
    max-width: 100%;
}

.tps-public-news-article-body p:last-child {
    margin-bottom: 0;
}

.tps-public-news-share {
    padding: 18px 30px;
    border-top: 1px solid #edf0f2;
}

.tps-public-news-sidebar {
    width: 32%;
    margin: 0 12px;
    overflow: hidden;
    border: 1px solid #e5e9ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
}

.tps-public-news-sidebar-title {
    padding: 15px 17px;
    border-bottom: 1px solid #e5e9ed;
    background: #fafbfc;
    color: #344553;
    font-size: 16px;
    font-weight: 700;
}

    .tps-public-news-sidebar-title i {
        margin-left: 6px;
        color: #337ab7;
    }

.tps-public-news[dir="ltr"] .tps-public-news-sidebar-title i {
    margin-right: 6px;
    margin-left: 0;
}

.tps-public-news-latest-list {
    padding: 5px 15px;
}

.tps-public-news-latest-item {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f2;
    color: #333;
}

    .tps-public-news-latest-item:last-child {
        border-bottom: 0;
    }

    .tps-public-news-latest-item:hover h3 {
        color: #337ab7;
    }

.tps-public-news-latest-image {
    overflow: hidden;
    width: 105px;
    min-width: 105px;
    height: 78px;
    margin-left: 12px;
    border-radius: 6px;
    background: #edf1f4;
}

.tps-public-news[dir="ltr"] .tps-public-news-latest-image {
    margin-right: 12px;
    margin-left: 0;
}

.tps-public-news-latest-image img,
.tps-public-news-latest-image .tps-public-news-no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tps-public-news-latest-image .tps-public-news-no-image {
    font-size: 22px;
}

.tps-public-news-latest-info {
    min-width: 0;
}

    .tps-public-news-latest-info h3 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 0 5px;
        color: #344553;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tps-public-news-latest-info > span {
        color: #96a0a8;
        font-size: 10px;
    }

    .tps-public-news-latest-info p {
        display: -webkit-box;
        overflow: hidden;
        margin: 5px 0 0;
        color: #7d8992;
        font-size: 11px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.tps-public-news-all-link {
    display: block;
    padding: 13px 16px;
    border-top: 1px solid #e5e9ed;
    color: #337ab7;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
    .tps-public-news-col {
        width: 50%;
    }

    .tps-public-news-details-layout {
        display: block;
        margin: 0;
    }

    .tps-public-news-article,
    .tps-public-news-sidebar {
        width: 100%;
        margin: 0;
    }

    .tps-public-news-sidebar {
        margin-top: 25px;
    }
}

@media (max-width: 767px) {
    .tps-public-news-hero {
        padding: 25px 0 21px;
    }

    .tps-public-news-hero-icon {
        width: 48px;
        min-width: 48px;
        height: 48px;
        margin-left: 11px;
        font-size: 20px;
    }

    .tps-public-news[dir="ltr"] .tps-public-news-hero-icon {
        margin-right: 11px;
        margin-left: 0;
    }

    .tps-public-news-hero h1 {
        font-size: 24px;
    }

    .tps-public-news-hero p {
        font-size: 12px;
    }

    .tps-public-news-content {
        padding: 22px 0 30px;
    }

    .tps-public-news-grid {
        display: block;
        margin: 0;
    }

    .tps-public-news-col {
        display: block;
        width: 100%;
        padding: 0 0 17px;
    }

    .tps-public-news-card-body {
        padding: 15px;
    }

        .tps-public-news-card-body h2 {
            min-height: 0;
            font-size: 17px;
        }

        .tps-public-news-card-body p {
            min-height: 0;
        }

    .tps-public-news-details-hero {
        padding: 23px 0 20px;
    }

        .tps-public-news-details-hero h1 {
            font-size: 23px;
        }

    .tps-public-news-details-content {
        padding: 20px 0 30px;
    }

    .tps-public-news-article {
        border-radius: 7px;
    }

    .tps-public-news-main-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .tps-public-news-article-body {
        padding: 20px 17px;
        font-size: 14px;
        line-height: 1.9;
    }

    .tps-public-news-share {
        padding: 15px 17px;
    }

    .tps-public-news-sidebar {
        margin-top: 18px;
        border-radius: 7px;
    }

    .tps-public-news-latest-image {
        width: 92px;
        min-width: 92px;
        height: 70px;
    }
}
