@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --iday-green: #9fca41;
  --iday-green-dark: #006431;
  --iday-orange: #f26522;
  --iday-text: #322c28;
  --iday-surface: #fafcfc;
  --iday-surface-alt: #f4f4f4;
  --iday-border: #d7dfd6;
  --iday-active: #627D26; 

  --iday-shadow: 0 18px 48px rgba(10, 0, 119, 0.08);

  --iday-shell: min(1680px, calc(100vw - 64px));
  --iday-radius-lg: 20px;
  --iday-radius-md: 15px;
  --iday-header-height: 132px;

  --iday-font-heading: Inter, Arial, Helvetica, sans-serif;
  --iday-font-body: Inter, Arial, Helvetica, sans-serif;
  --iday-font-footer: Sarabun, Inter, Arial, Helvetica, sans-serif;

  /* Info Day 2026 Theme */
  /* Color Scheme */
  --color-main-green: #9FCA41;
  --color-main-green-darker: #6B9907;
  --color-dark-green: #132902;
  --color-section-title: #526920;
  --color-highlight: #F3981C;
  --color-highlight-darker: #C7780D;
  --color-background: #E7F2D7;
  --color-lightgreen: #2AB6B3;
  --color-time-green: #204403;
  --color-event-title: #627D26;
  --color-btn-bg: #648027;
  --color-gray-highlight: #E9E9E9;
  --color-filter-option: #888888;
  --color-link-black: #322C28;
  --color-true-black: #000;
  --color-placeholder: #737373;

  /* Event listing page */
  --color-action-darkgreen: #268280;

  /* Monochrome */
  --color-white: #FFF;
  --color-dark-grey: #888;
  --color-light-grey: #E9E9E9;
  --color-box-bg: #FAFCFC;

  /* Typography */
  --theme-font-family: 'Inter';

  /* Label */
  --label-bg: #E8FFF6;
}

/* Typograghy */
/* Heading Hierarchy */
* {
     letter-spacing: .01em;
}

h1, .h1 {
     font-size: 5.625rem;
    /* 90px */
     font-weight: 700;
    /* line-height: 100;
     */
}

h2, .h2 {
     font-size: 4.125rem;
    /* 66px */
     font-weight: 400;
    /* line-height: 73;
     */
}

h3, .h3 {
  font-size: 3rem;/* 48px */
  font-weight: 700;
  margin: 0;
  font-size: 3rem;
}

h4, .h4 {
     font-size: 1.75rem;
    /* 28px */
     font-weight: 700;
    /* line-height: 34;
     */
}

h5, .h5 {
     font-size: 1.625rem;
    /* 26px */
     font-weight: 500;
    /* line-height: 34;
     */
}

h6, .h6 {
     font-size: 1.375rem;
    /* 22px */
     font-weight: 500;
    /* line-height: 32;
     */
}

.h7 {
     font-size: 1.25rem;
    /* 20px */
     font-weight: 500;
    /* line-height: 26;
     */
}

.h8 {
     font-size: 1.188rem;
    /* 19px */
     font-weight: 500;
    /* line-height: 32;
     */
}

p, .p, a, li, .h9 {
  font-size: 1.063rem;/* 17px */
  font-weight: 400; /* line-height: 35; */
  line-height: 160%;
}

/* Weight */
.regular {
  font-weight: 400;
}

.medium {
  font-weight: 500;
}

.bold {
  font-weight: 700;
}
.extrabold {
  font-weight: 800;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--iday-font-body);
  color: var(--iday-text);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* 
a {
  color: inherit;
  text-decoration: none;
} */

.desktop { 
  display: block; 
}

.tablet { 
  display: none; 
}

.mobile { 
  display: none; 
}

.iday-shell {
  /* width: var(--iday-shell); */
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding-inline: 120px; 
  /* padding-inline: 130px;  */
  /* padding-left: 50px;
  padding-right: 50px; */
}

