/* Homepage composition. Loaded after app.css on Niazpardaz/Index. */

.np-home {
  padding-bottom: 0.5rem;
}

.np-home-hero {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1rem 1rem 1.05rem;
  background: #fff;
  border: 1px solid #efe6d6;
  border-radius: 16px;
}

.np-home-hero__copy {
  display: contents;
}

.np-home-kicker {
  order: 1;
  margin: 0;
  color: #B45309;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;
}

.np-home-hero h1 {
  order: 2;
  margin: 0;
  color: #221e2a;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
}

.np-home-points {
  order: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-home-points li {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  background: #fbf7ee;
  border-radius: 10px;
}

.np-home-points strong {
  display: block;
  color: #221e2a;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
}

.np-home-points span {
  display: none;
}

.np-home-cta {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 10px;
  background: #C0560C;
  color: #fff;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.np-home-cta:hover,
.np-home-cta:focus {
  background: #9A4209;
  color: #fff;
  text-decoration: none;
}

.np-home-lead {
  order: 5;
  margin: 0;
  color: #5f5952;
  font-size: 0.84rem;
  line-height: 1.9;
}

.np-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.35rem 0 0.75rem;
}

.np-home-head h2 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: #221e2a;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

.np-home-head h2::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 0.95em;
  margin-left: 0.5rem;
  border-radius: 3px;
  background: #B45309;
}

.np-home-head a {
  flex: 0 0 auto;
  color: #8C3E06;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.np-home-head a:hover,
.np-home-head a:focus {
  color: #B45309;
  text-decoration: underline;
}

.np-home-groups-mobile {
  margin-bottom: 0.25rem;
}

.np-home .category-mobile .icon {
  border: 1px solid #efe6d6;
  box-shadow: none;
}

.np-home .category-mobile .name {
  color: #3f3a33;
  font-size: 0.74rem;
}

.np-home .category-mobile:hover .name,
.np-home .category-mobile:focus .name {
  color: #8C3E06;
}

.np-home-groups > .col-md-3,
.np-home-groups > .col {
  display: flex;
}

.np-home-groups .category-card,
.np-home-groups .category-small {
  flex: 1 1 auto;
  width: 100%;
  margin-bottom: 0.85rem;
  border: 1px solid #efe6d6;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.np-home-groups .category-card:hover,
.np-home-groups .category-small:hover {
  border-color: #e4c49a;
  box-shadow: 0 10px 22px rgba(39, 38, 52, 0.06);
}

.np-home .category-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.95rem 0.75rem;
}

.np-home .category-card .category-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom-color: #f3eee6;
}

.np-home .category-card .category-link .icon {
  width: 2.45rem;
  height: 2.45rem;
  margin-left: 0.55rem;
  border-radius: 10px;
  background: #fbf7ee;
}

.np-home .category-card .category-link .name {
  color: #221e2a;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 0.95rem;
}

.np-home .category-card .category-link:hover .name,
.np-home .category-card .category-link:focus .name {
  color: #8C3E06;
}

.np-home .category-card .count {
  color: #7a746a;
  font-size: 0.75rem;
}

.np-home .category-card .category-body {
  min-height: 0;
}

.np-home .category-card .top-link {
  margin: 0 0 0.4rem 0.35rem;
  padding: 0 0.6rem;
  border: 1px solid #efe6d6;
  background: #fff;
  box-shadow: none;
  color: #4a453c;
  line-height: 1.7rem;
}

.np-home .category-card .top-link:hover,
.np-home .category-card .top-link:focus {
  border-color: #e0b27a;
  background: #fffaf3;
  color: #8C3E06;
  text-decoration: none;
}

.np-home .category-small {
  min-height: 108px;
  padding: 0.8rem 0.5rem;
}

.np-home .category-small .gi-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: #fbf7ee;
}

.np-home .category-small .title-item {
  color: #2f2e3a;
  font-size: 0.84rem;
}

.np-home .category-small:hover .title-item,
.np-home .category-small:focus .title-item {
  color: #8C3E06;
}

.np-home-panel {
  margin-top: 0.25rem;
  padding: 0.95rem 1rem 0.85rem;
  background: #fff;
  border: 1px solid #efe6d6;
  border-radius: 16px;
}

.np-home-panel .np-home-head {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.np-home-panel .np-home-head h2::before {
  display: none;
}

.np-home-panel .np-home-head h2 img {
  width: 26px;
  height: 26px;
  margin-left: 0.4rem;
  object-fit: contain;
}

.np-home-provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.np-home-provinces .lst-item {
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid #efe6d6;
  background: #fff;
  box-shadow: none;
  color: #3f3a33;
  font-size: 0.8rem;
  line-height: 1.9rem;
}

.np-home-provinces .lst-item:hover,
.np-home-provinces .lst-item:focus {
  border-color: #e0b27a;
  background: #fffaf3;
  color: #8C3E06;
  text-decoration: none;
}

.np-home-ads > [class*="col-"],
.np-home-latest > [class*="col-"] {
  display: flex;
}

.np-home .advert-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid #efe6d6;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.np-home .advert-item:hover {
  border-color: #e4c49a;
  box-shadow: 0 10px 24px rgba(39, 38, 52, 0.07);
}

