@media screen and (max-width: 1400px) {
  .template-C ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
  }

  ul#main-menu li a {
    font-size: 16px;
  }

  #banner_title h1,
  .banner_title h1,
  #nonbanner_title h1 {
    padding: 250px 0 50px 2.5%;

  }
}
@media screen and (max-width: 1150px) {
	  ul#main-menu li a {
    font-size: 14px;
  }
}

@media screen and (max-width: 960px) {
  #logo img {
    max-height: 60px;
  }
ul#main-menu li ul li a {
    border-bottom: 0;
}
  ul#main-menu li a {
    font-size: 18px;
  }

.swiper {
  padding: 40px 0 0 0 !important;
}
.swiper-button-next, .swiper-button-prev{ top:65% !important}
.template-E ul li b {
  font-size: 26px;
}

 .video_content , .mute_content {
    bottom: 0 !important;
  }
#lang{ margin:0 10px 0 0 }

#lang > button {
  background: url(../images/web/i_langb.png) no-repeat #7e1b29;
  background-position: 5px 50%;
  background-size: auto 15px;
  padding: 10px 10px 10px 25px;
  border-radius: 32px;
  font-size: 12px;
  line-height: 15px;
}
#lang ul li a {
  font-size: 12px !important;
  line-height: 15px;
}
#block-olivero-page-title{ background:#005436 !important}
ul#main-menu li ul li + li {border-bottom: 0px solid #ddd;}
  
#block-olivero-page-title .title {
  padding: 100px 0;
  text-align: center;
  color: #fff;
  bottom: -40px; font-size:26px; 
}