.iday-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.iday-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-top: 8px solid var(--iday-green);
  box-shadow: 0 0 20px 5px rgba(10, 0, 119, 0.05);
}

.iday-header__inner {
  min-height: calc(var(--iday-header-height) - 8px);
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  /* gap: 32px; */
  padding-top: 24px;
  padding-bottom: 24px;
}

.iday-header__branding,
.iday-header__navigation,
.iday-header__language-switcher {
  min-width: 0;
}

.iday-header__branding { 
  margin-right: auto; 
}

.iday-header__navigation[hidden] {
  display: none;
}

.iday-header .block-system-branding-block img {
  max-height: 78px;
  width: auto;
}

.iday-header .site-logo,
.iday-header .site-name {
  display: inline-flex;
  align-items: center;
}

.iday-header__language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.iday-header__language-switcher .iday-language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.iday-header__language-switcher .iday-language-switcher__trigger {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--iday-text);
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.iday-header__language-switcher .iday-language-switcher__trigger:hover,
.iday-header__language-switcher .iday-language-switcher__trigger:focus-visible {
  transform: translateY(-1px);
  color: var(--iday-green-dark);
}

.iday-header__language-switcher .iday-language-switcher__trigger svg {
  display: block;
  width: 35px;
  height: 35px;
}

.iday-header__language-switcher .iday-language-switcher__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 30;
  /* min-width: 180px; */
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(50, 44, 40, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(10, 0, 119, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.iday-header__language-switcher .iday-language-switcher.is-open .iday-language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.iday-header__language-switcher .iday-language-switcher__menu .links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
}

.iday-header__language-switcher .iday-language-switcher__menu li {
  margin: 0;
  padding: 0;
}

.iday-header__language-switcher .iday-language-switcher__menu a {
  display: block;
  padding: 11px 20px;
  font-family: var(--iday-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--iday-text);
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
  word-break: normal;
}

.iday-header__language-switcher .iday-language-switcher__menu a:hover,
.iday-header__language-switcher .iday-language-switcher__menu a:focus-visible {
  background: rgba(159, 202, 65, 0.12);
  color: var(--iday-green-dark);
}

.iday-header__language-switcher .iday-language-switcher__menu li.is-hidden {
  display: none;
}

.iday-header__language-switcher .iday-language-switcher__menu li.is-active,
.iday-header__language-switcher .iday-language-switcher__menu a[aria-current='page'] {
  display: none;
}

.iday-main {
  flex: 1 0 auto;
}

.iday-breadcrumb,
.iday-highlighted,
.iday-help {
  /* width: var(--iday-shell); */
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.iday-page {
  position: relative;
}

.iday-page__hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.iday-page--register-now .iday-page__hero {
  padding: 510px 0 92px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), url('../images/arrow-symbol-illustrated.jpg');
}

.iday-page__hero-copy {
  max-width: 960px;
}

.iday-page__title {
  margin: 0;
  font-family: var(--iday-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--iday-green-dark);
}

.iday-page__title::after {
  content: '';
  display: block;
  width: 107px;
  height: 4px;
  margin-top: 24px;
  background: var(--iday-orange);
}

.iday-page__lede {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.iday-page__note {
  margin: 20px 0 0;
  font-size: 0.95rem;
  text-align: right;
}

.iday-page__content {
  padding-bottom: 80px;
}

.iday-page__body {
  display: grid;
  gap: 32px;
}

.iday-page__body>.field {
  margin: 0;
}

.iday-page--home .iday-page__content {
  padding-bottom: 0;
}

.iday-page--home .iday-page__body--full {
  display: block;
}

.iday-page--home .iday-section--one-column:first-child {
  min-height: calc(100vh - var(--iday-header-height) - 70px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(21, 38, 74, 0.55) 0%, rgba(21, 38, 74, 0.1) 35%, rgba(21, 38, 74, 0.05) 100%),
    url('../images/picture-graduation-cap-words-education-bottom.jpg') center/cover no-repeat;
}

.iday-page--home .iday-section--one-column:first-child .iday-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.iday-section {
  width: 100%;
}

.iday-section--default {
  padding: 72px 0;
}

.iday-section--two-column .iday-shell {

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* gap: 32px; */
  gap: 92px; 
  align-items: start;
}

.iday-section--two-column .iday-shell.section-header { 
  grid-template-columns: 1fr; 
  margin-bottom: 0; 
}

.iday-footer {
  margin-top: auto;
  background: var(--iday-surface-alt);
}

.iday-footer__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.iday-footer__row-1 {
  padding-top: 20px;
}

.iday-footer__row-2,
.iday-footer__row-1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.iday-footer__fallback-link {
  color: #322c28;
}

.iday-footer__copy,
.iday-footer__menu,
.iday-footer__menu .menu,
.iday-footer__fallback-link {
  font-size: 1rem;
  line-height: 1.6;
}

.iday-footer__copy {
  font-family: var(--iday-font-footer);
}

.iday-footer__menu .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.iday-footer__fallback-link:hover,
.iday-footer__fallback-link:focus-visible,
.iday-footer .menu a:hover,
.iday-footer .menu a:focus-visible {
  color: var(--iday-green-dark);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 220px;
  bottom: 100px;
  width: 60px;
  height: 60px;
  background-image: url('../images/back-to-top.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  box-shadow: var(--iday-shadow);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  user-select: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
  background-image: url('../images/back-to-top-hover.svg');
  cursor: pointer;
}

/* Menu */
#block-iday-main-menu ul { 
  display: flex; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

#block-iday-main-menu ul > li { 
  padding-inline: 15px; 
}

#block-iday-main-menu ul > li > a { 
  color: var(--iday-text); 
  font-size: 1.375rem; 
  font-weight: 700; 
  text-decoration: none; 
  white-space: nowrap; 
  transition: all .3s;
}

#block-iday-main-menu ul > li > a:hover { 
  color: var(--iday-green); 
}

