﻿/* =========================================================
   TPS Public Website - Home
   Screen-specific styles
   ========================================================= */

.website-home {
    overflow: hidden;
    background: #f6f8fa;
    color: #344553;
    line-height: 1.7;
}

    .website-home *,
    .website-home *:before,
    .website-home *:after {
        box-sizing: border-box;
    }

    .website-home a,
    .website-home a:hover,
    .website-home a:focus {
        text-decoration: none;
    }

.website-home-section {
    padding: 55px 0;
}

.website-home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

    .website-home-section-header h2 {
        margin: 3px 0 5px;
        color: #263746;
        font-size: 29px;
        font-weight: 700;
    }

    .website-home-section-header p {
        margin: 0;
        color: #7a8791;
        font-size: 14px;
    }

.website-home-section-kicker {
    display: block;
    color: #337ab7;
    font-size: 12px;
    font-weight: 700;
}

.website-home-section-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid #dce4ea;
    border-radius: 20px;
    background: #fff;
    color: #337ab7;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .2s ease;
}

    .website-home-section-link:hover,
    .website-home-section-link:focus {
        border-color: #337ab7;
        background: #337ab7;
        color: #fff;
    }

.website-home[dir="rtl"] .website-home-section-link i {
    margin-right: 7px;
}

.website-home[dir="ltr"] .website-home-section-link i {
    margin-left: 7px;
}

/* Slider */

.website-home-slider {
    padding: 22px 0 0;
    background: #fff;
}

    .website-home-slider .container {
        position: relative;
    }

    .website-home-slider .owl-stage-outer {
        overflow: hidden;
        border-radius: 12px;
    }

.website-home-slider-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #dfe7ec;
}

.website-home-slider-image {
    position: relative;
    height: 430px;
    overflow: hidden;
    background: #eef1f3;
}

    .website-home-slider-image > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .website-home-slider-image:after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 55%;
        background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
        content: "";
        pointer-events: none;
    }

.website-home-slider-caption {
    position: absolute !important;
    z-index: 3;
    right: 35px;
    bottom: 32px;
    left: auto;
    width: auto !important;
    max-width: 620px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: right;
}

.website-home[dir="ltr"] .website-home-slider-caption {
    right: auto;
    left: 35px;
    text-align: left;
}

.website-home-slider-caption a,
.website-home-slider-caption > div {
    display: block;
    padding: 17px 21px;
    border-radius: 8px;
    background: rgba(17, 39, 55, .78);
    color: #fff !important;
}

.website-home-slider-caption h2 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.45;
}

.website-home-slider-caption p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .90);
    font-size: 14px;
}

.website-home-slider .owl-dots {
    margin-top: 12px !important;
}

.website-home-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e9eef2;
    color: #aab6bf;
    font-size: 42px;
}

/* English news ticker */

.website-home-ticker {
    margin: 20px 0 0;
    background: transparent;
}

.website-home-ticker-inner {
    display: flex;
    overflow: hidden;
    align-items: stretch;
    min-height: 46px;
    border: 1px solid #e1e7eb;
    border-radius: 8px;
    background: #fff;
}

.website-home-ticker-title {
    display: flex;
    align-items: center;
    padding: 0 17px;
    background: #337ab7;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .website-home-ticker-title i {
        margin-right: 7px;
    }

.website-home-ticker-content {
    display: flex;
    overflow: hidden;
    flex: 1;
    align-items: center;
    padding: 0 15px;
}

.website-home-ticker .scroll-text {
    width: 100%;
    margin: 0;
}

    .website-home-ticker .scroll-text a {
        margin-right: 25px;
        color: #53636f;
        font-size: 12px;
    }

        .website-home-ticker .scroll-text a:hover {
            color: #337ab7;
        }

/* Quick access */

.website-home-access {
    background: #fff;
}

.website-home-welcome {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #dbe5eb;
    border-radius: 10px;
    background: #f7fafc;
}

.website-home-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin-right: 14px;
    border-radius: 50%;
    background: #337ab7;
    color: #fff;
    font-size: 20px;
}

