@font-face {
  font-family: vazir;
  src: url('./Vazir.ttf');
}

body {
  margin: 0;
  font-family: vazir, sans-serif;
  background: #0f0518;
  color: #fff;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.btn { 
  text-decoration: none;
  background-color: #911af8d1;
  color: white;
  border-radius: 5px;
  padding: 3px 17px;
}

.topcontainer {
  box-sizing: border-box;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
}

.container{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1360px;
  display: block;
  padding-bottom: 50px;
}

.grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

/* first row full width */
.tcard:first-child {
  grid-column: 1/-1;
  height: 220px;
  background: url("./jbg.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.tcard:first-child::before {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  opacity: 0.75;
}
.tcard:first-child .overlay {
  color: #1a0d2e;
  font-weight: 900 !important;
  font-size: x-large !important;
}

/* normal tcards */
.tcard {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  padding: 5px 8px;
}

.tcard img {
  direction: ltr;
  float: left;
  width: auto;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.8);
}
.tcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  opacity: 0.8;
}
.overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5em;
  font-weight: bold;
  color: #debdff;
}
.list {
  box-sizing: border-box;
  width: 100%;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.item {
  box-sizing: border-box;
  display: flex;
  gap: 28px;
  background: #1a0d2e;
  padding: 18px 25px;
  border-radius: 12px;
  align-items: center;
}
.item img {
  width: 60px;
  height: 60px;
}
.item .info > a {
  font-size: x-large;
  color: #c084fc;
  text-decoration: none;
  font-weight: bold;
}
.item sub span{
  margin-right: 25px;
  color: #dbdbdb;
}
h1 {
  text-align: center;
  padding: 16px;
  margin: 0;
}

/* responsive */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .tcard:first-child {
    height: 180px;
  }
  .tcard img {
    height: 110px;
  }
  .overlay {
    font-size: large;
  }
  .item {
    flex-direction: column;
    align-items: flex-start;
  }
  .item .info > a {
    font-size: larger;
  }
  .item.only .info > a {
    font-size: medium;
  }
  .item .icon {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  .item .icon img {
    width: 50px;
    height: 50px;
  }
}
