:root {
    --primary-color: #007ED4;
    --secondary-color: #E9F5FC;
    --tertiary-color: #F8F8F8;
    --neutral-color: #595959;
    --neutral-variant-color: #757575;
    --neutral-variant-color-2: #F8F8F8;
    --gradient-color: linear-gradient(90deg, rgba(0, 160, 233, 1) 0%, rgba(0, 126, 212, 1) 100%);
    --shadow-dropdown: 0px 0px 15px rgba(142, 163, 175, 0.2);
    --shadow-dropdown-hover: 0px 3px 15px rgba(142, 163, 175, 0.2);
}

#MainWrap {
    float: none;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    row-gap: 60px;
    align-items: center;
    background-color: #F8F8F8;
    line-height: 1.7;
    min-height: 100vh;
    color: #595959;
}

a {
    color: #595959;
}

.header_suntitle {
    color: #fff;
    padding: 12px 0;
}

p {
    color: #999;
}

/*reset select*/
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    padding: 0 1em 0 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    color: #595959;
}

select::-ms-expand {
    display: none;
}

select {
    outline: none;
}


/*custom select*/
:root {
    --select-border: #999;
    --select-focus: #595959;
    --select-arrow: var(--select-border);
}

.filter_wrap .filter {
    display: grid;
    grid-template-areas: "select";
    align-items: center;
    position: relative;
}

select.option {
    font-family: "Poppins";
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 40px 12px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    width: 100%;
    text-overflow: ellipsis;
}

select,
.filter_wrap .filter:after {
    grid-area: select;
}

select {
    outline: none;
}

.filter_wrap .filter::after {
    content: "";
    width: 0.8em;
    height: 0.5em;
    background: url(../images/tech_support/select_arrow.svg) no-repeat;
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    cursor: pointer;
}

select:focus+.focus {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 2px solid var(--select-focus);
    border-radius: 5px;
    cursor: pointer;
}

.banner_container {
    background: url("../images/digital_signage_news/newsroom_banner.jpg") no-repeat;
    background-position: 50% 60%;
    background-size: cover;
    width: 100%;
    z-index: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    height: 500px;
}

.title_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter_wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.filter_inner_wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 50%)) max-content;
    column-gap: 20px;
    justify-content: space-between;
    box-sizing: border-box;
}

.filter--reset {
    font-family: "Poppins";
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 12px 20px 12px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #595959;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 0;
    cursor: pointer;
}

.filter--reset span {
    position: relative;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background-color: #595959;
    margin-left: 12px;
    transform: translateY(1px);
}

.filter--reset span::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background-color: #595959;
}

.filter--reset span::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background-color: #595959;
}

.contents {
    max-width: 1200px;
    width: 90%;
    display: grid;
    grid-template-columns: 2.35fr 1fr;
    gap: 60px;
    align-items: start;
}

header {
    width: 100%;
}

