* {
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  box-sizing: border-box;
}
@font-face {
  font-family: peyda;
  src: url("font/Peyda-Medium.ttf") format("truetype");
  font-weight: 400;
}
body {
  font-family: "peyda";
}

/*slider*/

.slider {
  margin: 65px auto 80px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1440px;
}

.continer-slider {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 45px;
  border: 1px solid rgb(207, 207, 207);
  width: 75%;
  height: 470px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 5px;
  display: inline-block;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/*leetr-of-cerdit*/

.loc-continer {
  direction: ltr;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 60px auto;
  padding: 20px 30px;
  max-width: 1440px;
}
.introduction {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 20px 40px;
  direction: rtl;
}
.header-box {
  display: flex;
  flex-direction: column;
  margin: 20px;
  margin-right: 30px;
}
.header-box h6 {
  font-size: 15px;
  color: rgb(175, 174, 174);
  padding-bottom: 5px;
}
.header-box .cont-h {
  display: flex;
  flex-direction: row;
}
.cont-h h4 {
  font-size: 27px;
}
.cont-h .h4-1 {
  padding: 0 0 0 5px;
}
.cont-h .h4-2 {
  color: #a3238e;
  padding: 0 10px;
  margin: auto 0;
}
.text-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px 20px;
}
.text-box p {
  direction: rtl;
  font-size: 17px;
  color: #383437;
}
.features {
  margin: 20px 0;
}
.continer-features {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}
.feature {
  padding-right: 25px;
  display: flex;
  flex-direction: row;
}
.feature img {
  width: 50px;
  height: 50px;
}
.feature p {
  padding: 0 10px;
  margin: auto 0;
  font-size: 14px;
  font-weight: 600;
  color: #383437;
}
.box-img {
  width: 50%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
}
.box-img img {
  width: 90%;
  border-radius: 15px;
}

