 /* ========================= ========================= ========================= ========================= ========================= =========================
***
* 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 pages {
     .my_select {
         max-width: 100%;
         width: 250px;
     }

     .main_main_index .content_area {
         padding-bottom: 0;
         align-content: center;
     }

     .main_main_index .content_area_inner {
         padding-top: 2rem;
     }

     .main_main_index .main_main_title {
         color: #000;
         font-size: 2rem;
         line-height: 1.2;
         text-align: center;
         margin-top: 0;
         margin-bottom: 1.2rem;
     }

     .main_main_index .main_main_banner {
         display: grid;
         grid-template-columns: repeat(2, 1fr);
         justify-content: center;
         align-items: flex-end;
     }

     .main_main_index .my_footer {
         background-color: var(--blue_300);
     }
 }

 @layer pages {
     .content_area .section {
         width: 95%;
         margin-left: auto;
         margin-right: auto;
     }

     .main_slider_row {
         display: flex;
     }

     .main_slider_row :where(.swiperhugecontainer, .swiperbigcontainer, .swiper) {
         height: 100%;
     }

     .main_slider_row .swiper-slide a {
         width: 100%;
         height: 100%;
         display: block;
     }

     .main_slider_row .swiper-slide img {
         width: 100%;
         height: 100%;
         object-fit: cover;
         object-position: left;
     }

     .main_slider_row>*:nth-child(1) {
         width: calc(100% - 267px);
         position: relative;
     }


     .main_slider_row>*:nth-child(2) {
         width: 267px;
     }

     .main_slider_row>*:nth-child(2) img {
         width: 100%;
     }

     .main_slider_row .swiper_nav {
         position: absolute;
         bottom: 1rem;
         z-index: 100;
         left: 50%;
         transform: translateX(-50%);
     }

     .main_slider_row :where(.swiper-button-next, .swiper-button-prev) {
         filter: var(--blue_300_filter);
         width: 1.5rem;
         top:50%;
         transform: translateY(-50%);
     }

     .main_slider_row .swiper-button-pause {
         width: 1.75rem;
         height: 1.75rem;
         background-color: #fbbe77;
         border: 1px solid #ff9a68;
         border-radius: 0.5rem;
         position: absolute;
         right: 1rem;
         bottom: 1rem;
         z-index: 500;
         align-items: center;
         justify-content: center;
         display: flex;
     }

     .main_slider_row .paused .swiper-button-pause:before {
         transform: scale(0.7);
     }


     .card_row {
         display: grid;
         grid-template-columns: repeat(3, 1fr);
         column-gap: 1.4rem;
         justify-content: center;
         width: 75%;
         margin-left: auto;
         margin-right: auto;

     }

     .card_row>* {

         display: grid;
         grid-template-rows: subgrid;
         grid-row: span 3;
         font-size: 1.5rem;
         font-weight: bold;
         margin-bottom: 1rem;
     }



     .card_row .card_title {
         color: #fff;
         padding-top: 0.3rem;
         padding-bottom: 0.3rem;
         background-color: var(--main_theme_color);
         align-content: center;

     }

     .card_row>*>* {
         text-align: center;

     }

     .card_row .card1 img {
         width: 100%;
     }


     .en .card_row>* {
         font-size: 1rem;
     }

     .en .card_row .card_title {
         line-height: 1.2;
     }

     .home_search_head {
         padding-top: 1rem;
         padding-left: 1rem;
         padding-bottom: 1rem;
         padding-right: 1rem;
         background-color: var(--home_search_head_color);
         font-weight: bold;
         color: #fff;
         grid-area: head;
         font-size: 1.8rem;
     }

     .home_search_top_mid {
         --my_border: clamp(2px, 1vw, 9px) solid var(--home_search_head_color);
         display: grid;
         grid-template-areas: "head head" "search_side news_side";
         grid-template-columns: min(28.75rem, 50%) 1fr;
         column-gap: 2rem;
         border-left: var(--my_border);
         border-right: var(--my_border);
         border-bottom: var(--my_border);
     }

     .home_search_top_mid .region-content-secondrow:nth-child(2) {
         grid-area: search_side;
         margin-top: max(1rem, 2vw);
         padding-left: max(1rem, 3.25vw);
         border-right: 2px solid #808080;
         padding-right: max(1rem, 2vw);
         margin-bottom: max(1rem, 2vw);
     }


     .home_search_top_mid .region-content-secondrow:nth-child(3) {
         grid-area: news_side;
         margin-top: max(1rem, 2vw);
         padding-right: max(1rem, 3.25vw);
         margin-bottom: max(1rem, 2vw);
     }

     .home_search_top_mid h2 {
         margin-top: 0;

     }

     .scroll:has(.news_record) {
         max-height: 316px;
         overflow-y: auto;
     }

     .banner_section h2 {
         position: absolute;
         clip: rect(1px 1px 1px 1px);
         clip: rect(1px, 1px, 1px, 1px);
         overflow: hidden;
         height: 1px;
     }

     .videobox_list {
         padding-left: 0;
         margin-top: 0;
         margin-bottom: 0;
         display: grid;
         grid-template-columns: 1fr max-content;
         column-gap: 0.75rem;
         padding: 1rem;
         border: 1px solid var(--light_grey_300);
         font-size: 1.2rem;

     }

     .videobox_list>li {
         list-style: none;
         display: grid;
         grid-template-columns: subgrid;
         grid-column: span 2;


     }

     .videobox_list>li:not(:last-child) {
         padding-bottom: 0.5rem;
         border-bottom: 1px solid var(--light_grey_300);
     }

     .videolink a {
         display: flex;
         align-items: center;
         column-gap: 0.5rem;
     }

     .video_td {
         border-right: 1px solid var(--light_grey_300);
         color: #000;
     }

     .region2 {

         margin-bottom: 1rem;
         display: grid;
         grid-template-columns: 1fr 32rem;
         column-gap: 3rem;
         row-gap: 1.2rem;
     }

     .public h2 {
         color: var(--main_theme_color);
         font-weight: 400;
     }

     .videoimg_index_text {
         padding-left: 3rem;
     }

     .videoimg_index_text h2 {
         margin-bottom: 0.2rem;
     }

     .home_search_btn_wrap {
         width: min(428px, 100%);
         position: relative;
         background-color: var(--blue_500);
         overflow: hidden;
         border-radius: 1rem;
         border: 2px solid var(--blue_500);
         display: flex;
         align-items: center;
         justify-content: flex-end;
         padding-right: 0.5rem;
     }

     .home_search_btn_wrap::before {
         content: '';
         position: absolute;
         width: 100%;
         height: 50%;
         top: 0;
         left: 0;
         background-color: #4797d0;
         opacity: 0.7;
     }

     .home_search_btn_wrap input {
         display: block;
         width: 100%;
         color: #fff;
         border: 0;

         font-size: 1.1rem;
         padding-top: 0.25rem;
         padding-bottom: 0.25rem;
         padding-left: 1rem;
         padding-right: 1rem;
         text-align: left;
         background-color: transparent;
         position: relative;
         z-index: 10;

     }

     .home_search_btn_wrap:after {
         content: '';
         display: block;
         width: 0.7rem;

         aspect-ratio: 1 / 1.5;
         background-image: url('../images/icon/icon_prev.svg');
         background-position: center;
         background-repeat: no-repeat;
         background-size: contain;
         filter: var(--white_filter);
         transform: rotate(180deg);
     }

     label {
         display: block;
         font-weight: bold;
         font-size: 1.3rem;
         color: #000;
     }

     .block-system {
         padding-top: 1.3rem;
     }
 }

 @layer pages {
     .service h2 {
         color: var(--pink_400);

     }

     .service .content_area .section {
         width: 92%;
     }

     .theme_box_section {
         display: grid;
         grid-template-columns: repeat(2, 1fr);
         column-gap: 1rem;
         row-gap: 1rem;
         justify-content: center;
         padding-top: 2.5rem;
     }

     .theme_box {
         border: 9px solid var(--theme_border_color);
         border-radius: 2.5rem;
         overflow: hidden;
         display: grid;
         grid-template-rows: max-content 1fr;
         position: relative;
     }

     .theme_box::before {
         content: '';
         display: block;
         width: 100%;
         height: 100%;
         position: absolute;
         top: 0;
         left: 0;
         --shadow: 0px 0px 9px 6px rgba(32, 32, 32, 0.75) inset;
         box-shadow: var(--shadow);
         -webkit-box-shadow: var(--shadow);
         -moz-box-shadow: var(--shadow);
         pointer-events: none;
         border-radius: 2rem;
     }

     .theme_box .theme_title {
         font-size: 1.3rem;
         font-weight: bold;
         color: #fff;
         text-align: center;
         padding-top: 0.75rem;
         padding-bottom: 0.75rem;
         padding-left: 1rem;
         padding-right: 1rem;
         background-color: var(--theme_box_bg_color);

     }

     .theme_box1 {
         --theme_border_color: var(--pink_200);
         --theme_box_bg_color: var(--pink_400);
         --theme_box_link_bg_color: #fff;
         --theme_box_link_hover_bg_color: #fad5e5;
         --icon_arrow: url('../images/index/arrow_gd-01.png');
     }

     .theme_box2 {
         --theme_border_color: #da67ea;
         --theme_box_bg_color: #b500cb;
         --theme_box_link_bg_color: #fff;
         --theme_box_link_hover_bg_color: #dfcce4;
         --icon_arrow: url('../images/index/arrow_cd-01.png');
     }

     .theme_list {
         list-style: none;
         padding: 1rem;
         margin: 0;
         background-color: var(--light_grey_200);
     }

     .theme_list li:not(:last-child) {
         margin-bottom: 1rem;
     }

     .theme_list a {
         --icon_width: clamp(3rem, 5.1vw, 4.5rem);
         display: grid;
         grid-template-columns: var(--icon_width) 1fr max-content;
         align-items: center;
         column-gap: 1rem;
         color: #000;
         background-color: var(--theme_box_link_bg_color);
         border-radius: 0.35rem;
         padding-left: 1.5rem;
         padding-top: 1.3em;
         padding-bottom: 1.3rem;
         padding-right: 1rem;
         font-size: 1.2rem;
     }

     .theme_list a:hover,
     .theme_list a:focus {
         background-color: var(--theme_box_link_hover_bg_color);
     }

     .theme_list a::before {
         content: '';
         width: var(--icon_width);
         height: var(--icon_width);
         background-size: contain;
         background-repeat: no-repeat;
         background-position: center;
         display: block;
     }

     .theme_list a:has(.pcd_div_1)::before {
         background-image: url('../images/index/btn_gd-01.png');
     }

     .theme_list a:has(.pcd_div_2)::before {
         background-image: url('../images/index/btn_gd-02.png');
     }

     .theme_list a:has(.pcd_div_3)::before {
         background-image: url('../images/index/btn_gd-03.png');
     }

     .theme_list a:has(.pcd_div_4)::before {
         background-image: url('../images/index/btn_gd-04.png');
     }

     .theme_list a:has(.cs_div_1)::before {
         background-image: url('../images/index/btn_cd-01.png');
     }

     .theme_list a:has(.cs_div_2)::before {
         background-image: url('../images/index/btn_cd-02.png');
     }

     .theme_list a:has(.cs_div_3)::before {
         background-image: url('../images/index/btn_cd-03.png');
     }

     .theme_list a:has(.cs_div_4)::before {
         background-image: url('../images/index/btn_cd-02.png');
     }

     .theme_list a::after {
         content: '';
         width: 1.5rem;
         height: 1.5rem;
         background-size: contain;
         background-repeat: no-repeat;
         background-position: center;
         background-image: var(--icon_arrow);
         display: block;
     }

     .cs_title,
     .pcd_title {
         line-height: 1.2;
     }
 }

 @layer pages {
     .second_section {
         display: grid;
         grid-template-columns: 1fr 267px;
         margin-top: .5rem;
         margin-bottom: .5rem;
         row-gap: 1.3rem;
     }

     .news_section {
         padding-left: 5%;
         padding-right: 5%;
         padding-bottom: 1rem;
         display: grid;
         grid-template-rows: max-content 1fr;
         background-color: var(--light_grey_200);
     }

     .scroll2 {
         max-height: 300px;
         overflow-y: auto;
     }

     .service .news_record {
         grid-template-columns: 24% 1fr;
     }

     .service .newsUrl {
         font-weight: bold;
     }

     .service .newsUrl a {
         color: #000;
     }

     .newsUrl {
         font-weight: bold;
     }

     .banner3 a {
         height: 100%;
         display: block;
         width: 100%;
     }

     .banner3 img {
         height: 100%;
         max-width: none;
         object-fit: cover;
         width: 100%;
     }
 }

 @layer media_query {
     @media(max-width: 1024px) {
         .card_row {
             grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
             width: auto;
         }

         .region2 {
             grid-template-columns: repeat(2, 1fr);
         }

         .main_slider_row {
             flex-wrap: wrap;
             max-width: calc(100vw - 2rem);
         }

         .main_slider_row>*:nth-child(1) {
             width: 100%;
         }

         .main_slider_row>*:nth-child(2) {
             width: auto;
         }
     }

     @media(max-width: 767px) {
         .region2 {
             grid-template-columns: 1fr;
         }

         .home_search_top_mid {
             grid-template-areas: "head head" "search_side search_side" "news_side news_side";
             grid-template-columns: 1fr;
         }

         .home_search_top_mid .region-content-secondrow:nth-child(2) {
             border-right: 0;
         }

         .home_search_top_mid .region-content-secondrow:nth-child(3) {
             padding-left: 1rem;
         }

         .videoimg_index_text {
             padding-left: 0;
         }
     }
 }

 @layer media_query {

     @media(max-width: 1024px) {

         .main_main_index .main_main_banner {
             grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
         }

         .main_main_index .main_main_banner a {
             display: block;
             text-align: center;
         }
     }
 }



 @layer media_query {
     @media(max-width: 1024px) {
         .service .content_area .section {
             width: 100%;
             padding-left: 1rem;
             padding-right: 1rem
         }

         .theme_box_section {
             grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
         }

         .second_section {
             grid-template-columns: 1fr;
         }

         .banner3 img {
             width: auto;
             height: auto;
            max-width: 100%;
            object-fit: unset;
         }


     }
 }