#block-iday-main-menu ul > li > a[aria-current='page'] { 
  color: var(--iday-active); 
}

/* Footer menu */
.iday-footer__menu { 
  display: flex; 
  align-items: center; 
}

.iday-footer__menu #block-iday-main-menu ul > li > a[aria-current='page'] { 
  color: var(--iday-text); 
}

/* Info Day 2026 */
.desktop { 
  display: block; 
}

.mobile { 
  display: none; 
}

/* Popups */
.popup {
  top: 0;
  left: 0;
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  /* opacity: 0;
  pointer-events: none; */
  transition: all .6s;
}

.popup.active { 
  display: flex; 
  /* opacity: 1;
  pointer-events: auto; */
}

.overlay {
  background-color: rgba(0, 0, 0, .8);
  z-index: 999;
}
.overlay-close {
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  background-color: transparent; 
  border: unset; 
  border-radius: 0;
}
 .popup .popup-box {
    width: 100%;
    max-width: 1680px; 
    /* max-width: 1940px; */
    /* max-width: 1200px;  */
    margin: auto;
    /* padding-inline: 130px; */
    padding-inline: 120px; 
    z-index: 1;
    transform: translateY(100%);
    transition: all .6s;
}
 .popup.active .popup-box {
     transform: translateY(0);
     pointer-events: none;
}
 .popup .section-header {
     display: flex;
     justify-content: flex-end;
     margin-bottom: 38px;
}
 .popup .close-btn {
     width: 38px;
     height: 38px;
     border: none;
     border-radius: 0;
     background-color: transparent;
     cursor: pointer;
     pointer-events: auto;
    /* transition: all .3s;
     */
}
 .popup .close-btn img {
     width: 100%;
     height: 100%;
}
 .popup .close-btn:hover {
    /* transform: rotate(90deg);
     */
}
 .popup .popup-heading {
     margin: 0 0 68px;
     color: var(--color-white);
    /* font-size: 3rem;
     */
     font-size: 48px;
     font-weight: 700;
}
 .popup .popup-heading:after {
     content: none;
}
.popup .popup-box .section-body { 
  max-height: calc(100vh - 126px); 
  padding: 100px;
  pointer-events: auto;
}

