/**
 * 首頁樣式 (index.css)
 * @package mytheme
 */
.home-hero__bg {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* home 標題樣式 */
.section-heading__title {
  max-width: 232px;
  font-weight: 500;
  color: var(--color-primary);
  width: 100%;
  height: 52px;
  text-align: center;
  align-content: center;
  background-color: #fff;
  border: 1px solid var(--color-primary);
}

.section-heading__desc {
  margin-top: 28px;
}

/* home 按鈕樣式 */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 136px;
  height: 32px;
  background-color: var(--color-white);
  color: var(--color-primary);
}

.blue-btn {
  color: var(--color-white);
  background-color: var(--color-primary);
}

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

/* about section 樣式 */
.home-about {
  padding: 60px 0 53px;
  background-color: var(--color-primary);
}

.about-container {
  max-width: 930px;
}

.about-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-accent);
  width: 100%;
  height: 64px;
  margin-bottom: 48px;
}

.about-heading__title {
  color: var(--color-primary);
  font-weight: 500;
}

.about-heading__desc {
  font-size: var(--font-size-xl);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
}

.home-about__desc {
  color: #fff;
  margin-bottom: 32px;
}

/* association section 樣式 */
.home-association {
  padding: 69px 0 91px;
  background-image: url("../../images/home-bg-01.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.association-container {
  max-width: 888px;
}

.association-items {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin: 46px;
  width: 100%;
}

.association-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: stretch;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
}

.association-item__title {
  color: var(--color-white);
  background-color: var(--color-primary);
  align-content: center;
  text-align: center;
  width: 100%;
  max-width: 426px;
  height: 65px;
}

.orange-title {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.association-item__desc {
  background-color: var(--color-white);
  height: 69px;
  align-content: center;
  text-align: center;
}

/* corporate body section 樣式 */
.home-corporate-body {
  padding: 91px 0 114px;
}
.corporate-body-container {
  flex-direction: row;
  gap: 122px;
  max-width: 1237px;
}

.corporate-body__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 385px;
}

.corporate-body__desc {
  color: var(--color-primary);
  margin: 28px auto 30px;
}

.corporate-body__items {
  display: flex;
  flex-direction: row;
  gap: 48px;
}

.corporate-body__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: stretch;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.25);
}

.corporate-body__item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--color-primary);
  height: 117px;
}

.corporate-body__item-title {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 20px;
  font-weight: 500;
  padding: 6px 26px;
  align-content: center;
  position: absolute;
  top: -16px;
  text-align: center;
}

.corporate-body__item-desc {
  color: var(--color-primary);
  margin-top: 2.5px;
  max-width: 226px;
}

/*home national section 樣式 */
.home-national-foundation {
  padding: 74px 0;
  background-color: var(--bg-color-cream);
}

.transparent-title {
  background-color: transparent;
}

.home-national-foundation__desc {
  color: var(--color-primary);
  margin-top: 28px;
}

.national-item-wrap {
  width: 100%;
  max-width: 702px;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  margin-top: 34px;
}

.national-item__title {
  background-color: var(--color-white);
  color: var(--color-primary);
  font-weight: 500;
  max-width: 521px;
  width: 100%;
  height: 49px;
  border-radius: 60px;
  align-content: center;
  text-align: center;
}

.national-item__desc {
  color: var(--color-white);
  margin-top: 12px;
}

/* local section 樣式 */
.home-local-foundation {
  position: relative;
  display: flex;
  align-items: center;
  gap: 90px;
  padding: 151px 0;
}

.home-local__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: -1;
  pointer-events: none;
}

