/*----------------------------
(無) < 576px	 手機（直向）
sm	 ≥ 576px	 手機（橫向）
md	 ≥ 768px	 平板
lg	 ≥ 992px	 筆電、小桌機
xl	 ≥ 1200px    桌機
xxl	 ≥ 1400px    大螢幕桌機
----------------------------*/


/* @group [RWD xl] ----------------------------------------------------------------------------------------*/
@media (max-width: 1200px) {
    .anchor_header,
    .anchor_non_header {
        color: var(--textcolor);
        top: -2px;
        left: 4px;
    }

    .gsc-input-box {
        width: 100%;
    }

    .wrapper {
        width: calc(100% - 32px);
    }

    /* Responsive tabs */
    .news-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .service-tabs .nav-link {
        padding: 10px 20px;
        font-size: 1.25rem;
    }

    /* Carousel controls smaller on mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px !important;
    }
    .btn-icon{
        padding: 10px 28px !important;
    }
}

/* @group [RWD lg]----------------------------------------------------------------------------------------*/
@media (max-width: 991px) {
    .service-card {
        padding: 16px 12px;
        min-height: 110px;
    }

    .service-icon {
        width: 100px;
        height: 67px;
    }

    .index-hero-carousel {
        border-top-width: 10px;
        border-bottom-width: 10px;
    }

    .img-page-banner-content {
        position: relative;
        height: 110px;
    }

    .page-banner .wrapper {
        height: 140px;
    }

    /* Swiper 平板樣式 */
    .index-external-links .linksSwiper {
        padding: 0 40px;
    }

    .index-external-links .swiper-button-prev,
    .index-external-links .swiper-button-next {
        width: 35px;
    }

    .table-list .list-title .text-truncate {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        white-space: normal !important;
    }
}

/* @group [RWD md]----------------------------------------------------------------------------------------*/
@media (max-width: 768px) {
    .sidebar-accordion .accordion-button,
    .sidebar-direct-tab {
        padding: 12px 8px;
        border-radius: 12px !important;
    }

    .content-body {
        padding: 16px 16px 32px 16px;
        border-radius: 0 0 16px 16px;
    }

    .table > :not(caption) > * > *,
    .btn-table {
        padding: 12px;
    }

    .table-list .list-tile {
        max-width: none !important;
        white-space: normal !important;
    }

    .table-list .list-tile a {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        white-space: normal !important;
    }

    .article-content {
        padding: 16px;
    }

    button.w-25,
    a.w-25{
        width: 100% !important;
    }

}

/* @group [RWD sm]----------------------------------------------------------------------------------------*/
@media (max-width: 575px) {
    .index-hero-carousel .carousel-item img {
        height: 180px;
        min-height: 180px;
        object-fit: cover;
        object-position: center;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 24px;
        height: 24px;
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }

    .index-external-links .swiper-button-prev,
    .index-external-links .swiper-button-next {
        width: 30px;
    }

    .index-external-links .swiper-button-prev:after,
    .index-external-links .swiper-button-next:after {
        font-size: 1rem;
    }

    .index-external-links .linksSwiper {
        padding: 0 30px;
    }

    .form-select.w-select-date{
        max-width: 96px;
    }
}