/* Lock Window */
body:has(.popup.active) {
  overflow: hidden;
}

/* Layout */
body {
  font-family: var(--theme-font-family);
}

.row {
  display: flex;
}

.visually-hidden {
  display: none;
}

/* Button */
.button {
  height: fit-content;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-white);
  border-radius: 1rem;
  /* background-color: var(--iday-green);*/
  background-color: var(--color-btn-bg);
  padding: 16px 30px;
  color: var(--color-white);
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s;
}

.button:hover {
  border-color: var(--color-btn-bg);
  background-color: var(--color-white);
  color: var(--color-btn-bg);
}

/* Primary Button */
.button.primary-btn {
  border: 1px solid var(--color-btn-bg);
  background-color: var(--color-white);
  color: var(--color-btn-bg);
}

.button.primary-btn:hover {
  border-color: var(--color-white);
  background-color: var(--color-btn-bg);
  color: var(--color-white);
}

.button img {
  margin-left: 15px;
  transition: all .3s;
}

.button:hover img {
  filter: invert(1);
}

/* Article */
article {
  /* margin-bottom: 50px; */
}

article p {
  margin: 0 0 20px;
  line-height: 160%;
}

article p:last-child {
  margin-bottom: 0;
}

.page-section {
  display: flex;
}

.section-main {
  width: 100%;
  max-width: 1920px;
  padding-inline: 130px;
  margin: 100px auto;
}

/* Table */
table { 
  width: 100%; 
  margin-bottom: 50px; 
}

th, td { 
  border: 1.5px solid white; 
}

table * { 
  margin-bottom: 0; 
}

table p { 
  margin-bottom: 0; 
}

table strong { 
  font-weight: 600; 
}

table table { 
  margin-bottom: 0; 
}

table td:has(> table) { 
  vertical-align: text-top; 
}

table table tr { 
  display: flex; 
  align-items: center; 
}

table td:not(:has(table)) { 
  background-color: var(--color-box-bg); 
  padding: 20px; 
  font-size: 1.25rem; 
}

table table td { 
  padding: 0; 
}

table td:has(> h3) { 
  background-color: var(--color-section-title); 
  padding: 20px; 
}

td h3 { 
  color: var(--color-white); 
  text-align: center; 
  margin-bottom: 0; 
  font-size: 1.375rem; 
  font-weight: 700; 
}

table td:has(> h4) { 
  background-color: var(--color-gray-highlight); 
  padding: 20px; 
}

table td h4 { 
  margin-bottom: 0; 
  color: var(--color-section-title);
  font-size: 1.375rem;
  font-weight: 700;
}

table td:has(> img) { 
  width: fit-content; 
  min-width: 70px; 
  height: fit-content; 
  min-height: 70px; 
  display: flex; 
}

table td:has(> img) img { 
  margin-right: 20px; 
}

/* Section */
.section-header {
  max-width: 100%; 
  margin-bottom: 50px; 
  grid-template-columns: 1fr; 
}

div :has(> .section-title) { 
  width: 100%; 
}

.section-title {
  width: 100%; 
  margin: 0 0 50px; 
  font-size: 3rem;
  color: var(--color-section-title);
}
 
.section-title:after {
  content: "";
  width: 104px;
  height: 6px;
  display: block;
  background-color: var(--color-highlight);
  margin-top: 50px;
}

.iday-section { 
  background-size: cover; 
  background-position: center top; 
}

