@import url("https://fonts.googleapis.com/css2?family=Andika+New+Basic:wght@400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nav__links {
  display: flex;
  list-style: none;
  color: rgba(0, 0, 0, .7);
  font-weight: 600;

  flex-wrap: nowrap;      /* 關鍵：強制所有選項都在「同一行」，不准折行到第二列 */
  align-items: center;    /* 垂直置中 */
}

.nav--link, .nav--nolink {
  padding: 1.5rem;
  font-size: 1.6rem;
  transition: opacity 100ms linear;
  cursor: pointer;

  white-space: nowrap;    /* 關鍵：強制文字內容（如：查詢檢索）不准換行 */
  flex-shrink: 0;         /* 關鍵：空間不足時，不准壓縮這個項目的寬度 */
}

.nav--link-eng {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 1.7rem;
}

.nav--link a {
  color: rgba(0, 0, 0, .7);
}

.nav--link a:hover {
  color: #0a58ca;
}


.btn {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  outline: none;
  border: none;
  background-color: #ffffff35;
  border-radius: 2rem;
  transition: background-color 100ms linear;
  cursor: pointer;
}

.btn-place {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  color: #000;
  outline: none;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  transition: background-color 100ms linear;
  cursor: pointer;
}

.arrow {
  width: 20px;
  height: 10px;
  position: relative;
  transform: translateX(-4px);
}

.line {
  position: absolute;
  top: 46%;
  right: 0;
  height: 2px;
  width: 7px;
  background-color: #fff;
  transform-origin: 100% 50%;
}

.arrow--sideUp {
  transform: rotate(45deg);
}

.arrow--sideDown {
  transform: rotate(-45deg);
}

.arrow--hoverLine {
  width: 12px;
  transform: scale(0);
}

.arrow,
.line {
  transition: transform 100ms ease-in;
}

.btn--primary:hover {
  background-color: #ffffff65;
}

.btn:hover .arrow {
  transform: none;
}

.btn:hover .arrow--hoverLine {
  transform: scale(1);
}

.tip {
  width: 1.25rem;
  height: 1.25rem;
  background-color: #fff;
  position: absolute;
  top: 8.15rem;
  left: 33%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: transform 100ms linear;
  opacity: 0;
  display: none;
}

.header__expandMenu {
  position: absolute;
  top: 9rem;
  left: 60%;
  width: 60%;
  height: 95%;
  margin-top: 2px;
  transform-origin: 0%;
  transform: translateX(-50%) rotate3d(1, 0, 0, -15deg);
  background-color: white;
  border-radius: 0.5rem;
  perspective: 100px;
  transition: width 250ms ease, height 250ms ease, opacity 150ms ease,
    transform 200ms ease-in;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.menu__container {
  width: 100%;
  height: 100%;
  /*background-color: rgba(163, 31, 52, 1);*/
  background-color: rgba(255, 255, 255, 0.9)
}

.menu__container > * {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 2rem;
  overflow: hidden;
  transform: translateX(-35%);
  transition: transform 250ms linear, opacity 250ms ease;
  opacity: 0;
}

#search {
  display: grid;
  grid-template-columns: 250px 250px 250px 150px;
  align-self: center;
}

#service {
  display: grid;
  grid-template-columns: 250px 300px 280px 200px;
}

#research {
  display: grid;
  grid-template-columns: 250px 300px 150px;
}

#reader {
  display: grid;
  grid-template-columns: 300px 250px;
}

#about {
  display: grid;
  grid-template-columns: 250px 250px 150px;
}


#donate, #medical-library {
  display: none;
  width: 0;
}

.item--one {
  grid-column: span 2;
}

.subMenu__items {
  list-style: none;
}

.title {
  font-size: 1.3rem;
  color: rgba(248, 71, 17, 0.9);
  /*color: #dee94c;*/
  margin-bottom: .75rem;
}

.subMenu--item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.label__container {
  /*margin-left: 0.75rem;*/
}

.label--desc {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 40px;
  color: rgb(83, 83, 83);
  transform: translateY(-3px);
  transition: color 100ms ease;
}

.label--desc a {
  border-radius: 3px;
  color: #291618 !important;
  /*color: #dbdcdc !important ;*/
}

.label--desc a:hover {
  background-color: rgb(245, 245, 204);
}

.subMenu--item + .subMenu--item {
  margin-top: 1.5rem;
}

.icon--production {
  transform: translateY(-55%) scale(1.1);
}

.right--arrow {
  width: 12px;
  transform: translateY(1px) scale(0, 1);
  transition: transform 150ms ease-in-out;
}

.subMenu--item:hover .right--arrow {
  transform: translateY(1.75px) scale(1);
}

.bottom-col {
  margin-top: 2.5rem;
}

.left-col {
  margin-left: 1.5rem;
}

/*
.subMenu--item:hover .label--desc {
  color: black;
}
*/

.active {
  z-index: 1;
  opacity: 1;
  transform: translatex(-50%);
}

.prev {
  transform: translateX(-65%);
}

.expand {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) rotateX(0);
}

.hover {
  color: #0a58ca;
}

.new--expand {
  transition: opacity 150ms ease, transform 150ms ease-in;
}

.first {
  transition: none;
}

.sec--menu .subMenu--item + .subMenu--item {
  margin-top: 0.5rem;
}

.sec__title {
  color: grey;
  margin-bottom: 0.65rem;
}

.sec__links {
  list-style: none;
  padding: 0 0 0.2rem 0;
}

.sec__links > li {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 400;
}

.sec__links--container {
  padding-left: 2rem;
}

.more__info {
  grid-column: span 2;
}

.more__links {
  padding-left: 1.5rem;
}

a {
  text-decoration: none;
  display: block;
  color: rgb(0, 0, 73);
}
a:hover {
  text-decoration: underline dotted;
}

@media (max-width: 1100px) {
  #search {
    grid-template-columns: repeat(2, 300px);
    row-gap: 2rem;
    height: 660px;
  }
}
