
body {
    background: white;
}

:root {
    --blue-color: #04358a;
    --bright-blue-color: #dde9ff;
    --gray-color: #333333;
    --middle-gray-color: #bdbdbd;
    --bright-gray-color: #f8f8f8;
    --white-color: #ffffff;
    --bright-yellow-color: #fcefde;
    --bright-pink-color: #ffe6eb;
    --pink-color: #b0466a;
}

main {
    font-family: "Noto Sans TC", sans-serif, "Microsoft JhengHei", "微軟正黑體", sans-serif;
    background: white;
}

main h2 {
    font-weight: 400;
    letter-spacing: 0.2em;
    font-size: 48pt;
    text-align: center;
    padding-bottom: 50px;
    margin: 0;
    color: var(--blue-color);
}

main h3 {
    font-size: 26pt !important;
    letter-spacing: 0.05em;
    color: var(--blue-color) !important;
}

main h5 {
    line-height: 1.4em;
}

#sync1 .item {
    text-align: center;
}

#sync2 {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 100px;
}

#sync2 .item {
    color: #FFF;
    text-align: center;
    cursor: pointer;
}

#sync2 h4 {
    color: var(--blue-color);
}

#sync2 .pic {
    padding: 10px;
}

#sync2 img {
    border-radius: 30px;
}

#sync2 p {
    font-size: 20px;
    color: var(--gray-color);
}

#sync2 .current .item img {
    border: 3px solid var(--blue-color);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

main .owl-theme .owl-nav {
    left: 15px;
}

main .owl-theme .owl-nav [class*='owl-'] {
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

main .owl-theme .owl-nav [class*='owl-'].disabled:hover {}

#sync1.owl-theme {
    position: relative;
}

#sync1.owl-theme .owl-next,
#sync1.owl-theme .owl-prev {
    width: 22px;
    height: 40px;
    margin-top: -20px;
    position: absolute;
    top: 50%;
}

#sync1.owl-theme .owl-prev {
    left: 10px;
}

#sync1.owl-theme .owl-next {
    right: 10px;
}

main button.owl-next:before,
main button.owl-prev:before {
    width: 57px;
    height: 130px;
    background: url(../images/homepage/0_product-btn-previous.png) no-repeat;
    background-size: contain;
}

main button.owl-next:before {
    transform: scaleX(-1);
}

button.owl-next::after,
button.owl-prev::after {
    display: none;
}

main .owl-nav {
    position: absolute;
    top: 20%;
    font-size: 0;
    width: 100%;
}

main .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

main .pic-zoom {
    overflow: hidden;
    border-radius: 2rem;
}

main .pic-zoom img {
    transition: transform 0.3s ease;
}

main .blog-list .item:hover img,
main .pic-zoom:hover img {
    transform: scale(1.05);

}

.contact-info,
#motherly_cooking,
.blog-post,
.home-history,
.home-why,
.home-vision,
.home-baby,
.home-mom,
.home-store,
.home-class,
.home-pro,
.home-join {
    padding: 100px 0;
}

.home-why,
.home-baby,
.home-join {
    padding-top: 0;
}

.blog-post,
.blog-list {
    padding-top: 100px;
    letter-spacing: 1px;
}

.home-class {
    background-color: var(--bright-yellow-color);
}

main .classlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

main .classlist h3 {
    padding-top: 30px;
}

main .classlist h4 {
    height: 40px;
}