.all_news {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.out_wrapper--news {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 15px #5c99bd2a;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.out_wrapper--news:hover {
    box-shadow: 0 5px 15px #5c99bd2a;
}

.button--year {
    white-space: nowrap;
    /* prevent word wrap*/
    display: flex;
    column-gap: 50px;
    align-items: center;
    cursor: pointer;
    border: none;
    text-align: left;
    padding: 0;
    padding-left: 40px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.button--year h4 {
    font-size: 1.5em;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.button--year.active {
    border-radius: 10px 10px 0 0;
}

.button--year.active h4 {
    color: #007ED4;
}

.button--year:hover h4 {
    color: #007ED4;
}

.inner_wrapper--btn {
    width: 100%;
    height: 45px;
    padding-right: 40px;
    display: flex;
    align-items: center;
    justify-content: end;
    background: rgb(255, 255, 255);
    background: linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(241, 250, 255, 1) 10.1%, rgba(241, 250, 255, 1) 15%, rgba(216, 241, 255, 1) 15.1%, rgba(216, 241, 255, 1) 100%);
}

.button--year span {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.button--year span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 2px;
    transform: rotate(360deg);
    background-color: #999;
    opacity: 0;
    transition: transform .5s cubic-bezier(0.2, 0.0, 0, 1.0), opacity .5s cubic-bezier(0.2, 0.0, 0, 1.0), background-color 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.button--year span::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 2px;
    background-color: #999;
    transform: rotate(360deg);
    opacity: 0;
    transition: transform .5s cubic-bezier(0.2, 0.0, 0, 1.0), opacity .5s cubic-bezier(0.2, 0.0, 0, 1.0), background-color 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}


.button--year:hover span::before,
.button--year:hover span::after {
    background-color: #007ED4;
}

.button--year.active span::after {
    opacity: 1;
    transform: rotate(45deg);
    background-color: #007ED4;
    transition: transform .5s cubic-bezier(0.2, 0.0, 0, 1.0), opacity .5s cubic-bezier(0.2, 0.0, 0, 1.0), background-color 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.button--year.active span::before {
    background-color: #007ED4;
    opacity: 1;
    transform: rotate(135deg);
    transition: transform .5s cubic-bezier(0.2, 0.0, 0, 1.0), opacity .5s cubic-bezier(0.2, 0.0, 0, 1.0), background-color 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.wrapper--news {
    height: 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 40px;
    row-gap: 40px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s cubic-bezier(0.2, 0.0, 0, 1.0) .55s, opacity .5s cubic-bezier(0.2, 0.0, 0, 1.0) 0s;
}

/* When clicked */
.wrapper--news.active {
    height: auto;
    padding: 40px;
    visibility: visible;
    opacity: 1;
    transition: visibility 0s cubic-bezier(0.2, 0.0, 0, 1.0) 0s, opacity .5s cubic-bezier(0.2, 0.0, 0, 1.0) 0s;
}

.link--news {
    width: 100%;
    display: flex;
    row-gap: 12px;
}

.item--news {
    width: 100%;
    display: grid;
    grid-template-columns: 45% calc(55% - 20px);
    column-gap: 20px;
    background-color: #fff;
    border-radius: 5px;
    justify-content: space-between;
}

.item--news .newsTitle {
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.item--news:hover .newsTitle {
    color: #007ED4;
}

.item--news img {
    border-radius: 5px;
}

.wrapper--tags {
    display: flex;
    column-gap: 8px;
    row-gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.wrapper--tags>span {
    background-color: #F8F8F8;
    padding: 4px 8px 4px 8px;
    border-radius: 2px;
    color: #595959;
}

.wrapper--tags>span.tag--software {
    background-color: #DAF8E8;
    color: #104E37;
}

.wrapper--tags>span.tag--server {
    background-color: #E9F5FC;
    color: #07306D;
}

.wrapper--tags>span.tag--player {
    background-color: #FAE8F9;
    color: #552853;
}

.wrapper--tags>span.tag--cloud {
    background-color: #FFF8E7;
    color: #773200;
}

.wrapper--tags>span.tag--QNAP_Platform {
    background-color: #FEEDEC;
    color: #661C17;
}

.wrapper--tags>span.tag--robustie {
    background-color: #693ca5;
    color: #F8F8F8;
}

.wrapper--tags>span.tag--flexie {
    background-color: #1089c6;
    color: #F8F8F8;
}

.wrapper--tags>span.tag--gocayin {
    background-color: #FABE00;
    color: #000;
}

.wrapper--tags>span.tag--epaper {
    background-color: #99BC85;
    color: #fff;
}

.wrapper--tags>span.tag--custom {
    background-color: #66BAB7;
    color: #F8F8F8;
}

.item--inner {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    justify-content: center;
}

.img_box {
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    max-height: 166px;
}

.img--news {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    transition: all ease-out 0.3s;
}

.link--news:hover .img--news,
.item_wrapper>a:hover .img--news {
    transform: scale(1.05);
}

.sticky {
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    top: 100px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

/* latest news */
.latest_news {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    grid-row-start: 1;
    grid-column-start: 2;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease-out;
}

.title--latest_news {
    display: flex;
    column-gap: 40px;
    align-items: center;
    border-radius: 5px;
}

.title--latest_news .inner_wrapper--btn {
    padding-right: 0;
    background: rgb(255, 255, 255);
    background: linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%, rgba(241, 250, 255, 1) 20.1%, rgba(241, 250, 255, 1) 45%, rgba(216, 241, 255, 1) 45.1%, rgba(216, 241, 255, 1) 100%);
}

.latest_news h4 {
    width: 100%;
    min-width: 80px;
    font-size: 1.25em;
    font-weight: 500;
    color: #595959;
    padding-left: 32px;
    padding-top: 12px;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
}

.item_wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 32px 32px 32px 32px;
}

.border--gray {
    border-bottom: 1px solid #999;
}

.item_wrapper>a {
    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-rows: 1fr;
    column-gap: 16px;
    row-gap: 4px;
    border-radius: 5px;
    transition: all ease-out 0.35s;
}

.item_wrapper>a:hover {
    color: #007ED4;
}

.latest_news p {
    color: #595959;
}

.latest_news a:hover p {
    color: #007ED4;
}

.item_wrapper>a span {
    align-self: flex-start;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: #E9F5FC;
    color: #007ED4;
    border-radius: 5px;
    margin-top: 5px;
    transition: all ease-out 0.35s;
}

.social_media {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    top: 100px;
    align-self: flex-start;
    grid-row-start: 1;
    grid-column-start: 2;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease-out;
}

.no-results {
    text-align: center;
    margin: 60px 0;
}


/* subscribe */
.contents--w-100 {
    width: 100%;
    background: url("../images/digital_signage_news/sub_bg.jpg") no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.out_wrapper--sub {
    max-width: 1200px;
    width: 90%;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 0px 5px #5c99bd2a;
    transition: all 0.3s ease-out;
}

.out_wrapper--sub:hover {
    box-shadow: 0 0px 15px #5c99bd2a;
}

.out_wrapper--sub form {
    display: grid;
    justify-content: space-between;
    align-items: center;
    column-gap: 12px;
    grid-template-columns: minmax(auto, 80%) max-content;
    width: 80%;
    max-width: 800px;
}

#EmailAddress {
    box-sizing: border-box;
    background: #F8F8F8;
    border-radius: 5px;
    color: #00A0E9;
    outline: none;
    border: none;
    padding: 12px;
    margin: 0;
    font-size: 16px;
}

.btn--link {
    cursor: pointer;
    position: relative;
    display: inline-block;
    background: rgb(0, 160, 233);
    background: var(--gradient-color);
    border: none;
    color: #fff;
    padding: 8px 32px 8px 32px;
    border-radius: 50px;
    font-weight: 500;
    z-index: 1;
}

.btn--link::before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50px;
    background: rgb(0, 160, 233);
    background: linear-gradient(90deg, rgba(0, 160, 233, 1) 0%, rgba(0, 160, 233, 1) 100%);
    z-index: -1;
    opacity: 0;
    transition: all cubic-bezier(0.2, 0.0, 0, 1.0) 0.3s;
}

.btn--link:hover {
    text-decoration: none;
}

.btn--link:hover::before {
    opacity: 1;
}

.grecaptcha-badge {
    visibility: hidden;
}


@media only screen and (max-width: 1440px) {
    .contents {
        gap: 30px;
    }
}

@media only screen and (max-width: 1024px) {
    .contents {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        row-gap: 40px;
    }

    .sticky {
        position: static;
        row-gap: 40px;
    }

    .latest_news {
        position: static;
        top: auto;
        grid-row-start: 2;
        grid-column-start: 1;
        width: 100%;
    }

    .title--latest_news .inner_wrapper--btn {
        padding-right: 0;
        background: rgb(255, 255, 255);
        background: linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%, rgba(241, 250, 255, 1) 20.1%, rgba(241, 250, 255, 1) 30%, rgba(216, 241, 255, 1) 30.1%, rgba(216, 241, 255, 1) 100%);
    }

    .filter_inner_wrap {
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }

    .filter_wrap .filter {
        min-width: 190px;
    }

    .latest_news h4 {
        padding-left: 40px;
    }

    .out_wrapper--sub .wrapper--text b {
        font-size: 1.2em;
    }

    .item_wrapper>a span {
        margin-top: 0px;
    }

    .item_wrapper {
        padding: 40px;
    }

}


@media only screen and (max-width: 768px) {
    .item_wrapper>a {
        align-items: center;
        justify-content: center;
    }

    .item_wrapper>a span {
        align-self: center;
    }

    .out_wrapper--sub form {
        width: 100%;
    }


}

@media only screen and (max-width: 600px) {
    .button--year {
        padding-left: 20px;
    }

    .inner_wrapper--btn {
        padding-right: 20px;
    }

    .inner_wrapper--btn,
    .title--latest_news .inner_wrapper--btn {
        background: rgb(255, 255, 255);
        background: linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%, rgba(241, 250, 255, 1) 20.1%, rgba(241, 250, 255, 1) 35%, rgba(216, 241, 255, 1) 35.1%, rgba(216, 241, 255, 1) 100%);
    }

    .wrapper--news.active {
        padding: 28px 20px;
    }

    .wrapper--news {
        row-gap: 30px;
    }

    .item--inner {
        row-gap: 4px;
    }

    .item--news {
        grid-template-columns: 100%;
        row-gap: 8px;
    }

    .img_box {
        height: 95%;
        max-height: 350px;
    }

    .latest_news h4 {
        padding-left: 20px;
        width: 120px;
    }

    .item_wrapper {
        padding: 20px;
        row-gap: 20px;
    }

    .item_wrapper>a span {
        align-self: flex-start;
        margin-top: 4px;
        font-size: 10px;
        width: 20px;
        height: 20px;
    }

    .wrapper--tags {
        column-gap: 4px;
        row-gap: 4px;
    }

    .out_wrapper--sub {
        padding: 20px;
        gap: 12px;
    }

    .out_wrapper--sub .wrapper--text {
        row-gap: 4px;
    }

    .out_wrapper--sub input {
        padding: 8px;
        font-size: 1em;
    }

    .out_wrapper--sub .Button {
        padding: 8px;
        font-size: 1em;
    }

}

@media only screen and (max-width: 425px) {
    #MainWrap {
        row-gap: 40px;
    }

    .banner_container {
        height: auto;
    }

    .title_wrapper {
        margin: 0 auto;
        max-width: 90%;
        margin-top: 24px;
    }

    .filter_wrap {
        margin-bottom: 40px;
    }

    .filter_inner_wrap {
        gap: 8px;
    }

    .filter_wrap .filter {
        width: 100%;
    }

    .filter--reset {
        width: 100%;
    }

    .item--news {
        grid-template-columns: 100%;
        row-gap: 8px;
    }

    .contents--w-100 {
        padding: 40px 0;
    }

    select.option {
        padding: 12px 20px 12px 20px;
    }

    .filter_wrap .filter::after {
        right: 20px;
    }
}