#block-olivero-page-title{ padding:0}
#block-olivero-page-title .banner_title {
    height: 150px;opacity: .3;
    width: 100%;
  }
  .site-branding {
    margin-left: 0;
    padding: 5px 0 5px 5px;
    align-items: center;
  }

  #banner_title::after,
  .banner_title::after,
  #nonbanner_title::after {

    left: -100px;
    background-size: auto 85%;
  }

  .region--secondary-menu {
    justify-content: space-between;
  }

  subjectmenu ul li {
    margin: 0 2px;
  }

  .subjectmenu ul {
    padding: 10px 5px;
  }

  .page-node .region--hero {
    margin-bottom: 20px;
  }

  .news-card .box_day {
    top: 40px;
  }

  html,
  body {
    font-size: 16px;
    line-height: 28px;
  }

  .screen {
    padding: 0 15px;
  }

  #header {
    min-height: 50px;
    z-index: 10
  }

  .menu_arrow ul::before {
    display: none;
  }

  .right_top {
    margin-right: 10px;
    width: auto;
    margin-left: auto
  }

  .bg_eclass {
    margin-top: 20px;
  }

  #block_latest-video,
  #block_latest-news,
  .bg_eclass {
    width: 100%
  }

  .ss_logo {
    width: 15%;
    margin-right: 5%;
  }

  .contact_info {
    width: 100%
  }

  #main-menu {
    position: fixed !important;
    top: 0;
    background: url(../images/web/bg_ss_m.png) #052c1e  right bottom !important; background-size:cover;
   
    padding: 30px 10px;
    bottom: 0;
    width: 100%;
    transition: all 0.5s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 12;
    transform: translateX(-100%);
  }

  #menu-mask {
    display: none;
    /* 默认不显示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 黑色半透明 */
    z-index: 2;
    /* 确保遮罩层位于其他内容上方 */
  }

  #main-menu-state:checked~.header_top,
  #main-menu.open~.header_top,
  body:has(#main-menu.open) .header_top {
    transform: translateX(0);
  }

  .contact_area .footer_logo {
    display: none
  }

  .header_top {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    z-index: 13;
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    height: auto;
  }

  #block_latest-news {
    padding: 30px 0;
  }

  #block_latest-news .view-more {
    top: 0px;
  }

  ul#main-menu li a {
    color: #fff;
  }

  #main-menu.open {
    transform: translateX(0);
  }

  .home_zoneC {
    padding: 50px 0 80px 0;
  }

  #lang {
    margin-bottom: 5px;
  }

  .region--secondary-menu {
    display: block;
  }

  .cd-top {
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .slider-slogan {
    bottom: 10%;
  }

  .slider-slogan .slogan_text {
    font-size: 1.45em;
    padding: 0.45em;
    line-height: 1.6em;
  }

  .breadcrumb__content {
    margin: 0
  }

  .breadcrumb::after {
    display: none
  }

  .Block_A ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 2%;
  }

  .template-A ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 2%;
  }

  .template-B ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 2%;
  }

  .template-C ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 2%;
  }


  h1 {
    font-size: 30px;
    line-height: 38px;
  }

  h2 {
    font-size: 26px;
    line-height: 34px;
  }

  h3 {
    font-size: 21px;
    line-height: 30px;
  }

  h4 {
    font-size: 21px;
    line-height: 30px;
  }

  h5 {
    font-size: 21px;
    line-height: 30px;
  }

  h6 {
    font-size: 21px;
    line-height: 30px;
  }

  .boxing .title,
  #main_content h4 {
    font-size: 21px;
    line-height: 30px;
  }

  .sidebar-nav .metismenu,
  .sub_heading {
   display: block !important;
  }

  .sidebar-nav .metismenu,.sidebar-nav .metismenu >*{
    border-radius: 0 !important;
  }
  .sidebar-nav .metismenu > li:not(:last-child){
    padding: 0 !important;
  }

  .home_zoneB {
    padding: 50px  0;
  }

  #block-sidebar-nav h2 {
    padding: 15px 0
  }

  #main_content {
    width: 90%;
    margin: 0 5%;
  }

  #sidebar-nav {
    width: 100%
  }

  .useful-links ul {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
  }

  footer .copyright,
  footer .power {
    text-align: center;
    width: 100%;
    float: none;
  }

  footer {
    padding: 30px 0;
  }

  .list-item .content {
    flex-direction: column;
    padding: 15px 0;
  }

  .list-item .content b {
    text-align: center
  }

  .contact_info ul li {
    margin: 0
  }

  .contact_info ul li+li {
    width: 100%;
  }

  .contact_info ul ul li+li {
    width: auto;
  }

  .contact_area::before {
    display: none
  }

  .Block_A ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 2%;
  }

  .slider-slogan {
    bottom: 10%;
  }

  .slider-slogan .slogan_text {
    font-size: 1.4em;
    padding: 0.25em;
    line-height: 1.6em;
  }

  #block-olivero-breadcrumbs {
    margin-bottom: 0
  }

  .sitemap-item ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }


  .template-A ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 2%;
    display: list-item;
    padding-bottom: 50px;
  }

  .template-B ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 2%;
    display: list-item;
    padding-bottom: 50px;
  }

  .template-C ul {
    grid-template-columns: repeat(1, 1fr);
    gap: 2%;
    display: list-item;
    padding-bottom: 50px;
  }

  .news-card a {
    overflow: hidden;
    display: block;
  }

  .region--breadcrumb {
    margin: 0;
    padding: 0;
  }

  #page time {
    display: inline-flex;
    margin: 0 auto;
  }

  .button_right {
    position: fixed;
    /* 固定在螢幕底部 */
    top: auto;
    /* 取消電腦版的垂直居中 */
    bottom: 0;
    /* 貼齊底部 */
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    /* 取消 translateY 位移 */
    z-index: 2;
    /* 確保按鈕處於最上層 */
    border: none;
    border-top: 1px solid #1486ad;
    /* 改為頂部邊框分隔頁面內容 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    /* 加入淡淡的陰影增加層次感 */
    background: #fff;
  }

  #right_media {
    display: flex;
    flex-direction: row;
    /* 由直排改為橫排 */
    width: 100%;
    justify-content: space-around;
    align-items: center;
  }

  #right_media li {
    flex: 1;
    /* 4 個按鈕平均分配寬度 */
    display: flex;
  }

  #right_media li a {
    width: 100%;
    /* 寬度撐滿每個按鈕單元格 */
    height: 56px;
    /* 手機版適當縮小高度，避免佔用過多內容空間 */
    padding: 6px 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* 移除電腦版的上下邊框，改為左右按鈕之間的細分隔線 */
  #right_media li+li a {
    border-top: none;
    border-left: 1px solid rgba(20, 134, 173, 0.2);
  }

  /* 調整 Lordicon 圖標在手機版的大小 */
  #right_media lord-icon {
    width: 24px;
    height: 24px;
  }

  #right_media a p {
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
  }

  .breadcrumb__list {
    padding: 0px;
    margin: 0;
  }

  .breadcrumb {
    margin: 0 0 30px 0;
    padding: 0px;
  }

  .category ul li a {
    padding: 5px 10px;
    font-size: 1.1em;
    margin: 0 10px;
  }

  .category {
    float: none;
    text-align: center;
  }

  #header .screen {
    padding: 0 5px 0 10px;
  }

  .subjectmenu ul li {
    margin: 2px;
  }



  .banner_title h1 {
    padding: 50px 0 20px 5%;
    margin: 0;
    z-index: 1;
    opacity: 0;
  }

  .banner_title h1::before {
    left: -46%;
    width: 50%;
    height: 1px;
    bottom: 30px;
  }

  .banner_title::afterr {
    background-size: 70% auto
  }

  #nonbanner_title {
    background: url(../images/web/bg_news.png) no-repeat bottom center;
  }

  #nonbanner_title h1 {
    padding: 120px 0 30px 5%;
    color: var(--main-color);
    text-shadow: 0 0 0;
  }

  #nonbanner_title h1::before {
    background: var(--main2-color);
    bottom: 43px;
  }

  .sch_highlights b {
    font-size: 17px;
    line-height: 21px;
    margin: 0
  }

  .sch_highlights ul li span,
  .sch_highlights .boxing {
    font-size: 15px;
    padding: 10px 0;
  }

  #block_latest-news::before {
    display: none
  }

  .page-node .region--hero::after {
    width: 45px
  }

  .swiper-horizontal::after {
    width: 45px;
    height: 200px;
  }

  .home_zoneA::after {
    width: 45px;
    height: 45px
  }

  /*    zoneA  */
  .home_zoneA { overflow-x: hidden;padding: 30px 0; }
  .home_zoneA::before { display: none; }
  .region--home-top { flex-direction: column; gap: 30px; }
  .region--home-top > * { width: 100%; }

  /* latest news */
  #block_latest-news { width: 100%; }

  /* awards */
  #block_latest-awards { width: 100%; }

  /* notices */
  #block_notices { width: 100%; }
  #block_notices .index_block::after { display: none; }


  /* insight */
   #block_insight .blocktitle::after, .INSIGHT::after {
    font-size: 70px;
    letter-spacing: 6px;
  }

  .pokok-insight {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 15px;
  }

  .pokok-insight > div:not(.academic) {
    aspect-ratio: auto;
  }

  .pokok-insight .academic {
    grid-row: span 1;
    grid-column: span 2;
  }

  .pokok-insight img {
    height: 180px;
  }

  .pokok-insight p {
    font-size: 18px;
    left: 15px;
    bottom: 12px;
  }

  .pokok-insight .academic p {
    left: 15px;
    transform: none;
    flex-direction: row;
  }

  .pokok-insight .academic p::after {
    display: none;
  }

  .pokok-insight lord-icon {
    width: 36px;
    height: 36px;
  }


  /* videos */
  .home_zoneD { padding: 50px 0; overflow-x: hidden; }
  .home_zoneD::before { display: none; }
  #block_videos .index_block { flex-direction: column; gap: 20px; padding: 15px; }
  #block_videos .index_block ul.block-info li > a { gap: 10px; padding: 6px 0; }
  #block_videos .index_block ul.block-info figure { flex: 0 0 100px; }
  #block_videos .index_block ul li b { font-size: 14px; line-height: 18px; }


  /* footer */
  .contact_area { flex-direction: column; gap: 30px; text-align: left; }
  #block-olivero-contactinformation .contact_area .logo { max-width: 280px; }
  .contact_info { width: 100%; font-size: 15px; }
  .contact_info ul { grid-template-columns: 1fr; gap: 14px; }
  .contact_info ul li { text-wrap: wrap; align-items: center; }
  .contact_info ul li span { min-width: 26px; width: 26px; } 
  .contact_link ul { justify-content: flex-start; gap: 18px; }
  .contact_link ul li a span { width: 44px; } 
  footer .region--footer-top,footer .region--footer-bottom {
    padding: 0;
}
footer .region--footer-top::before {
    bottom: -20px;
}

  /* header */
  #header .screen {
    align-items: center !important;padding: 0 0 0 5px;
}