.local-foundation-container {
  display: flex;
  flex-direction: row;
  gap: 94px;
  justify-content: center;
}
.local-item-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
}
.local-item {
  height: 366px;
  max-width: 358px;
  border: 1px solid var(--color-primary);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 47px;
  gap: 36px;
}
.local-img-wrap {
  max-width: 264px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.local-img-icon {
  width: 94px;
  height: 94px;
}
.local-title {
  font-weight: 500;
  text-align: center;
  color: var(--color-primary);
}
.local-desc {
  align-self: stretch;
  color: var(--color-primary);
}
.local-heading {
  max-width: 393px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.local-heading-desc {
  max-width: 385px;
  color: var(--color-primary);
}

/* venue section 樣式 */
.home-venue-wrap {
  width: 100%;
  max-width: 1330px;
  height: 397px;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 67px 213px 97px;
  box-sizing: border-box;
  gap: 54px;
}
.venue-heading {
  max-width: 904px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.venue-title {
  font-weight: 500;
  color: var(--color-accent);
  background-color: var(--color-white);
}

.venue-item-title {
  background-color: var(--color-white);
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1.25rem;
  max-width: 232px;
  text-align: center;
  align-content: center;
  flex: 1;
}
.venue-desc {
  max-width: 870px;
  color: var(--color-white);
}
.venue-item {
  max-width: 825px;
  height: 64px;
  width: stretch;
  border: 1px solid var(--color-white);
  box-sizing: border-box;
  display: flex;
  align-content: center;
  align-items: stretch;
  gap: 18px;
}
.venue-item-desc {
  align-content: center;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-white);
}

/* ttqs it section 樣式 */
.ttqs-it {
  width: 100%;
  max-width: 1330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 58px;
  text-align: center;
  margin: 94px auto 116px;
}
.ttqs-it-item-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 42px;
  width: 100%;
}
.ttqs-it-heading {
  height: 91px;
  max-width: 521px;
  flex: 1;
  background: linear-gradient(90deg, #ffc340, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 159px 12px 142px;
  box-sizing: border-box;
}
.ttqs-it-title {
  color: var(--color-primary);
  font-weight: 500;
}
.ttqs-it-desc-wrap {
  max-width: 604px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  text-align: left;
}
.ttqs-it-desc {
  align-self: stretch;
}
.ttqs-it-hr {
  align-self: stretch;
  height: 1px;
  position: relative;
  border-top: 1px solid var(--color-primary);
  box-sizing: border-box;
}

/* fundraising section 樣式 */

.home-fundraising {
  position: relative;
  padding-bottom: 120px;
}

.home-fundraising > *:not(.home-fundraising__bg) {
  position: relative;
  z-index: 1;
}
.fundraising-wrap {
  width: 100%;
  max-width: 1330px;
  height: 286px;
  background-color: var(--color-white);
  border: 3px solid var(--color-primary);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.fundraising-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.fundraising-title-wrap {
  width: 295px;
  height: 75px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 28px 0px 27px;
  box-sizing: border-box;
}
.fundraising-title {
  font-weight: 500;
}
.fundraising-desc {
  color: var(--color-primary);
}

/* ============================================
   1440px 以下
   ============================================ */
@media (max-width: 1440px) {
  .about-container {
    max-width: 90%;
  }

  .association-items,
  .corporate-body__items {
    padding: 0 2rem;
  }
}

/* ============================================
   1024px 以下（平板）
   ============================================ */
@media (max-width: 1024px) {
  .home-about {
    padding: 50px 24px 45px;
  }

  .association-items,
  .corporate-body__items,
  .national-item-wrap,
  .local-item-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .association-item,
  .corporate-body__item,
  .local-item {
    flex: 0 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* ============================================
   768px 以下
   ============================================ */
@media (max-width: 768px) {
  .home-about {
    padding: 40px 20px;
  }

  .about-heading {
    height: auto;
    padding: 16px;
    margin-bottom: 32px;
  }

  .home-association,
  .home-corporate-body,
  .home-national-foundation,
  .home-local-foundation,
  .home-venue-wrap,
  .ttqs-it,
  .home-fundraising {
    padding: 40px 20px;
  }

  .association-item,
  .corporate-body__item,
  .local-item {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .section-heading__title {
    max-width: 180px;
    height: 42px;
    font-size: 1rem;
  }
}
/* ============================================
   480px 以下（手機）
   ============================================ */
@media (max-width: 480px) {
  /* ===== home 共用 ===== */
  .section-heading__title {
    max-width: 136px;
    height: 32px;
    font-size: 16px;
  }

  .section-heading__desc {
    margin-top: 16px;
    font-size: 13px;
    line-height: 22px;
    max-width: 260px;
  }

  .home-btn {
    width: 136px;
    height: 32px;
    gap: 15px;
  }

  .home-btn-text {
    font-size: 13px;
    line-height: 22px;
    font-weight: 600;
  }

  .home-btn-arrow {
    width: 7px;
    height: auto;
  }

  /* ===== about ===== */
  .home-about {
    padding: 37px 0 30px;
  }

  .about-heading {
    flex-direction: column;
    gap: 8px;
    width: 248px;
    height: 132px;
    margin: 0 auto 24px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .about-heading__title {
    font-size: 16px;
  }

  .about-heading__desc {
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0;
    width: 196px;
    text-align: left;
  }

  .home-about__desc {
    width: 248px;
    margin: 0 auto 32px;
    font-size: 13px;
    line-height: 22px;
  }

  .home-about .home-btn {
    margin: 0 auto;
  }

  /* ===== association ===== */
  .home-association {
    padding: 42px 0 68px;
    background-size: cover;
    background-position: bottom;
    background-image: url(../../images/home-bg-01-mobile.webp);
  }

  .association-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px auto 28px;
    padding: 0;
    width: 288px;
  }

  .association-item {
    width: 100%;
    box-shadow: none;
  }

  .association-item__title {
    height: 42px;
    font-size: 14px;
    max-width: none;
  }

  .association-item__desc {
    height: 84px;
    padding: 0 22px;
    font-size: 13px;
    line-height: 22px;
  }

  .home-association .home-btn {
    margin: 0 auto;
  }

  /* ===== corporate body ===== */
  .home-corporate-body {
    padding: 32px 0 60px;
  }

  .corporate-body-container {
    flex-direction: column;
    gap: 32px;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .corporate-body__heading {
    max-width: 248px;
    gap: 0;
  }

  .corporate-body__desc {
    margin: 16px 0 24px;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
  }

  .corporate-body__items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

  .corporate-body__item {
    max-width: 284px;
    margin: 0 auto;
    box-shadow: -2px -5px 13px rgba(0, 0, 0, 0.25);
  }

  .corporate-body__item-img {
    width: 100%;
    height: 207px;
    object-fit: cover;
    display: block;
  }

  .corporate-body__item-wrap {
    height: 88px;
    padding-top: 18px;
    box-sizing: border-box;
  }

  .corporate-body__item-title {
    border-radius: 20px;
    padding: 6px 26px;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    height: 36px;
    min-width: 176px;
    box-sizing: border-box;
  }

  .corporate-body__item-desc {
    max-width: 226px;
    margin-top: 0;
    font-size: 13px;
    line-height: 22px;
  }

  /* ===== national foundation ===== */
  .home-national-foundation {
    padding: 50px 0;
  }

  .home-national-foundation__desc {
    width: 248px;
    margin: 16px auto 0;
    font-size: 13px;
    line-height: 20px;
  }

  .national-item-wrap {
    width: 284px;
    height: 148px;
    margin: 20px auto 0;
    padding: 12px 22px;
    box-sizing: border-box;
    gap: 12px;
  }

  .national-item__title {
    width: 100%;
    max-width: none;
    height: 49px;
    font-size: 16px;
    border-radius: 60px;
  }

  .national-item__desc {
    margin-top: 0;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    max-width: 220px;
  }

  /* ===== local foundation ===== */
  .home-local-foundation {
    padding: 48px 0 0;
    gap: 0;
  }

  .local-foundation-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .local-item-wrap {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .local-item {
    width: 284px;
    background-color: var(--color-white);
    max-width: none;
    height: auto;
    min-height: 284px;
    padding: 32px 24px;
    gap: 20px;
    margin: 0 auto;
  }

  .home-local__bg {
    opacity: 0.7;
  }

  .local-img-wrap {
    max-width: 100%;
    gap: 20px;
  }

  .local-img-icon {
    width: 60px;
    height: 60px;
  }

  .local-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }

  .local-desc {
    font-size: 13px;
    line-height: 22px;
    text-align: left;
    max-width: 178px;
    align-self: center;
  }

  .local-heading {
    max-width: 248px;
    margin: 0 auto;
    gap: 16px;
    order: -1;
  }

  .local-heading-desc {
    max-width: 248px;
    font-size: 13px;
    line-height: 20px;
  }

  /* ===== venue registration ===== */
  .home-venue-registration {
    padding: 48px 16px 0;
    box-sizing: border-box;
    position: relative;
  }

  .home-venue-section-mobile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .home-venue-wrap {
    width: 284px;
    height: auto;
    max-width: none;
    padding: 32px 26px;
    gap: 20px;
    margin: 0 auto;
  }

  .venue-heading {
    gap: 16px;
  }

  .venue-title {
    width: 136px;
    height: 36px;
    font-size: 16px;
    max-width: none;
  }

  .venue-desc {
    font-size: 13px;
    line-height: 22px;
    text-align: left;
    width: 193px;
  }

  .venue-item {
    flex-direction: column;
    width: 182px;
    height: auto;
    gap: 0;
  }

  .venue-item-title {
    width: 100%;
    height: 36px;
    font-size: 16px;
    max-width: none;
    flex: none;
  }

  .venue-item-desc {
    width: 100%;
    height: 73px;
    padding: 0 18px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 22px;
    font-weight: 400;
    text-align: left;
  }

  /* ===== ttqs / 產業人才 ===== */
  .home-ttqs {
    padding: 0 16px;
    box-sizing: border-box;
  }

  .ttqs-it {
    max-width: 100%;
    margin: 50px auto;
    gap: 42px;
    padding: 0;
  }

  .ttqs-it-item-wrap {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .ttqs-it-heading {
    width: 320px;
    max-width: 100%;
    height: 36px;
    padding: 0;
    margin: 0 auto;
    background: linear-gradient(90deg, #ffc340, #fff);
    flex: none;
  }

  .ttqs-it-title {
    font-size: 16px;
  }

  .ttqs-it-desc-wrap {
    align-items: center;
    text-align: left;
    gap: 16px;
    width: 100%;
    max-width: 323px;
    margin: 0 auto;
  }

  .ttqs-it-desc {
    font-size: 13px;
    line-height: 22px;
  }

  .ttqs-it-hr {
    width: 310px;
    margin: 0 auto;
  }

  /* ===== fundraising ===== */
  .home-fundraising {
    padding: 0 16px 60px;
    box-sizing: border-box;
  }

  .fundraising-wrap {
    width: 300px;
    height: 342px;
    max-width: none;
    border-width: 1px;
    padding: 0 24px;
    gap: 12px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .fundraising-item {
    gap: 36px;
  }

  .fundraising-title-wrap {
    width: 188px;
    height: 48px;
    padding: 0;
  }

  .fundraising-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
  }

  .fundraising-desc {
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    max-width: 248px;
  }
}