.website-home-welcome strong,
.website-home-welcome span {
    display: block;
}

.website-home-welcome strong {
    color: #263746;
    font-size: 17px;
}

.website-home-welcome div > span {
    margin-top: 2px;
    color: #82909a;
    font-size: 12px;
}

.website-home-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.website-home-access-card {
    position: relative;
    display: flex;
    min-height: 105px;
    align-items: center;
    padding: 19px 50px 19px 18px;
    border: 1px solid #e2e8ec;
    border-radius: 10px;
    background: #fff;
    color: #344553;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.website-home[dir="rtl"] .website-home-access-card {
    padding: 19px 18px 19px 50px;
}

.website-home-access-card:hover,
.website-home-access-card:focus {
    border-color: #bfd1dd;
    color: #337ab7;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

.website-home-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    height: 50px;
    margin-right: 14px;
    border-radius: 9px;
    background: #eef5f9;
    color: #337ab7;
    font-size: 21px;
}

.website-home[dir="rtl"] .website-home-access-icon {
    margin-right: 0;
    margin-left: 14px;
}

.website-home-access-text {
    color: #344553;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.website-home-access-card:hover .website-home-access-text {
    color: #337ab7;
}

.website-home-access-arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    color: #a3afb7;
    font-size: 18px;
    transform: translateY(-50%);
}

.website-home[dir="rtl"] .website-home-access-arrow {
    right: auto;
    left: 18px;
}

/* News */

.website-home-news {
    background: #f6f8fa;
}

.website-home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.website-home-news-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e1e7eb;
    border-radius: 11px;
    background: #fff;
    color: #344553;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .website-home-news-card:hover,
    .website-home-news-card:focus {
        color: #344553;
        box-shadow: 0 9px 22px rgba(0, 0, 0, .10);
        transform: translateY(-4px);
    }

.website-home-news-image {
    position: relative;
    overflow: hidden;
    height: 225px;
    background: #eef1f3;
}

    .website-home-news-image > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: none;
    }

.website-home-news-card:hover .website-home-news-image > img {
    transform: none;
}

.website-home-news-date {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(0, 0, 0, .67);
    color: #fff;
    font-size: 11px;
}

.website-home[dir="ltr"] .website-home-news-date {
    right: auto;
    left: 12px;
}

.website-home-news-date i {
    margin-left: 4px;
}

.website-home[dir="ltr"] .website-home-news-date i {
    margin-right: 4px;
    margin-left: 0;
}

.website-home-news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

    .website-home-news-body h3 {
        display: -webkit-box;
        overflow: hidden;
        min-height: 50px;
        margin: 0 0 15px;
        color: #2f414e;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.website-home-news-more {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
    color: #337ab7;
    font-size: 12px;
    font-weight: 700;
}

.website-home[dir="rtl"] .website-home-news-more i {
    margin-right: 7px;
}

.website-home[dir="ltr"] .website-home-news-more i {
    margin-left: 7px;
}

.website-home-empty {
    padding: 45px 20px;
    border: 1px dashed #ced8df;
    border-radius: 10px;
    background: #fff;
    color: #89969f;
    text-align: center;
}

    .website-home-empty i,
    .website-home-empty span {
        display: block;
    }

    .website-home-empty i {
        margin-bottom: 8px;
        font-size: 36px;
    }

/* Videos */

.website-home-videos {
    background: #fff;
}

.website-home-video-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.website-home-video-card {
    overflow: hidden;
    border: 1px solid #e0e7eb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.website-home-video-frame {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    background: #111;
}

    .website-home-video-frame iframe {
        position: absolute;
        top: 0;
        right: 0;
        width: 100% !important;
        height: 100% !important;
    }

.website-home-video-title {
    min-height: 67px;
    padding: 17px 20px;
    color: #344553;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
}

.website-home-video-wrapper .owl-nav button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: #337ab7 !important;
    color: #fff !important;
}

/* Partners */

.website-home-partners {
    border-top: 1px solid #e9edef;
    background: #f7f9fa;
}

