/* page-npo-consulting-firm.css */
/* ==================== 桌面基礎樣式 ==================== */
/* introduce section */
.company-introduce {
  width: 100%;
  position: relative;
  background-color: #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 48px;
  box-sizing: border-box;
  gap: 5px;
}

.introduce-desc {
  text-align: center;
  margin: 31px auto 37px;
  max-width: 837px;
}

/* why choose us section */
.about-why-us {
  padding: 65px 0 51px;
  background-image: url(../../images/why-choose-bg.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.about-why-us-desc-text {
  display: none;
}
.why-choose-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 81px;
  margin: 70px auto;
  width: 100%;
  max-width: 1061px;
}

.why-choose-item {
  display: flex;
  align-items: center;
  position: relative;
}

.why-number {
  font-size: 36px;
  background: linear-gradient(0deg, #0b2f53, #1969b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
  position: absolute;
  left: -18px;
  z-index: 3;
  font-weight: 700;
}

.why-chooose-item-wrap {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 276px;
  background-color: var(--color-primary);
  padding: 0 13px 0 61px;
  max-width: 490px;
  flex: 1;
}

.why-gold-item-wrap {
  background-color: var(--color-accent);
}

.why-chooose-item-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-50%);
  width: 102px;
  height: 102px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 1;
}

.why-choose-title {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--color-white);
}

.why-hr {
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
}

.why-choose-desc {
  color: var(--color-white);
  text-align: left;
  max-width: 347px;
}

/* ==================== 大螢幕 (max-width: 1440px) ==================== */
@media (max-width: 1440px) {
  .why-choose-container {
    padding: 0 2rem;
    gap: 28px 50px;
  }

  .introduce-desc {
    padding: 0 1rem;
  }
}

/* ==================== 平板 (max-width: 1024px) ==================== */
@media (max-width: 1024px) {
  .about-why-us {
    padding: 50px 1.5rem;
  }

  .why-choose-container {
    gap: 24px 32px;
    margin: 50px auto;
  }

  .why-chooose-item-wrap {
    height: 240px;
    padding: 0 16px 0 50px;
  }

  .why-number {
    font-size: 30px;
    left: -10px;
  }
}

/* ==================== 768px 以下 ==================== */
@media (max-width: 768px) {
  .about-why-us {
    background-image: url(../../images/why-choose-bg-mobile.webp);
    padding: 40px 1rem;
  }

  .about-why-us-desc-text {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    max-width: 303px;
  }

  .why-choose-container {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px auto;
  }

  .why-chooose-item-wrap {
    height: auto;
    min-height: 200px;
    padding: 32px 20px 32px 60px;
    max-width: 100%;
  }

  .why-chooose-item-wrap::after {
    width: 80px;
    height: 80px;
  }

  .why-number {
    font-size: 28px;
    left: -6px;
  }

  .why-choose-title {
    font-size: 1.125rem;
  }

  .why-choose-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .introduce-desc {
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

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

/* ==================== 手機 (max-width: 480px) ==================== */
@media (max-width: 480px) {
  /* ===== 公司介紹 ===== */
  .company-introduce {
    padding: 0 16px 32px;
    gap: 24px;
    box-sizing: border-box;
  }

  .introduce-desc {
    margin: 16px auto 24px;
    max-width: 303px;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
  }

  /* ===== 為何要選擇我們 ===== */
  .about-why-us {
    padding: 38px 0;
    background-size: contain;
    background-position: top;
  }

  .why-choose-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 32px auto;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .why-choose-item {
    justify-content: flex-start;
  }

  .why-number {
    font-size: 36px;
    left: -18px;
    z-index: 3;
  }

  .why-chooose-item-wrap {
    width: 100%;
    height: 378px;
    padding: 0 41px 0 89px;
    gap: 27px;
  }

  /* 手機版重排：1, 3 藍底；2, 4 金底（覆寫 HTML 原本的順序） */
  .why-choose-container > .why-choose-item:nth-child(1) .why-chooose-item-wrap,
  .why-choose-container > .why-choose-item:nth-child(3) .why-chooose-item-wrap {
    background-color: var(--color-primary);
  }

  .why-choose-container > .why-choose-item:nth-child(2) .why-chooose-item-wrap,
  .why-choose-container > .why-choose-item:nth-child(4) .why-chooose-item-wrap {
    background-color: var(--color-accent);
  }

  .why-chooose-item-wrap::after {
    width: 102px;
    height: 102px;
  }

  .why-choose-title {
    font-size: 16px;
    text-align: center;
    width: 170px;
  }

  .why-choose-desc {
    font-size: 13px;
    line-height: 22px;
    max-width: 170px;
    width: 170px;
  }
}