.iday-section ul:has(.button) { 
  display: flex; 
  gap: 30px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

/* Homepage */
/* Hero banner */
.hero-banner { 
  width: 100%; 
  max-width: 100%; 
  height: fit-content; 
  /* height: 912px; */
  position: relative; 
  overflow: hidden; 
}

.hero-banner .banner { 
  width: 100%; 
  height: auto; 
  min-height: 1px; 
  /* top: 50%; 
  left: 50%; 
  height: 100%; 
  position: absolute; 
  object-fit: cover; 
  transform: translate(-50%, -50%);  */
}

/* Getting to EdUHK */
.google-map iframe { 
  width: 100%; 
  height: auto; 
  aspect-ratio: 1680 / 666; 
}

/* Review Page */
.faculty-info-day h2.section-title { 
  display: none; 
}

figure { 
  display: flex; 
  margin: 0; 
}

figure img { 
  width: 100%; 
  height: auto; 
  object-fit: cover; 
}

figure.mat { 
  border-radius: 1rem; 
  padding: 15px; 
  box-shadow: 0px 0px 30px 0px #00000026; 
  background-color: #FDFEFE; 
}

figure.mat img { 
  border-radius: .625rem; 
}

.iday-section { 
  background-size: cover; 
  background-position: bottom; 
}

.iday-section--two-column div:has(> div > .paragraph--type--textarea-block), 
.iday-section--two-column div:has(> .paragraph--type--textarea-block) { 
  height: 100%; 
  display: flex; 
  flex-direction: column; 
}

.iday-section--two-column .paragraph--type--textarea-block { 
  margin-block: auto; 
}

/* Transportation Tables */


/* Info Day Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery .photo button {
  width: 100%;
  height: 100%;
  display: flex;
  border: none;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.gallery .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 405 / 270;
  object-fit: cover;
  transition: all .6s;
}

.gallery .photo button:hover img {
  scale: 1.2;
}

/* Gallery Slider */
.gallery-slider {
  width: 100%;
  max-width: 100%;
}

.gallery-slider .slick-slide {
  height: fit-content !important;
  max-height: calc(100vh - 170px);
  cursor: grab;
}

.full-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 220px);
  object-fit: contain;
}

/* Gallery Popup */
.popup .popup-box .section-body.gallery-slider { 
  max-width: 1200px;
  max-height: calc(100vh - 56px);
  padding: 0;
}

.gallery-popup .actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 30px;
}

.gallery-popup .actions .slick-prev, .gallery-popup .actions .slick-next {
  left: unset;
  right: unset;
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  position: static;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  pointer-events: auto;
  transform: unset;
  transition: all .3s;
}

.gallery-popup .actions .slick-prev:hover, .gallery-popup .actions .slick-next:hover {
  background-color: var(--color-btn-bg);
  border-color: var(--color-btn-bg);
}

.gallery-popup .actions .slick-prev:before, .gallery-popup .actions .slick-next:before {
  content: none;
}

.gallery-popup .actions .slick-prev img, .gallery-popup .actions .slick-next img {
  width: 6.5px;
  height: 15.5px;
}

.gallery-popup .actions .slick-next {
  transform: rotate(180deg);
}

/* Reponsive */
/* Large Desktop */
@media (min-width: 2560px) { 
  .hero-banner { 
    height: fit-content; 
  }

  .hero-banner .banner { 
    width: 100%; 
    height: auto; 
    min-height: 434px; 
    top: unset; 
    left: unset; 
    position: static; 
    transform: unset; 
  }
}

/* Desktop */
@media (min-width: 1281px) and (max-width: 1920px) { 
  .desktop { 
    display: block !important; 
  }

  .tablet { 
    display: none; 
  }

  .mobile { 
    display: none; 
  }

  #block-iday-main-menu ul > li { 
    /* padding-inline: calc(15vw / 19.2);  */
  }
   
  /* Layout */
  .button {
    display: flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none; 
  }
  .button:hover { 
    text-decoration: none; 
  }
  .button img {
  }
  .section-main {
  }
  .section-header {
  }
  .section-title:after {
  }
  .page-title {
  }

  /* Hero Banner */
  .hero-banner { 
  }
}