@media (max-width: 900px) {
  .loc-continer {
    flex-direction: column-reverse;
    margin: 80px auto 0 auto;
    padding: 10px;
  }

  .introduction {
    padding: 20px;
  }

  .introduction,
  .box-img {
    width: 100% !important;
  }

  .continer-features {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }

  .box-img {
    margin-bottom: 20px;
  }

  .box-img img {
    width: 70%;
  }

  .header-box {
    margin-right: 0;
    align-items: center;
  }

  .cont-h {
    flex-direction: column !important;
    align-items: center;
    gap: 5px;
  }

  .feature {
    padding-right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 425px) {
  .feature p {
    font-size: 12px !important;
  }
  .feature img {
    width: 45px;
    height: 45px;
  }
  .text-box p {
    font-size: 16px;
    text-align: center;
  }
}

/*projects*/

.projects {
  padding: 0 60px;
  direction: rtl;
  margin: 100px 0;
}

.projects-header {
  text-align: center;
  margin-bottom: 40px;
}

.projects-header h2 {
  font-size: 2rem;
  color: #a3238e;
  margin-bottom: 10px;
}

.projects-header p {
  color: #666;
  font-size: 1rem;
}

.projects-grid {
  display: grid;
  margin: 0 auto;
  max-width: 1440px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}

.overlay-content {
  text-align: center;
  color: white;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  width: 90%;
  transform: translateY(100%);
  opacity: 0.8;
}

.overlay-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-link {
  display: block;
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
  color: #ffddff;
  font-weight: 500;
}

.project-card:hover .overlay {
  background: rgba(71, 2, 60, 0.5);
}

.project-card:hover .overlay-content {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .overlay-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.project-card:hover .more-link {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

/* کارت مشاهده همه پروژه‌ها */
.view-all-card {
  background: linear-gradient(135deg, #a3238e, #7a0472);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px rgba(163, 35, 142, 0.3);
}

.view-all-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #b82ea2, #8e0584);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 35px -8px rgba(163, 35, 142, 0.4);
}

.view-all-content {
  text-align: center;
  color: white;
  padding: 30px 20px;
  width: 100%;
}

.view-all-icon {
  margin-bottom: 20px;
}

.view-all-icon svg {
  width: 50px;
  height: 50px;
  color: white;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 50%;
}

.view-all-card:hover .view-all-icon svg {
  transform: scale(1.1) rotate(90deg);
  background: rgba(255, 255, 255, 0.3);
}

.view-all-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 15px 0 10px;
  color: white;
}

.view-all-card .more-link {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.view-all-card:hover .more-link {
  background: white;
  color: #a3238e;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .view-all-content h3 {
    font-size: 1.1rem;
  }

  .view-all-icon svg {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .view-all-card .more-link {
    font-size: 0.8rem;
    padding: 6px 15px;
  }
}

@media (max-width: 600px) {
  .view-all-content {
    padding: 25px 15px;
  }

  .view-all-content h3 {
    font-size: 1rem;
  }

  .view-all-icon svg {
    width: 35px;
    height: 35px;
    padding: 6px;
  }

  .view-all-card .more-link {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

@media (max-width: 992px) {
  .projects {
    padding: 0 30px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .overlay-content h3 {
    font-size: 0.95rem;
  }

  .project-card:hover .overlay-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .projects {
    margin-top: 60px;
    padding: 0 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
    padding: 0;
  }

  .projects-header h2 {
    font-size: 1.5rem;
  }

  .overlay-content {
    transform: translateY(80%);
  }

  .overlay-content h3 {
    font-size: 0.9rem;
  }

  .project-card:hover .overlay-content h3 {
    font-size: 1.2rem;
  }
}

/*products*/

:root {
  --primary-color: #a3238e;
  --dark-bg: #424242;
  --card-bg: #ffffff;
  --text-gray: #666;
  --discount-color: #f32222;
}

.continer-products {
  max-width: 1440px;
  margin: 0 auto;
}

.products {
  direction: rtl;
  background: #2e2d2d;
  border-radius: 40px;
  margin: 40px 60px;
  margin-bottom: 100px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
  overflow: hidden;
  position: relative;
  max-width: 1440px;
}

.section-info {
  flex: 0 0 200px;
  text-align: right;
}

.section-info h2 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #ccc;
}

.section-info h1 {
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 25px;
}

.view-all-btn {
  background-color: #333;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  border: 1px solid transparent;
  display: inline-block;
}

.view-all-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.continer-product {
  display: flex;
  overflow: hidden;
  gap: 10px;
  flex-grow: 1;
  padding: 10px 0;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  min-width: 220px;
  flex: 0 0 220px;
  padding: 15px;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
  position: relative;
}

.product-card a {
  text-decoration: none;
  color: #444;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 150px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  border-radius: 15px;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* استایل روبان تخفیف */
.discount-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 55px solid var(--discount-color);
  border-left: 55px solid transparent;
  z-index: 10;
}

.discount-ribbon span {
  position: absolute;
  top: -42px;
  right: 5px;
  color: white;
  font-size: 11px;
  font-weight: bold;
  transform: rotate(45deg);
  white-space: nowrap;
}

.card-title {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.6;
  margin: 10px 0 5px;
  text-align: center;
  color: #333;
}

.card-botton-title {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 10px;
  text-align: center;
}

.card-footer {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: auto;
}

.status-text {
  text-align: center;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
}

.price-wrapper {
  text-align: center;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}

.new-price {
  color: var(--discount-color);
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .products {
    flex-direction: column;
    align-items: center;
    margin: 0px 15px;
    margin-bottom: 100px;
    padding: 25px 15px;
    gap: 25px;
  }

  .section-info {
    flex: 0 0 auto;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .section-info h1,
  .section-info h2 {
    text-align: center;
  }

  .view-all-btn {
    display: inline-block;
  }

  .continer-product {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .product-card {
    flex: 0 0 calc(50% - 20px);
    min-width: 160px;
  }

  @media (max-width: 550px) {
    .product-card {
      flex: 0 0 70%;
    }
  }

  .discount-ribbon {
    border-top-width: 45px;
    border-left-width: 45px;
  }

  .discount-ribbon span {
    top: -35px;
    right: 3px;
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .slider {
    margin: 60px 0 40px;
  }
  .continer-slider {
    width: 100%;
    height: 250px;
  }
  .dot {
    width: 7px;
    height: 7px;
  }
}
/* ========== بخش آمار اعتماد ========== */
.trust-stats {
  direction: rtl;
  padding: 20px 20px;
  margin: 100px 0 150px;
}

.trust-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.trust-title {
  font-size: 24px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.trust-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: #af06a4;
  border-radius: 3px;
}

.stats-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stats-wrapper:hover {
  box-shadow: 0 10px 30px rgba(175, 6, 164, 0.1);
  border-color: #af06a4;
}

.stat-block {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 15px 10px;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #af06a4;
  margin-bottom: 10px;
  line-height: 1.2;
}

.counter-num {
  display: inline-block;
}

.stat-label {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

.stat-divider {
  width: 2px;
  height: 60px;
  background: #e0e0e0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .trust-stats {
    padding: 35px 15px;
  }

  .trust-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .stats-wrapper {
    flex-direction: column;
    padding: 30px 20px;
    gap: 25px;
  }

  .stat-divider {
    width: 60px;
    height: 2px;
  }

  .stat-block {
    min-width: auto;
    width: 100%;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .trust-title {
    font-size: 18px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 13px;
  }
}

/* ===== بخش بلاگ ===== */
.blog-section {
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 60px 20px;
  direction: rtl;
  background: linear-gradient(180deg, #faf7fb 0%, #f5f0f5 100%);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h2 {
  font-size: 28px;
  color: #a3238e;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 16px;
  color: #64748b;
}

.blog-slider {
  position: relative;
  overflow: hidden;
}

.blog-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: all 0.3s ease;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #f0e8ef;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(163, 35, 142, 0.1);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #a3238e;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.2;
  min-width: 45px;
}

.blog-date .day {
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.blog-date .month {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
}

.blog-content {
  padding: 18px;
}

.blog-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.blog-content p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.blog-meta i {
  margin-left: 4px;
}

.btn-read {
  display: inline-block;
  color: #a3238e;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-read:hover {
  color: #7a0472;
  transform: translateX(-5px);
}

/* ===== کنترل‌های صفحه‌بندی ===== */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.blog-nav {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #1e293b;
  cursor: pointer;
  font-family: peyda;
  font-size: 13px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-nav:hover:not(:disabled) {
  border-color: #a3238e;
  color: #a3238e;
}

.blog-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.blog-pagination {
  display: flex;
  gap: 8px;
}

.page-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: 0.3s;
}

.page-dot.active {
  background: #a3238e;
  width: 24px;
  border-radius: 5px;
}

.page-dot:hover:not(.active) {
  background: #c4b5c3;
}

.empty-blog {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  grid-column: 1 / -1;
}

.empty-blog i {
  font-size: 48px;
  color: #e2e8f0;
  margin-bottom: 15px;
  display: block;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
  .blog-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .blog-wrapper {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .blog-header h2 {
    font-size: 22px;
  }

  .blog-controls {
    flex-wrap: wrap;
    gap: 12px;
  }

  .blog-section {
    padding: 40px 16px;
  }
}
