.mainSection {
  padding: 0 0 100px;
  display: flex;
  justify-content: center;
}

/* <!-- entities sections --> */

.entitySections {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* entities Top */

.entitiesTop {
  padding: 30px 0 20px;
  border-bottom: 1px solid #f3f3f3;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.breadCrumb {
  color: #595959;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.breadCrumb a {
  font-weight: 500;
}

.breadCrumb i {
  font-size: 10px;
}

.entitiesHeaders {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entityImage {
  width: 80px;
  height: 80px;
  /* border: 1px solid #f1f1f1; */
  background: #fafafa;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entityImage img {
  width: 45px;
  height: 45px;
  object-fit: cover;
}

.headersBottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: #0f0f0f;
}

.entityName {
  font-size: 28px;
  font-weight: 800;
}

.headerExtras {
  color: #444444;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.separator {
  width: 2px;
  height: 25px;
  background: #000;
}

.headerExtra {
  font-weight: normal;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.headerExtra i {
  font-size: 16px;
}

.entityDescription {
  max-width: 1020px;
  line-height: 1.5;
  color: #333;
}

.entityDetails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.entityDetail {
  padding: 20px;
  background-color: #fafafa;
  border-radius: 5px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.detailIcon {
  min-width: 40px;
  height: 40px;
  border: 1px solid #ebebeb;
  border-radius: 50%;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 5px;
  word-wrap: break-word;
}

.detailName {
  font-weight: normal;
  font-size: 13px;
  font-weight: 500;
}

.total {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.divider {
  width: 100%;
  height: 1px;
  background: #f3f3f3;
}

.entityProjects {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.projectsHeader {
  font-size: 20px;
  font-weight: 600;
}

.projectFilters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.entityHeadersRight {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.entityHeadersRight::-webkit-scrollbar {
  display: none;
}

.entityHeadersRight:first-child {
  scroll-snap-align: start;
}

.entityFilter {
  padding: 10px 20px;
  font-weight: 500;
  background-color: #f3f4f6;
  border-radius: 19px;
  color: #2d2e2f;
  cursor: pointer;
}

.entityFilter.active {
  background-color: #f35163;
  color: white;
}

.projectsCount {
  color: #333;
}

.projectsCount span {
  color: #000;
  font-weight: 600;
}

.projectFiltersRight {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 20px;
}

.projectFilter {
  padding: 10px 20px;
  font-weight: 500;
  background-color: #f3f4f6;
  border-radius: 19px;
  color: #2d2e2f;
  cursor: pointer;
}

.projectFilter.active {
  background-color: #f35163;
  color: white;
}

.projectSearch,
.projectSort {
  width: 250px;
  height: 35px;
  padding: 0 15px;
  border: 1px solid #f1f1f1;
  border-radius: 5px;
  color: #4b4b4b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.projectSort {
  width: fit-content;
  background-color: white;
}

.projectSearch input {
  flex: 1;
  height: 100%;
  border: none;
  background-color: none;
  font-family: "Inter";
  color: #4b4b4b;
}

.projectSearch input:focus {
  outline: none;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project {
  position: relative;
  flex: 1 1 350px !important;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.projectTop {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}

.projectName {
  font-size: 17px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4em;
  height: calc(1.4em * 2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.projectOrganization {
  font-size: 13px;
  color: #6951f3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.2em;
  height: calc(1.2em * 1);
  overflow: hidden;
  text-overflow: ellipsis;
}

.projectBottom {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.projectDes {
  font-size: 13px;
  font-weight: 400;
  color: #4b4b4b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: calc(1.2em * 2); /* 1.2em line height times number of lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.projectExtra {
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 15px 10px;
}

.projectButton a {
  width: 120px;
  height: 40px;
  border-radius: 23px;
  font-size: 13px;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-transform: capitalize;
}

.projectButton a:hover {
  background-color: #f35163;
  transition: 0.4s all forwards;
}

.projectDate {
  color: #757474;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.projectFlag {
  min-width: 20px;
  height: 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
}

.projectFlag.Green {
  color: #4caf50;
  background-color: #f3faf7;
}

.projectFlag.Red {
  color: #f44336;
  background-color: #fdf2f2;
}

.projectFlag.Orange {
  color: #f8794b;
  background-color: #fcf0e1;
}

.projectFlag.Yellow {
  color: #e7d210;
  background-color: #fdfdea;
}

/* pagination */

.paginationSection {
  width: 100%;
  padding: 60px 0 0;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #222b3a;
}

.paginationPrevious.inactive,
.paginationNext.inactive {
  opacity: 0.5;
  pointer-events: none;
}

.paginationNumbers {
  display: flex;
  align-items: center;
}

.paginationNumbers span {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paginationNumbers span.active {
  border: 2px solid #000;
  border-radius: 50%;
}

.paginationNumbers span:hover {
  cursor: pointer;
  font-weight: 600;
  transition: font-weight 0.4s ease-in-out;
}

@media (max-width: 868px) {
  .entitySections {
    width: 85%;
  }

  .entityName {
    font-size: 24px;
  }

  .entityImage {
    width: 70px;
    height: 70px;
  }

  .entityImage img {
    width: 40px;
    height: 40px;
  }

  .headerExtra {
    font-size: 13px;
  }

  .headerExtra i {
    font-size: 14px;
  }

  .entityDetails {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .projectSearch {
    width: 100%;
  }

  .projects {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 624px) {
  .breadCrumb {
    font-size: 12px;
    gap: 7px;
  }

  .entityName {
    font-size: 20px;
  }

  .entityDetails {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .projects {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .entityFilter {
    padding: 8px 15px;
    font-size: 13px;
  }

  .projectsCount {
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .entityFilter {
    padding: 8px 12px;
    font-size: 12px;
  }

  .projectsCount {
    font-size: 12px;
  }
}

/* empty state */

.emptyState {
  width: 100%;
  padding: 0 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.emptyIcon {
  width: 140px;
  height: 140px;
  margin: 0 0 10px;
  background-color: #fafafa;
  color: #6b6b6b;
  border-radius: 50%;
  font-size: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emptyHeader {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.emptyDes {
  max-width: 300px;
  color: #4b4b4b;
  font-size: 15px;
}

.emptyButton {
  margin-top: 20px;
  padding: 10px 30px;
  background-color: #f35163;
  color: white;
  border-radius: 5px;
  font-weight: 600;
}

/* @extra  */

.skeleton {
  min-width: 250px;
  flex: 1 1 350px !important;
  padding: 20px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-radius: 10px;
}

.skeletonTop {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeletonName {
  width: 60%;
  height: 20px;
  animation: pulse 1.5s infinite;
  border-radius: 10px;
}

.skeletonOrg {
  width: 40%;
  height: 15px;
  animation: pulse 1.5s infinite;
  border-radius: 10px;
}

.skeletonBottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeletonDes {
  width: 90%;
  height: 50px;
  animation: pulse 1.5s infinite;
  border-radius: 10px;
}

.skeletonExtra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  border-radius: 10px;
}

.skeletonButton {
  width: 30%;
  height: 30px;
  animation: pulse 1.5s infinite;
  border-radius: 10px;
}

.skeletonDate {
  width: 40%;
  height: 15px;
  animation: pulse 1.5s infinite;
  border-radius: 10px;
}

@keyframes pulse {
  0% {
    background-color: #f3f4f6;
  }
  50% {
    background-color: #e5e7eb;
  }
  100% {
    background-color: #f3f4f6;
  }
}

.pageHidden {
  display: none !important;
}
