:root {
  --color-bg: #fbfbfb;
  --color-bg-gray: #ced4da;
  --color-text: #2b2b2b;
  --color-text-gray: #858181;
  --color-theme: #172554;
  --color-theme-light: #1e3a8a;
  --color-theme-soft: #bfdbfe;
  --color-accent: #f59e0b;

  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;

  --section-padding-x: 7em;
  --section-padding-y: 1.25rem;
  --section-max-width: 1280px;

  --style-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --style-transition: all 0.24s ease-in-out;

  font-size: var(--font-size-md);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: clamp(48px, 9.3vw, 96px);
}

h3 {
  font-size: clamp(30px, 4.68vw, 48px);
}

h4 {
  font-size: clamp(24px, 3.9vw, 40px);
}

h5 {
  font-size: clamp(20px, 3.5vw, 36px);
}

h6 {
  font-size: clamp(20px, 3.1vw, 32px);
}

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

input,
textarea {
  font-size: 1rem;
}

input,
textarea,
button {
  border: none;
}

input:focus,
textarea:focus {
  outline: none;
}

.btn {
  display: block;
  min-width: min(150px, 100%);
  padding: 0.5rem;
  text-align: center;
  font-size: var(--font-size-md);
  font-weight: 700;
  cursor: pointer;
}

.btn--lg {
  padding: 0.75rem;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-theme);
}

.btn--outline-accent {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline-white {
  border: 2px solid #fff;
  color: #fff;
}

.btn--radius-pill {
  border-radius: 999px;
}

.btn--radius {
  border-radius: 20px;
}

.btn--radius-s {
  border-radius: 10px;
}

.section {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: var(--section-padding-x) var(--section-padding-y);
}

.section .section__title {
  margin-bottom: 3em;
}

.section__title {
  width: max-content;
  margin: 0 auto;
  padding: 0.5rem 3rem;
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-theme-light);
}

.section__title span {
  color: var(--color-accent);
}

.page-title-group {
  position: relative;
  overflow: hidden;
  height: clamp(150px, 39vw, 400px);
}

.page-title-group img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-title-group .section__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta {
  background-image: url("/static/main/assets/images/background6.webp");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.cta__title {
  line-height: 2;
}

.cta__btn {
  width: fit-content;
  margin: 2rem auto 0;
}

.issue {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 3rem var(--section-padding-y);
}

.issue__breadcrumb {
  margin-bottom: 2rem;
}
.issue__inner {
  display: flex;
  gap: 4rem;
}

.issue__tabs,
.issue__header {
  letter-spacing: 0.1rem;
}

.issue__tabs {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  white-space: nowrap;
}

.issue__tabs .issue__tab:not(:last-child) {
  margin-bottom: 3rem;
}

.issue__tab {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: var(--style-shadow);
  background: var(--color-bg-gray);
  color: #fff;
  cursor: pointer;
}

.issue__tab--active {
  background: var(--color-theme-light);
  font-weight: 700;
}

.issue__content {
  flex-grow: 1;
}

.issue__header {
  display: flex;
  align-items: end;
  gap: 1.5rem;
}

.issue__title,
.issue__subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.issue__title-deco {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--color-theme-light);
}

.issue__description {
  margin-bottom: 0.25rem;
}

.issue__subtitle {
  margin: 2.5rem 0 1.5rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.issue__subtitle-deco {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--color-accent);
}

.issue__list {
  margin-top: 4.5rem;
}

.issue__list .issue__item:not(:last-child)::after {
  content: "";
  display: block;
  width: 80%;
  height: 1px;
  margin: 0 auto;
  background: #939393;
}

.issue__item-inner {
  display: flex;
  align-items: start;
  gap: 2rem;
}

.issue__list .issue__item:not(:first-child) .issue__item-inner {
  margin-top: 3rem;
}

.issue__list .issue__item .issue__item-inner {
  margin-bottom: 3rem;
}

.issue__item-image {
  position: relative;
  max-width: 250px;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 20px;
}

.issue__item-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 5px solid var(--color-theme-light);
  border-radius: 20px;
  opacity: 50%;
}

.issue__item-image img:nth-child(1) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue__item-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.issue__item-arrow {
  display: none;
}

.issue__item-content {
  max-height: max(200px, calc(960px - 1vw * 50));
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 3rem;
}

.issue__item-content a {
  align-self: start;
  height: min-content;
  min-width: 225px;
  padding: 0 2rem;
  border-radius: 5px;
  box-shadow: var(--style-shadow);
  background: var(--color-bg-gray);
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.news__item,
.news__cover {
  border-radius: 15px;
}

.news__item {
  box-shadow: var(--style-shadow);
}

.news__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

.news__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__item-btn {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-width: 3px;
}

.news__content {
  padding: 0.75rem 1rem;
}

.news__tag {
  color: var(--color-accent);
}

.news__title,
.news__item-intro,
.news__footer {
  color: var(--color-theme);
}

.news__title,
.news__item-intro {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.news__title {
  margin: 0.75rem 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.news__footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.news__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news__author-avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.news__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__author-position {
  font-size: 14px;
}

.contact__form {
  margin-bottom: 0.5rem;
}

.contact__form > :not(:last-child) {
  margin-bottom: 1.5rem;
}

.contact__form-row {
  display: flex;
  gap: 1.5rem;
}

.contact__form-row .contact__input,
.contact__form-row .contact__radio-group {
  flex-basis: 50%;
}

.contact__radio-group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-left: 1rem;
}

.contact__input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: var(--color-bg-gray);
  box-shadow: inset var(--style-shadow);
}

.contact__input::placeholder {
  color: var(--color-text-gray);
}

.contact__input[name="message"] {
  height: 150px;
}

.contact__radio label {
  color: var(--color-accent);
  font-weight: 700;
}

.contact__submit {
  margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  z-index: 998;
  top: 0;
  left: 0;
  background: var(--color-theme);
  transition: var(--style-transition);
}

.header--hidden {
  top: -100%;
}

.header__nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}

