@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "poppins";
  border: none;
  outline: none;
  letter-spacing: 0.015rem;
  list-style: none;
  scroll-behavior: smooth;
  transition: 0.4s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
}

/* dark color  */
:root {
  --bg-color: #000000;
  --bgtext-color: #141414;
  --sec-bg-color: #131313;
  --sample-image-bg-color: #d9d9d913;
  --sec-hover-color: #1b1b1b;
  --card-color: #0a0a0a;
  --sec2-bg-color: #202020;
  --text-color: #d3d3d3;
  --para-color: #868686;
  --para2-color: #a0a0a0;
  --placeholder-color: #999999;
  --icon-color: #646774;
  --box-shadow: 0 0 1rem #00000000;
  --main-color: #42cc49;
  --main-color-hover: #15d81f;
  --mark-color: #bd9700;
}

/* light color  */
.light-theme {
  --bg-color: #ffffff;
  --sec-bg-color: #eceef2;
  --sample-image-bg-color: #d9d9d9;
  --sec-hover-color: #f5faff;
  --card-color: #ffffff;
  --sec2-bg-color: #e0e4ec;
  --text-color: #4b4e69;
  --para-color: #7f8196;
  --para2-color: #686a79;
  --placeholder-color: #acaec9;
  --icon-color: #646774;
  --box-shadow: 0 0 3rem #f0f0f0;
  --main-color: #81ef87;
  --main-color-hover: #5ddd63;
  --mark-color: #ffcc00;
}

/* scroll bar  */
::-webkit-scrollbar {
  width: 0.15rem;
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--sec-bg-color);
  -webkit-border-radius: 30rem;
  -webkit-box-shadow: 0rem 0rem 1rem #000000bf;
}

::-webkit-scrollbar-corner {
  background: var(--bg-color);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 2.2rem;
}

html {
  font-size: 93%;
}

a {
  color: var(--text-color);
}

.header-cont {
  height: 6.3rem;
  background-color: var(--bg-color);
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem 0;
  transition: height 0.4s ease-in-out;
}

#search-bar-mob.hidden {
  opacity: 0;
  pointer-events: none;
}

.header-cont.shrink {
  height: 7.5rem;
}

.header-cont #search-bar-mob {
  display: none;
  max-width: 1200px;
  margin: 0.8rem auto 0;
  align-items: center;
  background-color: var(--sec-bg-color);
  transition: opacity 0.4s ease-in-out;
  height: 3.2rem;
  border-radius: 50rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: text;
  justify-content: center;
  gap: 0.7rem;
}

.header-cont #search-bar-mob:hover {
  background-color: var(--sec-hover-color);
}

.header-cont #search-bar-mob .icon svg {
  width: 1.2rem;
  margin-top: 0.4rem;
  stroke: var(--placeholder-color);
}

.header-cont #search-bar-mob input {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: transparent;
  width: 100%;
  padding: 0 2.3rem 0;
  color: var(--text-color);
  font-family: poppins;
  font-size: 0.9rem;
}

.header-cont #search-bar-mob .placeholder-text {
  color: var(--placeholder-color);
  font-size: 0.85rem;
  font-weight: 300;
}

.header-cont #search-bar-mob .placeholder-text {
  color: var(--placeholder-color);
  font-size: 0.85rem;
  font-weight: 300;
}

.header-cont header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-cont header {
  max-width: 1200px;
  margin: 0 auto;
}

.header-cont header .left {
  max-width: 7.9rem;
}

.header-cont header .left a {
  /* max-width: 4rem; */
}

.header-cont header .left a img {
  width: 100%;
}

.header-cont header .search {
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  background-color: var(--sec-bg-color);
  height: 3rem;
  width: 17.5rem;
  border-radius: 50rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: text;
  justify-content: center;
  gap: 0.7rem;
}

.header-cont header .search:hover {
  background-color: var(--sec-hover-color);
}

.header-cont header .search .icon svg {
  width: 1.2rem;
  margin-top: 0.4rem;
  stroke: var(--placeholder-color);
}

.header-cont header .search input {
  /* background-color: red; */
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: transparent;
  width: 100%;
  padding: 0 2.3rem 0;
  color: var(--text-color);
  font-family: poppins;
  font-size: 0.9rem;
}

