/* page-incorporated-association.css */

/* ==================== 桌面基礎樣式 ==================== */
.apply-io-section {
  padding: 0 0 123px;
}
.apply-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  margin: 81px auto 39px;
}
.preparation-container {
  align-self: stretch;
  height: 248px;
  box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preparation-container::after {
  content: "社團法人設立門檻";
  position: absolute;
  top: 3px;
  left: -46px;
  background: linear-gradient(180deg, #e2ae3b, #e2753b);
  color: var(--color-white);
  width: 275px;
  height: 40px;
  font-size: var(--font-size-xl);
  align-content: center;
  text-align: center;
  transform: rotate(-14deg);
  pointer-events: none;
}
.preparation-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preparation-head {
  display: flex;
  align-items: center;
}
.preparation-title {
  color: var(--color-primary);
  position: relative;
  font-weight: 500;
}
.preparation-inner {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 24px;
}
.preparation-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.preparation-item-head {
  width: 115px;
  height: 38px;
  border-radius: 60px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preparation-item-title {
  position: relative;
  color: var(--color-white);
  line-height: 20px;
}
.preparation-desc {
  max-width: 292px;
  width: 100%;
  position: relative;
  line-height: 20px;
  color: var(--color-primary);
  display: inline-block;
}
.preparation-hr {
  height: 100%;
  width: 1px;
  position: relative;
  border-right: 1px solid #000;
  box-sizing: border-box;
}
.blue-item-head {
  background: linear-gradient(0deg, var(--color-primary), #1969b9);
}
.threshold-container {
  align-self: stretch;
  height: 218px;
  box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.threshold-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.threshold-desc,
.documents-desc {
  position: relative;
  line-height: 20px;
  color: #0b2f53;
}

.span2 {
  font-size: var(--font-size-sm);
}
.rd-container {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.registration-container {
  height: 218px;
  padding: 0 59px;
  width: 100%;
  max-width: 590px;
  box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.registration-desc {
  width: 210px;
  position: relative;
  line-height: 20px;
  color: #0b2f53;
  display: inline-block;
}
.documents-container {
  height: 218px;
  max-width: 590px;
  width: 100%;
  box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.documents-wrap {
  width: 450px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}
.documents-head {
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
  font-weight: 500;
  width: 100%;
  padding-bottom: 28px;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  justify-content: center;
}
.documents-items {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px 20px;
  text-align: left;
}
.documents-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.documents-item-icon {
  height: 20px;
  width: 20px;
  border-radius: 13px;
  background-color: #0b2f53;
  border: 1px solid #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
}
.documents-number {
  position: relative;
  color: var(--color-white);
  line-height: 20px;
  flex-shrink: 0;
}

/* npo prof comparison */

.npo-prof-section {
  padding-bottom: 88px;
}
.pros-cons-container {
  width: 100%;
  max-width: 1200px;
  height: 672px;
  gap: 32px;
  position: relative;
  background-color: var(--color-white);
  border: 22px solid var(--color-primary);
  border-top: none;
  border-bottom: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pros-cons-head-wrap {
  width: 210px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.pros-cons-head-icon {
  height: 35.8px;
  width: 32.3px;
  position: relative;
}
.pros-cons-title-wrap {
  width: 166px;
  border-bottom: 3px solid #0b2f53;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px 0px 9px;
}

.pros-cons-head {
  color: var(--color-primary);
}
.pros-cons-title {
  font-size: var(--font-size-xl);
  align-self: stretch;
  position: relative;
  font-weight: 500;
  color: #c8274a;
}
.pros-cons-items {
  max-width: 1060px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  color: #59b90f;
}
.pros-cons-item-green {
  height: 534px;
  max-width: 530px;
  width: 100%;
  background-color: #ecffd9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 63px;
}
.pros-cons-item-head {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pros-cons-item-icon {
  width: 32px;
  height: 32px;
  position: relative;
}
.pros-cons-item-title {
  position: relative;
  font-weight: 500;
}
.pros-cons-item-inner {
  height: 440px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.pros-cons-item-text-wrap {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.pros-cons-item-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pros-cons-dot {
  height: 8px;
  width: 8px;
  position: relative;
  border-radius: 50%;
  background-color: #ffc50d;
}
.pros-cons-desc {
  align-self: stretch;
  position: relative;
  font-size: 16px;
  line-height: 20px;
  color: #0b2f53;
}
.pros-cons-item-red {
  height: 534px;
  max-width: 530px;
  width: 100%;
  background-color: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 63px;
  color: #c8274a;
}
.pros-cons-item-icon2 {
  width: 32px;
  height: 32px;
  position: relative;
}
.pros-cons-item-inner2 {
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

/* npo prof */
.npo-prof {
  padding: 106px 0 104px;
  background-image: url(../../images/international-local-bg.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.npo-prof .section-heading {
  width: 238px;
  height: 50px;
}
.npo-prof .section-title {
  padding-top: 8px;
}
.international-local-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  text-align: center;
  margin-top: 48px;
}

/* 桌機版：compare-scroll-wrap 透明化（display: contents），讓內部 wrap 直接成為 flex 子項 */
.international-local-container > .compare-scroll-wrap {
  display: contents;
}

.international-local-container > .compare-pager {
  display: none;
}

/* 桌機版（≥ 1025px）：item-heading 移到中間，npo 在左、prof 在右 */
@media (min-width: 1025px) {
  .npo-prof-section .international-local-container > .item-heading {
    order: 2;
  }

  .npo-prof-section
    .international-local-container
    > .compare-scroll-wrap
    > .international-wrap {
    order: 1;
  }

  .npo-prof-section
    .international-local-container
    > .compare-scroll-wrap
    > .local-wrap {
    order: 3;
  }

  .threshold-wrap .preparation-desc {
    max-width: none;
  }
}

.item-heading {
  height: 480px;
  max-width: 240px;
  flex: 1;
  background-color: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 24.5px;
  box-sizing: border-box;
  gap: 28px;
  color: #000;
}
.item-name {
  align-self: stretch;
  position: relative;
  line-height: 24px;
}
.item-hr {
  align-self: stretch;
  height: 1px;
  position: relative;
  border-top: 1px solid #686868;
  box-sizing: border-box;
}
.international-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: stretch;
  max-width: 306px;
}
.international-heading-wrap {
  height: 60px;
  width: stretch;
  position: relative;
}
.international-heading {
  position: relative;
  background-color: #316eac;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 57px;
  box-sizing: border-box;
}
.il-title {
  position: relative;
  font-size: var(--font-size-xl);
  color: var(--color-white);
}
.international-dec-icon {
  position: absolute;
  top: 36px;
  left: 139.5px;
  width: 27px;
  height: 24px;
  object-fit: contain;
}
.international-items {
  align-self: stretch;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0px 24px;
}
.international-text {
  align-self: stretch;
  position: relative;
  line-height: 20px;
  color: #000;
  white-space: nowrap;
}
.international-hr {
  width: stretch;
  height: 1px;
  position: relative;
  border-top: 1px solid #686868;
  box-sizing: border-box;
}
.local-wrap {
  width: stretch;
  max-width: 306px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.local-heading {
  position: relative;
  background-color: #e2ae3b;
  width: 306px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 57px;
  box-sizing: border-box;
}
.local-items {
  align-self: stretch;
  height: 480px;
  background-color: #fff8dc;
  box-shadow: 0px 4px 17px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0px 24px;
}

/* entity struct */
.entity-struct-section {
  padding: 88px 0 104px;
  background-color: #ffeabc;
}
.entity-struct-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 86px;
}
.entity-struct-wrap {
  max-width: 1060px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.entity-struct-wrap:first-child .entity-struct-item:first-child::before {
  content: "社團法人"; /* 這是對應右邊項目的標題 */
  position: absolute;
  top: -55px;
  background: linear-gradient(0deg, #0b2f53, #1969b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 48px;
  font-weight: 600;
}

.entity-struct-wrap:first-child .entity-struct-item:last-child::before {
  content: "財團法人"; /* 這是對應右邊項目的標題 */
  position: absolute;
  top: -55px;
  background: linear-gradient(180deg, #e2ae3b, #e2753b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 48px;
  font-weight: 600;
}

.entity-struct-item {
  height: 80px;
  flex: 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}
.entity-struct-desc {
  position: relative;
  max-width: 284px;
  width: 100%;
  height: 100%;
  align-content: center;
  text-align: center;
  flex-shrink: 0;
}
.entity-struct-mid-item {
  height: 80px;
  width: 300px;
  background-color: #316eac;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 左側三角形：指向右方 (內側) */
.entity-struct-mid-item::before {
  content: "";
  position: absolute;
  left: 0; /* 距離左邊邊緣的距離 */
  top: 50%;
  transform: translateY(-50%);

  /* 三角形構造：左邊框有顏色，箭頭就會指向右 */
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 25px solid white;
}

/* 右側三角形：指向左方 (內側) */
.entity-struct-mid-item::after {
  content: "";
  position: absolute;
  right: 0; /* 距離右邊邊緣的距離 */
  top: 50%;
  transform: translateY(-50%);

  /* 三角形構造：右邊框有顏色，箭頭就會指向左 */
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 25px solid white;
}

.entity-struct-mid-text {
  position: relative;
  font-weight: 500;
  color: var(--color-white);
  font-size: var(--font-size-xl);
}
.entity-struct-mid-item-blue {
  height: 80px;
  width: 300px;
  background-color: #0b2f53;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 左側三角形：指向右方 (內側) */
.entity-struct-mid-item-blue::before {
  content: "";
  position: absolute;
  left: 0; /* 距離左邊邊緣的距離 */
  top: 50%;
  transform: translateY(-50%);

  /* 三角形構造：左邊框有顏色，箭頭就會指向右 */
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 25px solid white;
}

/* 右側三角形：指向左方 (內側) */
.entity-struct-mid-item-blue::after {
  content: "";
  position: absolute;
  right: 0; /* 距離右邊邊緣的距離 */
  top: 50%;
  transform: translateY(-50%);

  /* 三角形構造：右邊框有顏色，箭頭就會指向左 */
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 25px solid white;
}

/* asc age */
.asc-con-section {
  padding: 88px 0 24px;
}

.asc-con-section .container {
  max-width: 100%;
  padding: 0 20px;
}
.asc-age-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 62px;
  margin: 48px auto 64px;
}
.asc-age-heading {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asc-age-title-deco {
  max-width: 542px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.asc-age-hr {
  align-self: stretch;
  height: 1px;
  position: relative;
  background: linear-gradient(0deg, #0b2f53, #1969b9) border-box;
  border-top: 1px solid transparent;
  box-sizing: border-box;
}
.asc-age-title-wrap {
  height: 44px;
  width: 300px;
  background: linear-gradient(0deg, #0b2f53, #1969b9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.asc-age-title {
  color: var(--color-white);
  position: relative;
  font-weight: 500;
  font-size: var(--font-size-xl);
}
.asc-age-wrap {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 62px 32px;
  text-align: center;
}
.asc-age-item {
  display: flex;
  align-items: stretch;
  height: 102px;
}
.asc-age-item-head {
  width: 228px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  gap: 10px;
}
.asc-age-item-number {
  height: 68px;
  width: 68px;
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 180px;
  background: linear-gradient(0deg, #0b2f53, #1969b9);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0px 0px;
  box-sizing: border-box;
  z-index: 0;
  flex-shrink: 0;
}
.asc-age-item-number-text {
  font-size: var(--font-size-xl);
  font-weight: 500;
  align-items: center;
  color: var(--color-white);
}
.asc-age-item-title-wrap {
  align-self: stretch;
  width: stretch;
  background-color: var(--color-white);
  border: 1px solid var(--color-primary);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 16px;
  z-index: 1;
}
.asc-age-item-title {
  color: var(--color-primary);
  font-weight: 500;
}
.asc-age-text-wrap {
  height: 102px;
  max-width: 445px;
  width: 100%;
  padding: 0 16px;
  background-color: #e0f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asc-age-text {
  max-width: 413px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.gold-bg {
  background: linear-gradient(180deg, #e2ae3b, #e2753b) border-box;
}
.gold-border {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #e2ae3b, #e2753b) border-box;
  border: 1px solid transparent;
}

.gold-text-bg {
  background-color: #fff8dc;
}

/* agent cost */
.agent-cost-section {
  padding: 72px 0 160px;
  margin-bottom: -35px;
  background-color: #d9d9d9;
}
.agent-cost-container {
  width: 100%;
  max-width: 1066px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  margin-top: 38px;
}
.agent-cost-why {
  display: flex;
  align-items: center;
  gap: 24px;
  width: stretch;
  justify-content: center;
}
.agent-cost-why-wrap {
  height: 50px;
  max-width: 431px;
  width: 100%;
  background: linear-gradient(90deg, #ffc340, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-cost-why-title {
  color: var(--color-primary);
  position: relative;
  font-weight: 600;
}
.agent-cost-why-desc {
  position: relative;
}
.agent-cost-items {
  display: flex;
  gap: 40px;
}
.agent-cost-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.agent-cost-dot-icon {
  width: 15px;
  position: relative;
  max-height: 100%;
}
.agent-cost-item-desc {
  position: relative;
  text-align: center;
}
.agent-cost-sec-desc-wrap {
  align-self: stretch;
  height: 118px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 大螢幕 (max-width: 1440px) ==================== */
@media (max-width: 1440px) {
  .apply-io-section,
  .npo-prof-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==================== 平板 (max-width: 1024px) ==================== */
@media (max-width: 1024px) {
  .preparation-inner,
  .documents-items {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 16px;
  }

  .threshold-wrap,
  .registration-container,
  .documents-wrap,
  .pros-cons-container {
    flex-direction: column;
    gap: 24px;
    width: auto;
    height: auto;
  }

  /* 左欄比較項目固定 + 右側 scroll-snap 切換（與協會頁一致） */
  .international-local-container {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0;
    align-items: end;
    margin-top: 32px;
    overflow: hidden;
  }

  .item-heading {
    grid-column: 1;
    height: auto;
    max-width: none;
    /* 上方 70px = 右側 header(60px) + 容器 gap(10px)，與右側起始位對齊 */
    padding: 70px 8px 24px;
    gap: 36px;
    flex: none;
    justify-content: flex-start;
  }

  .item-name {
    font-size: 0.875rem;
    line-height: 20px;
    text-align: center;
    margin: 0;
  }

  /* 右側水平滑動容器（覆寫桌機版的 display: contents） */
  .international-local-container > .compare-scroll-wrap {
    grid-column: 2;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .international-local-container > .compare-pager {
    display: flex;
    max-width: 110px;
    width: 100%;
    justify-self: center;
  }

  .compare-scroll-wrap::-webkit-scrollbar {
    display: none;
  }

  .international-wrap,
  .local-wrap {
    flex: 0 0 100%;
    width: 100%;
    gap: 26px;
    max-width: none;
    height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    justify-content: flex-start;
  }

  .international-items,
  .local-items {
    height: auto;
    padding: 24px 16px;
    gap: 36px;
    justify-content: flex-start;
  }

  /* 每項固定 2 行高度：左右兩側等高，多行文字換行但不推擠下一項 */
  .international-text {
    white-space: normal;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* 文字超出時用刪節號截斷，避免推擠下一項 */
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }

  /* 左側 item-name 也對齊到 2 行高度 */
  .item-name {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 進度條：對齊右側拖曳欄位下方 */
  .compare-pager {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    background-color: rgba(11, 47, 83, 0.25);
    gap: 0;
    position: relative;
    height: 4px;
    overflow: visible;
  }

  /* 滑塊（藍色 50px 條）：透過 left 屬性切換位置獲得拖曳動畫 */
  .compare-pager::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 4px;
    border-radius: 60px;
    background-color: #316eac;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    pointer-events: none;
  }

  /* dot 仍保留作為點擊熱區，視覺上隱形 */
  .compare-pager__dot {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  /* 第 2 個 dot active 時，滑塊靠右對齊 */
  .compare-pager:has(.compare-pager__dot:nth-child(2).is-active)::before {
    left: calc(100% - 50px);
  }
}

/* ==================== 768px 以下 ==================== */
@media (max-width: 768px) {
  .apply-io-section,
  .npo-prof-section {
    padding: 40px 1rem;
  }

  .apply-container {
    margin: 60px auto 48px;
  }

  .preparation-container {
    padding: 44.5px 23.5px;
    height: 100%;
    max-width: 289px;
    align-self: center;
  }

  .threshold-container,
  .documents-container,
  .registration-container {
    padding: 34.5px 23.5px;
    height: 100%;
    max-width: 289px;
    align-self: center;
    align-items: stretch;
  }

  .preparation-container::after {
    width: 168px;
    height: 40px;
    font-size: var(--font-size-gl);
    top: -18px;
    left: -14px;
  }
  .preparation-wrap {
    width: 100%;
  }

  .preparation-title,
  .documents-head {
    font-size: 1.125rem;
  }

  .preparation-inner,
  .documents-items {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .preparation-item-title {
    font-size: 1rem;
  }

  .preparation-hr {
    width: 100%;
    border-top: 1px solid #000;
  }

  .threshold-desc,
  .registration-desc,
  .documents-desc {
    line-height: normal;
    width: auto;
  }
  .span2 {
    font-size: 14px;
  }

  .documents-item {
    padding: 0 11px;
  }

  .rd-container {
    flex-direction: column;
  }

  .pros-cons-container {
    border: 11px solid var(--color-primary);
    border-top: none;
    border-bottom: none;
    padding: 18.5px 11px 17px;
  }

  .pros-cons-head {
    font-size: 1.25rem;
    font-weight: 500;
  }

  .pros-cons-items {
    flex-direction: column;
  }

  .pros-cons-item-green,
  .pros-cons-item-red {
    gap: 24px;
    padding: 0 23px 0 11px;
  }

  .pros-cons-item-title,
  .pros-cons-title {
    font-size: 13px;
    text-align: center;
  }
  .pros-cons-item-head {
    width: 36px;
    gap: 0;
  }

  .pros-cons-item-icon,
  .pros-cons-item-icon2 {
    width: 36px;
    height: 36px;
  }

  .pros-cons-desc {
    font-size: 12px;
  }

  /* asc age */

  .asc-con-section {
    padding: 54px 0 48px;
  }
  .asc-age-container {
    margin: 28px auto 0;
  }

  .asc-age-item-head {
    width: auto;
  }

  .asc-age-item-number {
    top: -34px;
    padding: 9px 0 0;
  }

  .asc-age-item-title-wrap {
    width: 100px;
  }
  .asc-age-item-title {
    font-size: 13px;
  }

  .asc-age-item-number-text {
    font-size: 1.25rem;
  }

  .asc-age-text {
    font-size: var(--font-size-sm);
    flex-shrink: 1;
    text-align: left;
  }

  .asc-age-title-wrap {
    height: 28px;
    max-width: 96px;
    width: 100%;
  }

  .asc-age-title {
    font-size: var(--font-size-gl);
    line-height: 1;
  }

  /*.entity struct */
  .entity-struct-section {
    padding: 31px 0 32px;
  }

  .entity-struct-wrap {
    height: 165px;
    align-items: stretch;
  }

  .entity-struct-item {
    height: auto;
    padding: 0 25px;
  }

  .entity-struct-container {
    margin-top: 48px;
  }

  .entity-struct-wrap:first-child .entity-struct-item:first-child::before,
  .entity-struct-wrap:first-child .entity-struct-item:last-child::before {
    font-size: 24px;
    top: -30px;
  }

  .entity-struct-mid-item,
  .entity-struct-mid-item-blue {
    max-width: 86.65px;
    height: auto;
  }
  .entity-struct-mid-text {
    font-size: 13px;
    text-align: center;
  }

  .entity-struct-mid-item-blue::after,
  .entity-struct-mid-item::after {
    right: -16px;
  }
  .entity-struct-mid-item-blue::before,
  .entity-struct-mid-item::before {
    left: -16px;
  }

  .entity-struct-desc {
    line-height: normal;
  }

  /* agent cost */
  .agent-cost-section {
    padding: 38px 0 83px;
  }
  .agent-cost-container {
    gap: 30px;
  }

  .agent-cost-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 37px;
  }

  .agent-cost-why-wrap {
    max-width: 280px;
  }
  .agent-cost-why {
    display: flex;
    flex-direction: column;
  }

  .agent-cost-sec-desc-wrap {
    align-self: center;
    max-width: 275px;
    padding: 0 42.5px;
  }

  .agent-cost-item-desc {
    line-height: normal;
  }
}

/* ==================== 小平板 (max-width: 992px) ==================== */
@media (max-width: 992px) {
}

/* ==================== 手機 (max-width: 480px) ==================== */
@media (max-width: 480px) {
  .apply-io-section,
  .npo-prof-section {
    padding: 28px 12px;
  }

  .preparation-title,
  .documents-head {
    font-size: 1rem;
  }

  .preparation-item-title {
    font-size: 0.9375rem;
  }

  .preparation-desc {
    font-size: 13px;
    line-height: 1.6;
  }
  .documents-desc3,
  .documents-desc4 {
    font-size: 0.875rem;
  }

  /* ===== 比較項目區塊（與協會頁完全一致） ===== */
  .international-local-container {
    gap: 24px;
    margin-top: 32px;
    justify-content: center;
  }

  .item-heading {
    height: 469px;
    max-width: none;
    padding: 46px 21px;
    gap: 28px;
    box-sizing: border-box;
  }

  .item-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    align-self: center;
  }

  .item-heading h3.item-name:first-of-type {
    margin-top: 0;
  }

  .international-wrap {
    width: 120px;
    max-width: none;
    order: 1;
  }

  .local-wrap {
    width: 120px;
    max-width: none;
    order: 3;
  }

  .international-heading-wrap {
    height: auto;
  }

  .international-heading,
  .local-heading {
    width: 100%;
    height: 47px;
    padding: 0;
  }

  .il-title {
    font-size: 16px;
  }

  .international-dec-icon {
    right: 50%;
    transform: translateX(50%);
    left: auto;
    width: 15px;
    height: 20px;
    object-fit: cover;
  }

  .international-items,
  .local-items {
    height: 469px;
    padding: 46px 5px;
    gap: 28px;
    box-shadow: none;
  }

  .international-text {
    line-height: 19px;
    white-space: normal;
    text-align: center;
    color: #000;
  }

  .hide-on-mobile {
    display: none;
  }
}
