/**
 * SEO是什麼頁面樣式
 *
 * 此檔案包含網站架設頁面的所有特定樣式
 * 引入順序：依賴於 component.css（統一樣式）
 *
 * @package 瓦吉科技
 */

/* SEO是什麼 區塊 */
.what-is-seo-section {
  padding: 8.813rem 0;
}

.gear-img {
  position: absolute;
  right: -15rem;
  top: -2rem;
}

.circle-img {
  position: absolute;
  left: -10rem;
  top: 34rem;
}

.seo-items {
  margin-top: 8.75rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  gap: 6.25rem 3.75rem;
  width: 100%;
  max-width: 1140px;
}

.seo-item {
  width: 100%;
  max-width: 33.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.seo-item-title {
  background: #FFF;
  padding: 2.188rem 9.375rem;
  border-radius: 3.438rem;
  border: 3px solid #000;
  width: 100%;
  max-width: 30rem;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  z-index: 5;
}

.yellow-img {
  margin-top: -22px;
  z-index: 1;
}

.seo-red-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #960000;
  margin-top: 1.5rem;
  gap: 12px;
  justify-content: center;
}

.seo-description {
  margin-top: 1.5rem;
  min-height: 155px;
}

/* seo how to do */
.seo-to-do-section {
  background: linear-gradient(180deg, #FFFCD7 0%, #FFFFFF 100%);
  padding-top: 3.75rem;
  padding-bottom: 7.5rem;
}

.title-left-img {
  position: relative;
  top: -45px;
  left: -25px;
}

.title-right-img {
  position: relative;
  top: -6rem;
}

.todo-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 110%;
  max-width: 1500px;
  justify-content: center;
  gap: 4.5rem 2.5rem;
  margin-top: 128px;
}

.todo-item {
  height: 372px;
  width: 100%;
  max-width: 732px;
  padding: 1.813rem 2.625rem 2.813rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
}

.todo-title {
  font-weight: 600;
}

.title-bottom-img {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.todo-description {
  margin-left: 1.25rem;
  line-height: 1.6;
}

/* 費用區塊 */
.cost-section {
  padding-top: 11.25rem;
  padding-bottom: 2.813rem;
}

.cost-title-img {
  position: absolute;
  top: -11.25rem;
  left: -3rem;
  z-index: 5;
}

.cost-items {
  display: flex;
  gap: 3rem;
  width: 110%;
  max-width: 93.125rem;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 76px;
}

.cost-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  height: 400px;
  text-align: center;
  border: 3px solid #000;
  background: #FFF;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}

.cost-title {
  font-weight: 400;
  height: 6.5rem;
  padding: 0 155px;
  border: 3px solid #000;
  border-radius: 3.75rem;
  align-content: center;
}

.cost-description {
  max-width: 565px;
  margin-top: 3.438rem;
}

/* about offer section */
.about-offers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1038px;
  width: 100%;
  height: 576px;
  padding: 50px 33px 50px 40px;
  margin-top: 2.813rem;
  margin-bottom: 6.563rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid #000;
  border-image: repeating-linear-gradient(45deg,
      #000 0 25px,
      /* 線段長度 25px */
      transparent 10px 40px
      /* 20px 間距 (10px + 20px = 30px) */
    ) 3 round;
}

.offers-up {
  display: flex;
  flex-direction: row;
  gap: 36px;
}

.about-offers .page-cta-wrapper {
  margin-top: 15px !important;
}

@media (max-width: 1440px) {
  .gear-img {
    right: -8rem;
    top: -11rem;
  }
}

@media (max-width: 1024px) {
  .gear-img {
    right: -2rem;
  }

  .todo-items {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 35px;
    justify-items: center;
  }

  .cost-items {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .todo-item {
    padding: 0.813rem 1.625rem;
  }

  .about-offers {
    height: 100%;
  }

  .about-offers-img {
    height: 190px;
  }

  .offers-text {
    font-size: 1.125rem;
  }
}

@media (max-width:480px) {

  /* SEO優化區塊 */
  .what-is-seo-section {
    padding-top: 1rem;
    padding-bottom: 56px;
  }

  .what-is-seo-section .section-description {
    font-size: 0.75rem;
    margin: 0;
    max-width: 264px;
  }

  .seo-person-img {
    max-width: 221px;
    width: 100%;
    position: relative;
    right: -6%;
    margin-top: 15px;
  }

  .seo-items {
    margin-top: 0;
    gap: 42px;
  }

  .seo-item-title {
    padding: 13px 60px;
    max-width: 205px;
    width: 100%;
    border: 1px solid #000;
  }

  .yellow-img {
    max-width: 128px;
    width: 100%;
    margin-top: -8px;
  }

  .seo-description {
    max-width: 210px;
    margin-top: 0.5rem;
    min-height: auto;
  }

  .gear-img {
    width: 45px;
    height: auto;
    right: -1rem;
    top: 33rem;
  }

  .circle-img {
    width: 43px;
    height: auto;
    left: 1rem;
    top: 50rem;
  }

  /* SEO怎麼做 */
  .seo-to-do-section {
    padding-top: 8px;
    padding-bottom: 37px;
  }

  .title-right-img {
    width: 45px;
    height: auto;
    top: -2rem;
    right: 1rem;
  }

  .title-left-img {
    width: 26px;
    height: auto;
    top: -1rem;
    left: 0rem;
  }

  .todo-items {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    gap: 18px;
    margin-top: 18px;
  }

  .todo-item {
    padding: 15px;
    max-width: 300px;
    height: 155px;
  }

  .title-bottom-img {
    margin: 8px 0;
    height: 4px;
    max-width: 38px;
  }

  .todo-description {
    line-height: 1.5;
  }

  /* SEO優化費用區塊 */

  .cost-section {
    padding-top: 118px;
    background-position: top;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .cost-section .section-description {
    margin-top: 30px;
  }

  .cost-title-img {
    max-width: 190px;
    top: -5.5rem;
    left: -2.3rem;
    z-index: 5;
  }

  .cost-items {
    margin-top: 28px;
    gap: 28px;
  }

  .cost-item {
    height: auto;
    padding: 16px 20px;
    border: 1px solid #000;
    max-width: 240px;
  }

  .cost-title {
    padding: 8px 30px;
    white-space: nowrap;
    max-width: 200px;
    height: auto;
    border: 1px solid #000;
  }

  .cost-description {
    margin-top: 18px;
    max-width: 188px;
  }

  .about-offers {
    height: 100%;
    border: 1px solid #000;
    border-image: repeating-linear-gradient(45deg, #000 0 20px,
        transparent 10px 37px) 3 round;
    padding: 24px 11px 35px 11px;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 24px;
    max-width: 345px;
    width: 131%;
  }

  .offers-up {
    gap: 12px;
  }

  .offers-text {
    font-size: 12px !important;
    line-height: 1.5;
  }

  .about-offers-img {
    max-width: 40%;
    height: auto;
  }
}