: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);
}

h1 {
    font-weight: 600;
}

h2,
h3,
h4 {
    font-weight: 500;
}

h5,
h6 {
    font-weight: 400;
}

p {
    font-weight: 300;
}

#MainWrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 60px;
    margin: 60px auto 0 auto;
    color: var(--neutral-color);
}

a {
    color: var(--primary-color);
}

h2 {
    font-weight: 600;
}

.wrapper {
    width: 100%;
    position: relative;
}

.bg--blue {
    background-color: var(--secondary-color);
}

.bg--gray {
    background-color: var(--tertiary-color);
}

.wrapper .contents {
    position: relative;
    display: block;
    margin: 20px auto 0 auto;
    width: 100%;
    max-width: 1200px;
}

.wrapper .contents--news {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 1230px;
}

/* banner */
.wrapper.index_banner .contents {
    margin: 0 auto;
    max-width: 100%;
}

.slider--banner {
    height: 480px;
}

.swiper-slide.banner_contents {
    display: flex;
    align-items: center;
    height: auto;
}

.banner_background {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.inner_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
}

.wrapper--slider_bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    column-gap: 12px;
    z-index: 10;
}

.wrapper--slider_bottom .swiper-pagination {
    position: relative;
    bottom: 0 !important;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;
}

.wrapper--slider_bottom .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.wrapper--slider_bottom .swiper-pagination-bullet:hover {
    background-color: var(--primary-color);
}

.wrapper--slider_bottom .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

#slider-control {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #999;
    border: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

#slider-control:hover {
    color: var(--primary-color);
}

.wrapper--navigation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    max-width: 1350px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.slider-button-next,
.slider-button-prev {
    z-index: 10;
    padding: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.slider-button-next:hover,
.slider-button-prev:hover {
    opacity: 1;
}

.slider-button-next:hover path,
.slider-button-prev:hover path {
    stroke: var(--primary-color);
}

.slider--banner .wrapper--text {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    row-gap: 12px;
}

.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;
}

.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;
}

/* featured products */
.wrapper--title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.wrapper .contents.featured_products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 30px;
    margin-top: 40px;
}

.featured_products .item {
    position: relative;
    background-color: var(--neutral-variant-color-2);
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.featured_products .item:hover {
    transform: translateY(-5px);
}

.featured_products .item .info {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 16px;
    justify-content: space-between;
}

.btn-circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-color);
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
}

.btn-circle::before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    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-circle:hover {
    text-decoration: none;
    color: #fff;
}

.btn-circle:hover::before {
    opacity: 1;
}

.btn-circle>img {
    z-index: 2;
}


.featured_products .item>img {
    max-height: 80px;
    padding-top: 20px;
}

.tag--new {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4px 20px;
    border-radius: 5px;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-dropdown);
    user-select: none;
}

/* testimonial */
.contents.testimonial {
    display: grid;
    grid-template-columns: 2.35fr 2.15fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    margin: 60px auto;
}

.contents.testimonial .swiper {
    width: 100%;
}

.contents.testimonial .main_content {
    width: 100%;
    display: grid;
    grid-template-columns: 1.3fr 1.2fr;
    column-gap: 20px;
    align-items: center;
}

.slider--testimonial-2 {
    height: 100%;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
}

.slider--testimonial {
    height: 100%;
    max-height: 370px;
    box-sizing: border-box;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 3;
}

.wrapper--title {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
}

.slider--testimonial-2 .main_content .img_box {
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    max-height: 300px;
}

.slider--testimonial-2 .main_content .wrapper--text {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    row-gap: 12px;
}

.slider--testimonial-2 .main_content .wrapper--text a:hover {
    text-decoration: underline;
}

.slider--testimonial .swiper-slide {
    width: 100%;
    /* 高度減去間隔後除以三 */
    height: calc((100% - 20px) / 3) !important;
    opacity: 0.4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider--testimonial .swiper-slide-thumb-active {
    opacity: 1;
}

.contents.testimonial .swiper-slide img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.slider--testimonial .swiper-slide-thumb-active {
    position: relative;
}

.slider--testimonial .swiper-slide-thumb-active::before {
    content: url('../images/index/icon-magnifier.svg');
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #007fd44b;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider--testimonial img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a.btn--action {
    position: relative;
    display: inline-block;
    background: rgb(0, 160, 233);
    background: var(--gradient-color);
    color: #fff;
    padding: 8px 24px 8px 24px;
    border-radius: 5px;
    font-weight: 500;
    z-index: 1;
}

a.btn--action::before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 5px;
    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;
}

a.btn--action:hover {
    text-decoration: none;
    color: #fff;
}

a.btn--action:hover::before {
    opacity: 1;
}

.testimonial .main_content .wrapper--text p b {
    font-weight: 300;
}