#header {
    background: rgba(0, 72, 49);
}  .contact_us {
    display: none !important;
  }
.header_top a {
  font-size: 12px;
  gap: 4px;
}
.quick_links{width:100%;}
.header_top .quick_links ul {
  padding: 3px 10px; 
  gap: 4px; margin-top:10px;
}
/* slogan */
  .slider-slogan .slogan_tag {
    font-size: 12px;
    padding: 2px 14px 2px 32px;
    margin-bottom: 6px;
  }
  .slider-slogan .slogan_tag::before {
    width: 12px;
    height: 12px;
    left: 10px;
  }
  .slider-slogan .sub_slogan {
    font-size: 16px;
  }
  .slider-slogan .slogan_text {
    font-size: 28px;
    padding: 0;
  }
  .slider-slogan .slogan_text_wrapper {
    gap: 8px;
  }
/* node */
  .boxing .title,
  #main_content h4 {
    font-size: 19px;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }

	
	.table {overflow-x: scroll; overflow: auto !important;
  display: block;}
  
  .table tr td{ width:auto !important; min-width: 90px;     }
	
}

/* header */

@media screen and (max-width: 1200px) and (min-width: 961px) {


.header_top a{ font-size:12px;}
.header_top .quick_links ul { padding:3px 5px}
  ul#main-menu {
    display: flex;
    justify-content: flex-end;
    float: none;
    gap: 12px;
    margin: 0 0 0 auto;
  }
 .social_media ul{ gap:5px;}
 .header_top .contact_us a{ padding:3px 5px;}
}

