@import url("fonts.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
  font-family: "Vazirmatn";
  --primary-color: #227669;
  --secondary-color: #000000;
  --gray-medium: #aaaaaa;
  --gray-light: #dfdfdf;
  --gray-drak: #727272;
  --background-color: #d9d9d926;
}
body {
  height: 100%;
}

ul {
  list-style: none;
  margin-bottom: 10px;
}

ol {
  margin-bottom: 10px;
  padding-right: 12px;
}
ol li {
  margin-bottom: 8px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
  padding: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 14px;
}
.breadcrumb li:last-child {
  cursor: text;
}
.breadcrumb-separator {
  color: var(--primary-color);
}

.breadcrumb a {
  text-decoration: none;
}

@media screen and (max-width: 1023px) {
  .breadcrumb li {
    font-size: 15px;
  }
}
@media screen and (max-width: 767px) {
  .breadcrumb li {
    font-size: 13px;
  }
}

.main-container {
  margin: 0 auto;
  max-width: 1300px;
  padding: 30px;
}

.custom-box {
  display: flex;
  height: 100%;
  position: relative;
  justify-content: center;
}

.custom-box img {
  width: 100%;
  height: 100%;
}

.custom-box h2 {
  position: absolute;
  bottom: 20px;
  text-align: center;
  font-size: 13px;
  color: rgb(255, 255, 255);
  z-index: 1;
  padding: 0 2%;
}

.custom-box .overlay {
  position: absolute;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  pointer-events: none;
}
.custom-box:hover {
  opacity: 0.9;
}

.thumbnail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 285px;
  max-width: 100%;
  gap: 15px;
  box-shadow: 0px 1px 5px 0px #00000040;
  padding-bottom: 20px;
}
.thumbnail img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}
.thumbnail h3 {
  font-size: 14px;
  padding: 0px 15px;
}
.thumbnail > div:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 15px;
}
.thumbnail > div a {
  font-size: 12px;
  font-weight: 500;
  color: white;
  padding: 5px 15px;
  border-radius: 0px 0px 10px 0px;
  text-align: center;
  background-color: var(--primary-color);
}
.time-and-link {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.time-and-link > a {
  display: flex;
  font-size: 11px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
}
.time {
  display: flex;
  align-items: center;
  gap: 5px;
}
.time p {
  font-size: 10px;
  color: var(--gray-medium);
}

.sidebar-section {
  display: flex;
  width: 30%;
  flex-direction: column;
  gap: 30px;
  box-shadow: 0px 4px 4px 0px #00000040;
  padding-top: 20px;
}

.sidebar-section h2 {
  color: var(--gray-medium);
  text-align: center;
  font-size: 20px;
}
.sidebar-section > div:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0px 10px;
}
.sidebar-item {
  display: flex;
  gap: 12px;
  align-items: start;
  border-bottom: solid 1px var(--gray-light);
  padding: 15px 8px;
}
.sidebar-item:last-child {
  border-bottom: none;
}
.sidebar-item > div:first-of-type {
  display: flex;
  height: 70px;
}
.sidebar-item > div:first-of-type img {
  max-width: 70px;
  object-fit: cover;
}
.sidebar-item > div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  padding-right: 5px;
  gap: 20px;
}

.sidebar-item > div:nth-of-type(2) > h3 {
  font-size: 11px;
  max-width: 200px;
}

.sidebar-section > a:last-of-type {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  color: var(--gray-medium);
  background-color: var(--gray-light);
  padding: 10px 0px;
}

.sidebar-section > a:last-of-type:hover {
  background-color: var(--primary-color);
  color: white;
}

.empty-message {
  text-align: center;
  color: var(--gray-medium);
  padding: 1rem;
  font-size: 13px;
}

a {
  text-decoration: none;
  color: inherit;
}

.menu-mobile span,
.search-icon span {
  cursor: pointer;
}

.top-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px;
  border-bottom: 1px solid var(--tertiary-color);
  padding: 2px 0;
}

.logo-mobile {
  width: 115px;
  height: 43px;
  padding: 5px 7px;
  background-color: #227669;
  align-items: end;
  direction: ltr;
  border-radius: 4px;
}

.logo-mobile img {
  width: 24px;
  height: auto;
  margin-top: 2px;
  object-fit: contain;
}

.logo-text {
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 0px;
}

.menu-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 8px 12px;
}

.menu-slider::-webkit-scrollbar {
  display: none;
}

