/* CSS Reset */
a,
button,
input,
select,
h1,
h2,
h3,
h4,
h5,
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
}

menu,
ol,
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --space-xs: clamp(15px, 2vw, 25px);
  --space-s: clamp(25px, 4vw, 40px);
  --space-m: clamp(40px, 6vw, 80px);
  --space-l: clamp(80px, 10vw, 150px);
  --space-xl: clamp(120px, 15vw, 220px);
  --space-xxl: clamp(240px, 30vw, 440px);
}

[data-variable-collection-mode="mode-1"] {
  --black: #000000;
}

/* HTML Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Page Containers */
.page--index,
.page--highlights,
.page--units,
.page--events,
.page--jinho,
.page--detail {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  background-image: url("../images/bg-common--default.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

/* Site Header & Container*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  z-index: 100;
}

.site-header .container {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo  */
.logo {
  flex-shrink: 0;
  width: clamp(150px, 15vw, 216px);
  height: auto;
  aspect-ratio: 216 / 50;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: block;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
}

.logo__image {
  width: 100%;
  height: auto;
  display: block;
}

/* navbar */
.navbar {
  display: flex;
  flex-direction: row;
  gap: clamp(20px, 3vw, 60px);
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.btn {
  padding: 8px 12px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.7;
}

.nav-text {
  background: linear-gradient(to left, #000000, #000000);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
  font-family: var(--h2-font-family, "Inter-Regular", sans-serif);
  font-weight: var(--h2-font-weight, 400);
  position: relative;
  font-size: clamp(16px, 1.2vw, 20px);
  width: auto;
  height: auto;
}

.navbar--white .nav-text {
  background: linear-gradient(to left, #ffffff, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-dropdown-icon {
  flex-shrink: 0;
  width: 12px;
  height: 13px;
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease;
}

/* Dropdown Menu */
.btn--dropdown {
  position: relative;
}

.btn--dropdown:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(201, 201, 201, 0);
  padding: 16px;
  min-width: 220px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 0px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--h2-font-family, "Inter-Regular", sans-serif);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dropdown-item__desc {
  display: block;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Carousel */
.carousel {
  width: 100%;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: clamp(15px, 2vw, 30px);
  padding: 0 15%;
}

.carousel-slide {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 70%;
}

.carousel-image {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  padding: 0 clamp(20px, 4vw, 60px);
  box-sizing: border-box;
}

/* Carousel Arrow */
.carousel-arrow {
  width: clamp(40px, 6vw, 82px);
  height: clamp(40px, 6vw, 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.carousel-arrow__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-arrow:hover {
  opacity: 0.7;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Carousel Dragging */
.carousel-viewport,
.carousel-track {
  cursor: grab;
  cursor: -webkit-grab;
  cursor: -moz-grab;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.carousel-viewport:active,
.carousel-track:active,
.carousel-track.is-dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
}

.carousel-image {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.carousel-track.is-dragging {
  transition: none !important;
}

.carousel-track {
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

/* Navbar Toggler */
.navbar-toggler {
  display: none;
  width: 21px;
  height: 15px;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

.navbar-toggler__line {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.navbar-toggler__line:nth-child(1) {
  top: 0px;
}

.navbar-toggler__line:nth-child(2),
.navbar-toggler__line:nth-child(3) {
  top: 10px;
}

.navbar-toggler__line:nth-child(4) {
  top: 20px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(1),
.navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(4) {
  width: 0%;
  left: 50%;
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(2) {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(3) {
  transform: rotate(-45deg);
}

.navbar:not(.navbar--white) .navbar-toggler__line {
  background: #000000;
}

.navbar-collapse {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__image,
.zone-content__image {
  width: 100%;
  height: auto;
  display: block;
}

.zone-content__image--small {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.zone-title__image {
  width: 100%;
  height: auto;
  display: block;
}

.zone-content {
  width: 85%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.zone-content--left {
  justify-content: flex-start;
}

.zone-title {
  width: 85%;
  max-width: 843px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.detail-title {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.detail-image {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.carousel {
  width: 85%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

/* video */
.video-section {
  width: 90%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* audio */
.audio-wrapper {
  width: 90%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.audio-wrapper audio {
  width: 100%;
}

.audio-player-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px;
  border-radius: 50px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.audio-left {
  flex-grow: 1;
}

.audio-left audio {
  width: 100%;
  height: 40px;
}

.audio-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-icon img {
  width: 30px;
  height: auto;
  display: block;
}

.lang-text {
  margin-top: 4px;
  font-size: 12px;
  font-family: sans-serif;
  line-height: 1;
}

.divider {
  color: #ffffff;
  margin: 0 2px;
}

.lang-label {
  transition: color 0.3s;
  cursor: pointer;
}

.lang-label.active {
  color: #ffffff;
  font-weight: bold;
}

.lang-label.inactive {
  color: #888888;
}

@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-toggler__line {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .navbar-toggler__line:nth-child(1) {
    top: 0px;
  }

  .navbar-toggler__line:nth-child(2) {
    top: 6.5px;
  }

  .navbar-toggler__line:nth-child(3) {
    top: 13px;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(1) {
    top: 6.5px;
    transform: rotate(135deg);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler__line:nth-child(3) {
    top: 6.5px;
    transform: rotate(-135deg);
  }

  .navbar-collapse {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow-y: auto;
    padding: 0 30px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  }

  .navbar-collapse.show {
    max-height: 100vh;
    padding: 30px;
  }

  .navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
  }

  .btn--dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-toggler__line {
    background: #ffffff;
  }

  .page--index .navbar-toggler__line {
    background: #000000;
  }

  .nav-dropdown-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }

  .btn:hover .nav-dropdown-icon {
    transform: rotate(0deg);
  }

  .nav-dropdown-icon {
    filter: brightness(0) invert(1);
  }

  .page--index .nav-dropdown-icon {
    filter: none;
  }

  .nav-text {
    font-size: 16px;
    color: #ffffff;
  }

  .dropdown-item {
    display: block !important;
    width: 100%;
    padding: 15px 0;
    pointer-events: auto;
    font-size: 14px;
    padding: 0;
    color: #d1d1d1;
  }

  .dropdown-item__desc {
    display: none !important;
  }

  .navbar-collapse {
    pointer-events: auto;
    background: rgba(0, 81, 119, 0.5);
  }

  .page--index .nav-text {
    color: #000000;
  }

  .page--index .dropdown-item {
    color: #333333;
  }

  .page--index .navbar-collapse {
    background: rgba(0, 81, 119, 0.5);
  }

  .dropdown-menu,
  .nav-dropdown-icon {
    display: none;
  }

  .page--highlights #dropdown-highlights .dropdown-menu,
  .page--highlights #dropdown-highlights .nav-dropdown-icon {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .page--units #dropdown-units .dropdown-menu,
  .page--units #dropdown-units .nav-dropdown-icon {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    opacity: 1;
    visibility: visible;
    width: 100%;
    margin-top: 15px;
    background: transparent;
    box-shadow: none;
    min-width: 100%;
    padding-left: 20px;
    border-radius: 0;
    transition: none !important;
    transform: none !important;
    animation: none;
  }

  .logo {
    width: clamp(90px, 25vw, 150px);
  }

  .site-header {
    padding: 20px clamp(15px, 3vw, 30px);
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
    width: 90%;
  }

  .site-header {
    padding: 20px clamp(0px, 2vw, 20px);
  }

  .logo {
    width: clamp(60px, 18vw, 120px);
  }

  .carousel-slide {
    flex-basis: 100%;
  }

  .carousel-track {
    padding: 0;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 1920px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .hero {
  width: 100%;
  margin-top: 0;
}

.hero-section .zone-title {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 843px;
  z-index: 2;
  margin-top: 0;
}

.hero-stacked-images {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stacked-images__base {
  width: 100%;
  height: auto;
  display: block;
}

.hero-stacked-images__overlay {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) translateX(7%);
  width: clamp(120px, 55vw, 750px);
  height: auto;
  display: block;
}

.zone-title--index .zone-title__image {
  width: clamp(120px, 55vw, 750px);
  height: auto;
  display: block;
  transform: translateX(7%);
}

#Section-01,
#Section-02,
#Section-03,
#Section-04 {
  scroll-margin-top: 50px;
}

/* Utility Classes*/
.u-mt-xs {
  margin-top: var(--space-xs);
}
.u-mt-s {
  margin-top: var(--space-s);
}
.u-mt-m {
  margin-top: var(--space-m);
}
.u-mt-l {
  margin-top: var(--space-l);
}
.u-mt-xl {
  margin-top: var(--space-xl);
}
.u-mt-xxl {
  margin-top: var(--space-xxl);
}

.u-mb-m {
  margin-bottom: var(--space-m);
}
.u-mb-xl {
  margin-bottom: var(--space-xl);
}
.u-mb-xxl {
  margin-bottom: var(--space-xxl);
}
.main-content > *:first-child {
  margin-top: 0 !important;
}

/* Close Button */
.close-btn {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: 2px solid #ffffff !important;
  box-shadow: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  transition: all 0.3s ease;
  border: none;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  box-shadow: none;
}

.close-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .close-btn {
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background-color: transparent;
    border: 1.5px solid #ffffff !important;
  }

  .close-icon {
    width: 20px;
    height: 20px;
  }
}

/* Text Block */

.text-block {
  width: 100%;
  color: #ffffff;
  line-height: 1.8;
  word-break: break-all;
  margin-bottom: 1.5rem;
  font-size: 28px;
}

.text-block-events {
  width: 100%;
  color: #ffffff;
  line-height: 1.8;
  word-break: break-all;
}

.zh-TW {
  text-align: justify;
  word-break: normal;
  letter-spacing: 0.05em;
}

.en {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

.text-block-events {
  width: 100%;
  color: #ffffff;
  line-height: 1.8;
  font-size: 48px;
  text-align: center;
}

@media (max-width: 768px) {
  .text-block {
    font-size: 16px;
    line-height: 1.6;
  }

  .zone-content {
    width: 90%;
  }

  .text-block-events {
    width: 100%;
    color: #ffffff;
    line-height: 1.6;
    font-size: 24px;
    text-align: center;
  }
}

.events-date-header,
.events-text-header {
  width: 85%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
  margin-bottom: 40px;
}

/* grid-container */
.events-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 85%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

/* left sidebar */
.events-text-column {
  text-align: left;
}

.text-large {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.date-large {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.date-large span {
  color: #ffffff;
  font-size: 0.5em;
  margin: 0 5px;
  opacity: 0.8;
}

.date-large small {
  font-size: 0.4em;
  color: #ffffff;
  margin-left: 1px;
}

.location-text {
  font-size: clamp(16px, 1.2vw, 20px);
  color: #fff;
}

.event-article {
  padding-left: 1em;
  margin-bottom: var(--space-m);
  text-align: left;
}

.symbol {
  font-size: 0.8em;
  margin-right: 0.4em;
}

.event-title-gold {
  color: #d4af37;
  font-size: clamp(18px, 4vw, 32px);
  font-weight: bold;
  margin-bottom: 12px;
  text-indent: -1.1em;
}

.event-description {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: justify;
}

.event-time-info .time {
  font-size: clamp(16px, 4vw, 32px);
  font-weight: bold;
  color: #fff;
}

.event-time-info .time .date {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: bold;
  color: #fff;
}

.event-time-info .time small {
  color: #ffffff;
  font-size: 0.5em;
  opacity: 0.8;
}

.event-time-info .time .date span {
  color: #ffffff;
  font-size: 0.5em;
  margin: 0 5px;
  opacity: 0.8;
}

.event-time-info .quota {
  font-size: clamp(16px, 1.2vw, 20px);
  color: #ffffff;
  list-style: none;
  line-height: 1.6;
  margin-bottom: 20px;
}

.speaker-list {
  font-size: clamp(16px, 1.2vw, 20px);
  color: #fff;
  list-style: none;
}

/* right sidebar */
.events-sidebar-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.exhibition-photo {
  width: 100%;
  margin-top: 60px;
}

.exhibition-photo img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-link {
  margin-top: 40px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.registration-link:hover {
  transform: scale(1.05);
}

.reg-icon {
  width: 100px;
  height: auto;
}

@media (max-width: 986px) {
  .events-date-header,
  .events-text-header,
  .events-grid-container {
    width: 90%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .events-date-header,
  .events-text-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom-width: 1.5px;
  }

  .events-grid-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .events-text-column {
    order: 1;
  }

  .events-sidebar-column {
    order: 2;
    margin-top: 0px;
    align-items: center;
  }

  .exhibition-photo {
    margin-top: 0px;
    width: 100%;
  }

  .registration-link {
    width: 100px;
    margin-top: 50px;
  }
}