.header-cont header .search .placeholder-text {
  color: var(--placeholder-color);
  font-size: 0.85rem;
  font-weight: 300;
}

.header-cont header .search input::placeholder {
  color: var(--placeholder-color);
  font-weight: 300;
}

.header-cont header .right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
}

.header-cont header .right .theme {
  height: 2.6rem;
  width: 2.6rem;
  background-color: var(--sec-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50rem;
  cursor: pointer;
}

.header-cont header .right .theme:hover {
  background-color: var(--sec-hover-color);
}

.header-cont header .right .theme svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  stroke: var(--placeholder-color);
  stroke-width: 0.1rem;
}

.header-cont header .right a {
  display: flex;
  align-items: center;
  line-height: 0;
  justify-content: center;
  background-color: var(--main-color);
  padding: 0.6rem 1.4rem;
  gap: 0.5rem;
  border-radius: 50rem;
  color: var(--bgtext-color);
  font-size: 0.74rem;
  text-transform: capitalize;
}

.header-cont header .right a:hover {
  background-color: var(--main-color-hover);
}

.header-cont header .right .btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-cont header .right .btn .icon svg {
  width: 1.2rem;
  stroke-width: 0.1rem;
  stroke: var(--bgtext-color);
}

/* top cards  */
.cards-wallper {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  /* overflow-y: auto; */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 4rem;
  flex-wrap: nowrap;
  border-radius: 1.4rem;
  padding: 2rem 0.7rem;
}

.cards-wallper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.cards-wallper .card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: start;
  background-color: var(--card-color);
  cursor: pointer;
  padding: 0.7rem 0.5rem 0.7rem 1.3rem;
  width: 17rem;
  border-radius: 1.4rem;
  gap: 1.3rem;
  box-shadow: var(--box-shadow);
}

.cards-wallper .card:hover {
  background-color: var(--sec-hover-color);
  transform: translateY(-0.2rem);
}

.cards-wallper .card .image-cont {
  width: 4.5rem;
  height: 4.5rem;
  border: solid 0.35rem var(--sec2-bg-color);
  border-radius: 50%;
}

.cards-wallper .card .image-cont img {
  width: 100%;
}

.cards-wallper .card .cont {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cards-wallper .card .cont h2 {
  font-size: 1rem;
  font-weight: 470;
  text-transform: capitalize;
}

.cards-wallper .card .cont #dis {
  color: var(--para-color);
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--para-color);
  font-size: 0.75rem;
  gap: 0.3rem;
}

.cards-wallper .card .cont #dis .icon svg {
  stroke: var(--para-color);
  stroke-width: 0.07rem;
  width: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* top info */
.filter {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem auto 0;
  padding: 0 0.7rem;
}

.filter h2 {
  text-transform: capitalize;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.75rem;
  font-weight: 470;
  /* background-color: red; */
  line-height: 1.5rem;
}

.filter h2 span {
  font-size: 0.75rem;
  background-color: var(--sec2-bg-color);
  padding: 0.01rem 0.8rem;
  margin-top: 0.1rem;
  border-radius: 50rem;
  cursor: pointer;
}

.filter h2 span:hover {
  background-color: var(--sec-hover-color);
}

.filter .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sec-bg-color);
  cursor: pointer;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border-radius: 50rem;
  gap: 0.5rem;
}

.filter .btn:hover {
  background-color: var(--sec-hover-color);
}

.filter .btn .icon1 {
  background-color: var(--sec2-bg-color);
  height: 1.85rem;
  width: 1.85rem;
  border-radius: 50rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter .btn .icon1 svg {
  stroke: var(--para-color);
  stroke-width: 0.08rem;
  width: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter .btn span {
  line-height: 0;
  color: var(--para2-color);
  text-transform: capitalize;
  font-size: 0.75rem;
}

.filter .btn .icon2 svg {
  stroke: var(--para-color);
  stroke-width: 0.08rem;
  width: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  rotate: 270deg;
  margin-left: -0.1rem;
}

/* chips  */
.chips-wallper {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow-y: auto;
  max-width: 1170px;
  display: flex;
  align-items: center;
  justify-content: start;
  margin: 2rem auto 0;
  gap: 0.8rem;
  border-radius: 0.5rem;
}

.chips-wallper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.chips-wallper .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sec-bg-color);
  padding: 0.1rem 1rem 0.2rem 0.8rem;
  border-radius: 50rem;
  cursor: pointer;
  gap: 0.35rem;
  /* box-shadow: var(--box-shadow); */
}

