@import "../plugin/css/swiper-bundle.min.css" layer(plugin);

/* ========================= ========================= ========================= ========================= ========================= =========================
***
* please make sure all components css inside @layer components 
***
* please make sure all components css inside @layer components 
* please make sure all components css inside @layer components 
* Use CSS @layer
* Use CSS @layer
* Use CSS @layer
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
/* ========================= ========================= ========================= ========================= ========================= =========================
***
* use base.css to reset the browser style and style basic tag, some class cannot be classify also include in base css, color variable also set in base.css for global use
***
* then use @layer plugin to include all plugin related css
* then use @layer components to include all components such as button, modal, card, accordion, etc
* then use @layer layout to put style the layout. @layer layout also include header footer, mobile menu and body area styling
* then use @layer custom to put style for special styling
* then use @layer pages to put style for specific pages. eg index page has index.css with @layer pages
* then use @layer inline_style for inline_style class
* then use @layer media_query to put style for mobile and responsive design
* last use @layer print to put style for print version

* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules

* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
@layer components {

  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR swiper slider 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  .swiperhugecontainer {}

  .swiperbigcontainer {
    position: relative;

  }

  .swiper {
    max-width: 100vw;
  }

  .swiper_nav {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nownopagin .swiper_nav {
    display: none;
  }

  .swiperpaginwrapper {
    display: inline-block;
  }

  .swiper_nav .swiper-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .swiper-button-prev,
  .swiper-button-next {
    background: none;
    font-size: 0;
    display: inline-block;
    margin-top: 0;
    width: 1rem;
    aspect-ratio: 1 / 2.25;
  }

  .swiper-button-prev:before,
  .swiper-button-next:before {
    content: "";
    background-image: url("../images/icon/icon_prev2.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 100%;
    height: 100%;
    display: block;
  }

  .swiper-button-prev:before {
    transform: rotate(180deg);
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    content: "";
  }

  .swiper_nav .swiper-button-prev,
  .swiper_nav .swiper-button-next {
    position: static;
  }

  .swiper-button-pause {
    display: inline-block;
    position: relative;
    font-size: 0;
    vertical-align: middle;
    height: 1rem;
  }

  .swiper-button-pause:hover,
  .swiper-button-pause:focus {
    cursor: pointer;
  }

  .swiper-button-pause:before,
  .swiper-button-pause:after {
    content: "";
    width: 0.25rem;
    height: 1rem;
    display: inline-block;
    margin-left: 2.5px;
    margin-right: 2.5px;
    background-color: var(--black);
  }

  .paused .swiper-button-pause:before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.5rem 0 0.5rem 1rem;
    /*border-color: transparent transparent transparent #00335b;*/
    border-color: transparent transparent transparent #000;
    background-color: transparent;
    margin-top: 1px;
  }

  .paused .swiper-button-pause:after {
    display: none;
  }

  .swiper-pagination-horizontal .swiper-pagination-bullet {
    box-shadow: none;
    width: max(0.8rem, 12px);
    height: max(0.8rem, 12px);
    border: 2px solid var(--blue_400);
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 1;
  }

  .swiper-pagination-horizontal .swiper-pagination-bullet-active {
    background-color: var(--blue_400);
  }

  .swiper-fade .swiper-slide {
    opacity: 0 !important;
    /*transition: opacity 0.4s ease-in-out;*/
  }

  .swiper-fade .swiper-slide-active {
    opacity: 1 !important;
  }

  .indexswiper {}

  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR accordion 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR alert 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR badge 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR button 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  .btn1 * {
    min-width: 127px;
    background-color: #00806F;
    color: #fff;
    text-align: center;
    display: inline-block;
    font-size: 1rem;
    padding-top: 0.66rem;
    padding-bottom: 0.66rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: var(--borderradius1);
    border: 0;
    height: 100%;
    width: 100%;
  }

  .btn1 *:hover,
  .btn1 *:focus {
    cursor: pointer;
    background-color: var(--btn1_hover_bg_color);
  }

  .btn1.btn1_2 * {
    background-color: var(--btn1_2_bg_color);
    color: var(--btn1_2_text_color);
  }

  .btn1.btn1_2 *:hover,
  .btn1.btn1_2 *:focus {
    background-color: var(--btn1_2_hover_bg_color);
    text-decoration: none;
  }

  .cross_btn {
    margin-left: auto;
  }

  .cross_btn a {
    color: #fff;
    font-size: 1.125rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
  }

  .cross_btn a>span:first-child {
    display: inline-block;
    padding-right: 0.75rem;
  }

  .cross_btn a>span:last-child {
    position: relative;
    min-width: 16px;
    min-height: 16px;
    display: inline-block;
    font-size: 0;
  }

  .cross_btn a>span:last-child:before,
  .cross_btn a>span:last-child:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    width: 26px;
    height: 2px;
    background-color: #000;
  }

  .cross_btn a>span:last-child:before {
    transform: translate(0, -50%) rotate(45deg);
    margin-left: -2px;
  }

  .cross_btn a>span:last-child:after {
    transform: translate(0, -50%) rotate(-45deg);
    margin-left: -2px;
  }

  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR card 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR popup modal 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  .modal {
    position: fixed;
    z-index: 9000;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    pointer-events: none;
  }

  .modal_box {
    transition: all 0.4s ease-in-out;
    transform: translateY(30vh);
    opacity: 0;
    /*transform: none;*/
    width: min(calc(100% - 40px), 800px);
    max-height: 70vh;
    position: relative;
    border-radius: 0.5rem;
    top: auto;
    left: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.3rem;
    padding-bottom: 1.5rem;
    background-color: var(--white);
    display: none;
  }

  .modal_title {
    font-size: 1.5rem;
    font-weight: var(--font_weight_semi_bold);
    margin-bottom: 1rem;
  }

  .modal_box .modal_big_content {
    max-height: calc(80vh - 3rem);
    overflow-y: auto;
    font-size: 1.3rem;
  }

  .modal_box .modal_content:focus {
    outline: none;
  }

  .modal_box .close_wrapper {
    /* width: 100%; */
    position: absolute;
    right: 0;
    top: -2.25rem;
    /* background-color: var(--white); */
    /* border-radius: 50%; */
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal_box .close_wrapper a {
    display: inline-block;
    position: relative;
    font-size: 0;
    /* border-radius: 50%; */
    /* border: 2px solid #000; */
    width: 100%;
    height: 100%;
  }

  .modal_box .close_wrapper a:hover,
  .modal_box .close_wrapper a:focus {
    color: #a1fba3;
  }

  .modal_box .close_wrapper a:before,
  .modal_box .close_wrapper a:after {
    content: "";
    display: block;
    width: 80%;
    height: 2px;
    background-color: var(--white);
    top: 45%;
    position: absolute;
    left: 10%;
  }

  .modal_box .close_wrapper a:before {
    transform: rotate(45deg);
  }

  .modal_box .close_wrapper a:after {
    transform: rotate(-45deg);
  }

  .modelopen {
    overflow: hidden;
  }

  .show_modal_box .modal_box {
    display: block;
  }

  .modal.modalopen {

    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: all;
  }

  .modal.modalopen .modal_box {
    transform: translateY(0);
    opacity: 1;

  }

  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR pagination 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  .pager {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    font-size: 1.125rem;
  }

  .pager .number:not(.pre, .next, .pre2, .last),
  .pager :where(.pager-item, .pager-current) {
    padding: 0.2rem 0.4rem;

    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    text-align: center;
    align-content: center;

  }

  .pager>li:not(:last-child) {
    margin-right: 0.5rem;
  }

  .pager>li {
    margin-bottom: 0.5rem;
  }

  .pager :where(li.pager-current, .current) {
    background-color: var(--main_theme_color);
    color: #fff;
  }

  .pager .number input,
  .pager1 button {
    border: 0;
    padding: 0;
    color: inherit;
    background-color: transparent;
    font-family: var(--en_font_family);
    font-size: inherit;
    cursor: pointer;
  }

  .chinese .pager1 button {
    font-weight: bold;
  }

  .pager1 {
    font-size: 1.25rem;
    color: var(--main_theme_color);
  }

  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR preloader spinner 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  .preloader_wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white);
    z-index: 4000;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.7s ease;
  }

  .preloader_wrapper.removing {
    opacity: 0;
  }

  .preloadernotshow .preloader_wrapper {
    display: none;
  }

  .ellipsis {
    display: inline-block;
    position: relative;
    height: 40px;
  }

  .ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--main_theme_color);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }

  .ellipsis div:nth-child(1) {
    left: 8px;
    animation: ellipsis1 0.6s infinite;
  }

  .ellipsis div:nth-child(2) {
    left: 8px;
    animation: ellipsis2 0.6s infinite;
  }

  .ellipsis div:nth-child(3) {
    left: 32px;
    animation: ellipsis2 0.6s infinite;
  }

  .ellipsis div:nth-child(4) {
    left: 56px;
    animation: ellipsis3 0.6s infinite;
  }

  @keyframes ellipsis1 {
    0% {
      transform: scale(0);
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes ellipsis3 {
    0% {
      transform: scale(1);
    }

    100% {
      transform: scale(0);
    }
  }

  @keyframes ellipsis2 {
    0% {
      transform: translate(0, 0);
    }

    100% {
      transform: translate(24px, 0);
    }
  }

  .loading_text {
    font-size: 1.3rem;
    text-align: center;
    display: block;
    margin-top: 1.5rem;
    font-family: "Microsoft JhengHei", "微軟正黑體", "Arial", sans-serif;
    font-weight: 600;
  }

  @keyframes passing {
    0% {
      transform: translateX(-50%);
      opacity: 0;
    }

    50% {
      transform: translateX(0);
      opacity: 1;
    }

    100% {
      transform: translateX(50%);
      opacity: 0;
    }
  }

  .preloadernotshow .wrap {
    visibility: visible;
  }

  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR tab 
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  /* ========================= ========================= ========================= ========================= ========================= =========================
***
* SECTION FOR component table
***
* A paragraph with information
* that would be useful for someone
* who didn't write the code.
* The asterisks around the paragraph 
* help make it more readable.
***
 ========================= ========================= ========================= ========================= ========================= =========================*/
  .table_wrapper1 {
    position: relative;
  }


  .table_wrapper1 table {}

  .table_wrapper1 th {

    font-weight: 600;

  }

  .table_wrapper1 thead th {

    border: 1px solid #fff;
  }

  .table_wrapper1 th a {}

  .table_wrapper1 tbody :where(th, td) {

    padding: .25rem .5625rem;
  }

  .table_wrapper1 td {

    background-color: var(--yellow_100);
  }

  .table_wrapper1_2 td:nth-child(3) {
    background-color: #fee06e;
  }

  .table_wrapper1 :where(th, td) {
    /*text-align: center;*/
  }

  .table_wrapper1 :where(th, td) {
    border: 1px solid var(--light_grey_400);

  }

  .table_wrapper1 tbody tr:nth-child(even) td {}

  .table_wrapper2 tbody :where(th, td) {

    padding: .25rem .5625rem;
    vertical-align: top;
  }

  .table_wrapper2 td {}

  .table_wrapper2 :where(th, td) {
    /*text-align: center;*/
  }

  .table_wrapper2 :where(th, td) {
    border: 1px solid var(--light_grey_400);

  }

  .contact_us_table2 th:nth-child(1) {
    width: 170px;
    background-color: #fff;
  }

  .dataTbl td br {
    content: "";
    display: block;
    margin-bottom: 8px;
    /* More vertical gap between lines */
  }

  .dataTbl {
    margin: 10px 0;
  }



  /* Make table cells bigger */
  .dataTbl td,
  .dataTbl th {

    padding: 12px 15px;
    /* Bigger padding for larger cells */
    line-height: 1.8em;
    border: 1px solid #ccc;
    padding: 4px 9px 11.25px;

  }

  /* Style the support cell */
  .dataTbl td[colspan="3"] {
    vertical-align: top;
    /* Push text slightly higher */
  }

  /* Keep table borders visible and neat */
  .dataTbl {
    border-collapse: collapse;
    width: 100%;
    font-size: 1rem;

  }


  .cancer_prevention_and_support_services_table td,
  .cancer_prevention_and_support_services_table th {
    padding: 4px 9px;
    border: 1px solid #ccc;
    text-align: left;
    padding-bottom: 0.75em;
    vertical-align: top;
  }

  /* First row headers: 機構 / 電話 */
  .cancer_prevention_and_support_services_table tr:first-child th {
    padding: 4px 9px 17px !important;
    text-align: center;

  }

  /* First column width */
  .cancer_prevention_and_support_services_table th {
    width: 300px;
  }

  /* Second column width + yellow background */
  .cancer_prevention_and_support_services_table td {
    width: 273px;
    background-color: rgb(255, 255, 225);
  }

  /**/
  .notification {
    border: 1px solid #000;
    font-size: 1.8125rem;
    background: #FBEDE8;
  }

  /**/
  .superscript_cont {
    font-size: .75rem;
  }

  /**/
  .dot_box>* {
    padding-top: 0.2rem;
    padding-bottom: 0.625rem;
    border-bottom: var(--dot_border);
  }

  .dot_box>*:first-child {
    padding-left: 0.5rem;
  }
}

@layer pages {
  .collect_ss_table img {
    max-width: 180px;
  }
}

/* ========================= ========================= ========================= ========================= ========================= =========================
***
* please make sure all components css inside @layer components 
***
* please make sure all components css inside @layer components 
* please make sure all components css inside @layer components 
* Use CSS @layer
* Use CSS @layer
* Use CSS @layer
***
 ========================= ========================= ========================= ========================= ========================= =========================*/