/*
Theme Name: EduOrient
Description: EdUHK – Orientation
Author: Creasant Digital
Author URI: https://www.creasant.com/
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: eduhk, orientation, responsive, modern, clean
Text Domain: eduorient
*/

.reminder-container {
  position: fixed;
  right: 30px;
  bottom: 50px;
  z-index: 15;
}

.reminder-button {
  width: 100px;
}

.reminder-button:hover {
  opacity: 0.8;
}


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

html[lang="en-US"] body {
  font-size: calc(22px - 2px);
}

body.popup-open {
  overflow: hidden;
}

body {
  font-family: "Sarabun", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 22px;
  line-height: 1.72;
  color: #3e3d3c;
  background-color: #ffffff;
}

img,
video {
  display: block;
  max-width: 100%;
}

p+p {
  margin-top: 1.5em;
}

a {
  text-decoration: none;
  color: #b93838;
}

a:hover,
a:focus,
a:active {
  opacity: 0.8;
}

button {
  appearance: none;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

ul,
ol {
  padding-left: 1em;
}

.wp-block-embed,
.container {
  max-width: 2040px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 1880px;
}

.wp-block-embed,
.container--thin {
  max-width: 1725px;
}

.container--small {
  max-width: 1576px;
}

.main-content {
  overflow: hidden;
}

.bg-wrapper {
  position: relative;
}

.bg-wrapper::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -80px;
  display: block;
  width: 60%;
  aspect-ratio: 1222 / 1865;
  background-image: url("./assets/images/bg-main.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.wp-block {
  /*margin: 100px 0;*/
  margin: 50px 0;
}

.wp-block--top {
  margin-top: 0 !important;
}

.link-button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 40px 0 0;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  color: #b93838;
}