.chips-wallper .chip:hover {
  background-color: var(--sec-hover-color);
}

.chips-wallper .chip svg {
  stroke: var(--para-color);
  stroke-width: 0.04rem;
  width: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chips-wallper .chip .fill {
  stroke-width: 0;
}

.chips-wallper .chip .fill1 {
  fill: #ffcc23;
}

.chips-wallper .chip .fill2 {
  fill: #ff1f1f;
}

.filter-chips {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.chip.active {
}

mark {
  background-color: var(--mark-color);
  color: inherit;
  padding: 0 0.2em;
  border-radius: 50rem;
}

.chips-wallper .chip .text,
.chips-wallper .action .text {
  font-size: 0.75rem;
  text-transform: capitalize;
  color: var(--para2-color);
  font-weight: 300;
}

/* blogs links  */
main {
  padding: 0 0.5rem;
  max-width: 1110px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: space-between;
  gap: 2.7rem;
  flex-wrap: nowrap;
}

main article {
  /* width: 10rem; */
}

main article a {
  display: flex;
  flex-direction: column;
  background-color: var(--card-color);
  box-shadow: var(--box-shadow);
  padding: 0.6rem 0.6rem 1.3rem;
  border-radius: 1.7rem;
  width: auto;
}

main article a:hover {
  transform: translateY(-0.2rem);
}

main article a .image-cont {
  background-color: var(--sample-image-bg-color);
  height: 9.2rem;
  width: 100%;
  border-radius: 1.1rem;
  overflow: hidden;
  position: relative;
}

main article a:hover .image-cont img {
  transform: scale(1.02);
}

main article a .image-cont img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  /* height: 100%; */
}

main article a .image-cont .tag {
  position: absolute;
  background-color: var(--sec2-bg-color);
  font-size: 0.65rem;
  color: var(--text-color);
  bottom: 1rem;
  left: 1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50rem;
  text-transform: capitalize;
}

main article a .read-time {
  margin-left: 0.3rem;
  display: flex;
  align-items: center;
  margin-top: 0.7rem;
  gap: 0.4rem;
}

main article a .read-time .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

main article a .read-time .icon svg {
  stroke: var(--para-color);
  stroke-width: 0.08rem;
  width: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

main article a .read-time span {
  color: var(--para-color);
  font-size: 0.67rem;
}

main article a h1 {
  margin-left: 0.3rem;
  color: var(--text-color);
  font-size: 0.96rem;
  font-weight: 550;
  max-width: 14.7rem;
  line-height: 1.5rem;
  margin-top: 0.3rem;
}

main article a p {
  margin-left: 0.3rem;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  /* background-color: red; */
  max-width: 14.7rem;
  font-weight: 300;
  color: var(--para-color);
}

main article .publisher {
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.6rem;
}
.name-container {
  position: relative; /* so the absolute icon knows where to anchor */
  display: inline-block; /* keeps it inline with text */
}

.verified-icon {
  width: 0.9rem;
  height: 0.9rem;
  position: absolute;
  top: 50%; /* move to middle */
  transform: translateY(-50%); /* adjust back up half height */
  margin-left: 0.3rem;
  margin-top: 0.1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap; /* keep text on a single line */
}

main article .publisher .info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

main article .publisher .info .image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sample-image-bg-color);
  height: 2.1rem;
  width: 2.1rem;
  border-radius: 50rem;
  border: solid 0.15rem var(--sec2-bg-color);
}

main article .publisher .info .image img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

main article .publisher .info .dis {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

main article .publisher .info .dis .name {
  font-size: 0.65rem;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
}

main article .publisher .info .dis .date {
  font-size: 0.55rem;
  color: var(--para-color);
}

main article .publisher .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

main article .publisher .actions svg {
  stroke: var(--para-color);
  stroke-width: 0.05rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
