/* All els */

@font-face {
  font-family: "Samim-FD";
  src: local("Samim-FD"),
    url("../../samim-font-v2.0.1/Farsi-Digits/Samim-FD.ttf");
}

:root {
  --color-blue: #85a8c5;
  --color-orange: #f87711;
  --sm-radius: 5px;
  --md-radius: 10px;
  --lg-radius: 15px;
  --circle-radius: 50%;
}

* {
  box-sizing: border-box;
  font-family: "Samim-FD";
}

body {
  margin: 0;
}

li,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  direction: rtl;
}

/* All els End */

/* Header */
.header {
  position: relative;
  background-color: var(--color-blue);
  margin: 0;
}

/* Nav */

.nav {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  align-items: center;
}

.logo-img {
  width: 100px;
  object-fit: cover;
}

.number-wrapper {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 370px) {
  .number-wrapper {
    display: none;
  }
}

.number {
  margin: 0 0.4rem;
  border-left: 3px solid #000;
  padding-left: 0.14rem;
}
.number-box {
  background-color: transparent;
  display: flex;
  flex-direction: row;
}

.number-box p {
  border-style: none solid none none;
  border-width: 3px;
  border-color: #ffffff;
  padding-right: 0.5rem;
  margin: 10px;
  color: #000000;
  font-size: 18px;
}
.nav-btn {
  background-color: transparent;
  border: none;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--sm-radius);
  cursor: pointer;
}

.nav-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* List */

.hidden {
  display: none !important;
}

.list-wrapper {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 350px;
  max-width: 100%;
  background-color: #0000003a;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
  right: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.list {
  width: 100%;
  max-width: 100%;
  background-color: var(--color-blue);
  display: flex;
  flex-direction: column;
  z-index: 10;
  margin: 0;
  padding: 0.8rem;
  overflow-y: scroll;
}

.list-button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
}

.list-number-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 25px;
}

.list-number {
  background-color: var(--color-orange);
  display: block;
  width: 100%;
  margin: 0.2rem 0;
  padding: 0.5rem;
  text-align: center;
  border-radius: var(--md-radius);
  font-style: italic;
}

.list-item {
  display: block;
  width: 100%;
  margin: 0.27rem 0;
  cursor: pointer;
  position: relative;
}

.list-item a,
.dropdown {
  background-color: #ffffff92;
  text-align: center;
  width: 100%;
  display: block;
  border-radius: var(--sm-radius);
  text-decoration: none;
  color: #000;
  padding: 0.75rem;
  transition: 0.3s;
  font-size: 17px;
}

.list-item a:hover,
.dropdown:hover {
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
  background-color: var(--color-orange);
}

.down-icon {
  stroke: #000;
  position: absolute;
  width: 20px;
  height: 20px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 5;
}

.list::-webkit-scrollbar {
  width: 10px;
}

.list::-webkit-scrollbar-thumb {
  background-color: #ffffff62;
  border-radius: var(--md-radius);
}

.list::-webkit-scrollbar-thumb:active {
  background-color: #ffffffa5;
}

/* Header End */

/* Main */
.main {
  background-color: var(--color-blue);
  margin: 0;
  top: 0;
  padding: 1rem 3rem;
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 10px;
}

/* Container */
.container {
  background-color: #fff;
  border-radius: var(--sm-radius);
  padding: 1rem;
}

.description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.1rem 0.3rem;
}

.description-heading {
  font-size: 30px;
  display: flex;
  justify-content: center;
}

.description p {
  font-size: 17px;
}

.description-link {
  background-color: var(--color-orange);
  text-decoration: none;
  padding: 0.25rem 1.25rem;
  border-radius: var(--lg-radius);
  transition: 0.3s;
  color: #000;
  outline: 3px solid #f87711;
  outline-offset: 0;
}

.description-link:hover {
  padding: 0.25rem 2.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background-color: var(--color-blue);
  outline-offset: 4px;
  outline-color: #85a8c5;
}

.content {
  position: relative;
  direction: rtl;
  margin: 0.5rem 0;
}
.content-img-wrapper {
  width: 100%;
  display: flex;
  padding: 1.5rem 5rem;
  position: relative;
  height: 455px;
}

@media (max-width: 600px) {
  .content-img-wrapper {
    height: 250px;
    padding: 10px;
  }
}

.content-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--sm-radius);
}

.content-question {
  color: #8A0000;
  font-weight: bold;
  text-align: center;
}

.content-card-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  gap: 30px 2px;
}

.content-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  text-align: center;
  border-radius: var(--sm-radius) var(--sm-radius);
  padding: 0 0 15px 0;
}

.card-img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-radius: var(--sm-radius) var(--sm-radius) 0 0;
}

.card-link {
  background-color: var(--color-orange);
  text-decoration: none;
  padding: 0.25rem 1.25rem;
  border-radius: var(--sm-radius);
  transition: 0.3s;
  color: #000;
  outline: 3px solid #f87711;
  outline-offset: 0;
}

.card-link:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background-color: var(--color-blue);
  outline-offset: 4px;
  outline-color: #85a8c5;
}

@media (max-width: 1100px) {
  .content-card-wrapper {
    grid-template-columns: repeat(3, 33%);
  }
}

@media (max-width: 916px) {
  .content-card-wrapper {
    grid-template-columns: repeat(2, 50%);
  }
}

@media (max-width: 775px) {
  .content-card-wrapper {
    gap: 30px 10px;
  }

  .content-card {
    border-radius: var(--md-radius);
  }

  .card-img {
    border-radius: var(--md-radius) var(--md-radius) 0 0;
  }
}

@media (max-width: 500px) {
  .content-card-wrapper {
    grid-template-columns: 100%;
  }
}
/* Container End*/

/* Aside */
.aside {
  background-color: #fff;
  border-radius: var(--sm-radius);
  height: min-content;
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
}

.aside-item {
  background-color: #85a8c524;
  color: #000;
  margin: 0.2rem 0;
  text-align: right;
  padding: 0.788rem 1.1rem;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.35s;
}

.aside-item:hover,
.aside-item:focus,
.aside-item.active,
.aside-item:focus {
  background-color: var(--color-orange);
}

@media (max-width: 775px) {
  .main {
    grid-template-columns: 100%;
  }
  .aside {
    position: static;
  }
}
/* Aside End */

/* Regions */
.regions ul {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: auto auto auto;
}

.regions li {
  display: block;
  margin: 10px;
}

.regions ul li a {
  display: block;
  text-align: right;
  padding: 10px;
  background-color: #f2f2f2;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  transition: 0.3s ease;
}

.regions ul li a:hover {
  background-color: #ccc;
}

@media (max-width: 950px) {
  .regions ul {
    grid-template-columns: auto;
  }
}
/* Regions End */
/* Main End */

/* Footer */
.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  background-color: #02010e;
  color: #ffffff;
  align-items: center;
  padding: 1rem 0;
}

.footer-address {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.footer-address ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  align-items: flex-end;
}

.footer-address ul li {
  margin: 0.25rem 0;
}

.footer-address ul li span {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.footer-address ul li span i {
  background-color: #ffffff5e;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
}

.footer-description {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.footer-description h2 {
  text-align: right;
  border-right: 4px solid #85a8c5;
  padding-right: 1rem;
  color: #ffffff;
}
.footer-description p {
  text-align: right;
  color: #ffffff;
}
@media (max-width: 625px) {
  .footer-description ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}
/* Footer End */
