* {
  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: #111111;
  --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: #404256;
  --para-color: #7f8196;
  --para2-color: #686a79;
  --placeholder-color: #7c7e98;
  --icon-color: #646774;
  --box-shadow: 0 0 3rem #ebebeb;
  --main-color: #81ef87;
  --main-color-hover: #5ddd63;
  --mark-color: #ffcc00;
}

/* scroll bar  */
::-webkit-scrollbar {
  width: 0.5rem;
  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 {
  padding-top: 6rem;
}

/* chips  */
.chips-wallper {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow-y: auto;
  width: 100%; /* allow resizing */
  max-width: 1170px; /* limit max width */
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.8rem;
  border-radius: 0.5rem;
  transition: padding 0.3s ease-in-out; /* smooth shrink */

  /* fixed positioning */
  background-color: var(--bg-color);
  padding: 6.5rem 1.2rem 1rem;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

/* smaller padding when scrolled */
.chips-wallper.scrolled {
  padding: 6rem 1.2rem 1rem;
}

main {
  max-width: 1070px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 3.5rem;
  padding: 4rem 0 0.5rem;
}

main article {
  width: 100%;
}

main article .image {
  background-color: var(--sample-image-bg-color);
  width: 100%;
  height: 22rem;
  border-radius: 2.2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

main article .image:hover img {
  transform: scale(1.02);
}

main article .image img {
  height: 100%;
  width: 100%;
  cursor: pointer;
  object-fit: cover;
}

main article .image .blog-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--sec-bg-color);
  border-radius: 0 0 2.2rem 2.2rem;
  display: flex;
  align-items: center;
  padding: 1.3rem 2rem 1.5rem;
  gap: 0.5rem;
  margin-bottom: -0.1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(40rem);
}

main article .image .blog-actions .blog-tag {
  background-color: var(--sec2-bg-color);
  font-size: 0.8rem;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  cursor: pointer;
  margin-right: 0.6rem;
  text-transform: capitalize;
}

main article .image .blog-actions svg {
  stroke: var(--para-color);
  stroke-width: 0.05rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

main article .image .blog-actions .play-audio {
  /* background-color: var(--sec2-bg-color); */
  background-color: var(--main-color);
  color: black;
  height: 2.2rem;
  line-height: 0;
  width: 2.2rem;
  border-radius: 50rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.5rem;
}

main article .image .blog-actions .play-audio:hover {
  background-color: var(--main-color-hover);
}

main article .image .blog-actions .play-audio .pause {
  display: none;
}

main article .image .blog-actions .play-audio svg {
  width: 1.1rem;
  stroke-width: 0.06rem;
  stroke: #222222;
  /* margin-left: -0.15rem; */
}

main article .image .blog-actions .play-audio .play {
  margin-left: 0.15rem;
  margin-top: 0.07rem;
}

main article .read-time {
  margin-left: 0.3rem;
  display: flex;
  align-items: center;
  margin-top: 1rem;
  gap: 0.4rem;
}

main article .read-time .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

main article .read-time .icon svg {
  stroke: var(--para-color);
  stroke-width: 0.08rem;
  width: 1.07rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

main article .read-time span {
  color: var(--para-color);
  font-size: 0.8rem;
}

main article .heading-title {
  max-width: 48rem;
  font-weight: 470;
  margin-left: 0.3rem;
  color: var(--text-color);
  font-size: 1.9rem;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 0.6rem;
}

main article .description {
  max-width: 48rem;
  margin-left: 0.3rem;
  color: var(--para-color);
  font-size: 0.95rem;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  line-height: 1.85rem;
  font-weight: 350;
  margin-top: 0.7rem;
}

main article .info-art {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

main article .info-art .image-p {
  background-color: var(--sample-image-bg-color);
  height: 2.8rem;
  width: 2.8rem;
  border-radius: 50rem;
  border: solid 0.2rem var(--sec2-bg-color);
}

main article .info-art .image-p img {
  width: 100%;
}

main article .info-art .dis {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

main article .info-art .dis .name {
  font-size: 0.8rem;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  /* line-height: 0; */
}

main article .info-art .dis .date {
  font-size: 0.7rem;
  color: var(--para-color);
}

/* next  */
main article .next {
  margin-top: 2.5rem;
  max-width: 49rem;
}

.name-container {
  position: relative; /* so the absolute icon knows where to anchor */
  display: inline-block; /* keeps it inline with text */
}

.verified-icon {
  margin-top: 0.1rem;
  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; /* space from the name */
}

main article .next .tite {
  font-size: 1.9rem;
  text-transform: capitalize;
  font-weight: 500;
  margin-left: 1.3rem;
}

main article .next .next-wallper {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 0;
  padding: 1rem 0.5rem;
  width: 100%;
  gap: 2rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow-y: auto;
  border-radius: 2rem;
}

main article .next .next-wallper .next-box {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.2rem;
  background-color: var(--card-color);
  box-shadow: var(--box-shadow);
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border-radius: 1.5rem;
  max-width: 28rem;
  cursor: pointer;
}

main article .next .next-wallper .next-box .image-conte {
  position: relative;
  background-color: var(--sample-image-bg-color);
  height: 7rem;
  width: 15.5rem;
  border-radius: 1.4rem;
  overflow: hidden;
}

main article .next .next-wallper .next-box .image-conte img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}

main article .next .next-wallper .next-box .image-conte .next-tag {
  position: absolute;
  background-color: var(--sec2-bg-color);
  font-size: 0.6rem;
  color: var(--text-color);
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50rem;
}

main article .next .next-wallper .next-box .discrip h1 {
  font-size: 0.97rem;
  font-weight: 500;
}

main article .next .next-wallper .next-box .discrip p {
  font-size: 0.65rem;
  color: var(--para-color);
  margin-top: 0.3rem;
}

/* more  */
main .maore-articles-wallper {
  width: 100%;
  box-sizing: border-box;
  height: (height of main article);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: -1rem;
  padding: 1rem 0.8rem;
  border-radius: 1rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow-x: auto;
}

main .maore-articles-wallper article a {
  max-width: 17rem;
}

main .maore-articles-wallper > :first-child {
  display: none;
}

main .maore-articles-wallper article .publisher .actions svg {
  display: none;
}

@media (max-width: 948px) {
  main .maore-articles-wallper {
    display: none;
  }

  main article .next .next-wallper {
    width: 100% !important;
    max-width: none !important;
  }

  main article .heading-title {
    width: 100% !important;
    max-width: none !important;
  }

  main article .description {
    width: 100% !important;
    max-width: none !important;
  }

  main article .next {
    width: 100% !important;
    max-width: none !important;
  }

  main article .next .next-wallper {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 626px) {
  html {
    font-size: 76%;
  }

  /* blogs links  */
  main {
    padding: 4.5rem 0 0.8rem;
    gap: 2rem;
  }

  .header-cont header .left {
    max-width: 7.3rem;
  }

  .header-cont #search-bar-mob {
    display: flex;
  }

  .header-cont header .search {
    display: none;
  }

  /* top cards  */
  .cards-wallper {
    padding: 6rem 0.5rem 0.5rem;
  }
}

@media (max-width: 501px) {
  html {
    font-size: 74%;
  }

  .header-cont header .left {
    max-width: 7.3rem;
  }

  .header-cont #search-bar-mob {
    display: none;
  }

  .header-cont header .search {
    display: none;
  }
}

@media (max-width: 685px) {
  html {
    font-size: 78%;
  }

  .header-cont header .left {
    max-width: 7.4rem;
  }

  .header-cont header .search {
    height: 2.8rem;
    width: 17rem;
  }

  .header-cont header .right a {
    padding: 0.5rem 1.2rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 626px) {
  html {
    font-size: 76%;
  }

  .header-cont header .left {
    max-width: 7.3rem;
  }

  .header-cont header .search {
    display: none;
  }
}

@media (max-width: 462px) {
  html {
    font-size: 72%;
  }

  .header-cont {
    padding: 0rem 2rem 0;
  }
}

@media (max-width: 454px) {
  main article .image {
    height: 20em;
  }

  html {
    font-size: 80%;
  }

  /* blogs links  */
  main {
    padding: 8rem 0.2rem 0.8rem;
  }

  main article a h1,
  main article a p {
    max-width: 120rem;
  }

  main article a {
    /* max-width: 25rem; */
    border-radius: 2.5rem;
    margin: 0 auto;
    padding: 0.95rem 0.95rem 1.7rem;
  }

  main article a .image-cont {
    height: 12rem;
    border-radius: 2rem;
  }

  main article a .read-time {
    margin-left: 0.4rem;
  }

  main article a .read-time .icon svg {
    width: 1.09rem;
  }

  main article a .read-time span {
    font-size: 0.87rem;
  }

  main article a h1 {
    margin-left: 0.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 550;
    line-height: 1.95rem;
    margin-top: 0.5rem;
  }

  main article a p {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 300;
    color: var(--para-color);
  }

  body {
    padding: 1.5rem;
  }

  .header-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0.8rem 0;
  }

  .header-cont header .left {
    max-width: 7.77rem;
  }

  .header-cont header .right {
    gap: 0.8rem;
  }

  .header-cont header .right a {
    padding: 0.57rem 1rem;
    font-size: 0.72rem;
  }

  main article .heading-title {
    font-size: 1.95rem;
    line-height: 2.9rem;
    margin-top: 1rem;
  }

  main article .description {
    font-size: 1.18rem;
    line-height: 2.3rem;
    margin-top: 1.2rem;
  }
}
