:root {
  --bg-color: #f9fafb;
  --text-color: #1e1e1e;
  --purple-color: #7c3aed;
  --blue-color: #1d4ed8;
  --blue-light-color: #225bf7;
  /* --bs-border-width: 0px !important;
  --bs-border-style: solid;
  --bs-border-color: ; */
}

body.dark {
  --bg-color: #202020;
  --text-color: #f9fafb;
}

.allTrans{
  transition: background-color .2s ease-in-out;
}

/* *{
    transition: background-color .2s ease-in-out;
} */

header,
section,
footer,
body {
  background-color: var(--bg-color);
}

/* header */

header > a > img {
  width: 40px;
  height: 40px;
}

@media screen and (max-width: 993px) {
  header > a > img {
    width: 30px;
    height: 30px;
  }

  header nav li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

header > a > p {
  font-size: 14px;
  color: var(--text-color);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
}

nav a:not(.active) {
  position: relative;
}

nav a:not(.active)::before {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0px;
  height: 2.5px;
  border-radius: 10000px;
  background-color: var(--blue-color);
  transition: width 0.2s;
}

nav a:not(.active):hover::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 10000px;
  background-color: var(--blue-color);
}

nav a.active {
  color: var(--purple-color);
  font-weight: bold;
  position: relative;
}

nav a.active::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 10000px;
  background-color: var(--purple-color);
}

@media screen and (max-width: 768px) {
  nav a.active::before {
    display: none !important;
  }
}

.themeSwitch {
  background-color: var(--text-color);
  border-radius: 100000000px;
  width: 45px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.switch {
  width: 15px;
  height: 15px;
  border-radius: 10000000px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10%;
  background-color: rgb(255, 196, 0);
  transition: left 0.2s;
}

.switch.dark {
  left: 60%;
  background-color: var(--blue-light-color);
}

.sidebarBtn {
  background-color: transparent;
  border: 0px;
  outline: 0px;
}

.sidebarBtn svg {
  color: var(--text-color);
}

/* aside */
aside {
  height: 100svh;
  position: fixed;
  right: -100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 70svw;
  top: 0px;
  transition: right 0.2s ease-in-out;
  z-index: 10000000000;
}

body.dark aside {
  background-color: rgb(37, 37, 37);
}

aside.active {
  right: 0px;
}

div.antiAside {
  position: fixed;
  height: 100svh;
  width: 100svw;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000000000;
  display: none;
  top: 0px;
}

div.antiAside.active {
  display: block;
}

aside a {
  max-width: fit-content;
}

.btnRgb {
  background-color: #292626;
  color: #f0c80f;
}

.newProductRgb {
  background-color: #eaeaea;
}

.btnNewProductRgb {
  background-color: #f0c80f;
}

.dastebandiChildrenRgb {
  background-color: white;
}

.articles {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: #777;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  border-color: #575757 !important;
  height: 380px;
}

.card:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.card img {
  object-fit: cover !important;
  height: auto !important;
  width: 100% !important;
  display: block !important;
}

.content {
  padding: 15px;
  text-align: right;
}

.content h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.content p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.author {
  font-size: 0.8rem;
  color: #7c3aed;
}

body.dark .bgArticles {
  background-color: rgb(37, 37, 37);
}

.blogColor {
  color: var(--text-color);
}


.bgArticles{
  height: 100%;
}

.imgLayer{
  position: relative;
  height: 50%;
}

.imgDiv{
  overflow: hidden;
  height: 100%;
}

.imgLayer .layer{
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: #1c4bcb6f;
  opacity: 0;
  transition: opacity .2s;
  z-index: 100000;
  box-shadow: 0px 5px 21px 5px #1c4bcb41;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.imgLayer:hover .layer{
  opacity: 1;
}

input{
  color: var(--text-color);
}

/* footer */

footer {
    border-top: 2px solid var(--blue-color);
    position: relative;
}

footer div:nth-child(1) p {
    color: var(--purple-color);
}

footer div:nth-child(1) img {
    width: 67px;
    height: 67px;
}

footer div:nth-child(2) p {
    color: var(--text-color);
}

footer div:nth-child(3) a img {
    width: 24px;
    height: 24px;
    padding: 0px !important;
}

body.dark footer div:nth-child(3) img {
    filter: invert(1);
}

.footerText {
    position: absolute;
    bottom: 0px;
    font-size: 10px;
    color: var(--text-color);
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
}