/*
Theme Name: PicaAi
Author: Zhan 
version: 1.0
*/

/**************************************************************/
.banner {
  width: 100vw;
  height: 546px;
  text-align: left;
  background-image: url(./assets/images/banner_bg_pc.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  color: #fff;
  box-sizing: border-box;
  margin-top: -40px;
  padding-top: 40px;
  overflow: hidden;
}
.banner-content {
  max-width: 1200px;
  height: 100%;
  padding: 0 16px;
  margin: 0px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
/*  */
.banner h1 {
  margin: 0 auto 20px;
  color: var(--colors-content_main, #0a0a0a);
  font-size: clamp(36px, 4.46vw, 68px);
  line-height: clamp(42px, 4.46vw, 72px);
  font-style: normal;
  font-weight: 700;
}

.banner .grad-title {
  background: linear-gradient(90deg, #0a0a0a 0%, #7f3f04 50%, #0a0a0a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.banner-right img {
  width: 620px;
}
.banner .desc {
  max-width: 900px;
  margin: 0 auto;
  color: var(--colors-content_soft, rgba(10, 10, 10, 0.5));
  font-family: "Roboto";
  font-size: 18px;
  font-weight: 590;
  line-height: 23px;
}

.btnBox {
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  margin: 50px auto 0;
}
.btnBox a {
  height: 60px;
  line-height: 60px;
  padding: 0 40px;
  box-sizing: border-box;
  border-radius: 36px;
}

.btnBox .wp-block-button:first-child a,
.btnBox .homeBtn {
  background: linear-gradient(
    90deg,
    rgb(13, 246, 255) 0%,
    rgb(13, 255, 182) 50%,
    rgb(227, 244, 124) 100%
  );
  color: rgb(0, 0, 0);
}
.btnBox a {
  background: #fff;
  color: #000;
}

article {
  max-width: 1200px;
  margin: 64px auto;
  text-align: center;
  box-sizing: border-box;
}
article.homeIndex p {
  text-align: left;
}

.updated {
  display: inline-block;
  color: rgba(10, 10, 10, 0.3);
  font-size: 16px;
  font-style: normal;
}

.singlePage .breadcrumbs {
  font-size: 16px;
}
.singlePage .breadcrumbs a {
  color: inherit;
}

.blog-list-card a:hover {
  text-decoration: none;
}

.featureList {
  justify-content: space-between;
  padding: unset;
  margin: 30px auto 60px;
  background: linear-gradient(0deg, #125d60, #3133c1);
  padding: 50px 30px !important;
  color: #fff;
  border-radius: 10px;
  box-shadow: rgb(35 55 80 / 30%) 0px 6px 12px;
  gap: unset !important;
}
.featureList > div {
  width: 30%;
  border-radius: 8px;
  box-shadow: rgb(0 0 0 / 10%) 0px 2px 4px 2px;
  padding: 15px;
  border: 1px solid #fefefe;
  background: #fff;
}
#tryBtn {
  margin: 30px auto;
}
.post-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  box-sizing: border-box;
  margin: 50px auto;
}
.post-group h3 {
  text-align: left;
  font-size: 24px;
  font-weight: 500;
  color: #0a0a0a;
  font-weight: 700;
  line-height: 26px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(13, 12, 12, 0.12);
  margin: 0 0 20px 0;
}

.post-group .related_articles a {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: nowrap;
  text-align: left;
  color: #0a0a0a;
  gap: 20px;
}
.post-group .related_articles a:hover {
  text-decoration: none;
  color: #125d60;
}
.post-group .related_articles a img {
  max-width: 96px;
  width: 100%;
  height: 96px;
  border-radius: 8px;
  margin: 0;
}
.blog-list-card a:hover img,
.post-group .related_articles a:hover img {
  opacity: 0.7;
}
.post-group .related_articles a div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-group .related_articles a span {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.post-group .related_articles a i {
  margin-top: 12px;
}
.blog-list-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  padding: 20px;
}

.blog-list-card h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  margin: 0;
}
.blog-list-card .post-info {
  flex: 1;
  overflow: hidden;
}
.post-info i {
  margin: 20px 0;
}
.blog-list-card .post-img {
  width: 260px;
  height: 260px;
  border-radius: 16px;
}
.blog-list-card img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  margin: 0;
}
.post-desc {
  display: flex;
  align-items: end;
}
.post-desc .continue-reading {
  color: #125d60;
  height: 25px;
  display: none;
}
.post-desc .desc {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #0a0a0a;
}
.categoryPage article,
.singlePage article {
  max-width: 1200px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 4.46vw, 80px);
  padding-left: clamp(20px, 2.46vw, 80px);
  padding-right: clamp(20px, 2.46vw, 80px);
  box-sizing: border-box;
}
.singlePage article h1 {
  margin: 20px 0;
  line-height: clamp(36px, 3vw, 52px);
  font-size: clamp(32px, 3vw, 48px);
}
.singlePage article p {
  margin: 20px 0;
  line-height: 32px;
}
.singlePage article h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0;
}
.singlePage article img {
  border-radius: 16px;
}
.singlePage .breadcrumbs a:hover,
.singlePage article a {
  color: #125d60;
}
.singlePage.rtl article p {
  text-align: right;
}

article img,
article .wp-block-image img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}
.wp-block-image:not(.is-style-rounded) img {
  border-radius: 16px;
}
article .wp-block-list {
  margin: 20px 0;
}
article ul > li::before {
  display: inline-block;
  content: "";
  background: #125d60;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  text-align: center;
  margin-right: 12px;
}
article .desc {
  width: 100%;
  max-width: 866px;
  margin-top: 20px;
}
article .related_articles {
  text-align: center;
}
.top-articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 30px;
}

