:root {
    --primary-color: #007ED4;
    --secondary-color: #E9F5FC;
    --tertiary-color: #F8F8F8;
    --neutral-color: #595959;
    --neutral-variant-color: #757575;
    --gradient-color: linear-gradient(90deg, rgba(0, 160, 233, 1) 0%, rgba(0, 126, 212, 1) 100%);
}


h1 {
    font-weight: 600;
}

h2,
h3,
h4 {
    font-weight: 500;
}

h5,
h6 {
    font-weight: 400;
}

p {
    font-weight: 300;
}

#MainWrap {
    float: none;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    row-gap: 60px;
    align-items: center;
    background-color: var(--tertiary-color);
    line-height: 1.7;
    min-height: 100vh;
    color: var(--neutral-color);
}

a {
    color: var(--neutral-color);
}

.header_suntitle {
    color: #fff;
    padding: 12px 0;
}

p {
    color: var(--neutral-color);
}

/*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: var(--neutral-color);
}

select::-ms-expand {
    display: none;
}

select {
    outline: none;
}


/*custom select*/
:root {
    --select-border: #999;
    --select-focus: var(--neutral-color);
    --select-arrow: var(--select-border);
}

.filter_wrap .filter {
    display: grid;
    grid-template-areas: "select";
    align-items: center;
    position: relative;
}

select.option {
    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_cases/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(5, minmax(160px, 50%)) max-content;
    column-gap: 20px;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 100%;
}

.filter--reset {
    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: var(--neutral-color);
    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: var(--neutral-color);
    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: var(--neutral-color);
}

.filter--reset span::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--neutral-color);
}

.contents {
    max-width: 1200px;
    width: 90%;
    display: grid;
    grid-template-columns: 2.35fr 1fr;
    gap: 60px;
    align-items: start;
}

header {
    width: 100%;
}

.all_case {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.out_wrapper--case {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    border-radius: 5px;
}

.item--case {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 200px;
    background-color: #fff;
    border-radius: 5px;
    justify-content: space-between;
    box-shadow: 0 2px 15px #5c99bd2a;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.item--case:hover {
    box-shadow: 0 5px 15px #5c99bd2a;
}

.item--case .caseTitle {
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.item--case:hover .caseTitle {
    color: var(--primary-color);
}

.item--inner p {
    line-height: 1;
}

.wrapper--tags {
    display: flex;
    column-gap: 8px;
    row-gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.wrapper--tags>span {
    background-color: var(--tertiary-color);
    padding: 6px 8px 3px 8px;
    border-radius: 2px;
    color: var(--neutral-color);
}

.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--Custom {
    background-color: #66BAB7;
    color: #fff;
}

.wrapper--tags>span.tag--gocayin {
    background-color: #FABE00;
    color: #2d2d2d;
}

.item--inner {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    justify-content: center;
    padding: 20px;
}

.img_box {
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    width: 100%;
    height: 100%;
    max-height: 200px;
}

.img--case {
    width: 100%;
    height: 100%;
    border-radius: 5px 0 0 5px;
    object-fit: cover;
    transition: all ease-out 0.3s;
}

.link--case:hover .img--case,
.item_wrapper>a:hover .img--case {
    transform: scale(1.05);
}

.sticky {
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    top: 100px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

/* latest case */
.latest_case {
    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_case {
    display: flex;
    align-items: stretch;
    column-gap: 20px;
    border-radius: 5px;
}

.title--latest_case .inner_wrapper--btn {
    width: 100%;
    padding-right: 0;
    background: rgb(255, 255, 255);
    background: linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 25%, rgba(241, 250, 255, 1) 25.1%, rgba(241, 250, 255, 1) 45%, rgba(216, 241, 255, 1) 45.1%, rgba(216, 241, 255, 1) 100%);
}

.latest_case h4 {
    width: 100%;
    min-width: 180px;
    font-weight: 500;
    color: var(--neutral-color);
    padding-left: 32px;
    padding-top: 12px;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
}

.item_wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 40px 32px 32px 32px;
}

.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: var(--primary-color);
}

.latest_case p {
    color: var(--neutral-color);
}

.latest_case a:hover p {
    color: var(--primary-color);
}

.item_wrapper>a span {
    align-self: flex-start;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 5px;
    margin-top: 3px;
    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_cases/sub_bg.jpg") no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.out_wrapper--contact {
    max-width: 1200px;
    width: 90%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(200px, 80%) max-content;
    justify-content: space-between;
    column-gap: 20px;
    background-color: #fff;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 0px 5px #5c99bd2a;
    transition: all 0.3s ease-out;
}

.out_wrapper--contact .wrapper--text {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.out_wrapper--contact h5 {
    color: var(--neutral-variant-color);
}

.btn--link {
    position: relative;
    display: inline-block;
    background: rgb(0, 160, 233);
    background: var(--gradient-color);
    color: #fff;
    padding: 8px 32px 8px 32px;
    border-radius: 50px;
    margin-top: 12px;
    font-weight: 500;
    z-index: 1;
    align-self: center;
}

.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;
}

@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_case {
        position: static;
        top: auto;
        grid-row-start: 2;
        grid-column-start: 1;
        width: 100%;
    }

    .title--latest_case .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_case h4 {
        padding-left: 40px;
    }

    .item_wrapper>a span {
        margin-top: 0px;
    }

    .item_wrapper {
        padding: 40px;
    }

}

@media only screen and (max-width: 768px) {
    .out_wrapper--contact {
        text-align: center;
        grid-template-columns: 1fr;
        grid-template-rows: max-content auto;
        row-gap: 20px;
    }

    .out_wrapper--contact .wrapper--text {
        row-gap: 8px;
    }

    .btn--link {
        text-align: center;
        width: 40%;
        min-width: 200px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 600px) {
    .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: 90%;
    }

    .filter--reset {
        width: 90%;
    }

    .button--year {
        padding-left: 20px;
    }

    .inner_wrapper--btn {
        padding-right: 20px;
    }

    .title--latest_case .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) 40%, rgba(216, 241, 255, 1) 40.1%, rgba(216, 241, 255, 1) 100%);
    }

    .wrapper--case.active {
        padding: 28px 20px;
    }

    .wrapper--case {
        row-gap: 30px;
    }

    .item--case {
        grid-template-columns: 100%;
    }

    .item--inner {
        row-gap: 8px;
    }

    .item_wrapper>a span {
        align-self: flex-start;
        margin-top: 4px;
        font-size: 10px;
        width: 20px;
        height: 20px;
    }

    .caseTitle {
        padding-bottom: 4px
    }

    .latest_case h4 {
        padding-left: 20px;
    }

    .item_wrapper {
        padding: 20px 20px 24px 20px;
        row-gap: 20px;
    }

    .wrapper--tags {
        column-gap: 4px;
        row-gap: 4px;
    }

    .item_wrapper>a {
        column-gap: 12px;
    }
}


@media only screen and (max-width: 425px) {
    #MainWrap {
        row-gap: 40px;
    }


    .filter_wrap .filter {
        width: 100%;
    }

    .filter--reset {
        width: 100%;
    }

    .contents--w-100 {
        padding: 40px 0;
    }

    .item--case {
        grid-template-columns: 1fr;
        min-height: 200px;
        justify-content: space-between;
    }

    .img--case {
        border-radius: 5px 5px 0 0;
    }

    .img_box {
        border-radius: 5px 5px 0 0;
    }

    select.option {
        padding: 12px 20px 12px 20px;
    }

    .filter_wrap .filter::after {
        right: 20px;
    }
}