* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  /* Prevents horizontal scrollbars */
}

@font-face {
  font-family: "Grifter";
  src: url("/assets/fonts/GRIFTERBold.woff2") format("woff2"),
    url("/assets/fonts/GRIFTERBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Medium";
  src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: normal;
  /* This defines the Black weight */
  font-style: normal;
}

* {
  font-family: "Grifter", sans-serif;
}

p {
  font-family: "Poppins Medium", sans-serif;
  color: #07084c;
}

.blogs-page {
  height: 100%;
  min-height: fit-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding-bottom: 30%;
  padding-top: 10%;
  color: #07084c;
  background-color: #f0f3fa;
}

.blogs-large-screen {
  display: block;
  width: 100%;
  text-align: left;
}

.blogs-smalll-screen {
  display: none;
}

.blogs-small-screen {
  background-image: url("/assets/images/blogs/Rectangle_1562.svg");
  background-size: cover;
  /* Ensure the image covers the section */
  background-position: center;
  /* Center the image */
  background-repeat: no-repeat;
  /* Prevent repeating the image */
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  width: 100%;
  margin-bottom: 10%;
  padding-top: 12%;
  display: none;
}

.blogs-large-screen h1 {
  height: 35px;
  color: #07084c;
  font-weight: 700;
  font-size: 40px;
  line-height: 41px;
  margin-bottom: 50px;
  text-align: center;
}

.blogs-small-screen h1 {
  color: #ffffff;
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
}

.filters {
  padding-right: 10%;
  padding-left: 10%;
  margin-bottom: 10px;
  width: 100%;
}
.sticky-part {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f0f3fa;
  z-index: 1000;
  padding-top: 10%;

}


.filter-articles {
  color: #5042a6;
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 20px;
}

.filters-container-large-screen {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Aligns items vertically */
  width: 100%;
  margin-bottom: 40px;
}

.filters-container-small-screen {
  display: none;
}

.search-container {
  display: flex;
  align-items: center;
  width: 273px;
  height: 42px;
  background: white;
  border-radius: 21px;
  padding: 5px 15px;
  box-shadow: 0px 0px 5px rgba(0, 161, 255, 0.5);
}

.search-icon {
  width: 20px;
  height: 20px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  color: #0d0d37;
  margin-left: 10px;
  width: 100%;
}
.categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.category {
  width: 133px;
  height: 30px;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0px 4px 20px 0px #0000000d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category p {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.category.selected {
  border: 2px solid #5042A6; 

}
.category.selected p { 
  color: #5042A6 ;

}

.category :hover {
  cursor: pointer;
}

.articles {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  margin-top: 20%;
}

.article-with-cover-image :hover {
  cursor: pointer;
}

.article-image {
  width: 374px;
  height: 374px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-bottom: -50px;
  position: relative;
  background-color: #f0f3fa;
  z-index: 1;
}

.article-content {
  background-color: #f0f3fa;
  width: 374px;
  height: 231px;
  border-radius: 28px;
  box-shadow: 0px 12px 28.2px 0px #00000026;
  padding: 20px;
  position: relative;
  padding-top: 60px;
}

.title {
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  color: #5042a6;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tagline {
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  text-align: center;
  color: #07084c;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.article-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: absolute;
  bottom: 10px;
}

@media (max-width: 768px) {
  .blogs-large-screen {
    display: none;
    /* Hide large screen section */
  }

  .blogs-small-screen {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 107px;
  }

  .category {
    width: 85px;
    height: 15px;
    border-radius: 2px;
    background-color: #ffffff;
    box-shadow: 0px 4px 20px 0px #0000000d;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .category p {
    font-size: 10px;
    font-weight: 400;
    line-height: 22px;
  }

  .filter-articles {
    font-size: 14px;
    line-height: 15px;
    margin-top: 30px;
  }

  .filters-container-large-screen {
    display: none;
  }

  .filters-container-small-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .articles{
    margin-top: 100%;
  }
  .article-content {
    width: 271px;
    height: 178px;
    border-radius: 28px;
    box-shadow: 0px 12px 28.2px 0px #00000026;
    padding: 20px;
    position: relative;
    padding-top: 60px;
  }

  .title {
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    color: #5042a6;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }

  .article-image {
    width: 271px;
    height: 200px;
  }

  .tagline {
    font-size: 12px;
    line-height: 15px;
  }
}