.np-home .advert-item .content-ad {
  flex: 1 1 auto;
  padding: 0.55rem 0.65rem 0.4rem;
}

.np-home .advert-item .content-ad .col-left {
  border-color: #f0ebe3;
  border-radius: 8px;
}

.np-home .advert-item .content-ad .caption-ad > a {
  color: #221e2a;
  font-size: 0.84rem;
  line-height: 1.7;
}

.np-home .advert-item .content-ad .caption-ad > a:hover,
.np-home .advert-item .content-ad .caption-ad > a:focus {
  color: #8C3E06;
}

.np-home .advert-item .spec {
  border-top-color: #f3eee6;
  background: #fbfaf7;
}

.np-home .advert-item .spec .user {
  color: #5c564c;
  font-size: 0.78rem;
}

.np-home .advert-item .adlink {
  padding: 0.15rem 0.7rem 0.5rem;
  overflow: hidden;
  background: #fff;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-home .advert-item .adlink a {
  color: #075aaa;
  text-decoration: none;
}

.np-home .advert-item .adlink a:hover,
.np-home .advert-item .adlink a:focus {
  text-decoration: underline;
}

.np-home .advert-item .favorite,
.np-home .advert-item:hover .favorite {
  top: 0.7rem;
  right: auto;
  bottom: auto;
  left: 0.7rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid #efe6d6;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(39, 38, 52, 0.08);
  transform: none;
}

.np-home-pager {
  margin: 0.25rem 0 0.15rem;
}

.np-home-pager .pagination {
  margin-bottom: 0;
}

.np-home-pager .page-link {
  min-width: 2.15rem;
  margin: 0.12rem;
  border: 1px solid #efe6d6;
  border-radius: 8px;
  color: #3f3a33;
  text-align: center;
}

.np-home-pager .page-link:hover,
.np-home-pager .page-link:focus {
  border-color: #e4c49a;
  background: #fffaf3;
  color: #8C3E06;
}

.np-home-pager .page-item.active .page-link {
  border-color: #B45309;
  background: #B45309;
  color: #fff;
}

.np-home-pager .page-item.active .page-link:hover,
.np-home-pager .page-item.active .page-link:focus {
  border-color: #8C3E06;
  background: #8C3E06;
  color: #fff;
}

.np-home-faq {
  margin: 0.25rem 0 2rem;
}

.np-home-faq .np-home-head {
  margin-top: 0.4rem;
}

.np-home-faq .accordion {
  overflow: hidden;
  border: 1px solid #efe6d6;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.np-home-faq .accordion .card .card-header {
  border-bottom-color: #f3eee6;
  background: #fff;
}

.np-home-faq .accordion .card .card-header .caption {
  padding: 0.95rem 1rem;
}

.np-home-faq .accordion .card .card-header .caption a {
  color: #221e2a;
  font-size: 0.92rem;
}

.np-home-faq .accordion .card .card-header .caption a:hover,
.np-home-faq .accordion .card .card-header .caption a:focus,
.np-home-faq .accordion .card .card-header .caption a[aria-expanded="true"] {
  color: #B45309;
}

.np-home-faq .accordion .card .card-header .caption a:after {
  color: #8a8172;
}

.np-home-faq .accordion .card .card-header .caption a:hover:after,
.np-home-faq .accordion .card .card-header .caption a[aria-expanded="true"]:after {
  color: #B45309;
}

.np-home-faq .accordion .card .card-body {
  background: #fbfaf7;
}

.np-home-faq .accordion .card .card-body > p {
  color: #4e4942;
  line-height: 1.95;
}

@media (min-width: 576px) {
  .np-home-points span {
    display: block;
    margin-top: 0.12rem;
    color: #6d675e;
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

@media (min-width: 992px) {
  .np-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 1.15rem 1.4rem;
    padding: 1.15rem 1.25rem;
  }

  .np-home-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .np-home-kicker,
  .np-home-hero h1,
  .np-home-points,
  .np-home-cta,
  .np-home-lead {
    order: 0;
  }

  .np-home-hero h1 {
    font-size: 1.15rem;
    line-height: 1.7;
  }

  .np-home-points {
    grid-template-columns: minmax(0, 1fr);
    align-self: stretch;
    align-content: center;
  }

  .np-home-points li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
  }

  .np-home-cta {
    width: auto;
    min-width: 168px;
    margin-top: 0.2rem;
    padding: 0 1.15rem;
  }

  .np-home-groups > .col {
    flex: 1 1 0;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .np-home-head h2 {
    font-size: 0.95rem;
  }
}

.np-home a:focus-visible,
.np-home-faq a:focus-visible {
  outline: 2px solid #B45309;
  outline-offset: 2px;
}