.btnList a,
.btnList span {
  display: block;
  width: 45%;
  height: 60px;
  line-height: 60px;
  padding: 0;
  box-shadow: #2c346f 0px 10px 15px;
  color: #fff;
  border-radius: 12px;
  font-size: inherit;
  cursor: pointer;
}
.sideBanner .post-group {
  width: 366px;
}
.aigcBtn.wp-block-buttons > .wp-block-button {
  width: 100%;
  margin: 0;
}
.aigcBtn.wp-block-buttons > .wp-block-button a {
  display: block;
  width: 280px;
  height: 50px;
  margin: 10px auto;
  background: linear-gradient(
    90deg,
    rgb(13, 246, 255) 0%,
    rgb(13, 255, 182) 50%,
    rgb(227, 244, 124) 100%
  );
  color: rgb(0, 0, 0);
  text-align: center;
  line-height: 50px;
  border-radius: 36px;
  padding: 0;
  box-shadow: none;
}
.customizeList.wp-block-columns.has-background {
  padding: 0 5%;
}
.customizeList figure,
.customizeList p {
  margin: 0;
}
.widget_block {
  background: #f2f4f5;
  text-align: center;
  color: #fff;
  padding-left: clamp(20px, 2.46vw, 80px);
  padding-right: clamp(20px, 2.46vw, 80px);
}
.widget_block > .wp-block-group {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 16px;
}
article + .widget_block > .wp-block-group {
  padding: 0;
}
article + .widget_block > .wp-block-group .wp-block-columns {
  padding: 0;
  gap: 32px;
}
article + section {
  padding-top: 64px;
}
.widget_block h2 {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 40px;
  color: #0a0a0a;
}
.widget_block .wp-block-gallery {
  justify-content: space-between;
}
.wp-block-gallery > figure {
  width: 30% !important;
  flex-grow: unset !important;
}
.entry-title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
}
.wp-block-columns {
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.wp-block-columns .wp-block-image img {
  margin: 0;
}
.wp-block-columns figure {
  margin: 0;
}
@media screen and (max-width: 820px) {
  .banner {
    padding: 20px;
    box-sizing: border-box;
    background-image: url(./assets/images/banner_bg_mobile.png);
    height: 482px;
    box-sizing: border-box;
    margin-top: -60px;
    padding-top: 60px;
  }
  article .desc {
    margin-top: 10px;
  }
  .banner-content {
    flex-direction: column;
    padding: 0;
  }
  .banner-right {
    flex: 1;
    overflow: hidden;
  }
  .banner-right img {
    max-height: 100%;
    width: unset;
  }
  .banner h1 {
    margin: 10px auto 15px;
    padding: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .banner .desc {
    text-align: center;
  }
  .btnBox {
    flex-direction: column;
    margin-top: 30px;
    max-width: 320px;
  }
  .btnBox a:first-child {
    margin-bottom: 22px;
  }
  article {
    margin: 24px auto 30px;
    padding: 0 16px;
  }
  .top-articles {
    gap: 0;
  }
  .post-group .related_articles a i {
    padding-left: 0;
  }
  .singlePage article h1 {
    line-height: 42px;
  }
  .singlePage article h2 {
    line-height: 28px;
  }
  .singlePage article strong {
    line-height: 22px;
  }
  article + section.widget_block {
    padding-top: 40px;
  }
  section.widget_block h2 {
    padding-bottom: 0;
  }
  .post-info i {
    margin: 14px 0 12px;
    font-size: 17px;
    line-height: 22px;
  }
  .breadcrumbs,
  .updated {
    font-size: 14px;
  }
  .featureList {
    margin: 30px auto;
  }
  .wp-block-buttons {
    justify-content: center;
    align-items: center;
  }
  .blog-list-card .post-img {
    width: 100%;
    height: auto;
  }
  .featureList > div {
    margin-bottom: 25px;
  }
  .featureList > div:last-child {
    margin: 0;
  }
  .post-group {
    margin: 30px auto;
    padding: 0;
    box-sizing: border-box;
  }
  .post-group h3 {
    font-size: 20px;
  }
  .post-group .related_articles {
    flex-direction: column;
    align-items: center;
  }
  .post-group .related_articles a {
    width: 100%;
    margin-bottom: 30px;
    justify-content: flex-start;
  }
  .post-group h3 {
    padding-left: 0 !important;
  }
  .categoryPage article,
  .singlePage article {
    flex-direction: column;
  }
  .sideBanner {
    max-width: unset;
    width: 100%;
  }
  .blog-list-card {
    width: 100%;
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }
  .blog-list-card img {
    margin: 0 auto;
  }
  .blog-list-card .post-info {
    padding: 0 24px;
  }
  .blog-list-card h2 {
    font-size: 24px;
    margin: 0;
    line-height: 28px;
  }
  .post-desc .desc {
    font-size: 17px;
    -webkit-line-clamp: 9;
    margin-top: 0;
    color: rgba(10, 10, 10, 0.5);
    margin-bottom: 48px;
    line-height: 22px;
    font-weight: 590;
  }
  article + .widget_block > .wp-block-group h2 {
    padding-bottom: 20px;
  }
  .aigcBtn.wp-block-buttons > .wp-block-button a {
    width: 240px;
  }
  .customizeList.wp-block-columns.has-background {
    padding: 0 20px;
  }
  .widget_block {
    padding: 15px;
  }
  .widget_block h2 {
    font-size: 20px;
  }
  .widget_block .wp-block-gallery {
    flex-direction: column;
  }
  .wp-block-gallery > figure {
    width: 100% !important;
  }
  .sideBanner .post-group {
    width: 100%;
  }
}