.all_cases_link {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    transform: translate(20%, -50%);
}

/* news */
.slider--news {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px 15px 0 15px;
}

.slider--news .swiper-slide {
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow-dropdown);
    color: var(--neutral-color);
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.slider--news .swiper-slide:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-dropdown-hover);
}

.slider--news .text {
    box-sizing: border-box;
    height: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    align-items: center;
    justify-content: end;
}

.slider--news .text>* {
    flex: 1;
    align-self: flex-start;
}

.slider--news .text .info {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.slider--news .text h5>br {
    display: none;
}

.slider--news .text span {
    display: flex;
    align-items: end;
    color: var(--primary-color);
}

.slider--news .text span:hover {
    text-decoration: underline;
}

.slider--news .img_box {
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    width: 100%;
    height: 50%;
}

.slider--news .img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-news-button-next,
.slider-news-button-prev {
    z-index: 10;
    padding: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.slider-news-button-next:hover,
.slider-news-button-prev:hover {
    opacity: 1;
}

.slider-news-button-next:hover path,
.slider-news-button-prev:hover path {
    stroke: var(--primary-color);
}

.slider--news .slider-pagination {
    position: relative;
    bottom: 0 !important;
    width: auto;
}

.slider--news .swiper-pagination-bullet {
    background-color: var(--neutral-variant-color);
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.slider--news .swiper-pagination-bullet:hover {
    background-color: var(--primary-color);
}

.slider--news .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* cta */
.wrapper--cta {
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 45%, rgba(233, 245, 252, 1) 45.5%);
    padding-bottom: 60px;
}

.wrapper--cta .contents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    margin: 0 auto;
}

.wrapper--cta .item {
    background-color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 20px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-dropdown);
}

.wrapper--cta .item--contact {
    padding: 40px 0 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    text-align: left;
    align-items: end;
}

.wrapper--cta .item--contact>h2 {
    grid-column-start: 1;
    grid-column-end: 2;
}

.wrapper--cta .item--contact .wrapper--text {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 40px;
}

.wrapper--cta .item--contact>img {
    max-height: 100%;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
    border-radius: 0 0 5px 0;
}

.wrapper--cta .item--news {
    padding: 20px 40px;
    row-gap: 28px;
}

.item--news form {
    width: 100%;
}

.item--news .wrapper--form {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.item--news .wrapper--form #EmailAddress {
    box-sizing: border-box;
    background: #F8F8F8;
    border-radius: 5px;
    color: #00A0E9;
    outline: none;
    border: none;
    padding: 12px;
    margin: 0;
    font-size: 16px;
    width: 65%;
}

.item--news .wrapper--form .btn--link {
    border: none;
    cursor: pointer;
    margin: 0;
}

.grecaptcha-badge {
    visibility: hidden;
}

@media only screen and (max-width: 1400px) {

    .wrapper .contents {
        width: 90%;
    }

    .wrapper .contents:has(.slider--banner) {
        width: 100%;
    }

    .wrapper--navigation {
        width: 98%;
    }

    .wrapper--title {
        width: 90%;
    }

    .contents>.wrapper--title {
        width: 100%;
    }

    .slider--banner .wrapper--text {
        width: 50%;
    }

    .banner_contents>img {
        width: 50%;
    }

    .wrapper .contents--news {
        width: calc(90% + 30px);
    }

    .slider--news .img_box {
        height: 40%;
    }

    .slider--news .text {
        height: 60%;
    }

    .wrapper .contents.featured_products {
        column-gap: 20px;
    }

    .inner_wrapper {
        width: 90%;
    }
}