@media (max-width: 1920px) {
  .iday-shell {
    /* max-width: 1480px; */
    max-width: 1920px; 
  }

  .back-to-top {
    right: 100px;
    bottom: 80px;
  }
}

@media (max-width: 1500px) {
  .back-to-top {
    right: 60px;
    bottom: 60px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1280px) { 
  #block-iday-main-menu ul > li { 
    /* padding-inline: calc(15vw / 12.8);  */
  }

  .desktop {
     display: none;
  }

  .tablet {
      display: block !important;
  }

  .mobile {
      display: none;
  }

  /* Layout */
  /* Table */
  table td:has(table) { 
    /* width: 100%; */
  }

  table table table td { 
    width: 100%; 
  }

  /* Section */
  .section-main {
      /* padding-inline: calc(56vw / 12.8);
      margin-block: calc(50vw / 12.8); */
  }
  .section-header {
      /* margin-bottom: calc(50vw / 12.8); */
  }
  .section-title {
      font-size: 2.75rem;
  }
  .section-title:after {
      /* width: calc(104vw / 12.8);
      height: calc(6vw / 12.8);
      margin-top: calc(40vw / 12.8); */
  }
  .page-title {
      /* padding-block: calc(50vw / 12.8); */
  }

  .iday-section--two-column .iday-shell { 
    grid-template-columns: 1fr; 
  }

  /* Getting to EdUHK */
  /* Transportation */

  /* Map */
  .google-map iframe { 
    aspect-ratio: 880 / 666; 
  }

  /* Review Page */
  .iday-section { 
    background-position: right 72.5% bottom calc(-180vw / 12.8); 
  }

  .iday-section--two-column .iday-shell { 
    gap: 30px; 
  }

  /* Gallery */
  .gallery {
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
  }
  .gallery .photo img {
      aspect-ratio: 284 / 270;
  }
  /* Popup */
  .popup .popup-box {
      /* padding-inline: calc(56vw / 12.8); */
  }
  .popup .popup-box .section-body {
      /* padding: calc(100vw / 12.8); */
  }
  /* Gallery Popup */
  .gallery-popup .popup-box {
      /* max-width: calc(1040vw / 12.8);
      */
      /* max-width: 880px;
      */
      /* padding-inline: calc(56vw / 12.8);
      */
      padding-inline: 56px;
  }
  .gallery-popup .actions {
      margin-top: 20px;
      gap: 18px;
  }
  .gallery-popup .actions .slick-prev, .gallery-popup .actions .slick-next {
      width: 34px;
      height: 34px;
  }
  .gallery-popup .actions .slick-prev img, .gallery-popup .actions .slick-next img {
      /* width: 3.5px;
      height: 8px;
      */
      width: 10px;
      height: 10px;
  }
}