.menu-slider button {
  flex: 0 0 auto;
  color: var(--primary-color);
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  padding: 6px 15px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.menu-slider button:hover {
  background-color: #ddd;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9;
}

.mobile-drawer {
  position: fixed;
  right: -250px;
  top: 0;
  width: 213px;
  height: 100%;
  background-color: #fff;
  z-index: 999;
  transition: right 0.3s ease;
  direction: rtl;
}

.mobile-drawer.open {
  right: 0;
}

.menu-overlay.active {
  display: block;
}

.drawer-header {
  display: flex;
  align-items: center;
  background-color: #227669;
  padding: 6px 20px;
  width: 100%;
  direction: ltr;
}

.drawer-header img {
  width: 27px;
  height: 36px;
  margin-top: 2px;
  object-fit: contain;
}

.drawer-header .logo-text {
  color: white;
  font-size: 18px;
  font-weight: 400;
  margin: 13px 6px 0 8px;
}

.drawer-menu li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  cursor: pointer;
}

.drawer-menu li .material-symbols-outlined {
  font-size: 18px;
  color: #555;
}

.drawer-menu li .plus {
  margin-left: 8px;
  font-weight: bold;
  color: #888;
}

.drawer-menu li .minus {
  display: none;
  margin-left: 8px;
  font-weight: bold;
  color: #888;
}

.drawer-menu li.has-submenu {
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 0;
}

.drawer-menu li .menu-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 6px;
  font-size: 14px;
  cursor: pointer;
}

.menu-item-home {
  display: flex;
  align-items: center;
  gap: 70px;
}

.menu-item .category-icon {
  width: 20px;
  height: 20px;
}

.menu-item .plus {
  width: 16px;
  height: 16px;
}

.drawer-menu .submenu {
  width: 100%;
  display: none;
  list-style: none;
  padding: 0 12px 12px 12px;
  margin: 0;
}

.drawer-menu .submenu li {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--tertiary-color);
  color: var(--secondary-color);
}

.drawer-menu .submenu li:last-child {
  border-bottom: none;
}

.drawer-menu li.has-submenu.active .plus {
  display: none;
}

.drawer-menu li.has-submenu.active .submenu,
.drawer-menu li.has-submenu.active .minus {
  display: block;
}

.drawer-menu li.has-submenu.active .minus {
  width: 10px;
  height: 10px;
}

.drawer-menu li.has-submenu.active .menu-item,
.drawer-menu li.has-submenu.active .menu-item i {
  color: var(--primary-color);
}

.search-container {
  display: none;
  flex: 1;
  padding: 0 8px;
}

.search-container input {
  width: 100%;
  outline: none;
  padding: 6px 10px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 14px;
}

.search-inside-icon {
  position: absolute;
  left: 15px;
  top: 25px;
  transform: translateY(-50%);
  width: 20px;
  pointer-events: none;
}

.top-mobile-header.search-active .logo-mobile,
.top-mobile-header.search-active .search-icon {
  display: none;
}

.top-mobile-header.search-active .search-container {
  display: block;
}

.top-mobile-header.search-active .menu-mobile span {
  margin-top: 10px;
}

@media screen and (max-width: 1023px) {
  .thumbnail h3 {
    font-size: 13px;
  }
}

@media screen and (max-width: 767px) {
  .thumbnail h3 {
    font-size: 12px;
  }
}

@media screen and (min-width: 560px) {
  .menu-slider {
    display: flex;
    overflow-x: hidden;
    gap: 10px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (min-width: 1023px) {
  .mobile-header {
    display: none;
  }

  .desktop-header {
    display: block !important;
  }
}

.desktop-header {
  display: none;
}

.top-desktop-header {
  display: flex;
  justify-content: space-between;
}

.logo-desktop-header {
  width: 191px;
  height: 96px;
  background-color: #227669;
  display: flex;
  align-items: end;
  direction: ltr;
}

.logo-desktop-header img {
  width: 68px;
  height: 77px;
  margin-bottom: 10px;
}

.logo-text-desktop {
  color: white;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
}

.trending-tags-desktop-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trending-tags-desktop-header p {
  font-size: 13px;
}
.trending-tags {
  display: flex;
  gap: 20px;
  background-color: #dfdfdf;
  padding: 10px;
  border-radius: 10px;
}

.trending-tags a {
  color: var(--primary-color);
  font-size: 10px;
  font-weight: 300;
  padding: 4px 10px;
  transition: background-color 0.3s;
}

.search-desktop-header {
  padding: 0 10px;
  align-self: center;
}

.search-desktop-header input {
  width: 273px;
  height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--gray-light);
  outline: none;
}

.search-desktop-header-icon {
  position: absolute;
  left: 15px;
  top: 47px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-mobile-header-icon {
  width: 27px;
}
#menuIconSpan {
  width: 24px;
}

.menu-icon {
  display: block;
}
.close-icon {
  display: none;
  width: 20px;
  height: 20px;
}

.menu-desktop-header {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--secondary-color);
  color: white;
}