@media only screen and (max-width: 1024px) {

    .slider--banner {
        height: auto;
    }

    .swiper-slide.banner_contents .inner_wrapper {
        align-self: center;
        flex-direction: column;
        row-gap: 20px;
        justify-content: center;
    }

    .slider--banner .wrapper--text {
        width: 100%;
        align-items: center;
        text-align: center;
        padding-top: 24px;
    }

    .banner_contents>img {
        width: 100%;
        max-width: 660px;
    }

    .wrapper--slider_bottom {
        bottom: 12px;
    }

    .inner_wrapper>img {
        padding-bottom: 36px;
    }

    .contents.testimonial {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 0.3fr 2fr 120px;
    }

    .slider--testimonial {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 3;
        grid-row-end: 4;
        max-height: 120px;
    }

    .slider--testimonial-2 {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    .wrapper--title {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .contents.testimonial .main_content {
        grid-template-columns: 1fr 1fr;
    }

    .slider--testimonial .swiper-slide {
        height: 100% !important;
    }

    .wrapper--cta .contents {
        column-gap: 20px;
    }

    .all_cases_link {
        top: 100%;
    }

    .slider--news .img_box {
        height: 50%;
    }

    .slider--news .text {
        height: 50%;
    }

}

@media only screen and (max-width: 768px) {
    #MainWrap {
        padding-bottom: 0;
        row-gap: 40px;
    }

    .wrapper--navigation {
        display: none;
    }

    .wrapper .contents.featured_products {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 20px;
    }

    .contents.testimonial .main_content {
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        row-gap: 12px;
    }

    .contents.testimonial {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: min-content max-content 120px;
        margin: 40px auto;
    }

    .slider--testimonial-2 .main_content .img_box {
        max-height: 230px;
    }

    .wrapper--title {
        grid-column-end: 3;
    }

    /* 避免文字斷行造成區塊太高 */
    .wrapper--text>p br {
        display: none;
    }

    .all_cases_link {
        transform: translate(10%, -50%);
    }

    .slider--news .img_box {
        height: 60%;
    }

    .slider--news .text {
        height: 40%;
    }

    .wrapper--cta {
        background: rgb(255, 255, 255);
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 20%, rgba(233, 245, 252, 1) 20.1%);
    }

    .wrapper--cta .contents {
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        row-gap: 20px;
    }

    .item--news .wrapper--form {
        flex-direction: column;
    }

    .item--news .wrapper--form #EmailAddress{
        width: 100%;
    }
}

@media only screen and (max-width: 736px) {
    #MainWrap {
        padding-bottom: 0;
    }

}

@media only screen and (max-width: 425px) {
    .banner_contents .wrapper--text>h1 br {
        display: none;
    }

    .banner_contents .wrapper--text>h5 br {
        display: none;
    }

    .contents.testimonial {
        grid-template-rows: min-content max-content 80px;
    }

    .slider--testimonial {
        max-height: 80px;
    }

    .slider--news .img_box {
        height: 50%;
    }

    .slider--news .text {
        height: 50%;
    }

    .wrapper--cta .item {
        width: 100%;
        box-sizing: border-box;
    }

    .wrapper--cta .item--contact {
        padding: 20px 0 0 20px;
        row-gap: 28px;
    }

    .wrapper--cta .item--contact>h2 {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    .wrapper--cta .item--contact>img {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    .wrapper--cta .item--contact .wrapper--text {
        padding-bottom: 20px;
    }

}

.banner_background_gradient_1 { /* Independetly Devoloped */
  background-image: linear-gradient(to left bottom, #95c6fb, #a3d0fb, #b3dafc, #c3e4fc, #d5edfd, #d8f2fe, #ddf6fe, #e2faff, #d8fbff, #cefcff, #c4fcfd, #bbfdfa);
}

.banner_background_gradient_2 { /* all products */
  background-image: linear-gradient(to right top, #9cdafd, #acdffd, #bbe4fc, #c9e9fc, #d7eefc, #dbf0fc, #e0f1fc, #e4f3fc, #e0f2fc, #ddf0fc, #d9effb, #d5edfb);
}

.banner_background_gradient_3 { /* CMS-WS All for One Content Management Server */
  background-image: linear-gradient(to left bottom, #80c9fc, #a1d7fb, #c0e4fb, #cce9fb, #d8eefc, #e4f3fc, #e0f2fc, #ddf0fc, #d9effb, #d5edfb);
}

.banner_background_gradient_4 { /* Measurement and Analysis Your Digital Signage */
  background-image: linear-gradient(to left bottom, #9aece9, #adeff3, #c1f2fa, #d5f5fe, #e8f8ff, #eafaff, #edfbff, #f0fdff, #e3fdff, #d6fdff, #c8fdfd, #bbfdfa);
}

.banner_background_gradient_5 { /* Easy Meeting Room Booking (mp+) */
  background-image: linear-gradient(to right bottom, #acebf8, #b9edfa, #c5eefc, #d0f0fd, #dbf2fd, #d4eefb, #ccebfa, #c5e7f8, #a7ddf4, #86d2f0, #5dc8eb, #00bee5);
}

.banner_background_gradient_6 {
  background-image: linear-gradient(to left bottom, #bfe6ff, #e9f5ff);
}

.banner_background_gradient_7 { /* SMP-2400 */
  background-image: linear-gradient(to right top, #f6ebfb, #f2edfd, #eeeffe, #ecf1ff, #eaf3fe, #e7f2fe, #e4f0ff, #e1efff, #dfeaff, #e1e4ff, #e6ddff, #eed5fb);
}

.banner_background_gradient_8 { /* EPD */
  background-image: linear-gradient(to left top, #cffff6, #d3fefb, #d8fdfe, #defbff, #e5faff, #e5fbff, #e5fbff, #e5fcff, #e0fefb, #defff5, #e1ffec, #e8ffe1);
}
