/* Research Page Styles */

/* Hero Section */
.research-hero {
  position: relative;
  min-height: 430px;
  background: #EBF6FE;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
}

.research-hero__container {
  padding: 0 30px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  max-width: 1260px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.research-hero__text-content {
  align-self: center;
  width: 610px;
}

.research-hero__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
}

.research-hero__subtitle {
  margin: 16px 0 0 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  vertical-align: middle;
  color: #333333;
}

.research-hero__get-link {
  position: relative;
  margin-top: 32px;
  display: inline-block;
  padding: 10px 44px;
  background-color: #1391D3;
  border-radius: 6px;
  color: #ffffff;
  transition: background-color 0.4s ease-out;

  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  text-transform: uppercase;

  z-index: 10;
}

.research-hero__get-link:hover {
  background-color: #68CBFF;
  color: #ffffff;
}

.research-hero__image-container {
  flex: 1;
  max-width: 568px;
}

.research-hero__image {
  width: 100%;
  height: auto;
}

/* Main Content */
.research-main {
  background: #f8f9fa;
  min-height: 100vh;
}

.research-container {
  max-width: 1260px;
  padding: 70px 0;
  margin: 0 auto;
}


/* Research Posts Grid */
.research-posts {
  margin-bottom: 4rem;
}

.research-posts__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
  position: relative;
}

.research-posts__grid {
  padding: 0 30px;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}

.research-post-card {
  overflow: hidden;
  position: relative;
  flex-shrink: 1;
  height: 300px;
  transition-behavior: allow-discrete;
  transition-property: display, opacity, transform;
  transition-duration: 0.4s;
  opacity: 1;
}

@starting-style {
  .research-post-card {
    opacity: 0;
  }
}

.research-post-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.research-post-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.research-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.research-post-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000066;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 20px;
  z-index: 2;
  transition: background-color 0.4s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .research-post-card:hover {
    transform: scale(1.025);
    box-shadow: 0 7px 9px 0 rgba(0, 0, 0, .15) !important;
  }

  .research-post-card:hover .research-post-card__overlay {
    background: transparent;
  }
}

.research-post-card__category {
  padding: 6px 12px;
  align-self: flex-start;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 0%;
  vertical-align: middle;
  text-transform: uppercase;
  opacity: 0.5;
}

.research-post-card__content {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.research-post-card__title {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  color: #FFFFFF;
}

.research-post-card__date-wrapper {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.research-post-card__date-icon {
  width: 11px;
}

.research-post-card__date-icon img {
  width: 100%;
  height: 100%;
}

.research-post-card__date-text {
  margin-left: 5px;
  margin-top: 4px;
  color: #FFFFFFCC;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

.research-post-card:nth-child(6n+1) {
  /* 1, 7, 13, 19... */
  width: 478px;
}

.research-post-card:nth-child(6n+2) {
  /* 2, 8, 14, 20... */
  width: 275px;
}

.research-post-card:nth-child(6n+3) {
  /* 3, 9, 15, 21... */
  width: 378px;
}

.research-post-card:nth-child(6n+4) {
  /* 4, 10, 16, 22... */
  width: 275px;
}

.research-post-card:nth-child(6n+5) {
  /* 5, 11, 17, 23... */
  width: 378px;
}

.research-post-card:nth-child(6n+6) {
  /* 6, 12, 18, 24... */
  width: 478px;
}

/* Empty State */
.research-posts__empty {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

/* Load More Button */
.research-load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.research-load-more__button {
  display: inline-block;
  padding: 10px 44px;
  background-color: #1391D3;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  transition: background-color 0.4s ease-out;

  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  text-transform: uppercase;
}

.research-load-more__button:hover {
  background-color: #68CBFF;
  color: #ffffff;
}

.research-load-more__button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.research-load-more__button:disabled:hover {
  transform: none;
}

.research-load-more__loader {
  display: inline-block;
}

.research-load-more__text,
.research-load-more__loader {
  transition: opacity 0.3s ease;
}

@media (max-width: 1250px) {
  .research-hero {
    padding-top: 120px;
  }

  .research-hero__title {
    font-size: 48px;
    line-height: 54px;
  }

  .research-hero__subtitle {
    font-size: 18px;
    line-height: 24px;
  }

  .research-hero__text-content {
    max-width: 50%;
  }

  .research-post-card:nth-child(6n+1),
  .research-post-card:nth-child(6n+6) {
    width: 40%;
    flex-grow: 1;
  }

  .research-post-card:nth-child(6n+3),
  .research-post-card:nth-child(6n+5) {
    width: 30%;
    flex-grow: 1;
  }

  .research-post-card:nth-child(6n+2),
  .research-post-card:nth-child(6n+4) {
    width: 30%;
    flex-grow: 1;
  }
}

@media (max-width: 1070px) {
  .research-hero__container {
    padding: 20px 94px 0 94px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .research-hero__title {
    text-align: center;
  }

  .research-hero__subtitle {
    text-align: center;
  }

  .research-hero__text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
  }

  .research-hero__get-link {
    margin: 24px auto 0 auto;
  }

  .research-hero__image {
    margin-top: 40px;
  }
}


@media (max-width: 768px) {
  .research-hero {
    padding-top: 118px;
  }

  .research-hero__container {
    padding: 0 20px;
    max-width: 620px;
  }

  .research-hero__title {
    font-size: 42px;
    line-height: 50px;
  }

  .research-hero__subtitle {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
  }

  .research-hero__image-container {
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 384px;
    max-width: 580px;
    flex: auto;
    overflow: hidden;
  }

  .research-hero__image {
    margin: 0;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .research-load-more {
    margin-top: 30px;
    padding-top: 30px;
  }

  .research-load-more__button {
    padding: 12px 30px;
    font-size: 14px;
  }

  .research-posts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .research-post-card:nth-child(n) {
    width: 100% !important;
    margin: 0 auto;
  }

}

@media (max-width: 580px) {
  .research-hero__image-container {
    height: 65vw;
  }

  .research-hero__image {
    top: unset;
    bottom: 0;
  }
}

@media (max-width: 560px) {
  .research-posts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .research-hero__title {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-width: 430px) {

  .research-hero__container {
    justify-content: flex-start;
    position: relative;
    height: 135vw;
  }

  .research-hero__image-container {
    height: 100%;
    position: absolute;
    bottom: 0;
  }

  .research-hero__image {
    bottom: 0;
  }
}

@media (max-width: 360px) {
  .research-hero {
    padding-top: 80px;
  }

  .research-hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .research-hero__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .research-hero__get-link {
    padding: 0 20px;
    font-size: 16px;
    line-height: 40px;
    width: 100%;
  }

}

@media (max-width: 340px) {

  .research-hero__container {
    height: 155vw;
  }
}