/*-----------------------------------*\
  general
\*-----------------------------------*/

.aa-module {
  display: flex;
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 64px;
}

.aa-module .aa-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.aa-blog-posts-form {
  margin-top: 64px;
}

@media screen and (max-width: 1079px) {

}

.aa-blog-index-wrapper .cpt-cards-buttons div {
  max-width: 1440px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.aa-blog-index-wrapper .cpt-hero-resources {
  max-width: 1440px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-bottom: 65px !important;
}

.aa-blog-index-wrapper .cpt-hero-resources .cpt-hero-resources-grid {
  gap: 30px !important;
}

.aa-blog-index-wrapper .cpt-hero-resources .content > div {
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
}

.aa-blog-index-wrapper .cpt-hero-resources .image-alpha {
  border-radius: 0.5rem;
  overflow: hidden;
}

.aa-blog-index-wrapper .cpt-hero-resources .image-alpha img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*-----------------------------------*\
  Blog index
\*-----------------------------------*/

.aa-blog-index-wrapper {
  padding-top: 240px;
  max-width: 1440px;
  margin: 0 auto;
}

.aa-blog-index-hero {
  margin-bottom: 45px;
}

.aa-blog-index-hero .aa-inner {
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.aa-blog-index-hero .aa-blog-index-hero__header {
  margin-bottom: 35px;
}

.aa-blog-index-hero .aa-blog-index-hero__body {
  display: flex;
  flex-wrap: wrap;
  background: rgba(250, 250, 250, 1.0);
  padding: 10px;
  gap: 10px;
}

.aa-blog-index-wrapper .blog-feed {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/*-----------------------------------*\
    Blog Post
\*-----------------------------------*/

.aa-blog-post .aa-blog-posts .aa-inner{
    padding-top: 64px;
    border-top: 1px solid $black;
}

.aa-blog-post {
  padding-top: 240px;
}

// Hero section

.aa-blog-post-hero .aa-inner {
    flex-direction: column; 
}

.aa-blog-post-hero__header {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-direction: row;
}

.aa-blog-post-hero__header .image,
.aa-blog-post-hero__header .content {
    max-width: 50%;
}

.aa-blog-post-hero__header .aa-blog-post-date-info-wrapper {
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

.aa-blog-post-hero__header .aa-blog-post-date-info-wrapper .aa-blog-post-date-info-break {
  display: inline-block;
}

.aa-blog-post-hero__header .aa-blog-post-time {
    width: 55%;
    font-size: 15px;
    line-height: 17px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid black;
}

.aa-blog-post-hero__header .aa-blog-post-time .aa-blog-post__author {
    margin-top: 5px;
}

.aa-blog-post-hero__body {
    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: space-between;
    padding-top: 45px;
    padding-bottom: 45px;
    margin-bottom: 64px;
    border-bottom: 1px solid black;
}

.aa-blog-post-hero__body .aa-social .aa-social__inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aa-blog-post-hero__body .aa-social .aa-social__inner a {
    width: 33px;
    height: 33px;
}

.aa-blog-post-content {
    margin-bottom: 64px;
}

.aa-blog-post-content__inner {
  max-width: calc(1440px/12 * 10);
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 1079px) {
  .aa-blog-post-hero__header .image,
  .aa-blog-post-hero__header .content {
      max-width: 100%;
  }

  .aa-blog-post-hero__header .aa-blog-post-date-info-wrapper {
      display: flex;
      flex-direction: column;
  }
  
  .aa-blog-post-hero__header .aa-blog-post-date-info-wrapper .aa-blog-post-date-info-break {
    display: none;
  }
  
  .aa-blog-post-hero__header {
    gap: 35px;
    flex-direction: column;
  }
  
  .aa-blog-post-hero__body {
    gap: 35px;
    flex-direction: column;
  }
  .aa-blog-post-content {
     margin-bottom: 0;
  }
}

/*-----------------------------------*\
  Tags
\*-----------------------------------*/

.aa-tag {
    display: flex;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 17px;
    font-weight: 500;

    text-decoration: none;
    color: black;
    background-color: transparent;
    transition: all ease-in-out 0.2s;
}

.aa-tag:hover {
  text-decoration: none;
  color: white;
  background-color: rgb(59, 130, 246);
}

.aa-tag--current {
    background-color: rgb(59, 130, 246);
    color: white;
}

/*-----------------------------------*\
    Blog Post Cards
\*-----------------------------------*/

.aa-blog-posts .aa-inner {
  flex-direction: column;
}

.aa-blog-posts__header {
	display: flex;
	gap: 30px;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 45px;
}

.aa-blog-posts__title {
    margin: 0;
}

.aa-blog-posts__body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.aa-blog-post-card {
    text-decoration: none;
    color: black;
}

.aa-blog-post-card:hover {
    color: black;
}

.aa-blog-post-card:hover .aa-blog-post-card__header img  {
   transform: scale(1.1);
}

.aa-blog-post-card__header {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 25px;
}

.aa-blog-post-card__header img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		transition: all ease-in-out 0.2s;
}

.aa-blog-post-card__body span {
    display: block;
}



.aa-blog-post-card__body .aa-blog-post-card-title {
    font-size: 1.5rem;
    line-height: 32px;
    margin-bottom: 10px;
}

.aa-blog-post-card__body .aa-blog-post-card-date {
		margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5rem;
    color: rgba(108,116,131,var(--tw-text-opacity));
}

.aa-blog-post-card__body .aa-blog-post-card-tags {
		display: flex;
		gap: 10px;
		align-items: center;
		flex-wrap: wrap;
		margin-top: 45px;
}

.aa-blog-post-card__body .aa-blog-post-card-tag {
		padding: 8px 5px;
		border: 1px solid $black;
		border-radius: 5px;

		font-size: 12px;
		line-height: 14px;
}

.aa-blog-post-card__body .aa-blog-post-card-content {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
}

@media screen and (max-width: 1079px) {
  .aa-blog-posts__header {
    margin-bottom: 35px;
  }
  
  .aa-blog-posts__body {
    grid-template-columns: 1fr;
  }
}

/*-----------------------------------*\
    Pagination
\*-----------------------------------*/

.aa-pagination {
    display: flex;
    justify-content: center;
    max-width: calc(#{$full-site-width} / 12 * 6);
    margin-left: auto;
    margin-right: auto;
    padding-top: 64px;
    padding-bottom: 64px;
    margin-bottom: 0;
}

.aa-pagination ul {
    display: flex;
    gap: 15px;
    flex-flow: row wrap;
    padding: 0;
    margin: 0;
}

.aa-pagination li {
    list-style-type: none;
}

.aa-pagination li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;

    font-size: 24px;
    text-decoration: none;

    background-color: transparent;
    color: black;
    transition: all ease-in-out 0.2s;
}

.aa-pagination li a.aa-pagination--active {
    background-color: rgb(59, 130, 246);
    color: white;
}

.aa-pagination li a:hover {
    background-color: rgb(59, 130, 246);
    color: white;
}

@media screen and (max-width: 1079px) {
  .aa-pagination {
      padding-top: 64px;
      padding-bottom: 64px;
  }
}