.link-button::after {
  content: "";
  display: block;
  width: 28px;
  aspect-ratio: 1 / 1;
  background-image: url("./assets/images/button-arrow-right.svg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

html[lang="en-US"] .quote {
  font-size: calc(28px - 2px);
}

.quote {
  position: relative;
  padding: 0 80px;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.7;
}

.quote::before,
.quote::after {
  content: "";
  position: absolute;
  display: block;
  width: 45px;
  aspect-ratio: 56/44;
  background-image: url("./assets/images/quote.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.quote::before {
  top: 0;
  left: 0;
}

.quote::after {
  bottom: 0;
  right: 0;
  transform: scaleX(-1);
}

html[lang="en-US"] .section-title {
  font-size: calc(62px - 2px);
}

.section-title {
  font-weight: 800;
  font-size: 62px;
  line-height: 1.1;
  color: #3e3d3c;
}

.swiper-slide {
  height: auto;
}

.swiper-button-prev,
.swiper-button-next {
  top: 50%;
  width: 62px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  background-image: url("./assets/images/button-arrow-right.svg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: none;
}

.swiper-button-prev {
  left: 0;
  transform: translate(-50%, -50%) rotate(180deg);
}

.swiper-button-next {
  right: 0;
  transform: translate(50%, -50%);
}

.header-placeholder {
  display: none;
}

html[lang="en-US"] .header {
  font-size: calc(21px - 2px);
}

.header {
  /* position: fixed;
  z-index: 10;
  top: 0;
  left: 0; */
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 28px 0;
  font-size: 21px;
  line-height: 1.2;
  transition: 500ms;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.header.minimized {
  padding: 5px 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.custom-logo-link {
  width: 248px;
  margin-right: auto;
}

.custom-logo-link:hover,
.custom-logo-link:focus,
.custom-logo-link:active {
  opacity: 1;
}

.custom-logo-link img {
  width: 100%;
  height: auto;
  transition: 500ms;
}

.header.minimized .custom-logo-link img {
  width: 66.66%;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  font-weight: 700;
}

.header-nav>li {
  position: relative;
  padding: 25px 0;
}

.header-nav a {
  color: inherit;
}

.header-nav>li>a {
  white-space: nowrap;
}

.header-nav>li>a:hover,
.header-nav>li>a:focus,
.header-nav>li>a:active {
  opacity: 1;
  color: #80ac49;
}

.header-nav>li.menu-item-has-children:hover>a,
.header-nav>li.menu-item-has-children:focus>a,
.header-nav>li.menu-item-has-children:focus-within>a,
.header-nav>li.menu-item-has-children:active>a {
  color: #80ac49;
}

html[lang="en-US"] .header-nav .sub-menu {
  font-size: calc(18px - 2px);
}

.header-nav .sub-menu {
  position: absolute;
  z-index: 20;
  bottom: 0;
  left: 0;
  transform: translateY(100%);
  display: none;
  flex-direction: column;
  gap: 1em;
  width: 400px;
  list-style: none;
  background-color: #fff;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.3);
  padding: 50px 50px;
  font-weight: 300;
  font-size: 18px;
}

html[lang="en-US"] .header-nav .sub-menu {
  width: 700px;
}

.header-nav>li:last-child .sub-menu,
html[lang="en-US"] .header-nav>li:nth-last-child(2) .sub-menu {
  left: unset;
  right: 0;
}

.header-nav>li:hover .sub-menu,
.header-nav>li:focus .sub-menu,
.header-nav>li:focus-within .sub-menu,
.header-nav>li:active .sub-menu {
  display: flex;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.lang-switcher a {
  color: inherit;
}

.lang-switcher a.current {
  font-weight: 700;
  color: #006536;
}

.header-menu-button {
  display: none;
}

.menu-nav-wrapper {
  display: none;
  position: absolute;
  z-index: 20;
  bottom: 1px;
  right: 0;
  transform: translateY(100%);
  width: 100%;
  max-width: 750px;
  background-color: #f6f6f6;
  box-shadow: 0px 25px 25px rgba(0, 0, 0, 0.15);
  padding: 80px 80px;

  overflow: auto;
  max-height: calc(100vh - 100px);
  -ms-overflow-style: none; 
  scrollbar-width: none;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 50px;
  list-style: none;
  font-weight: 300;
  font-size: 18px;
}

html[lang="en-US"] .menu-nav {
  font-size: calc(18px - 2px);
}

.menu-nav a {
  color: inherit;
}

.menu-nav>li>a {
  font-weight: 700;
  font-size: 22px;
}

html[lang="en-US"] .menu-nav>li>a {
  font-size: calc(22px - 2px);
}

.menu-nav>li>a:hover,
.menu-nav>li>a:focus,
.menu-nav>li>a:active {
  opacity: 1;
}

.menu-nav>li.menu-item-has-children>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-nav>li.menu-item-has-children>a::after {
  content: "";
  display: block;
  width: 28px;
  height: 15px;
  background-image: url("./assets/images/arrow-down.svg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.menu-nav>li.menu-item-has-children.active>a::after {
  transform: rotate(180deg);
}

.menu-nav .sub-menu {
  display: none;
  list-style: none;
  padding: 0.5em 0 0;
  margin-bottom: -1em;
}

.menu-nav .sub-menu>li {
  padding: 0.5em 0;
}

/* 
html[lang="en-US"] .footer {
  font-size: calc(18px - 2px);
} */

.footer {
  position: relative;
  background-image: url("./assets/images/bg-footer.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  font-weight: 300;
  font-size: 18px;
  margin-top: -50px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 100px;
  left: 0;
  display: block;
  width: 57%;
  height: 305px;
  background-color: #70c0a3;
}

.footer .container {
  position: relative;
}

.footer-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 136px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 30px;
}

.footer-logo {
  width: 250px;
  margin-top: 84px;
}

.footer-logo img {
  width: 100%;
}

.footer-navigation-wrapper {
  flex: 1;
  max-width: 1256px;
  background-color: #fff;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.3);
  padding: 100px 100px;
}

html[lang="en-US"] .footer-navigation-title {
  font-size: calc(22px - 2px);
}

.footer-navigation-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 0.5em;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em 50px;
}

.footer-menu a {
  color: inherit;
}

.footer-social-wrapper {
  display: none;
  align-items: center;
  gap: 30px;
}

.footer-left .footer-social-wrapper {
  display: flex;
}

.footer-social {
  display: block;
}

.footer-copyright {
  background-color: #3e3d3c;
  color: #fff;
  padding: 20px 0;
}

.footer-copyright-wrapper {
  display: flex;
  flex-wrap: wrap;
}

h1{
  line-height: 1.4;
}

@media screen and (max-width: 2040px) {
  html[lang="en-US"] .section-title {
    font-size: calc(3vw - 2px);
  }

  .section-title {
    font-size: 3vw;
  }
}

@media screen and (max-width: 1600px) {
  html[lang="en-US"] .header {
    font-size: calc(18px - 2px);
  }

  .header {
    font-size: 18px;
    padding: 24px 0;
  }

  .header.minimized {
    padding: 5px 0;
  }

  .header-wrapper {
    gap: 24px;
  }

  .custom-logo-link {
    width: 230px;
  }

  .header-nav {
    gap: 24px;
  }

  .header-nav>li {
    padding: 22px 0;
  }

  .header-nav .sub-menu {
    width: 320px;
    padding: 40px 40px;
  }

  html[lang="en-US"] .header-nav .sub-menu {
    width: 550px;
  }
}

@media screen and (max-width: 1440px) {
  html[lang="en-US"] .header {
    font-size: calc(16px - 2px);
  }

  .header {
    font-size: 16px;
    padding: 20px 0;
  }

  .header.minimized {
    padding: 12px 0;
  }

  .header-wrapper {
    gap: 20px;
  }

  .custom-logo-link {
    width: 220px;
  }

  .header-nav {
    gap: 20px;
  }

  .header-nav>li {
    padding: 20px 0;
  }

  html[lang="en-US"] .header-nav .sub-menu {
    width: 450px;
  }

  .footer-navigation-wrapper {
    padding: 80px 40px;
  }
}

@media screen and (min-width: 1281px) {
  .menu-nav-wrapper{
    display: none !important;
  }
}
@media screen and (max-width: 1280px) {
  html[lang="en-US"] body {
    font-size: calc(18px - 2px);
  }

  body {
    font-size: 18px;
  }

  .wp-block-embed,
  .container {
    padding: 0 56px;
  }

  .bg-wrapper {
    display: none;
  }

  .wp-block {
    margin: 40px 0;
  }

  .link-button-wrapper {
    padding: 24px 0 0;
  }

  html[lang="en-US"] .link-button {
    font-size: calc(16px - 2px);
  }

  .link-button {
    gap: 16px;
    font-size: 16px;
  }

  .link-button::after {
    width: 20px;
  }

  html[lang="en-US"] .quote {
    font-size: calc(24px - 2px);
  }

  .quote {
    padding: 0 40px;
    font-size: 24px;
  }

  .quote::before,
  .quote::after {
    width: 30px;
  }

  html[lang="en-US"] .section-title {
    font-size: calc(3.2vw - 2px);
  }

  .section-title {
    font-size: 3.2vw;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
  }

  html[lang="en-US"] .header {
    font-size: calc(24px - 2px);
  }

  .header {
    font-size: 24px;
  }

  .header-wrapper {
    gap: 30px;
  }

  .custom-logo-link {
    width: 248px;
  }

  .header-nav-wrapper {
    display: none;
  }

  .header-menu-button {
    display: block;
  }

  .footer {
    background-image: url("./assets/images/bg-footer-tablet.png");
    margin-top: -50px;
  }

  .footer::before {
    top: 80px;
    width: 70%;
    height: 388px;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 30px;
    padding-top: 118px;
  }

  .footer-logo {
    margin-top: 0;
  }

  .footer-menu {
    gap: 1em 40px;
  }

  .footer-social-wrapper {
    display: flex;
    margin-bottom: 34px;
  }

  .footer-left .footer-social-wrapper {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  html[lang="en-US"] body {
    font-size: calc(21px - 2px);
  }

  body {
    font-size: 21px;
  }

  .wp-block-embed,
  .container {
    padding: 0 18px;
  }

  html[lang="en-US"] .link-button {
    font-size: calc(18px - 2px);
  }

  .link-button {
    font-size: 18px;
  }

  html[lang="en-US"] .quote {
    font-size: calc(21px - 2px);
  }

  .quote {
    font-size: 21px;
  }

  .quote::before,
  .quote::after {
    width: 30px;
  }

  html[lang="en-US"] .section-title {
    font-size: calc(4.8vw - 0px);
  }

  .section-title {
    font-size: 4.8vw;
  }

  .swiper-button-prev {
    transform: translate(0, -50%) rotate(180deg);
  }

  .swiper-button-next {
    transform: translate(0, -50%);
  }

  .custom-logo-link {
    width: 188px;
  }

  .menu-nav-wrapper {
    padding: 40px 20px;
  }

  .menu-nav>li.menu-item-has-children>a::after {
    width: 22px;
    height: 12px;
  }

  html[lang="en-US"] .footer {
    font-size: calc(21px - 2px);
  }

  .footer {
    background-image: url("./assets/images/bg-footer-mobile.png");
    font-size: 21px;
  }

  .footer::before {
    top: 54px;
    height: 422px;
  }

  .footer-wrapper {
    padding-top: 82px;
    padding-left: 58px;
  }

  .footer-logo {
    width: 188px;
  }

  .footer-navigation-wrapper {
    padding: 50px 60px;
  }

  .footer-menu {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
    line-height: 1.5;
  }

  .footer-copyright-wrapper {
    justify-content: center;
  }


  .reminder-container {
    right: 20px;
    bottom: 40px;
  }

  .reminder-button {
    width: 80px;
  }
	
  h1{
    font-size: 1.5em;
  }
		
  main.main-content a{
    word-break: break-word;
  }
}

@media screen and (max-width: 480px) {
  .swiper-button-prev {
    transform: translate(-25%, -50%) rotate(180deg);
  }

  .swiper-button-next {
    transform: translate(25%, -50%);
  }

  html[lang="en-US"] .header {
    font-size: calc(18px - 2px);
  }

  .header {
    font-size: 18px;
  }

  .header-menu-button {
    width: 34px;
  }

  .footer-wrapper {
    padding-left: 20px;
  }

  .footer-navigation-wrapper {
    padding: 50px 40px;
  }
	
  h1{
    font-size: 1.3em;
  }

}