﻿/*=======================================================================
  AUTO NEWS REALTIME MOBILE
=======================================================================*/

@media (max-width: 900px) {

    .portal-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 720px) {

    .header-inner,
    .main-content,
    .footer-inner {
        width: calc(100% - 30px);
    }

    .header-inner {
        min-height: 68px;
    }

    .text-logo {
        font-size: 25px;
    }

    .site-logo img {
        max-width: 200px;
        max-height: 43px;
    }

    .category-nav {
        overflow: hidden;
    }

    .category-nav-inner {
        width: 100%;
        overflow-x: auto;
        padding: 0 15px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .category-nav a {
        min-width: auto;
        padding: 0 16px;
        font-size: 13px;
    }

    .main-content {
        padding-top: 25px;
        padding-bottom: 48px;
    }

    .realtime-heading {
        align-items: center;
    }

    .realtime-heading h1 {
        font-size: 23px;
    }

    .realtime-source {
        font-size: 10px;
    }

    .portal-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portal-card-head {
        min-height: 51px;
    }

    .portal-card-title strong {
        font-size: 16px;
    }

    .portal-news-row {
        min-height: 72px;
    }

    .portal-news-title {
        font-size: 14px;
    }

    .list-title-row h1 {
        font-size: 24px;
    }

    .list-category-tabs a {
        padding: 0 16px;
    }

    .news-search-form {
        max-width: none;
    }

    .text-news-item {
        padding: 19px 0;
    }

    .text-news-item h2 {
        font-size: 18px;
    }

    .article-header h1 {
        font-size: 29px;
    }

    .article-body {
        padding-top: 27px;
        font-size: 15px;
        line-height: 1.9;
    }

}


@media (max-width: 420px) {

    .realtime-mark {
        display: none;
    }

    .portal-card-body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .portal-card-head {
        padding-left: 15px;
        padding-right: 12px;
    }

    .news-search-form {
        gap: 5px;
    }

    .news-search-form button {
        min-width: 60px;
    }

    .pagination a,
    .pagination strong,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 5px;
    }

}


/*=======================================================================
  PORTAL NEWS UI MOBILE
=======================================================================*/

@media (max-width: 980px) {

    .portal-header-inner {
        grid-template-columns: minmax(150px, 220px) minmax(240px, 1fr);
        gap: 18px;
    }

    .header-today {
        display: none;
    }

    .news-two-column,
    .article-two-column {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 20px;
    }

}


@media (max-width: 760px) {

    .portal-header-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-logo {
        flex: 1;
    }

    .header-today {
        display: block;
        order: 2;
        font-size: 11px;
    }

    .header-search {
        order: 3;
        width: 100%;
        height: 40px;
    }

    .news-two-column,
    .article-two-column {
        display: block;
    }

    .news-side-column,
    .article-side-column {
        margin-top: 26px;
    }

    .popular-side-card,
    .article-side-card {
        position: static;
    }

    .portal-section-head h1 {
        font-size: 19px;
    }

    .portal-list-item {
        padding: 22px 0;
    }

    .portal-list-item h2 {
        font-size: 18px;
    }

    .portal-list-summary {
        font-size: 12px;
    }

    .portal-article-header h1 {
        font-size: 29px;
        line-height: 1.4;
    }

    .article-tools {
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        gap: 7px;
        margin-top: 15px;
        padding-top: 12px;
    }

    .article-icon-btn {
        width: 37px;
        height: 34px;
    }

    .portal-article-body {
        padding-top: 30px;
        font-size: 16px;
        line-height: 1.95;
    }

    .portal-article-body.font-small {
        font-size: 14px;
    }

    .portal-article-body.font-normal {
        font-size: 16px;
    }

    .portal-article-body.font-large {
        font-size: 19px;
    }

}


@media (max-width: 430px) {

    .header-today {
        width: 100%;
        order: 2;
        text-align: left;
    }

    .header-search {
        order: 3;
    }

    .header-search button {
        min-width: 58px;
    }

    .portal-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .portal-list-item h2 {
        font-size: 17px;
    }

    .portal-article-header h1 {
        font-size: 25px;
    }

    .article-tools {
        overflow: visible;
    }

    .article-tool-divider {
        margin: 0 1px;
    }

    .article-icon-btn {
        width: 36px;
        height: 33px;
    }

    .portal-article-footer {
        flex-direction: column;
        gap: 8px;
    }

}