main .classlist .class {

    flex: 0 0 45%;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

main .classlist .pic-zoom {
    border-radius: 0 0 2rem 2rem;
}

.home-store {
    background: var(--blue-color);
}

.home-store a,
.home-store h2 {
    color: white;
}

.home-store-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.home-store-list a {
    flex: 0 0 30%;
    border: 2px solid #fff;
    border-radius: 50em;
    padding: 1rem 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.home-store-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    filter: brightness(1.05);
}

.bt-gradient:hover i,
.home-store-list a:hover i {
    transform: translateX(5px);
}

.bt-gradient i,
i.icon-arrow {
    width: 15px;
    height: 15px;
    background: url(../images/homepage/2_btn_arrow.png) no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
}

.bt-gradient i,
.home-store-list a i {
    position: absolute;
    right: 20px;
    top: calc(50% - 7px);
}

.bt-gradient {
    color: white;
    background: linear-gradient(to right, #008ae3 0%, #022e87 100%);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}

.bt-gradient:hover {
    color: white;
    text-decoration: none;
}

.bt-gradient.small {
    font-size: 16px;
    padding: 5px 40px;
}

.bt-gradient.blue {
    background: var(--blue-color);
}

.home-baby .classlist h3,
.home-mom .classlist h3 {
    padding-top: 15px;
}

.home-baby .classlist .class:first-child {
    flex: 0 0 92%;
}

.home-safe {
    padding: 0 20px;
}

.home-safe .content {
    background: var(--bright-blue-color);
    border-radius: 2rem;
    padding: 50px 20px 20px;
}

.home-safe .cans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.home-safe .cans div {
    flex: 1;
}

.home-safe .cans img {
    border-radius: 20px;
}

.home-safe .cans p {
    font-size: 20px;
    font-weight: 500;
    color: var(--blue-color);
    text-align: center;
    padding-top: 15px;
}

.home-vision {
    padding-left: 20px;
    padding-right: 20px;
}

.home-vision .content {
    background: url(../images/homepage/vision_pc.webp) center right no-repeat;
    background-size: cover;
    border-radius: 2rem;
    height: 600px;
}

.home-vision .info {
    text-align: center;
    position: absolute;
    width: 600px;
    left: 0;
    top: calc(50% - 120px);
}

.home-vision .info h3 {
    line-height: 1.6em;
}

.home-vision .info p {
    font-size: 20px;
    line-height: 1.6em;
}

.home-why img {
    height: 140px;
    width: auto;
}

.home-why .info {
    border-radius: 2rem;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    background: var(--bright-blue-color);
}

.home-why .info p {
    text-align: left;
}

.home-why .info h4 {
    text-align: center;
    line-height: 1.6em;
    letter-spacing: 1px;
    color: var(--blue-color);
}

.home-why .info h4 b {
    font-size: 30px;
}

.home-why .info:first-child h4 {
    width: 55%;
    padding: 50px 0;
}

.home-why .info:first-child img {
    position: absolute;
    left: 55%;
    top: 50px;
}

.home-why .info:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.home-why .info:last-child div {
    flex: 1;
}

.home-why .info:last-child div:first-child {
    border-right: 2px dotted white;
}

.home-history {
    background: var(--blue-color);
    padding-left: 20px;
    padding-right: 20px;
}

.home-history h2 {
    color: white;
}

.home-history p {
    font-size: 18px;
}

.home-history .content {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
}

.home-history img {
    border-radius: 20px;
}

.home-history .info {
    flex: 0 0 60%;
}

.home-history ul {
    list-style: none;
    font-size: 18px;
    padding: 0;
}

.home-history ul li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 15px;
}

.home-history ul span {
    color: var(--blue-color);
    font-weight: 600;
    position: absolute;
    left: 0;
}

.home-history ul li b {
    color: var(--blue-color);
}

.home-history ul span b {
    color: white;
    font-weight: 600;
    background: var(--blue-color);
    border-radius: 5px;
    padding: 0 5px 5px;
}

.baby-class .classlist .class:first-child {
    flex: 0 0 92%;

}

.baby-class .firstclass {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.baby-class .firstclass div {
    flex: 1;
}

.baby-class .firstclass .pic-zoom {
    border-radius: 2rem 0 0 2rem;
}

.baby-class .firstclass .icon {
    height: 130px;
    width: auto;
    margin-bottom: 20px;
}

.blog-list h2 span {
    display: block;
    font-size: 20px;
    padding-top: 20px;
    color: var(--gray-color);
    letter-spacing: 2px;
    line-height: 1.4em;
}

.blog-list h4 {
    font-size: 20px;
    line-height: 1.4em;
}

.blog-list a {
    text-decoration: none;
    cursor: pointer;
}

.blog-list #sync2 .item {
    cursor: default;
}

.blog-list .Tab {
    padding-bottom: 100px;
}

.blog-list .tablinks {
    border-radius: 0;
    background: white;
    padding: 0;
    padding-top: 50px;
    box-shadow: none;
    cursor: default;
    border-bottom: 1px solid var(--middle-gray-color);
    display: flex;
}

.blog-list .tablink {
    flex: 1;
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--gray-color);
    background: white;
    border-radius: 0;
    border: 0;
    border-bottom: 3px solid white;
    box-shadow: none;
    margin: 0;
    padding: 15px 0;
    bottom: 1px;
    line-height: 1.2em;
}

.blog-list .tablink.active {
    color: var(--blue-color);
    border-bottom-color: var(--blue-color);
}

.blog-list .banner {
    padding-top: 30px;
}

.blog-list.banner {
    margin: 0 20px;
    padding-top: 0;
}

.blog-list.banner img {
    border-radius: 0 0 30px 30px;
}

.blog-list.banner .content {
    background: var(--bright-blue-color);
    border-radius: 30px;
    padding: 0;
}

.blog-list.banner h2 {
    padding-top: 40px;
}

.blog-post img {
    border-radius: 30px;
    margin-bottom: 20px;
}

.blog-post h3,
.blog-post h4 {
    color: var(--blue-color);
}

.blog-post p {
    font-size: 16px;
}

.contact-info .box {
    border: 2px solid #E1C991;
    border-radius: 30px;
    padding: 30px;
}

.contact-info h5 {
    color: var(--blue-color);
    margin-bottom: 20px;
}

.contact-info .box b {
    display: inline;
}

.contact-info p {
    line-height: 1.6em;
}

.contact-info h2 {
    font-size: 30px;
    text-align: left;
}

@media only screen and (min-width: 768px) {
    .owl-carousel .mobile {
        display: none !important;
    }
}

@media only screen and (max-width: 1020px) {
    .baby-class .pic-zoom img {
        height: 100%;
    }

    .baby-class h3 {
        font-size: 26px !important;
    }

    .baby-class .firstclass .icon {
        height: 80px;
    }

    .bt-gradient {
        padding: 10px 40px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 767px) {
    .owl-carousel .pc {
        display: none !important;
    }

    main h2 {
        letter-spacing: 3px;
        font-size: 30pt;
    }

    #sync2 {
        padding: 0 70px;
    }

    main button.owl-next:before,
    main button.owl-prev:before {
        width: 47px;
    }

    .home-baby .classlist .class:first-child,
    main .classlist .class {
        flex: 0 0 100%;
    }

    main h3 {
        font-size: 26px !important;
        letter-spacing: 0;
    }

    main .classlist h4 {
        height: auto;
        font-size: 20px;
        margin-bottom: 20px;
    }

    .home-store-list {
        gap: 1rem;
    }

    .home-store-list a {
        flex: 0 0 46%;
        font-size: 16px;
    }

    .home-store-list a i {
        right: 10px;
    }

    .home-safe .cans div {
        flex: 0 0 45%;
    }

    .home-safe .content {
        padding-top: 50px;
    }

    .home-vision .content {
        background: url(../images/homepage/vision_mobile.webp) center bottom no-repeat;
        background-size: cover;
        height: 600px;
    }

    .home-vision .info {
        width: 100%;
        top: 50px;
    }

    .home-vision .info p {
        font-size: 16px;
    }

    .home-why .info {
        padding: 20px;
    }

    .home-why .info:first-child h4 {
        width: 100%;
        font-size: 18px;
        padding: 0;
    }

    .home-why .info:first-child img {
        position: relative;
        left: 0;
        top: 0;
    }

    .home-why .info img {
        padding: 20px 0;
    }

    .home-why .info:last-child {
        padding-left: 0;
        padding-right: 0;
    }

    .home-why .info:last-child h4 {
        font-size: 16px;
    }

    .home-history .content {
        flex-wrap: wrap;
        padding: 20px;
    }

    .home-history .info {
        flex: 0 0 100%;
    }

    .contact-info,
    #motherly_cooking,
    .home-history,
    .home-why,
    .home-vision,
    .home-baby,
    .home-mom,
    .home-store,
    .home-class,
    .home-pro,
    .home-join {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-why,
    .home-baby,
    .home-join {
        padding-top: 0;
    }

    .blog-post,
    .blog-list {
        padding-top: 50px;
    }

    .blog-list .Tab {
        padding-bottom: 50px;
    }

    .baby-class .classlist .class:first-child {
        flex: 0 0 100%;
    }

    .baby-class .firstclass {
        display: block;
    }

    .baby-class .firstclass .pic-zoom {
        border-radius: 2rem 2rem 0 0;
    }

    .baby-class .firstclass .icon,
    .baby-class .firstclass br {
        display: none;
    }

    .baby-class .firstclass div:last-child {
        padding-bottom: 30px;
    }

    .baby-class .pic-zoom img {
        height: auto;
    }

    .blog-list #sync2 {
        margin-top: 0;
    }

    .blog-list .tablink,
    .blog-list h2 span {
        font-size: 16px;
    }

    .blog-list .tablinks {
        padding-top: 30px;
    }

    .blog-list.banner {
        margin-top: 20px;
    }

    .blog-list.banner h2 {
        padding: 20px 0;
    }
}