@media (max-width: 1280px) {
  .iday-header {
    position: static;
  }

  /* .iday-header__inner {
    align-items: flex-start;
    flex-direction: column;
  } */

  .iday-header__language-switcher {
    justify-content: flex-start;
  }

  .iday-page--register-now .iday-page__hero {
    padding-top: 360px;
  }

  .iday-shell { 
    padding-inline: 56px; 
    /* padding-left: 30px;
    padding-right: 30px; */
  }

  /* Hero Banner */
  .hero-banner { 
    height: fit-content; 
  }

  .hero-banner .banner { 
    width: 100%; 
    height: auto; 
    min-height: 434px; 
    top: unset; 
    left: unset; 
    position: static; 
    transform: unset; 
  }

  /* Review Page */
  .iday-section--two-column .iday-shell { 
    gap: 30px; 
  }

  .faculty-info-day h2.section-title { 
    display: block; 
  }
  
  .faculty-info-day h3.section-title { 
    display: none; 
  }

  /* Gallery */
  .gallery-popup .section-header {
    margin-bottom: 20px;
  }

  .gallery-popup .close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    cursor: pointer;
    transition: all .3s;
  }

  .gallery-popup .close-btn img {
    width: 100%;
    height: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --iday-shell: min(100vw - 32px, 1680px);
  }

  .iday-section--two-column .iday-shell,
  .iday-webform-block .webform-flexbox {
    grid-template-columns: 1fr;
  }

  .iday-page--register-now .iday-page__hero {
    padding: 260px 0 72px;
  }

  .iday-message-block__card,
  .iday-webform-block__card {
    padding: 28px 24px;
  }

  .iday-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .iday-shell { 
    padding-inline: 20px;
  }

  .back-to-top {
    right: 40px;
    bottom: 40px;
    width: 50px;
    height: 50px;
  }

  .iday-footer__row-2,
  .iday-footer__row-1 {
    justify-content: center;
    flex-direction: column-reverse;
    align-items: center;
  }
  
  /* Custom */
  .desktop { 
    display: none; 
  }

  .tablet { 
    display: none; 
  }

  .mobile { 
    display: block !important; 
  }

  /* Layout */
  .button { 
    padding: 15px 20px; 
  }

  table td { 
    padding: 0; 
  }

  table td h4 { 
    margin-bottom: 5px; 
  }

  table td:has(> h3) { 
    padding: 16px 20px; 
  }

  table table td:has(> table) { 
    width: 100%; 
  }

  table table td { 
    border: 0; 
  }

  table table table tr { 
    padding: 15px 20px; 
  }

  table table table td { 
    background-color: transparent; 
    padding: 0; 
  }

  table table tr:has(> table img) { 
    padding: 16px 30px; 
  }

  table table td:has(> table img) { 
    background-color: var(--color-gray-highlight); 
  }

  table table table td:has(> img) { 
    width: fit-content; 
    min-width: 70px; 
    height: fit-content; 
    min-height: 70px; 
    display: flex; 
  }

  .section-main { 
    margin-block: 50px; 
    padding-inline: 20px; 
  }

  .section-title { 
    font-size: 32px; 
  }

  /* Getting to EdUHK */
  /* Transportation */

  /* Map */
  .google-map iframe { 
    aspect-ratio: 520 / 392; 
  }

  /* Gallery */
  .gallery {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
  }

  .gallery .photo img {
      aspect-ratio: 252 / 240;
  }

  /* Popups */
  .popup .popup-box {
      padding-inline: 20px;
  }

  .popup .section-header {
      margin-bottom: 22px;
  }

  .popup .popup-heading {
      margin-bottom: 40px;
      font-size: 36px;
  }

  /* Gallery Popup */
  .gallery-popup .popup-box {
      padding-inline: 20px;
  }

  .gallery-popup .actions {
      gap: 50px;
  }

  .gallery-popup .actions .slick-prev, .gallery-popup .actions .slick-next {
      width: 64px;
      height: 64px;
  }

  .gallery-popup .actions .slick-prev img, .gallery-popup .actions .slick-next img {
      /* width: 6.5px;
      height: 15.5px;
      */
      width: 18px;
      height: 18px;
  }
}

@media (max-width: 500px) {
  .iday-header__inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .iday-header .block-system-branding-block img {
    max-height: 56px;
  }

  .iday-header__language-switcher .iday-language-switcher__menu {
    min-width: 160px;
  }

  .iday-page__note {
    text-align: left;
  }

  .iday-page--home .iday-section--one-column:first-child {
    min-height: auto;
    padding: 72px 0;
    align-items: stretch;
  }

  .iday-header__brand-link img {
    max-height: 60px;
  }

  .iday-header__inner {
    min-height: unset;
  }
}