@import "regular";

@media screen {
    // Small devices (landscape phones, less than 768px)
    @media (max-width: 767.98px) {
        .news {
            & .tab-content {
                margin: 0 1em 3em;
            }
            & .nav-container {
                & .nav {
                    width: 90%;
                    margin: 0 auto;
                    & .tab-cust {
                        position: relative;
                        width: 49.33%;
                        text-align: center;
                        border: none;
                        padding: 1.8em 0 1em;
                        // margin-right: 10px;
                        color: #4a4a4a;
                        font-size: 1rem;
                        font-family: PingFangSC;
                        font-weight: 600;
                        letter-spacing: normal;
                    }

                    & .active {
                        color: @color_deep_gold;

                        &:after {
                            content: "";
                            display: block;
                            position: absolute;
                            width: 100%;
                            height: 4px;
                            background: @color_deep_gold;
                            border-radius: 5px;
                            bottom: 0px;
                            left: 0;
                        }
                    }
                }
                & .nav-sub {
                    display: flex;
                    justify-content: space-evenly;
                    width: 70%;
                    margin: 1em auto 1em;
                    & .tab-cust {
                        font-size: 1em;
                        box-sizing: border-box;
                        // margin: 1em 7.3vw 0;
                        // width: 26vw;
                        width: fit-content;
                        padding: 0.3em 0.7em;
                        // height: 3em;
                    }
                    border-bottom: 0 solid #dee2e6;
                    & .active {
                        // padding: 1.5em;
                        background: rgba(193, 165, 75, 0.7);
                        border-radius: 0.3em;
                        color: #FFFFFF;
                        &:after {
                            display: none;
                        }
                    }
                }
            }
            
            & .title-block{
                background-image: linear-gradient(to right, rgba(0, 112, 255, 0.39), rgba(45, 155, 255, 0.32) 29%, rgba(138, 199, 255, 0.18)), 
                                url("../img/background/news.jpg");
            }

            & .loader {
                & .loader-circle {
                    display: block;
                    margin: 0 auto;
                }
            }

            & .news-tg {
                padding: 0 1.5em;
            }

            & .news-block {
                & h2 {
                    margin-top: 1.8em;
                    margin-bottom: 1em;
                    text-align: center;
                    font-size: 1.2em;
                    font-weight: 600;
                    line-height: 1.22;
                    color: @default_hover_color;
                }

                & .out-box {
                    padding: 0.5em;
                    background-color: #eaf5ff;

                    & ul, li{list-style: none;}
                    
                    & .announce-block {
                        margin: 0;
                        padding: 0;
                        height: 60vh;
                        overflow: auto;;
                        background-color: #FFFFFF;
                    }
                    & .bulletin-lists {
                        margin: 0;
                        padding: 0;
                        text-align: left;
                        background-color: #FFFFFF;
                        & li {
                            overflow: hidden;
                            font-size: 1.125em;
                            border-bottom: 1px solid #e5e5ea;
                            & .announcement-unit {
                                padding: 0.7em 0.5em;

                                & .bulletin-mark{
                                    width: fit-content;
                                    display: inline-block;
                                    font-size: 0.875rem;
                                    padding: 0.2em 0.5em;
                                    border-radius: 1.5em;
                                    background: #5fc1ff;
                                    color: #FFFFFF;
                                    margin: 0 0.7em;
                                    vertical-align: baseline;
                                }
                                & .bulletin-date{
                                    font-size: 1rem;
                                    color: #D3B14B;
                                    vertical-align: baseline;
                                }
                                
                                & .bulletin-summary{
                                    display: block;
                                    color: #000000;
                                    cursor: pointer;
                                    margin: 0.3em 0 0 0.7em;
                                    font-size: 0.935rem;

                                    .no_underline;
                                    &:hover{color: @default_deep_color;}
                                }
                            }

                            & .news-unit {
                                display: flex;
                                padding: 0.7em 0.5em;

                                & .news-img-container {
                                    // display: inline-block;
                                    display: none;
                                    width: 6em;
                                    height: 4.7em;
                                    min-width: 6em;;
                                    margin-left: 0.5em;

                                    & img {
                                        width: 100%;
                                        height: 100%;
                                    }
                                }
                                & .news-info {
                                    display: inline-block;
                                    & .bulletin-mark{
                                        width: fit-content;
                                        display: inline-block;
                                        font-size: 0.875rem;
                                        padding: 0.2em 0.5em;
                                        border-radius: 1.5em;
                                        background: #5fc1ff;
                                        color: #FFFFFF;
                                        margin: 0 0.7em;
                                        vertical-align: baseline;
                                    }
                                    & .bulletin-date{
                                        font-size: 1rem;
                                        color: #D3B14B;
                                        vertical-align: baseline;
                                    }
                                    
                                    & .bulletin-summary{
                                        display: block;
                                        color: #000000;
                                        cursor: pointer;
                                        margin: 0.3em 0 0 0.7em;
                                        font-size: 0.935rem;
    
                                        .no_underline;
                                        &:hover{color: @default_deep_color;}
                                    }
                                }
                            }
                        }
                    }
                    & .bulletin-date{
                        color: #c3aa5b;
                        
                    }
                    & .bulletin-mark{
                        display: inline-block;
                        font-size: 0.675em;
                        padding: 0.2em 0.625em;
                        border-radius: 1.5em;
                        background: #5fc1ff;
                        color: #FFFFFF;
                        margin: 0.5em 0.8em;
                        vertical-align: middle;
                    }
                    & .bulletin-summary {
                        display: block;
                        color: #000000;
                        font-size: 0.875em;
                    }

                    & .pagination {
                        width: 100%;
                        margin: 0.625em auto 0;
                    }

                    & .page-cust{
                        & .page-item{
                            & .page-link{
                                text-align: center;
                                // width: 1.875em;
                                // height: 1.875em;
                                width: 2em;
                                height: 2em;
                                // line-height: 1.875em;
                                line-height: 2em;
                                padding: 0;
                                border: none!important;
                                background: transparent!important;
                                font-size: 0.875em;
                                color: #4a4a4a;
                                border-radius: 50%;
                                margin: 0 0.625em;
                            }
                            & .last-page{
                                border-radius: 0;
                            }

                            & .page-disable{
                                cursor: default;
                                color: #999999;
                            }

                            & .active, .page-link:active, .page-link:focus{
                                outline: none;
                                box-shadow: none;
                            }
                        }
                        & .active, .page-item:hover{
                            & .page-link{
                                background: @default_hover_color!important;
                                color: #FFFFFF;
                            }
                            & .last-page{
                                border-radius: 0;
                                background: transparent!important;
                                color: @default_hover_color;
                            }
                        }
                        & .disabled, .disabled:hover{
                            visibility: hidden;
                            & .page-link{
                                color: #e5e5ea;
                                background: transparent!important;
                                cursor: not-allowed;
                            }
                        }
                    }
                }

                & .btn-cust {
                    .inner_page_cust_btn_outline;
                    display: block;
                    margin: 0 auto 3em;
                }
            }

            & .industry-block {
                padding: 1em;
                width: 100%;
                margin: 0 auto;
                & .news-tg {
                    width: fit-content;
                    padding: 3px 10px;
                    margin: 1em auto 0;
                    border-radius: 0.3em;
                    font-size: 0.875rem;
                    // line-height: 34px;
                    background: #E1F2FF;
                }
                & .industry-list-container {
                    margin: 0.5em 0;
                    & .industry-items {
                        // height: 1380px;
                        & ul, li{list-style: none;}
                        & ul{padding-inline-start: 0;}
                        & li {
                            overflow: hidden;
                            font-size: 1em;
                            
                            border-bottom: 1px solid #e5e5ea;
                        
                            & .news-unit {
                                display: flex;
                                margin: 1em 0;
    
                                & .news-img-container {
                                    display: inline-block;
                                    width: 25.3vw;
                                    height: 19.4vw;
                                    min-width: 25.3vw;
    
                                    & img {
                                        width: 100%;
                                        height: 100%;
                                    }
                                }
                                & .news-detail-container {
                                    width: 100%;
                                    margin-left: 3vw;
                                    text-align: left;
                                    position: relative;

                                    & .news-title {
                                        font-weight: 500;
                                        font-size: 1rem;
                                        margin-bottom: 2px;
                                        // line-height: 34px;
                                    }
                                    & .news-content {
                                        font-size: 1rem;
                                        // line-height: 28px;
                                    }
                                    & .news-date {
                                        position: absolute;
                                        left: 0;
                                        bottom: 0;
                                        margin-bottom: 0;
                                        font-size: 0.9rem;
                                        width: 100%;
                                        // line-height: 35px;
                                        color: #B1B1B1;
                                    }
                                }
                            }
                        }
                    }
                }
                
            }

            & .pagination{
                width: 95%;
                margin: 10px auto 0;
                & .page-cust {
                    font-size: 0.8em;
                    display: flex;
                    // justify-content: space-between !important;
                    & .first-page, .last-page {
                        display: none;
                        // margin: 0 4px 0 0;
                    }
                    // & .prev-page, .next-page{
                    //     margin: 0 8px 0 4px;
                    // }
                    // & .page-num {
                    //     margin: 0 4px 0 0;
                    // }

                    & .page-item {
                        margin: 0 0.3rem;
                        & .page-link {
                            width: 9vw;
                            height: 9vw;
                            background: #E5E5E5;
                            border-radius: 5px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }
                    }
                    & .disabled {
                        cursor: not-allowed;
                        & .page-link {
                            color: #b1b1b1;
                        }
                    }
                    & .active {
                        & .page-link {
                            color: #ffffff;
                            background-color: #74A9F9;
                            border-color: #74A9F9;
                        }
                        
                    }
                }
            }
        }
    }

    // Medium devices (tablets, less than 992px)
    @media (min-width: 768px) and (max-width: 1199.98px) {
        .news{
            & .nav-container {
                padding: 1em 2em;
                width: 100%;
                margin: 0 auto;
                & .nav {
                    & .tab-cust{
                        position: relative;
                        border: none;
                        padding: 10px 20px 15px;
                        margin-right: 10px;
                        color: #4a4a4a;
                        font-size: 1.25em;
                        font-weight: 600;
                        letter-spacing: normal;
                    }
        
                    & .active {
                        color: @color_deep_gold;
        
                        &:after {
                            content: "";
                            display: block;
                            position: absolute;
                            width: 100%;
                            height: 4px;
                            background: @color_deep_gold;
                            border-radius: 5px;
                            bottom: 0px;
                            left: 0;
                        }
                    }
                }

                & .nav-sub {
                    & .tab-cust {
                        margin-left: 40px;
                        font-size: 21px;
                        
                    }
                    border-bottom: 0px solid #dee2e6;
                    & .active {
                        padding: 10px 25px;
                        line-height: 35px;
                        background: rgba(193, 165, 75, 0.7);
                        border-radius: 10px;
                        color: #FFFFFF;
                        &:after {
                            display: none;
                        }
                    }
                }
            }

            & .title-block{
                background-image: linear-gradient(to right, rgba(0, 112, 255, 0.39), rgba(45, 155, 255, 0.32) 29%, rgba(138, 199, 255, 0.18)), 
                                url("../img/background/news.jpg");

                & h1{margin-top: 25px;}
            }
            
            .news-block{
                padding: 1em 2em;
                width: 100%;
                margin: 0 auto;

                & h2{
                    font-size: 36px;
                    font-weight: 500;
                    margin: 40px auto;
                    color: @default_hover_color;
                }

                & .out-box{
                    padding: 20px;
                    background-color: #eaf5ff;
                    
                    & ul, li{list-style: none;}

                    & .announce-block {
                        height: 700px;
                        // min-height: 634px;
                        background: #FFFFFF;
                        overflow: auto;
                    }

                    & .bulletin-lists{
                        text-align: left;
                        background: #FFFFFF;
                        padding: 5px 20px 15px;

                        & li{
                            overflow: hidden;
                            font-size: 18px;
                            border-bottom: 1px solid #e5e5ea;

                            & .announcement-unit{
                                display: block;
                                padding: 18px 0;

                                & .bulletin-mark{
                                    display: inline-block;
                                    font-size: 14px;
                                    line-height: 20px;
                                    padding: 3px 12px;
                                    border-radius: 20px;
                                    background: #5fc1ff;
                                    color: #FFFFFF;
                                    margin: 0 15px;
                                }
                                & .bulletin-date{
                                    font-size: 18px;
                                    line-height: 21px;
                                    color: #D3B14B;
                                    // color: #c3aa5b;
                                }
                                
                                & .bulletin-summary{
                                    // display: inline-block;
                                    display: block;
                                    color: #000000;
                                    cursor: pointer;
                                    margin: 15px 0 0 15px;
                                    font-size: 20px;
                                    line-height: 28px;

                                    .no_underline;
                                    &:hover{color: @default_deep_color;}
                                }
                            }

                            & .news-unit {
                                display: flex;
                                margin: 20px 0;

                                & .news-img-container {
                                    display: inline-block;
                                    width: 90px;
                                    height: 70px;

                                    & img {
                                        width: 100%;
                                        height: 100%;
                                    }
                                }
                                & .news-info {
                                    display: inline-block;
                                    & .bulletin-mark{
                                        display: inline-block;
                                        font-size: 14px;
                                        line-height: 20px;
                                        padding: 3px 12px;
                                        border-radius: 20px;
                                        background: #5fc1ff;
                                        color: #FFFFFF;
                                        margin: 0 15px;
                                    }
                                    & .bulletin-date{
                                        font-size: 18px;
                                        line-height: 21px;
                                        color: #D3B14B;
                                        // color: #c3aa5b;
                                    }
                                    
                                    & .bulletin-summary{
                                        // display: inline-block;
                                        display: block;
                                        color: #000000;
                                        cursor: pointer;
                                        margin: 15px 0 0 15px;
                                        font-size: 20px;
                                        line-height: 28px;
    
                                        .no_underline;
                                        &:hover{color: @default_deep_color;}
                                    }
                                }
                            }
                            
                        }
                        & li:last-child{border-bottom: none;}
                    }

                    & .pagination{
                        width: 100%;
                        margin: 10px auto 0;
                    }

                }

                & .btn-cust{.inner_page_cust_btn_outline;}
                & .btn-cust:hover{.inner_page_cust_btn_outline_hover;}
            }

            & .industry-block {
                // padding: 10px 100px;
                width: 100%;
                margin: 0 auto;
                & .news-tg {
                    width: fit-content;
                    padding: 3px 10px;
                    margin: 0 auto;
                    border-radius: 8px;
                    font-size: 24px;
                    line-height: 34px;
                    background: #E1F2FF;
                }
                & .industry-list-container {
                    margin-top: 60px;
                    & .industry-items {
                        height: 1380px;
                        & ul, li{list-style: none;}
    
                        & li {
                            overflow: hidden;
                            font-size: 18px;
                            border-bottom: 1px solid #e5e5ea;
                        
                            & .news-unit {
                                display: flex;
                                margin: 20px 0;
    
                                & .news-img-container {
                                    display: inline-block;
                                    width: 170px;
                                    height: 130px;
                                    min-width: 170px;
    
                                    & img {
                                        width: 100%;
                                        height: 100%;
                                    }
                                }
                                & .news-detail-container {
                                    margin-left: 30px;
                                    text-align: left;
                                    position: relative;

                                    & .news-title {
                                        font-weight: 500;
                                        font-size: 24px;
                                        line-height: 34px;
                                    }
                                    & .news-content {
                                        font-size: 18px;
                                        line-height: 28px;
                                    }
                                    & .news-date {
                                        position: absolute;
                                        left: 0;
                                        bottom: 0;
                                        margin-bottom: 0;
                                        font-size: 14px;
                                        line-height: 35px;
                                        color: #B1B1B1;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            & .pagination{
                width: 100%;
                margin: 10px auto 0;
                & .page-cust {
                    & .first-page {
                        margin: 0 7px 0 0;
                    }
                    & .prev-page, .next-page{
                        margin: 0 15px 0 6px;
                    }
                    & .page-num {
                        margin: 0 9px 0 0;
                    }
                    
                    & .page-item {
                        & .page-link {
                            background: #E5E5E5;
                            border-radius: 5px;
                        }
                    }
                    & .disabled {
                        cursor: not-allowed;
                    }
                    & .active {
                        & .page-link {
                            background-color: #74A9F9;
                            border-color: #74A9F9;
                        }
                        
                    }
                }
            }
        }
	
    }

    // Large devices (desktops, less than 1200px)
    // @media (min-width: 768px) {
    @media (min-width: 1200px) {
        .news{
            & .nav-container {
                width: 1200px;
                margin: 0 auto;
                padding: 20px 100px;
                & .nav {
                    & .tab-cust{
                        position: relative;
                        border: none;
                        padding: 10px 20px 15px;
                        margin-right: 10px;
                        color: #4a4a4a;
                        font-size: 28px;
                        font-weight: 600;
                        letter-spacing: normal;
                    }
        
                    & .active {
                        color: @color_deep_gold;
        
                        &:after {
                            content: "";
                            display: block;
                            position: absolute;
                            width: 100%;
                            height: 4px;
                            background: @color_deep_gold;
                            border-radius: 5px;
                            bottom: 0px;
                            left: 0;
                        }
                    }
                }
                & .nav-sub {
                    & .tab-cust {
                        margin-left: 40px;
                        font-size: 21px;
                        
                    }
                    border-bottom: 0px solid #dee2e6;
                    & .active {
                        height: 48px;
                        padding: 10px 25px;
                        line-height: 30px;
                        background: rgba(193, 165, 75, 0.7);
                        border-radius: 10px;
                        color: #FFFFFF;
                        &:after {
                            display: none;
                        }
                    }
                }
            }

            & .title-block{
                background-image: linear-gradient(to right, rgba(0, 112, 255, 0.39), rgba(45, 155, 255, 0.32) 29%, rgba(138, 199, 255, 0.18)), 
                                url("../img/background/news.jpg");

                & h1{margin-top: 25px;}
            }

            .news-block{
                padding: 0px 100px;
                width: @wrap_max_width;
                margin: 0 auto;

                & h2{
                    font-size: 36px;
                    font-weight: 500;
                    margin: 40px auto;
                    color: @default_hover_color;
                }

                & .out-box{
                    padding: 20px;
                    background-color: #eaf5ff;
                    
                    & ul, li{list-style: none;}

                    & .announce-block {
                        height: 600px;
                        // min-height: 634px;
                        background: #FFFFFF;
                        overflow: auto;
                    }
                    
                    & .bulletin-lists{
                        text-align: left;
                        background: #FFFFFF;
                        padding: 5px 20px 15px;

                        & li{
                            overflow: hidden;
                            font-size: 18px;
                            border-bottom: 1px solid #e5e5ea;

                            & .announcement-unit{
                                display: block;
                                padding: 18px 0;

                                & .bulletin-mark{
                                    display: inline-block;
                                    font-size: 14px;
                                    line-height: 20px;
                                    padding: 3px 12px;
                                    border-radius: 20px;
                                    background: #5fc1ff;
                                    color: #FFFFFF;
                                    margin: 0 15px;
                                }
                                & .bulletin-date{
                                    font-size: 18px;
                                    line-height: 21px;
                                    color: #D3B14B;
                                    // color: #c3aa5b;
                                }
                                
                                & .bulletin-summary{
                                    // display: inline-block;
                                    display: block;
                                    color: #000000;
                                    cursor: pointer;
                                    margin: 15px 0 0 15px;
                                    font-size: 20px;
                                    line-height: 28px;

                                    .no_underline;
                                    &:hover{color: @default_deep_color;}
                                }
                            }

                            & .news-unit {
                                display: flex;
                                margin: 20px 0;

                                & .news-img-container {
                                    display: inline-block;
                                    width: 90px;
                                    height: 70px;

                                    & img {
                                        width: 100%;
                                        height: 100%;
                                    }
                                }
                                & .news-info {
                                    display: inline-block;
                                    & .bulletin-mark{
                                        display: inline-block;
                                        font-size: 14px;
                                        line-height: 20px;
                                        padding: 3px 12px;
                                        border-radius: 20px;
                                        background: #5fc1ff;
                                        color: #FFFFFF;
                                        margin: 0 15px;
                                    }
                                    & .bulletin-date{
                                        font-size: 18px;
                                        line-height: 21px;
                                        color: #D3B14B;
                                        // color: #c3aa5b;
                                    }
                                    
                                    & .bulletin-summary{
                                        // display: inline-block;
                                        display: block;
                                        color: #000000;
                                        cursor: pointer;
                                        margin: 15px 0 0 15px;
                                        font-size: 20px;
                                        line-height: 28px;
    
                                        .no_underline;
                                        &:hover{color: @default_deep_color;}
                                    }
                                }
                            }

                        }
                        & li:last-child{border-bottom: none;}
                    }
                }

                & .btn-cust{.inner_page_cust_btn_outline;}
                & .btn-cust:hover{.inner_page_cust_btn_outline_hover;}
            }

            & .industry-block {
                padding: 10px 100px;
                width: @wrap_max_width;
                margin: 0 auto;
                & .news-tg {
                    // width: fit-content;
                    width: 95%;
                    padding: 3px 10px;
                    margin: 0 auto;
                    border-radius: 8px;
                    font-size: 26px;
                    line-height: 34px;
                    background: #E1F2FF;
                }
                & .industry-list-container {
                    margin-top: 60px;
                    & .industry-items {
                        width: 95%;
                        height: 1380px;
                        margin: 0 auto;
                        & ul, li{list-style: none;}
                        & ul {
                            padding: 0;
                        }
                        & li {
                            overflow: hidden;
                            font-size: 18px;
                            border-bottom: 1px solid #e5e5ea;
                        
                            & .news-unit {
                                display: flex;
                                margin: 20px 0;
    
                                & .news-img-container {
                                    display: inline-block;
                                    width: 170px;
                                    height: 130px;
                                    min-width: 170px;
    
                                    & img {
                                        width: 100%;
                                        height: 100%;
                                    }
                                }
                                & .news-detail-container {
                                    width: 100%;
                                    cursor: pointer;
                                    margin-left: 30px;
                                    text-align: left;
                                    position: relative;

                                    & .news-title {
                                        font-weight: 500;
                                        font-size: 24px;
                                        line-height: 34px;
                                    }
                                    & .news-content {
                                        font-size: 18px;
                                        line-height: 28px;
                                    }
                                    & .news-date {
                                        position: absolute;
                                        left: 0;
                                        bottom: 0;
                                        margin-bottom: 0;
                                        font-size: 14px;
                                        line-height: 35px;
                                        color: #B1B1B1;
                                    }
                                }
                            }
                        }
                    }
                }
                
            }

            & .pagination{
                width: 100%;
                margin: 10px auto 0;
                & .page-cust {
                    & .first-page {
                        margin: 0 7px 0 0;
                    }
                    & .prev-page, .next-page{
                        margin: 0 15px 0 6px;
                    }
                    & .page-num {
                        margin: 0 9px 0 0;
                    }
                    
                    & .page-item {
                        & .page-link {
                            background: #E5E5E5;
                            border-radius: 5px;
                        }
                    }
                    & .disabled {
                        cursor: not-allowed;
                    }
                    & .active {
                        & .page-link {
                            background-color: #74A9F9;
                            border-color: #74A9F9;
                        }
                        
                    }
                }
            }

            
        }
    }
}