/*-- -------------------------- -->
<---        Recent Posts        -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  @keyframes floatAnimation {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-2rem);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes floatAnimation2 {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-3rem);
    }
    100% {
      transform: translateY(0);
    }
  }
  #blog-1366 {
    padding: var(--sectionPadding);
    padding-top: 11rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: #dbdada2a;
  }
  #blog-1366 .cs-container {
    width: 100%;
    /* changes to 1280px on desktop */
    max-width: 43.75rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #blog-1366 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }

  #blog-1366 .cs-title-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Adds spacing between logo and text */
  }

  #blog-1366 .cs-logo {
    width: 80px; /* Adjust size as needed */
    height: auto;
  }

  #blog-1366 .blog-title {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #blog-1366 #pixel-subtext {
    max-width: 33rem;
  }
  #blog-1366 .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
  }
  #blog-1366 .cs-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    grid-column: span 12;
  }
  #blog-1366 .cs-item:hover .cs-h3,
  #blog-1366 .cs-item:hover .cs-date,
  #blog-1366 .cs-item:hover .cs-category {
    color: #fff;
  }
  #blog-1366 .cs-item:hover .cs-item-text {
    background-color: #010409;
  }
  #blog-1366 .cs-item:hover .cs-icon-wrapper {
    border-color: #fff;
  }
  #blog-1366 .cs-item:hover .cs-icon,
  #blog-1366 .cs-item:hover .cs-date-icon {
    filter: brightness(1000%) grayscale(0.5s);
  }
  #blog-1366 .cs-item:hover .cs-icon {
    transform: rotate(45deg);
  }
  #blog-1366 .cs-item:hover .cs-category::before {
    background-color: #fff;
    opacity: 0.2;
  }
  #blog-1366 .cs-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    /* if one card has more content then the others, the card will stretch to fill the parent container */
    flex-grow: 1;
    gap: 1rem;
  }
  #blog-1366 .cs-picture {
    width: 100%;
    height: 20rem;
    margin: 0;
    border-radius: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  #blog-1366 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #blog-1366 .cs-item-text {
    padding: 1.25rem;
    background-color: #0e4071;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* makes the item text the element that grows to fill the container */
    flex-grow: 1;
    transition: background-color 0.3s;
  }
  #blog-1366 .cs-h3 {
    /* 20px - 25px */
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.2em;
    text-align: left;
    margin: 0;
    color: var(--bodyTextColorWhite);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
  }
  #blog-1366 .cs-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--bodyTextColorWhite);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* prevents the parent flexbox from shrinking the icon */
    flex-shrink: 0;
    transition: border-color 0.3s;
  }
  #blog-1366 .cs-icon {
    width: auto;
    height: 0.75rem;
    transition: filter 0.3s, transform 0.3s;
    filter: brightness(500%);
  }
  #blog-1366 .cs-info {
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #blog-1366 .cs-date {
    font-size: 0.875rem;
    line-height: 1.5em;
    text-align: left;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
  }
  #blog-1366 .cs-date-icon {
    width: auto;
    height: 1.5rem;
    filter: brightness(1000%);
    transition: filter 0.3s;
  }
  #blog-1366 .cs-category {
    font-size: 0.875rem;
    /* centers the text if the category bullet has to span multiple lines */
    text-align: center;
    padding: 0.25rem 1rem;
    color: var(--bodyTextColor);
    border-radius: 5rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
  }
  #blog-1366 .cs-category::before {
    content: "";
    width: 100%;
    height: 100%;
    background: rgb(236, 235, 235);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #blog-1366 .cs-bubbles1 {
    width: 26.1875rem;
    height: 26.6875rem;
    position: absolute;
    left: -16.25rem;
    top: -15rem;
    z-index: -1;
  }
  #blog-1366 .cs-bubbles1:before {
    /* white border bubble */
    content: "";
    width: 20.625rem;
    height: 20.625rem;
    background: transparent;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    animation-name: floatAnimation;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
  #blog-1366 .cs-bubbles1:after {
    /* orange bubble */
    content: "";
    width: 16.25rem;
    height: 16.25rem;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
    animation-name: floatAnimation2;
    animation-duration: 14s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
  #blog-1366 .cs-bubbles2 {
    width: 26.1875rem;
    height: 26.6875rem;
    display: block;
    position: absolute;
    /* changes to 160px at larger desktop */
    right: -11.25rem;
    bottom: -8.75rem;
    z-index: -1;
  }
  #blog-1366 .cs-bubbles2:before {
    /* white border bubble */
    content: "";
    width: 20.625rem;
    height: 20.625rem;
    background: transparent;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    animation-name: floatAnimation;
    animation-duration: 7s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
  #blog-1366 .cs-bubbles2:after {
    /* orange bubble */
    content: "";
    width: 16.25rem;
    height: 16.25rem;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    animation-name: floatAnimation2;
    animation-duration: 9s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #blog-1366 .cs-title {
    font-size: clamp(3rem, 5vw, 4rem);
  }
  #blog-1366 .cs-item {
    grid-column: span 6;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #blog-1366 .cs-title {
    font-size: clamp(3.5rem, 3vw, 4.5rem);
  }
  #blog-1366 .cs-container {
    max-width: 80rem;
  }
  #blog-1366 .cs-item {
    grid-column: span 4;
  }
  #blog-1366 .cs-bubbles1 {
    left: -8.125rem;
    top: -9.375rem;
  }
}
/* Large Desktop 1600px */
@media only screen and (min-width: 100rem) {
  #blog-1366 .cs-bubbles1 {
    margin-right: 40.625rem;
    left: auto;
    right: 50%;
  }
  #blog-1366 .cs-bubbles2 {
    margin-left: 37.5rem;
    left: 50%;
    right: auto;
  }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #blog-1366 .cs-text,
  body.dark-mode #blog-1366 .cs-date,
  body.dark-mode #blog-1366 .cs-category {
    opacity: 0.9;
  }
  body.dark-mode .blog-title img {
    filter: brightness(0) invert(1);
  }
  body.dark-mode #blog-1366 .cs-item .cs-item-text {
    background-color: #10151b;
  }
  body.dark-mode #blog-1366 .cs-item:hover .cs-item-text {
    background-color: #154779;
  }
}
/* Hiding posts below first 6 */

#blog-1366 .cs-item.hidden-post {
  display: none;
}

/* To style the view more posts button */

.cs-button-solid {
  font-size: 1rem;
  font-weight: 700;
  /* 46px - 56px */
  line-height: clamp(2.875em, 5.5vw, 3.5em);
  text-align: center;
  text-decoration: none;
  min-width: 9.375rem;
  margin: 0;
  /* prevents padding from adding to the width */
  box-sizing: border-box;
  padding: 0 1.5rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 2rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
}
.cs-button-solid:before {
  content: "";
  width: 0%;
  height: 100%;
  background: #000;
  opacity: 1;
  border-radius: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: 0.2s;
}
.cs-button-solid:hover:before {
  width: 100%;
}
