﻿/* =========================================================
   Blog and News
   ========================================================= */

.news-channel {
    background: #fff;
}


/* =========================================================
   Common Section Title
   ========================================================= */

.news-section-title {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.news-section-title > div > span {
    display: block;
    margin-bottom: 5px;
    color: #078ad4;
    font-size: 14px;
    line-height: 22px;
}

.news-section-title h2 {
    margin: 0;
    color: #111;
    font-size: 30px;
    line-height: 40px;
}

.news-section-title-center {
    justify-content: center;
    text-align: center;
}


/* =========================================================
   Common Meta
   ========================================================= */

.news-meta {
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.news-meta span {
    color: #078ad4;
    font-size: 13px;
    line-height: 20px;
}

.news-meta time {
    color: #999;
    font-size: 13px;
    line-height: 20px;
}


/* =========================================================
   Common Arrow
   ========================================================= */

.news-read-more i,
.news-small-more i,
.news-card-more i,
.news-category-content span i {
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.news-read-more:hover i,
.news-small-more:hover i,
.news-card-more:hover i,
.news-category-item:hover .news-category-content span i {
    transform: translateX(3px) rotate(45deg);
}


/* =========================================================
   Popular News
   ========================================================= */

.news-popular {
    padding: 70px 0 75px;
    background: #fff;
}

.news-popular-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 26px;
    align-items: stretch;
}


/* =========================
   Popular Main
   ========================= */

.news-popular-main {
    min-width: 0;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.news-popular-main:hover {
    border-color: rgba(7, 138, 212, .22);
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(0, 0, 0, .08);
}

.news-popular-main-img {
    width: 100%;
    aspect-ratio: 820 / 425;
    display: block;
    overflow: hidden;
    background: #f5f5f5;
}

.news-popular-main-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-popular-main:hover .news-popular-main-img img {
    transform: scale(1.035);
}

.news-popular-main-content {
    padding: 27px 30px 29px;
}

.news-popular-main-content h3 {
    margin: 0 0 13px;
    font-size: 24px;
    line-height: 32px;
}

.news-popular-main-content h3 a {
    color: #111;
}

.news-popular-main-content h3 a:hover {
    color: #078ad4;
}

.news-popular-main-content p {
    margin: 0 0 22px;
    color: #666;
    font-size: 15px;
    line-height: 23px;
}

.news-read-more {
    color: #333;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.news-read-more:hover {
    color: #078ad4;
}


/* =========================
   Popular Side
   ========================= */

.news-popular-side {
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.news-popular-small {
    min-width: 0;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 40% 60%;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.news-popular-small:hover {
    border-color: rgba(7, 138, 212, .22);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
}

.news-popular-small-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    overflow: hidden;
    background: #f5f5f5;
}

.news-popular-small-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-popular-small:hover .news-popular-small-img img {
    transform: scale(1.04);
}

.news-popular-small-content {
    min-width: 0;
    padding: 24px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* 分类 + 日期 */

.news-popular-small-meta {
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
}

.news-popular-small-meta span {
    padding: 3px 9px;
    border-radius: 4px;
    background: #eef8fd;
    color: #078ad4;
    font-size: 12px;
    line-height: 19px;
}

.news-popular-small-meta time {
    color: #999;
    font-size: 12px;
    line-height: 19px;
}


/* 标题 */

.news-popular-small-content h3 {
    margin: 0 0 11px;
    font-size: 18px;
    line-height: 25px;
}

.news-popular-small-content h3 a {
    color: #111;
}

.news-popular-small-content h3 a:hover {
    color: #078ad4;
}


/* 描述 */

.news-popular-small-content p {
    margin: 0 0 17px;
    color: #666;
    font-size: 14px;
    line-height: 21px;
}


/* Read More */

.news-small-more {
    margin-top: auto;
    color: #555;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
}

.news-small-more:hover {
    color: #078ad4;
}


/* =========================================================
   Recommended News
   ========================================================= */

.news-recommended {
    padding: 70px 0 80px;
    background: #fbfdff;
}

.news-recommended-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-recommended-item {
    min-width: 0;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.news-recommended-item:hover {
    border-color: rgba(7, 138, 212, .22);
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(7, 138, 212, .09);
}

.news-recommended-img {
    width: 100%;
    aspect-ratio: 432 / 245;
    display: block;
    overflow: hidden;
    background: #f5f5f5;
}

.news-recommended-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-recommended-item:hover .news-recommended-img img {
    transform: scale(1.04);
}

.news-recommended-content {
    flex: 1;
    padding: 25px 26px 26px;
    display: flex;
    flex-direction: column;
}

.news-recommended-content h3 {
    margin: 0 0 13px;
    font-size: 19px;
    line-height: 27px;
}

.news-recommended-content h3 a {
    color: #111;
}

.news-recommended-content h3 a:hover {
    color: #078ad4;
}

.news-recommended-content > p {
    margin: 0 0 23px;
    color: #666;
    font-size: 14px;
    line-height: 21px;
}

.news-card-more {
    margin-top: auto;
    color: #111;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
}

.news-card-more:hover {
    color: #078ad4;
}


/* =========================================================
   News Categories
   ========================================================= */

.news-categories {
    padding: 75px 0 85px;
    background: #fff;
}

.news-category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.news-category-item {
    min-height: 255px;
    padding: 27px 27px 25px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    color: #333;
    position: relative;
    overflow: hidden;
    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.news-category-item::after {
    content: "";
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(7, 138, 212, .05);
    position: absolute;
    right: -50px;
    bottom: -55px;
    transition:
        transform .35s ease,
        background .35s ease;
}

.news-category-item:hover {
    border-color: #078ad4;
    background: #f4faff;
    color: #333;
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(7, 138, 212, .09);
}

.news-category-item:hover::after {
    background: rgba(7, 138, 212, .10);
    transform: scale(1.15);
}

.news-category-no {
    margin-bottom: 26px;
    color: #078ad4;
    font-size: 14px;
    line-height: 20px;
}

.news-category-content {
    position: relative;
    z-index: 2;
}

.news-category-content h3 {
    margin: 0 0 12px;
    color: #111;
    font-size: 20px;
    line-height: 28px;
}

.news-category-content p {
    margin: 0 0 25px;
    color: #666;
    font-size: 14px;
    line-height: 21px;
}

.news-category-content span {
    color: #078ad4;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 1100px) {

    .news-popular-grid {
        grid-template-columns: 56% 44%;
        gap: 20px;
    }

    .news-popular-small {
        grid-template-columns: 38% 62%;
    }

    .news-popular-small-content {
        padding: 18px;
    }

    .news-popular-small-content h3 {
        font-size: 16px;
        line-height: 23px;
    }

    .news-popular-small-content p {
        font-size: 13px;
        line-height: 19px;
    }

    .news-recommended-list {
        gap: 20px;
    }

    .news-category-list {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media screen and (max-width: 767px) {

    .news-popular,
    .news-recommended,
    .news-categories {
        padding: 50px 0 55px;
    }


    /* Section Title */

    .news-section-title {
        margin-bottom: 25px;
        align-items: center;
    }

    .news-section-title h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .news-section-title > div > span {
        font-size: 13px;
    }


    /* Popular */

    .news-popular-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-popular-main-content {
        padding: 21px 20px 24px;
    }

    .news-popular-main-content h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .news-popular-side {
        grid-template-rows: auto;
        gap: 16px;
    }

    .news-popular-small {
        grid-template-columns: 38% 62%;
    }

    .news-popular-small-content {
        padding: 16px;
    }

    .news-popular-small-meta {
        margin-bottom: 8px;
        gap: 5px 8px;
    }

    .news-popular-small-meta span {
        padding: 2px 6px;
    }

    .news-popular-small-content h3 {
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 21px;
    }

    .news-popular-small-content p {
        display: none;
    }

    .news-small-more {
        margin-top: 5px;
        font-size: 12px;
    }


    /* Recommended */

    .news-recommended-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-recommended-content {
        padding: 22px 20px 23px;
    }

    .news-recommended-content h3 {
        font-size: 18px;
        line-height: 25px;
    }

    .news-recommended-content > p {
        font-size: 14px;
        line-height: 21px;
    }


    /* Categories */

    .news-category-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-category-item {
        min-height: 0;
        padding: 24px 22px;
    }

    .news-category-no {
        margin-bottom: 18px;
    }

    .news-category-content h3 {
        font-size: 19px;
        line-height: 27px;
    }

    .news-category-content p {
        font-size: 14px;
        line-height: 21px;
    }

}