
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --max-width: 1500px;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(51, 6%, 53%);
  --black-color-light: hsl(51, 6%, 53%);
  --black-color-lighten: hsl(51, 6%, 53%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .91rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
/* @media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
} */

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

body {
  font-family: var(--body-font) !important;
  font-size: var(--normal-font-size);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 95%;
  padding-left: 5%;
  padding-right: 5%;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}


.nav__logo img{
    height: 50px;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  right: -2%;
  width: 35px;
  height: 35px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1500px) {
  .horizontal{
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
  .container{
    padding-left: 0;
    padding-right: 2%;
  }
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    padding-top: 1rem;
  }
  .side-button{
    justify-content: space-between;
  }
  .toggle-wrapper{
    padding: 1.25rem 1.5rem;
  }
  .dropdown__item {
    cursor: pointer;
    padding: 0 0 !important;
  }
  .nav__link  {
    display: flex;
    flex-direction: row;
    justify-content: start !important;
  }
  .collaboration-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    
  }
  .collaboration-bar .horizontal {
    display: flex;
    flex-direction: row;   /* make International + Domestic side by side */
    gap: 8px;
  }
  .dropdown__item.active .dropdown__arrow {
    transform: rotate(180deg);
  }
}

.nav__link {
  font-weight: var(--font-semi-bold);
  height: 64px;
  padding: 0rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* transition: background-color .3s; */
}
.dropdown__link{
  line-height: 64px;
  height: 55px;
}

.language{
  justify-content: unset;
  gap: 10px;
}


/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
  padding: 1.25rem 0;
}



.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  white-space: nowrap;
  padding: 0rem 1.25rem 0rem 2.5rem;
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}


.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}


.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item.active .dropdown__menu,
.dropdown__subitem.active > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}



/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1500px) {
  .slash{
    display: none;
  }
  .collaboration-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    
  }
  .collaboration-bar .horizontal {
    height: 100%;
    /* max-height: 100%; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 0.5rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav__link {
    /* height: 100%; */
    justify-content: initial;
    column-gap: .25rem;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 1.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }
  .dropdown__item:hover .dropdown__menu { 
    opacity: 1;
    top: 5.25rem;
    max-height: 1000px; 
    pointer-events: unset;
    transition: max-height .4s ease-in, top .3s; 
  } 
  .dropdown__item:hover .dropdown__arrow { transform: rotate(180deg); }
  .dropdown__item.active .dropdown__arrow {
    transform: unset;
  }
  
}

.footer-bottom img {
    max-width: 100%;
    height: auto;
}
 .footer-bottom ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }
.contact-area {
    border-bottom: 1px solid var(--body-color);
}
.contact-content p {
    font-size: 15px;
    margin: 30px 0 30px;
    position: relative;
}

.contact-content p::after {
    background: var(--body-color);
    bottom: -30px;
    content: "";
    height: 1px;
    left: 50%;
    position: absolute;
    transform: translate(-50%);
    width: 80%;
}

.contact-content h6 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 10px;
}


.contact-content span {
    margin: 0 10px;
}

.contact-social {
    margin-top: 30px;
    margin-bottom: 30px;
}

.contact-social > ul {
    display: inline-flex;
}

/* .contact-social ul li a {
    border: 1px solid var(--body-color);
    color: var(--body-color);
    display: inline-block;
    height: 40px;
    margin: 0 10px;
    padding-top: 7px;
    transition: all 0.4s ease 0s;
    width: 40px;
}

.contact-social ul li a:hover {
    border: 1px solid #FAB702;
    color: #FAB702;
} */

.contact-content img {
    padding-top: 15px;
    max-width: 210px;
}


.footer-bottom {
    position: relative;
    z-index: 0;
    bottom:0;
    background: #1A1E25;
    color: #868c96;
    height: 100%;
}

.footer-bottom p {
    text-align: center;
}
.hr{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.custom-hr {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 中間的水平線，移除 margin 讓它與兩側的裝飾貼近 */
.custom-hr hr {
  flex-grow: 1;
  border: none;
  margin: 0;
}

/* 裝飾區塊 */
.hr-decoration {
  display: flex;
  align-items: center;
}
/* 統一設定正方形盒模型，使 border 不影響尺寸 */
.box {
  display: inline-block;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  box-sizing: border-box;
}
/* 左側裝飾：依序為填滿、只有邊框；先移除預設間距 */
.hr-decoration.left span.box {
  margin: 1.2px;
}
/* 右側裝飾：依序為只有邊框、填滿；先移除預設間距 */
.hr-decoration.right span.box {
  margin: 1.2px;
}
/* 填滿的菱形 */
.filled {
}
/* 只有邊框的菱形 */
.outlined {
  background: transparent;
}
/* 調整內側的菱形與直線連接：
   左側的內側菱形往右負移，右側則往左負移 */
.hr-decoration.left .outlined {
  margin-right: -2px; /* 可依需求微調 */
}
.hr-decoration.right .outlined {
  margin-left: -2px; /* 可依需求微調 */
}
.side-button{
  display: flex;
  gap: 20px;
}
.toggle-wrapper {
  right: 2%;
  top: 26%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.label {
  font-weight: bold;
  color: #8d6b5a;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.label.active {
  opacity: 1;
}

.switch {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--Neutral300A);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.switch.dark {
  background-color: var(--DarkNeutral300A);
}

.slider {
  z-index: 10;
  position: absolute;
  width: 23px;
  height: 23px;
  background-color: white;
  border-radius: 50%;
  top: 3.4px;
  left: 4.6px;
  box-shadow: 0 0px 4px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
}
.light-mode {
  
  position: absolute;
  top: 3.35px;
  right: 4.1px;
}
.dark-mode {
  position: absolute;
  top: 3.4px;
  left: 4.6px;

}

.switch.dark .slider {
  left: 32.75px;
}