.header__link,
.header__logo-group,
#header-menu__btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.header-service {
  position: relative;
  gap: 0.25rem;
}

.header-service img {
  width: 15px;
  height: 1rem;
}

.header-service__menu {
  position: absolute;
  z-index: 998;
  top: 100%;
  left: 0;
  height: 0;
  overflow: hidden;
  background: var(--color-bg-gray);
  color: var(--color-text);
  transition: var(--style-transition);
  opacity: 0;
}

.header-service__menu a {
  display: block;
  padding: 0.75rem 1.5rem;
}

.header-service__menu a:hover {
  color: var(--color-theme);
}

.header-service:hover .header-service__menu {
  height: auto;
  opacity: 1;
}

.header__logo {
  width: 50px;
  height: 50px;
}

.header__logo-text {
  display: none;
}

#header-menu__btn {
  display: none;
  cursor: pointer;
}

#header-menu__btn img {
  width: 1.5rem;
  height: 1.5rem;
}

.header-menu {
  position: fixed;
  z-index: 999;
  top: -100%;
  left: 0;
  width: 100%;
  background: var(--color-theme);
  color: #fff;
  text-align: center;
  transition: var(--style-transition);
}

.header-menu--active {
  top: 0;
}

#header-menu__close {
  position: absolute;
  right: 1.7rem;
  top: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
}

.header-menu__link {
  display: block;
  padding: 1rem;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 6em;
  background: var(--color-theme);
  color: #fff;
}

.footer__inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-y);
}

.footer__content,
.footer__logo,
.footer__menu {
  display: flex;
}

.footer__logo,
.footer__menu a:not(.footer__menu-title),
.footer__copyright {
  color: var(--color-theme-soft);
}

.footer__content {
  justify-content: space-between;
  gap: 4rem;
}

.footer__logo {
  flex-shrink: 0;
  align-items: center;
  flex-grow: 0;
  flex-shrink: 0;
  gap: 1rem;
}

.footer__logo img {
  width: clamp(36px, 6.94vw, 100px);
  height: clamp(36px, 6.94vw, 100px);
}

.footer__logo > div {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
}

.footer__menu {
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.footer__menu-title,
.footer__menu-item {
  display: block;
}

.footer__menu-item {
  line-height: 2;
}

.footer__menu-title {
  color: #fff;
  margin-bottom: 0.75em;
  font-weight: 700;
}

.footer__social {
  display: flex;
  justify-content: end;
  gap: 1.5rem;
}

.footer__copyright {
  padding: 1rem 0;
  text-align: center;
}

/* ---------- Social Media ---------- */
.social-fixed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
}

.social-fixed img {
  width: 3rem;
  height: 3rem;
  transition: var(--style-transition);
}

.social-fixed img:hover {
  transform: scale(1.1);
}

@media only screen and (max-width: 1024px) {
  .footer {
    padding-top: 2rem;
  }

  .footer__content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__logo-text {
    display: flex;
    color: #fff;
  }

  .footer__menu {
    gap: 0.5rem;
  }

  .footer__social {
    justify-content: center;
  }
}

@media only screen and (max-width: 1024px) {
  :root {
    --font-size-lg: 18px;
    --section-padding-x: 5rem;
  }
}

@media only screen and (max-width: 768px) {
  :root {
    font-size: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;
    --section-padding-x: 3rem;
  }

  .section .section__title {
    margin-bottom: 3rem;
  }

  .issue__breadcrumb {
    margin-bottom: 1rem;
    text-align: center;
  }

  .issue__tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  .issue__tabs .issue__tab:not(:last-child) {
    margin-bottom: 0;
  }

  .issue__inner {
    flex-direction: column;
  }

  .issue__header {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }

  .issue__subtitle-deco {
    width: 20px;
    height: 20px;
  }

  .issue__description {
    margin-left: calc(30px + 1rem);
  }

  .issue__list {
    margin-top: 3rem;
  }
}

@media only screen and (max-width: 576px) {
  .header__link {
    display: none;
  }

  .header__logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .header__logo {
    width: 1.75rem;
    height: 1.75rem;
  }

  .header__logo-text,
  #header-menu__btn {
    display: block;
  }

  .footer__menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__menu-title {
    color: var(--color-text-gray);
  }

  .footer__menu-item {
    display: none;
  }

  .footer__social {
    display: none;
  }

  .social-fixed {
    bottom: 1rem;
    right: 1rem;
  }

  .section__title {
    padding: 0.5rem 1.5rem;
  }

  .contact__form-row {
    flex-direction: column;
    align-items: center;
  }

  .issue__list .issue__item:not(:last-child)::after {
    display: none;
  }

  .issue__breadcrumb,
  .issue__tabs {
    display: none;
  }

  .issue__item-inner {
    flex-direction: column;
    align-items: center;
  }

  .issue__item-arrow {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    display: block;
    width: 28px;
    height: 25px;
    cursor: pointer;
    transition: var(--style-transition);
  }

  .issue__item-content {
    height: 0;
    overflow: hidden;
    width: min(250px, 100%);
    opacity: 0;
    transition: var(--style-transition);
  }

  .issue__item-content a {
    width: 100%;
    min-width: unset;
  }

  .issue__item.collapse__item--active .issue__item-content {
    height: auto;
    overflow: visible;
    opacity: 1;
  }

  .issue__item.collapse__item--active .issue__item-arrow {
    transform: rotate(180deg);
    transform-origin: 22% 30%;
  }
}
