@import url('./Vazirmatn-font-face.css');

:root {
    --font-family: 'Vazirmatn', sans-serif !important;
}

html,body {
    font-family: var(--font-family);
    font-feature-settings: "ss02" !important;
}

html.dark .b-brand h3, [data-pc-sidebar-theme=dark] .b-brand h3 {
  color: white;
}

header#home {
    padding-top: 72px;
}

[data-pc-direction="rtl"] .pc-sidebar .pc-arrow {
    margin-top: 2px;
    margin-left: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.profile-banner {
    object-fit: cover !important;
    width: 100% !important;
}

/* کلاس سفارشی شبیه به container با عرض‌های دلخواه */
.page-container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

/* بریک‌پوینت‌های سفارشی */
@media (min-width: 576px) {
  .page-container {
    max-width: 540px; /* اندازه دلخواه شما برای sm */
  }
}

@media (min-width: 768px) {
  .page-container {
    max-width: 700px; /* اندازه دلخواه شما برای md */
  }
}

@media (min-width: 992px) {
  .page-container {
    max-width: 900px; /* اندازه دلخواه شما برای lg */
  }
}

@media (min-width: 1200px) {
  .page-container {
    max-width: 900px; /* اندازه دلخواه شما برای xl */
  }
}

@media (min-width: 1400px) {
  .page-container {
    max-width: 1000px; /* اندازه دلخواه شما برای xxl */
  }
}

/* تنظیمات کارت‌ها */
[data-pc-theme="dark"] .card .profile-info-border {
  border: var(--bs-border-width) var(--bs-border-style) #343a3e;
  border-top: none !important;
  border-bottom: none !important;
}

[data-pc-theme="light"] .card .profile-info-border {
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  border-top: none !important;
  border-bottom: none !important;
}


/* Badge */
[data-pc-preset="preset-9"] .bg-light-primary {
  background-color: #e6f2f2 !important;
  color: #008080;
}

[data-pc-preset="preset-8"][data-pc-theme="dark"] .bg-light-primary {
  background: #1fecb22e;
  color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

[data-pc-preset="preset-9"][data-pc-theme="dark"] .bg-light-primary {
  background: #1fecb22e !important;
  color: #d1ffff;
}

/* Image Thumbnail for profiles */
[data-pc-theme="dark"] .img-thumbnail {
  background-color: #F4F7FA26;
  border: 1px solid #DBE0E500;
}

/* Utils */
.opacity-30 {
  opacity: 0.3 !important;
}

.nav-remove-first-child-margin li:first-child a {
  margin-right: 0 !important;
}

.choices__inner {
  padding: 0.75rem !important;
  padding-top: 9px !important;
  padding-bottom: 7px !important;
}

.choices__item {
  margin-bottom: 0 !important;
}

/* custom-form-control-for-m2m */
.custom-form-control-for-m2m .ts-control {
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}
.custom-form-control-for-m2m .ts-control:not(.rtl) {
  padding-right: 25px !important;
  display: block;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #5B6B79;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #DBE0E5;
  border-radius: 8px;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-form-control-for-m2m .ts-control:not(.rtl) input {
  /* width: 100%; */
}

[data-pc-theme=dark] .custom-form-control-for-m2m .ts-control {
  display: block;
  width: 100%;
  padding: 0.8rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #5B6B79;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #DBE0E5;
    border-top-color: rgb(219, 224, 229);
    border-right-color: rgb(219, 224, 229);
    border-bottom-color: rgb(219, 224, 229);
    border-left-color: rgb(219, 224, 229);
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-form-control-for-m2m .ts-control [data-value] {
  background-image: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
    padding-right: 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-right: 3.75px !important;
  /* margin-bottom: 3.75px !important; */
  background-color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  color: #ffffff !important;
  word-break: break-all !important;
  box-sizing: border-box !important;
}

.ts-wrapper.plugin-remove_button.rtl .item .remove {
  border-right: 1px solid rgba(255, 255, 255, .3) !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-right: 8px !important;
}

.ts-wrapper.multi .ts-control [data-value] {
  margin-bottom: 0 !important;
}

.ts-wrapper.multi .ts-control {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.ts-wrapper.multi.has-items .ts-control {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}


/* jdatetime */
[data-pc-preset="preset-9"] jdp-container .jdp-btn-close,
[data-pc-preset="preset-9"] jdp-container .jdp-btn-empty,
[data-pc-preset="preset-9"] jdp-container .jdp-btn-today,
[data-pc-preset="preset-9"] jdp-container .jdp-day-name.selected,
[data-pc-preset="preset-9"] jdp-container .jdp-day.selected {
  background: #008080 !important;
}

[data-pc-theme="dark"] jdp-container,

[data-pc-theme="dark"] jdp-container .jdp-month select,
[data-pc-theme="dark"] jdp-container .jdp-time select,
[data-pc-theme="dark"] jdp-container .jdp-year select {
  background: #263240 !important;
}
[data-pc-theme="dark"] jdp-container * {
  color: white;
}

[data-pc-theme="dark"] jdp-container .jdp-months,
[data-pc-theme="dark"] jdp-container .jdp-years {
  fill: white;
}

jdp-container * {
  border: none !important;
}

jdp-container {
  border-radius: 8px !important;
  padding: 20px 10px !important;
}

jdp-container .jdp-day-name:first-child {
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}

jdp-container .last-week {
  border-top-left-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
}

jdp-container .jdp-btn-empty {
  display: none !important;
}

jdp-container .jdp-btn-today {
  width: 100% !important;
}

jdp-container .jdp-btn-close {
  margin-right: 10px !important;
}

/* breadcrumb-item */
.breadcrumb-item::before {
  margin-top: -1px;
}


/* Posts */
.post-content {
  color: black;
}

[data-pc-theme="dark"] .post-content {
  color: #dfdfdf;
}


.post-content *:last-child {
  margin-bottom: 0;
}

.post-content img,
.post-content video,
.post-content audio {
  max-width: 100% !important;
}

.categories {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-direction: column;
}

.categories .category-item {
  text-align: center;
  color: white;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.categories .category-item .overlay {
  display: block;
  padding: 20px 0;
  width: 100%;
  height: 100%;
  color: white;
  background-color: rgba(0, 0, 0, 0.25);
  transition: all 200ms ease-in-out;
}

.categories .category-item .overlay h5 {
  color: white;
  margin-bottom: 0;
  text-shadow: 1px 1px 3px black;
}

.categories .category-item:hover .overlay {
  background-color: transparent;
}

.categories-2 {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.categories-2 li:last-child {
  margin-bottom: 0 !important;
}

.categories-2 img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}


/* User Page */
@media (max-width: 768px) {
  .social-profile .img-profile-avtar {
    margin-top: -20px;
  }
  .social-profile {
    text-align: right;
  }
}

.img-profile-avtar {
  box-shadow: 0 0 0 8px var(--bs-card-bg) !important;
}

/* tags-spacer */
.tags-spacer:last-child,
.categories-spacer:last-child {
  display: none !important;
}


/* Block Quote */
blockquote {
  padding: 10px;
  padding-right: 20px;
  border-right: 3px solid var(--bs-primary);
  background: #e6f2f2;
  border-radius: 8px !important;
}


.comment p:last-child {
  margin-bottom: 0;
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* User Pages */
.page-title {
  color: black;
}

[data-pc-theme="dark"] .page-title {
  color: #dfdfdf;
}

/* Page Dark Mode */
[data-pc-theme="dark"] .btn-light-primary:not(:hover),
[data-pc-theme="dark"] blockquote {
  background: #1fecb22e !important;
  color: #d1ffff;
}

.inner-p-margin-bottom-0 p {
  margin-bottom: 0;
}
