body {
    padding-top: 0;
}
.mainTop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition:
        background-color 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: none;
    box-shadow: none;
    backdrop-filter: unset;
}

.mainBanner {
    width: 100%;
    height: 100vh;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bannerContent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1;
    padding-top: 70vh;
}

.bannerContent {
    position: relative;
    z-index: 2;
}

.bannerContent h1 {
    color: var(--yellow);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease;
}

.bannerContent p {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.main-products {
    background-color: var(--blue);
    background-image: url("/images/pro_bg.png");
    background-size: 60px auto;
    background-position: center 80px;
    background-repeat: repeat-x;
}

.main-products h2 {
    color: white;
    text-align: center;
    font-weight: normal;
    padding: 20px 0;
}

.main-pro-cat .container {
    display: flex;
    /* background-image: url("/images/mainP_bg.png"); */
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.main-pro-cat .m-p-g-p {
    min-height: 150px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 180px auto;
    flex: 1;
    padding-top: 160px;
    text-align: center;
    transition: all 0.2s ease-out;
    padding-bottom: 20px;
}

.main-pro-cat .m-p-g-p a,
.main-pro-cat .m-p-g-p a:link,
.main-pro-cat .m-p-g-p a:visited {
    color: white;
    transition: all 0.2s ease-in-out;
    text-shadow:
        0 0 5px #2f5a92,
        0 0 10px #3f5a80,
        2px 2px 2px rgba(0, 0, 0, 0.3);
}

.main-pro-cat .m-p-g-p a:hover {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.main-branch {
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-branch .container {
    display: flex;
    align-items: center;
}

.main-branch .caption {
    width: 35%;
    padding: 10px;
    padding-right: 70px;
    background-image: url("/images/icon/location.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 50px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.main-branch .states-wrapper {
    position: relative;
    flex-grow: 1;
    min-width: 0;
}

.main-branch .states {
    flex-direction: row;
    gap: 28px;
    padding: 20px;
    position: relative;
    align-items: center;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.main-branch .states::-webkit-scrollbar {
    height: 0;
}
.main-branch .states::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.main-branch .states::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.main-branch .state-card {
    flex-shrink: 0;
    width: 180px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
}

.main-branch .state-img {
    width: 100%;
    aspect-ratio: 4 / 4;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.main-branch .state-card:hover .state-img {
    transform: scale(1.08);
}

.states-wrapper.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.states-wrapper .navBTn {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100px;
    z-index: 10;
    opacity: 0;
    transition: all 0.2s ease-in;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    background-image: url(/images/arrow.png);
    border-radius: 5px;
    transition: all 0.2s ease-out;
}

.states-wrapper .rightBTN {
    right: 0;
    transform: scaleX(-1);
}

.states-wrapper .leftBTN {
    left: 0;
}

.states-wrapper:hover .navBTn:not(.disabled) {
    opacity: 1;
}

/* ======================================================================================== */

.main-article {
    background-color: #cecfd2;
    padding: 50px;
}

.main-article .container {
    display: flex;
    flex-direction: row;
}

.main-article .cover {
    width: 45%;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 30px;
}

.main-article .cover div {
    background-image: url(/images/mainArticle.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    aspect-ratio: 4/4;
    width: 100%;
}

.main-article .articles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 15%;
    gap: 10px;
    flex-grow: 1;
}

.main-article .articles h2 {
    margin-bottom: 20px;
}

.main-article .articles .btnHolder {
    margin-top: 30px;
    text-align: left;
}

.main-article .articles a,
.main-article .articles a:link,
.main-article .articles a:visited {
    color: var(--black);
}
.mainEvents {
    padding: 0 !important;
}

.mainEvents .container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: space-between;
}

.mainEvents .container > div {
    background-color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 20px;
    align-items: center;
    padding: 2vw 5vw;
}
.mainEvents .container,
.mainEvents .container h3 {
    color: var(--purple);
    font-size: 1.8rem;
    font-weight: normal;
}

.mainEvents .container div img {
    width: 80%;
    aspect-ratio: 4/4;
    margin-top: 20px;
}

.mainNews {
    background-color: var(--blue);
    padding: 3rem 0;
    margin-bottom: 0;
    margin-top: 0;
}

.mainNews .news-card {
    display: flex;
    flex-direction: row;
    gap: 28px;
    flex-shrink: 0;
    width: auto;
}
.mainNews .news-card .news-link {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 400px;
    transition: all 0.2s ease-out;
    flex-shrink: 0;
}

.mainNews .news-card .news-link:hover {
    transform: scale(1.1);
}

.mainNews .news-link .news-img {
    width: 130px;
    aspect-ratio: 4/4;
}

.mainNews .news-link .newContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mainNews .news-link h5 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    color: var(--lightGray);
    font-weight: normal;
}

.mainNews .news-link span {
    color: var(--lightGray);
    font-weight: normal;
    font-size: 0.6rem;
    text-align: left;
}

.mainNews.main-branch > div > h2 {
    color: var(--yellow);
    margin-bottom: 20px;
}

.main-branch .states-wrapper .navBTn {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}
.mainNews .navBTn {
    top: 70px;
}

.mainNews .btnHolder {
    text-align: left;
    display: block;
}
.mainNews .btnHolder .btn {
    display: inline-block;
}

/* ==================================================== */

@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .main-pro-cat .m-p-g-p {
        min-height: 150px;
        padding-top: 140px;
        background-size: contain;
        background-position: center top;
    }
    .m-p-g-p:hover {
        transform: scale(1.05);
        padding-top: 115px;
    }
    .main-article .articles {
        padding: 30px 5%;
    }
    .main-pro-cat .m-p-g-p > * {
        font-size: 0.8rem;
    }

}

@media only screen and (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding: 0;
        margin: 0 auto;
        overflow: hidden;
    }

    .main-products {
        background-repeat: repeat;
    }

    .main-pro-cat .container {
        background-image: none;
        flex-direction: column;
    }
    .main-pro-cat .m-p-g-p {
        padding: 10px;
        min-height: 20vh;
        margin: 10px 40px;
        background-size: 21vh;
        background-position: center -3vh;
        padding-top: 15vh;
    }
    .main-pro-cat .m-p-g-p > * {
        font-size: 1rem;
    }
    .main-branch .container {
        flex-direction: column;
    }
    .main-branch .container > div {
        max-width: 98vw;
    }
    .main-branch .container .caption {
        width: 90vw;
        background-image: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-branch .container .caption h3 {
        padding-right: 30px;
        background-image: url(/images/icon/location.png);
        background-position: right center;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .main-article .container {
        flex-direction: column;
    }
    .main-article .cover {
        width: 80%;
        margin: 0 auto;
    }
    .main-article .articles {
        max-width: 95vw;
        padding: 30px 1%;
        padding: 0;
        justify-content: center;
    }

    .main-article .articles > * {
        text-align: center;
    }

    .main-article .articles a:not(:last-child) {
        display: none;
    }

    .main-article .articles .btnHolder {
        text-align: center;
        padding: 10px;
        margin: 0;
    }

    .main-article .articles h2 {
        margin: 0;
    }

    .states-wrapper.container .states {
        max-width: 440px;
    }

    .mainNews.main-branch .btnHolder.container {
        text-align: center;
    }


}