.website-home-section-header-center {
    justify-content: center;
    text-align: center;
}

.website-home-partners-carousel {
    margin-top: 5px;
}

.website-home-partner-card {
    display: flex;
    min-height: 125px;
    align-items: center;
    justify-content: center;
    margin: 5px;
    padding: 18px;
    border: 1px solid #e2e8ec;
    border-radius: 9px;
    background: #fff;
}

    .website-home-partner-card a {
        display: flex;
        width: 100%;
        height: 90px;
        align-items: center;
        justify-content: center;
    }

    .website-home-partner-card img {
        display: block;
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        max-height: 85px;
        object-fit: contain;
    }

.website-home-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #dde4e8;
    color: #455765;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

    .website-home-slogan img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .website-home-slogan span {
        margin: 0 18px;
    }

/* Tablet */

@media (max-width: 991px) {
    .website-home-section {
        padding: 42px 0;
    }

    .website-home-slider-image {
        height: 350px;
    }

    .website-home-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .website-home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .website-home-news-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        width: calc(50% - 11px);
        justify-self: center;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .website-home-section {
        padding: 32px 0;
    }

    .website-home-section-header {
        display: block;
        margin-bottom: 20px;
    }

        .website-home-section-header h2 {
            font-size: 23px;
        }

        .website-home-section-header p {
            font-size: 12px;
        }

    .website-home-section-link {
        margin-top: 13px;
    }

    .website-home-slider {
        padding-top: 10px;
    }

        .website-home-slider .container {
            padding-right: 10px;
            padding-left: 10px;
        }

        .website-home-slider .owl-stage-outer,
        .website-home-slider-item {
            border-radius: 8px;
        }

    .website-home-slider-image {
        height: 230px;
    }

    .website-home-slider-caption {
        right: 13px;
        bottom: 13px;
        left: 13px !important;
        max-width: none;
    }

    .website-home[dir="ltr"] .website-home-slider-caption {
        right: 13px;
        left: 13px;
    }

    .website-home-slider-caption a,
    .website-home-slider-caption > div {
        padding: 10px 13px;
        border-radius: 6px;
    }

    .website-home-slider-caption h2 {
        font-size: 17px;
    }

    .website-home-slider-caption p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .website-home-ticker {
        margin-top: 12px;
    }

    .website-home-ticker-inner {
        display: block;
    }

    .website-home-ticker-title {
        min-height: 34px;
        justify-content: center;
    }

    .website-home-ticker-content {
        min-height: 42px;
    }

    .website-home-welcome {
        padding: 14px;
    }

    .website-home-welcome-icon {
        width: 42px;
        min-width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .website-home-welcome strong {
        font-size: 14px;
    }

    .website-home-access-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .website-home-access-card {
        min-height: 82px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .website-home-access-icon {
        width: 44px;
        min-width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .website-home-access-text {
        font-size: 13px;
    }

    .website-home-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .website-home-news-card:last-child {
        grid-column: auto;
        width: 100%;
        max-width: none;
    }

    .website-home-news-image {
        height: 210px;
    }

    .website-home-news-body {
        padding: 15px;
    }

        .website-home-news-body h3 {
            min-height: 0;
            font-size: 16px;
        }

    .website-home-video-wrapper {
        max-width: none;
    }

    .website-home-video-title {
        min-height: 0;
        padding: 14px 15px;
        font-size: 12px;
    }

    .website-home-partner-card {
        min-height: 105px;
        padding: 13px;
    }

        .website-home-partner-card a {
            height: 75px;
        }

        .website-home-partner-card img {
            max-height: 70px;
        }

    .website-home-slogan {
        margin-top: 25px;
        padding-top: 20px;
        font-size: 12px;
        line-height: 1.7;
    }

        .website-home-slogan img {
            width: 32px;
            height: 32px;
        }

        .website-home-slogan span {
            margin: 0 9px;
        }
}

@media (max-width: 420px) {
    .website-home-slider-image {
        height: 205px;
    }

    .website-home-news-image {
        height: 190px;
    }
}