.list-desktop-header {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.item-desktop-header.active {
  background-color: var(--primary-color);
  padding: 22px;
  margin-right: 12px;
}

.item-desktop-header {
  align-self: center;
  position: relative;
}

.item-desktop-header.has-submenu {
  position: relative;
}

.item-desktop-header.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 30px;
  background: transparent;
  pointer-events: auto;
  z-index: 1;
}

.item-desktop-header.active .submenu-desktop-header {
  top: 70px;
  right: -10px;
}

.submenu-desktop-header {
  opacity: 0;
  display: none;
  visibility: hidden;
  position: absolute;
  top: 49px;
  width: 168px;
  background-color: #fff;
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
  padding: 10px;
  border-radius: 5px 5px 20px 20px;
  flex-direction: column;
  gap: 22px;
  transition: all 0.3s ease-in-out;
  z-index: 10;
  right: -40px;
}

.submenu-desktop-header li {
  font-size: 13px;
}

.item-desktop-header.has-submenu:hover .submenu-desktop-header {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.submenu-desktop-header li:hover {
  border-bottom: 1px solid var(--primary-color);
}

@media screen and (min-width: 1023px) {
  .search-desktop-header input {
    width: 183px;
  }
}

@media screen and (min-width: 1440px) {
  .logo-desktop-header {
    width: 240px;
  }

  .logo-desktop-header img {
    margin-left: 20px;
  }

  .search-desktop-header input {
    width: 300px;
  }
}

.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 22px 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.list-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.list-footer li {
  text-align: center;
  font-size: 10px;
  font-weight: 300;
  cursor: pointer;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
}

.newsletter-title {
  font-size: 17px;
}

.email-newsletter {
  background-color: var(--gray-light);
}

.btn-newsletter {
  background-color: var(--primary-color);
  color: #fff;
}

.email-newsletter,
.btn-newsletter {
  width: 100%;
  border: none;
  height: 30px;
  border-radius: 10px;
  padding: 0 10px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-self: center;
}

.footer-socials img {
  width: 20px;
}

.footer-copyright-content {
  font-size: 9px;
}

.icons-footer {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .list-footer {
    justify-content: center;
    gap: 50px;
  }

  .list-footer li {
    font-size: 14px;
  }

  .newsletter-title {
    font-size: 22px;
  }

  .email-newsletter,
  .btn-newsletter {
    width: 70%;
  }

  .footer-socials {
    gap: 50px;
  }

  .footer-socials img {
    width: 25px;
  }

  .footer-copyright-content {
    font-size: 13px;
  }
  .sidebar-section a:last-of-type {
    font-size: 11px;
  }
  .sidebar-section h2 {
    font-size: 16px;
  }
}

@media screen and (min-width: 1023px) {
  .footer {
    padding: 29px 5rem 0 5rem;
  }

  .footer-container {
    gap: 25px;
  }

  .footer-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .newsletter {
    flex-direction: row;
    gap: 20px;
  }

  .email-newsletter {
    width: 215px;
    font-size: 12px;
  }

  .btn-newsletter {
    width: 92px;
  }

  .list-footer {
    gap: 20px;
  }

  .newsletter-title {
    font-size: 11px;
  }

  .footer-bottom {
    flex-direction: row-reverse;
    gap: 14%;
  }

  .footer-socials {
    align-self: end;
    gap: 40px;
  }

  .footer-socials img {
    width: 23px;
  }

  .footer-copyright-content {
    font-size: 11px;
    position: absolute;
    left: 36%;
  }
  .sidebar-section > a:last-of-type {
    font-size: 12px;
  }
  .sidebar-section h2 {
    font-size: 18px;
  }
}

@media screen and (max-width: 1365px) {
  .sidebar-section {
    width: 100%;
  }
}

@media screen and (min-width: 1440px) {
  .footer {
    padding: 30px 8rem 0 8rem;
  }

  .footer-container {
    gap: 40px;
  }

  .footer-container {
    max-width: 1300px;
    margin: 0 auto;
  }

  .footer-navigation .email-newsletter {
    width: 300px;
  }

  .list-footer {
    gap: 60px;
  }

  .list-footer li {
    font-size: 13px;
  }

  .newsletter-title {
    font-size: 15px;
  }

  .footer-bottom {
    flex-direction: row-reverse;
    align-items: center;
    position: relative;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-bottom {
    gap: 20%;
  }
}
