/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://ewallhost.com
Version: 1.0
Author: eWallHost Dev Team
Author URI: https://ewallhost.com
Template: twentytwentyfive
*/


.wp-site-blocks {
  background-color: #f9fbfe;
}

.ewall-app {
  --blog-font: "Lora", serif;
  --box-shad: rgba(11, 43, 158, 0.4) 0px 5px 10px -6px;
  --box-shad-large: rgba(11, 43, 158, 0.35) 0px 6px 20px -6px;

  background-color: #f9fbfe;
  color: rgb(69, 77, 84);

  /*** overrides ***/
  &>.wp-block-group {
    margin: 0 !important;
    padding: 0 !important;

    &>.wp-block-group {
      margin: 0 !important;
      padding: 0 !important;
    }
  }

  .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none;
  }

  .wp-block-heading {
    font-family: Montserrat, sans-serif;
    font-weight: 500;

    a {
      color: rgb(69, 77, 84);
    }
  }
  /*** overrides END ***/

  /*** ewall-cover ***/
  .ewall-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 10px;

    & h1 {

      @media screen and (max-width: 1024px) {
        font-size: 1.85rem;
      }

      @media screen and (max-width: 768px) {
        font-size: 1.5rem;
      }
    }

    & p {
      max-width: 500px;
      text-align: center;
    }

    &.ewall-cover-home {
      flex-direction: row;

      .ewall-cover-home-left {
        flex: 0 0 250px;

        @media screen and (max-width: 1024px) {
          flex: 0 0 150px;
        }

        @media screen and (max-width: 768px) {
          flex: 0 0 100%;
          text-align: center;
        }

        .ewall-cover-home-left-img img {
          width: 100%;
          height: 100%;
          object-fit: cover;

          @media screen and (max-width: 768px) {
            max-width: 250px;
          }
        }
      }

      .ewall-cover-home-right {
        flex: 0 0 calc(100% - 260px);

        @media screen and (max-width: 1024px) {
          flex: 0 0 calc(100% - 160px);
        }

        @media screen and (max-width: 768px) {
          flex: 0 0 100%;
        }

        & p {
          max-width: none;
          text-align: left;
          margin: 0;
        }
      }
    }
  }
  /*** ewall-cover END ***/

  /*** ewall-home-top ***/
  .ewall-home-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
    margin-top: 50px;

    /*** ewall-home-top-attract ***/
    .ewall-home-top-attract {
      flex: 0 0 calc(60% - 20px);

      background-color: rgb(255, 255, 255);
      border-radius: 25px;
      box-shadow: var(--box-shad-large);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
      position: relative;
      text-decoration: none;
      transition: 0.25s;

      &:hover {
        box-shadow: rgba(11, 43, 158, 0.25) 0px 10px 30px -6px;
      }

      @media screen and (max-width: 800px) {
        flex: 0 0 100%;
      }

      .wp-block-heading {
        font-size: 1.35rem;
        padding: 10px 18px;
        text-align: left;
        margin: 0 !important;
      }
    }
    /*** ewall-home-top-attract END ***/

    /*** ewall-home-top-aside ***/
    .ewall-home-top-aside {
      flex: 0 0 40%;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 0;

      @media screen and (max-width: 800px) {
        flex: 0 0 100%;
      }

      .ewall-home-top-catg {
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        background: #fff;
        box-shadow: var(--box-shad-large);
        border-radius: 25px;
        padding: 24px;

        .wp-block-heading {
          margin: 0 !important;
          font-size: 1.5rem;
        }

        .wp-block-categories-list {
          display: flex;
          flex-wrap: wrap;
          gap: 15px;
          list-style: none;
          margin: 0 !important;

          .cat-item {
            display: flex;
            align-items: center;
            background-color: hsla(var(--success-h), var(--success-s), var(--success-l), 0.1);
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.42857;
            margin: 0px 8px 8px 0px;
            padding: 6px 12px;
            text-transform: capitalize;
            transition: filter 0.2s;
            width: fit-content;
            margin: 0;

            & a {
              display: flex;
              align-items: center;
              gap: 5px;
              color: rgb(69, 77, 84);
              font-size: 0.9rem;
              text-transform: uppercase;

              &:hover {
                color: var(--primary-color);
              }

              & img {
                width: 22px;
                height: auto;
              }
            }
          }
        }
      }

      .ewall-home-top-cont {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        background-color: #fff;
        border-radius: 25px;
        box-shadow: var(--box-shad-large);
        line-height: 24px;
        padding: 24px 32px;
        margin: 0;

        &:hover {
          box-shadow: rgba(11, 43, 158, 0.25) 0px 10px 30px -6px;
        }

        & a {
          background: #4b995f;
          border-radius: 25px;
        }
      }
    }
    /*** ewall-home-top-aside END ***/
  }
  /*** ewall-home-top END ***/

  /*** ewall-catg-post ***/
  .ewall-catg-post {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    .ewall-catg-post-top {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;

      .wp-block-heading {
        flex: 1 1 0px;
        font-size: 1.75rem;
      }

      .ewall-catg-post-top-btn {
        flex: 0 0 auto;
        line-height: 1;
        margin: 0;

        .wp-block-button__link {
          padding: 12px 18px;
          font-size: 0.9rem;
          font-weight: 500;
          color: var(--dark-color);
          border: 1px solid rgba(0, 0, 0, 0.1);
          background-color: #fff;
        }
      }
    }
    /*** ewall-catg-post-top END ***/

    /*** ewall-catg-post-cont ***/
    .wp-block-latest-posts {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 50px;

      & li {
        flex: 0 0 calc(25% - 20px);
        display: flex;
        flex-direction: column;
        gap: 15px;
        background-color: rgb(255, 255, 255);
        border-radius: 24px;
        box-shadow: var(--box-shad-large);
        overflow: hidden;
        position: relative;
        text-decoration: none;
        transition: 0.5s;

        &:hover {
          box-shadow: rgba(11, 43, 158, 0.25) 0px 10px 30px -6px;
        }

        @media screen and (max-width: 1000px) {
          flex: 0 0 calc(50% - 10px);
        }

        @media screen and (max-width: 500px) {
          flex: 0 0 100%;
        }

        & img {
          width: 100%;
        }

        & a {
          padding: 0 18px;
          font-size: 0.95rem;
          font-weight: 500;
          color: rgb(69, 77, 84);
        }

        & time {
          padding: 0 18px 15px 18px;
          font-size: 0.9rem;
        }
      }
    }
  }
  /*** ewall-catg-post-cont END ***/

  /*** ewall-blog-search ***/
  .ewall-blog-search {
    margin-bottom: 50px;

    .ewall-blog-search-bar {
      width: 100%;

      .wp-block-search__inside-wrapper {
        background-color: #fff;
        box-shadow: rgba(11, 43, 158, 0.15) 0px 6px 20px -6px;
        border: 1px solid #eee;
        border-radius: 50px;

        &:hover {
          box-shadow: rgba(11, 43, 158, 0.25) 0px 10px 30px -6px;
        }

        .wp-block-search__input::placeholder {
          color: #959595;
        }

        .wp-element-button {
          padding: 15px;
        }
      }
    }
  }
  /*** ewall-blog-search END ***/

  /*** ewall-all-post ***/
  .ewall-all-post {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;

    &>.wp-block-post:has(.ewall-all-post-item__title),
    .ewall-all-post-item {
      flex: 0 0 calc(calc(100% / 3) - 20px);
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      gap: 15px;
      background-color: rgb(255, 255, 255);
      border-radius: 24px;
      box-shadow: var(--box-shad-large);
      overflow: hidden;
      position: relative;
      text-decoration: none;
      transition: 0.5s;
      padding: 0;
      margin: 0;

      @media screen and (max-width: 900px) {
        flex: 0 0 calc(calc(100% / 2) - 15px);
      }

      @media screen and (max-width: 500px) {
        flex: 0 0 100%;
      }

      .ewall-all-post-item__top {
        flex: 1 1 0px;
        margin: 0;

        & img {
          width: 100%;
          max-width: none;
          height: auto !important;
        }
      }

      .ewall-all-post-item__title {
        flex: 1 1 0px;
        display: flex;
        align-items: flex-end;
        padding: 0 18px 15px;
        margin: 0;
        font-size: 1rem !important;
        font-weight: 500;

        & a {
          color: rgb(69, 77, 84);
        }
      }

      .ewall-all-post-item__bottom {
        flex: 0 0 100%;
      }
    }
  }
  /*** ewall-all-post END ***/

  /*** ewall-post-navg ***/
  .ewall-post-navg {
    padding-bottom: 50px;

    .ewall-post-navg-num {
      display: flex;
      align-items: center;
      gap: 15px;

      .page-numbers {
        padding: 5px 14px;
        border-radius: 25px;
        background-color: #fff;
        box-shadow: 0 0 15px #e4e4e4;

        &:hover {
          background-color: #fff !important;
          box-shadow: 0 0 20px #e4e4e4;
        }
      }
    }

    .ewall-post-navg-next,
    .ewall-post-navg-prev {
      padding: 5px 14px;
      border-radius: 25px;
      background-color: #fff;
      box-shadow: 0 0 15px #e4e4e4;

      &:hover {
        background-color: #fff !important;
        box-shadow: 0 0 20px #e4e4e4;
      }
    }
  }
  /*** ewall-post-navg END ***/

  /*** ewall-blog-wrapper ***/
  .ewall-blog-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    &>.wp-block-group {
      margin: 0 !important;
      padding: 0 !important;

      &>.wp-block-group {
        margin: 0 !important;
        padding: 0 !important;
      }
    }

    /*** ewall-blog-top ***/
    .ewall-blog-top {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      gap: 40px;

      &>.wp-block-group {
        margin: 0 !important;
        padding: 0 !important;

        &>.wp-block-group {
          margin: 0 !important;
          padding: 0 !important;
        }
      }

      /*** ewall-blog-main ***/
      .ewall-blog-main {
        width: calc(70% - 40px);
        flex: 0 0 calc(70% - 40px);
        margin: 0;
        margin-bottom: 50px !important;
        padding: 0;

        @media screen and (max-width: 800px) {
          flex: 0 0 100%;
        }

        &>.wp-block-group {
          padding: 0;
          margin: 0;

          &>.wp-block-group {
            margin: 0 !important;
            padding: 0 !important;
          }
        }

        .wp-block-post-featured-image {
          & img {
            border-radius: 25px;
            box-shadow: var(--box-shad);
          }
        }

        .wp-block-post-title {
          font-size: 1.75rem;
        }

        .ewall-blog-main-written {
          margin-top: 20px;
          margin-bottom: 15px;

          &>.wp-block-group {
            margin: 0 !important;
            font-size: 1rem !important;

            .taxonomy-category {
              font-size: 1rem;
              font-weight: 400 !important;
            }
          }
        }

        .wp-block-post-content {
          margin-bottom: 30px;
          font-family: var(--blog-font);
          font-size: 1.15rem;
          color: #3b3b3b;

          @media screen and (max-width: 1200px) {
            font-size: 1rem;
          }

          .wp-block-heading {
            font-family: var(--blog-font);
            font-weight: 500;
          }

          & a {
            color: var(--primary-old-color);
          }
        }

        .ewall-blog-post-navg {
          &>.wp-block-group {
            margin: 0 !important;
            padding: 0 !important;
          }

          & nav {
            display: flex;
            flex-wrap: wrap;
            padding-bottom: 0 !important;

            .wp-block-post-navigation-link {
              width: calc(50% - 10px);
              display: flex;
              flex-wrap: nowrap;

              & a {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
              }
            }
          }
        }
      }
      /*** ewall-blog-main END ***/

      /*** ewall-blog-sidebar ***/
      .ewall-blog-sidebar {
        width: 30%;
        flex: 0 0 30%;

        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        align-content: flex-start;

        @media screen and (max-width: 800px) {
          flex: 0 0 100%;
          position: static;
          top: 0;
        }

        .ewall-blog-back-to {
          flex: 0 0 100%;
          display: flex;
          align-items: center;
          gap: 10px;
          background-color: rgb(255, 255, 255);
          border-radius: 24px;
          box-shadow: var(--box-shad);
          overflow: hidden;
          position: relative;
          text-decoration: none;
          padding: 15px;
        }

        .ewall-blog-search {
          flex: 0 0 100%;
          margin-bottom: 0;
        }
      }
      /*** ewall-blog-sidebar END ***/
    }
    /*** ewall-blog-top END ***/

    .ewall-blog-bottom {
      width: 100%;

      .ewall-catg-post {
        padding: 0;
      }
    }
  }
  /*** ewall-blog-wrapper END ***/

  .ewall-breadcrumb {
    display: flex;
    gap: 6px;
    margin-top: 25px;

    & a {
      color: var(--primary-old-color);
    }
  }

  /*** ewall-ad-1 ***/
  .ewall-ad-1 {
    padding: 0;
  }
  /*** ewall-ad-1 END ***/

  /*** search results page ***/
  &[data-ewall-template="search-results"] {
    .ewall-blog-search {
      margin-bottom: 50px !important;
    }

    .ewall-all-post {
      &>.wp-block-post:not(:has(.ewall-all-post-item__title)) {
        display: none;
      }
    }
  }
  /*** search results page END ***/

  /*** single (article) page ***/
  &[data-ewall-template="single"] {
    .ewall-cover {
      .wp-block-post-title {
        text-align: center;
        margin-bottom: 0;
        font-family: var(--blog-font);
        font-size: 2.15rem;

        @media screen and (max-width: 1200px) {
          font-size: 1.85rem;
        }

        @media screen and (max-width: 800px) {
          font-size: 1.5rem;
        }
      }
    }

    .ewall-blog-sidebar {
      display: flex;
      flex-wrap: wrap;
      gap: 35px;

      .wp-block-heading {
        font-size: 1.5rem;
      }

      .ewall-blog-search {
        .ewall-blog-search-bar {
          .wp-block-search__inside-wrapper {
            box-shadow: var(--box-shad);
          }
        }
      }

      .ewall-blog-more {
        .ewall-blog-more-title {
          font-size: 1.5rem;
        }

        .wp-block-latest-posts {
          margin: 0;
          gap: 30px;

          & li {
            flex: 0 0 100%;
            box-shadow: var(--box-shad);

            .wp-block-latest-posts__post-title {
              display: inline-block;
            }
          }
        }
      }

      /*** ewall-blog-ad ***/
      .ewall-blog-ad {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;

        .featured-des-2__item {
          flex: 0 0 100%;
          border-radius: 25px;
          border: none;
          box-shadow: var(--box-shad);
          padding: 20px 15px;

          .featured-des-2__icon {
            .featured-des-2__img {
              width: 125px;
            }
          }

          .featured-des-2__head {
            padding: 0;
          }

          .featured-des-2__desc {
            margin: 0;
          }
        }
      }
      /*** ewall-blog-ad END ***/
    }
  }
  /*** single (article) page END ***/
}

#wpadminbar~.wp-site-blocks {
  .ewall-breadcrumb {
    margin-top: 0px;
  }
}