/*** Start - Fonts ***/
@font-face {
    font-family: 'DIN-Medium';
    src: url('../fonts/DIN-Medium.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'KozGoPr6N-Regular';
    src: url('../fonts/KozGoPr6N-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.zh footer li {
  font-size: 91% !important;
}
.desktop {
  display: inline-block;
  }
.mobile {
  display: none;
}
.zh, .zh a, :lang(zh-hk) {
  font-family: var(--mc-font-chi);
}
.container-fluid {
  max-width: 1200px;
}
nav img {
  position: relative;
}
nav .dropdown {
  display: block;
}
.lang-btn {
  padding: 5px !important;
}
.lang-btn a:last-child {
  border-right: none;
}

a, a:visited {
  color: var(--mc-black);
  text-decoration: none;
}
.navbar-brand img {
  max-width: 310px;
  height: auto;
}
.zh .navbar-brand img {
  max-width: 250px;
  height: auto;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.dropdown-toggle::after {
    content: none;
}
.btn, .navbar-toggler {
  border: none;
  box-shadow: none;
}
a.nav-link {
  font-family: 'DIN-Medium', Arial, Helvetica, sans-serif;
  align-items: center;
  display: grid;
}
.zh a.nav-link {
  font-family: 'KozGoPr6N-Regular', Arial, Helvetica, sans-serif;
}
.nav-link {
  width: 135px;
  text-align: center;
  line-height: 1;
  height: 40px;
  margin: 0 3px;
}
nav a, nav a:hover, nav a:visited {
  color: var(--mc-black);
}
.zh .nav-link {
  width: 130px;
}
#san img {
  width: 100%;
}
.btn.c1, .btn.c2, .btn.c3 {
  color: var(--mc-white);
  font-family: 'DIN-Medium', Arial, Helvetica, sans-serif;
  width: 400px;
}
.btn.c1 {
  background-color: #009CA8;
}
.btn.c2 {
  background-color: #1EBEE2;
}
.btn.c3 {
  background-color: #00b04c;
}
.zh h1.hero__title {
  width: 75%;
  margin-right: 10px;
}
.zh .hero table td {
  vertical-align: top;
}
.zh .content h2 {
  letter-spacing: 2px;
}
.content h2 {
  color: #0062AF;
  text-transform: none;
}
.zh .content p {
  letter-spacing: 1px;
}
.lang-icon img { 
  width: 26px; 
  height: 26px; 
}
.btn-pdf {
  width: 90%;
  max-width: 300px;
}
.title-main {
  width: 88%;
}
footer .left, footer .right {
  margin-top: 25px;
}
footer .right ul:last-child li:first-child img {
  width: 85px;
}
footer .left ul {
  padding-left: 10px;
}

/* Modal styles */
#boxes #mask {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 9000;
    background: #26262c;
    display: none;
    width: 100%; height: 100%;
    opacity: 0.4; color: white;
}
#boxes .window {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border-radius: 5px;
    text-align: center;
}
#boxes #dialog {
    width: 410px;
    background: #fff;
    font-size: 13pt;
}
.boxdiawrapper { 
  width: 100%; 
  height: 100%; 
  position: relative; 
}
.boxdiawrapper .agree {
    position: absolute; top: 0; right: 0;
    cursor: pointer;
    background: #02751a; color: #fff;
    padding: 5px 10px;
}
.boxdiawrapper .boxcont { padding: 30px; }
.boxdiawrapper .boxcont h2,
.boxdiawrapper .boxcont #san { text-align: center; }

.hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  overflow: hidden;
}
.hero-idx {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/index-hero.png') center center / cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
}
.container { 
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}
.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-top: 4vh;
  gap: 2rem;
}
.hero__text {
  grid-column: 1;
  max-width: 550px;
  z-index: 2;
  justify-content: left;
  display: grid;
}
.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}
.hero__button {
  font-size: 1.25rem;
  padding: 0;
  border-radius: 0;
}
.zh .hero__button {
  padding: 5px 50px 5px 0;
}
.hero__globe-anchor {
  grid-column: 2;
  width: 100%;
  height: 100%;
  background: transparent;
}
.dropdown-item.active, .dropdown-item:active {
  background-color: transparent;
}
#navbarCollapse .navbar-nav > li > a.nav-link {
  background-image: linear-gradient(to bottom, rgb(236,248,254), rgb(224,241,237));
  padding: 3px;
}
#navbarCollapse .navbar-nav > li > a.nav-link.active,
#navbarCollapse .navbar-nav > li > a.nav-link:hover {
  color: #0062AF !important;
  background-image: linear-gradient(to bottom, rgb(224,241,237), rgb(181,204,224));
}


/*** mobile ***/
@media (max-width: 991px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: inline-block;
  }
  .container-fluid {
    --bs-gutter-x: 0 !important;
  }
  .navbar-brand {
    margin-left: 1.5rem;
  }
  .navbar-toggler {
    margin-right: 1.5rem;
  }
  .navbar-nav {
    margin-left: auto;
    margin-right: auto;
  }
  ul.navbar-nav {
    margin-top: 10px;
  }
  a.nav-link {
    color: #0d4eb0;
  }
  .nav-link {
    width: 100%;
    font-size: 22px;
    border-top: 1.5px solid #003d6c;
    padding: 15px 0 15px;
    height: 55px;
  }
  .hero {
    min-height: 100vh;
  }
  .hero__bg {
    background: url('../images/index-hero_mob.png') center center / cover no-repeat;
  }
  .zh h1.hero__title {
    width: 81%;
    margin: 0 auto;
  }
  .zh .hero table td {
    align-content: center;
    display: grid;
  }
  .zh .btn.c1 {
    margin-top: 20px !important;
  }
  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 9vh;
    max-width: 95%;
  }
  .zh .hero__content {
    padding-top: 3vh;
  }
  .btn.c1, .btn.c2, .btn.c3 {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
  .zh .btn.c1, .zh .btn.c2, .zh .btn.c3 {
    width: 50%;
  }
  
  .hero__globe-anchor { 
    display: none; 
  }

  #navbarCollapse .navbar-nav > li > a.nav-link {
    position: relative;
    margin: 0;
    padding: 5px 5px !important;
    color: #0062AF !important;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1;
  }

  /* ───── Inactive state → concave (inset shadow) ───── */
  #navbarCollapse .navbar-nav > li > a.nav-link {
    background: var(--mc-white);
    width: 100%;
  }

  /* ───── Active / current page → convex (raised) ───── */
  #navbarCollapse .navbar-nav > li > a.nav-link.active,
  #navbarCollapse .navbar-nav > li > a.nav-link:hover {
    background: var(--mc-white);
  }

  /* Optional: make the active item even more obvious */
  #navbarCollapse .navbar-nav > li > a.nav-link.active {
    font-weight: 700;
  }

  .zh .hero__button {
    padding: 5px 0;
    align-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-pdf, .btn-pdf-en {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}