/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

@import url("../astra/style.css");

/* body {border: 4px solid darkcyan;} */

.ast-site-title-wrap {
	display: none;
}

#ast-desktop-header {
  /* border: 5px solid cyan; */

  @media (max-width: 1150px) {
    display: none;
    /* outline: 1px solid gold; */
  }
}

#ast-mobile-header {
  /* border: 1px solid tomato; */

  @media (min-width: 1149px) {
    display: none;
  }

  @media (max-width: 1150px) {
    display: block ;
  }
}

.site-branding {
  /* border: 1px solid purple; */
  max-width: 200px;
  padding: 0 !important;

    @media (min-width: 1150px) {
      padding: 0 !important;
		  /* border: 1px solid lime; */
  }
}

.ast-mobile-header-logo {
  max-width: clamp(100px, 20vw, 100%) !important;
}

.ast-page-builder-template.single-post .site-content > .ast-container,
.ast-page-builder-template .site-content > .ast-container {
  max-width: 1364px;
}

header.entry-header:not(.related-entry-header) .entry-title {
  font-size: 40px;
  font-weight: 700;
}

.single-layout-1 {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

img.size-full {
  width: 100%;
  display: block;
}

p + h6 {
  margin-top: -1em;
}

blockquote {
  h4 {
    font-weight: 100;
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 20px !important;
    opacity: 0.8;
    margin-bottom: 0;
  }
}

.wp-block-image img {
  max-width: 100% !important;
}

.category .ast-article-post {
  /* border: 3px solid tomato; */
  .post-thumb-img-content {
    /* border: 3px solid lime; */
    
    a {
      display: block;

      img {
        display: block;
        aspect-ratio: 3/2;
        object-fit: cover;
      }
    }
  }
  
  h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0;
    /* border: 3px solid lime; */
  }
}

.swiper {
  margin-bottom: 3rem;
  padding: 1rem !important;
  background-color: white;

  .swiper-wrapper {
    margin: 0 !important;
    /* padding-left: 30px; */
    /* padding-right: 30px; */
  }

  .swiper-slide {
    margin-top: 0  !important;
    margin-bottom: 0  !important;
    /* margin-left: 15px !important; */
    aspect-ratio: 6/5;
    position: relative;
  }

  .wp-block-latest-posts__featured-image {
    position: absolute;
    inset: 0 ;
    margin-bottom: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .wp-block-latest-posts__post-title {
    margin: 0 !important;
    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);    
    color: white;
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;

    &::after {
      font-size: 20px;
      font-weight: 900;
    }
  }

}

.home-last-entry {
  /* border: 3px solid lime;   */
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;

  li {
    margin: 0;
    padding: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1)  ;
    display: grid;
    grid-template-rows: min-content min-content;
    margin-top: 0  !important;
    margin-bottom: 0  !important;

    .wp-block-latest-posts__featured-image {
      width: 100%;
      height: 100%;
      position: relative;
      aspect-ratio: 3/2;
      overflow: hidden;

      a {
        display: block;
        width: 100%;
        height: 100%;  
      }
  
      img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }
  
    .wp-block-latest-posts__post-title {
      margin: 0 !important;
      padding-left: 1rem;
      padding-right: 1rem;
      padding-top: 0.5rem;
      color: black;
      font-weight: 900;
      font-size: clamp(1.2rem, 4vw, 1.5rem);
      line-height: 1.2;
    }

    .wp-block-latest-posts__post-excerpt {
      padding-left: 1rem;
      padding-right: 1rem;
      padding-bottom: 0;
    }

    .wp-block-latest-posts__post-date {
      padding-left: 1rem;
      padding-right: 1rem;
      padding-bottom: 0;
      display: flex;
      justify-content: flex-end;
      flex-direction: column;
      font-size: 0.9rem;
      order: 1;
    }
  

  }
}

.home .site-content {
  background-color: #f5f5f5;

  .ast-article-single {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.ast-footer-copyright {
  margin-top: 1.5rem;
}

.main-navigation {
  .menu-link {
    font-weight: 900;
    color: black;
    position: relative;
    text-transform: uppercase;

    &:hover {

      &::after {
        display: block;
      }
    }

    &::before {
      display: none;
    }

    &::after {
      content: '';
      display: none;
      position: absolute;
      bottom: 40px;
      width: calc(100% - 2rem);
      height: 4px;
      background-color: #ffce4a;
    }
  }
}

.ast-above-header-wrap {
  .ast-grid-section-center {
    justify-content: flex-end;
    padding-right: 1rem;
  }
}

.wp-element-caption strong{
  font-weight: 300;
  font-size: 0.85em;
  font-style: italic;
}

.ast-related-posts-wrapper {
  grid-column-gap: 35px;
  grid-row-gap: 35px;
  margin-bottom: 2rem;
}

.ast-related-post-content {
  margin: 0;
  padding: 0;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1)  ;
  display: grid;
  grid-template-rows: min-content min-content;
  height: 100%;

  .entry-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.ast-header-social-1-wrap .ast-builder-social-element svg {
  width: 22px;
  height: 22px;

  &:hover {
    fill: #d19604;
  }
}

.author {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e4e4e4;
}

.banner-basic {
  /* border: 1px solid #c4c4c4; */
  margin-bottom: 3rem !important;
  background-color: white;
  box-shadow: 0px 2px 7px #00000021;

  & .banner-basic__title {
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3rem) !important;
    line-height: 1.1;
    color: black;
  }
  
  & .banner-basic__leyend {
    font-size: 1.2rem;
    color: #565656;
  }
}