/* ساختار کلی */
body {
  margin: 0;
  font-family: Paydar; /* اطمینان حاصل کنید که این فونت در دسترس است */
  background-color: #f4f4f4;
  direction: rtl; /* برای پشتیبانی کامل RTL در کل صفحه */
}

/* ساختار اصلی کارت‌ها */
.cards-wrapper {

 
}

.cardso {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px;
  justify-content: center;
  padding: 20px; 
}


@media (max-width: 768px) {
  .cardso {
    flex-wrap: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
    justify-content: flex-start; 
    padding-bottom: 20px;
    padding-left: 10px; 
    padding-right: 10px; 
  }

  .cardo {
    flex-shrink: 0; 
    margin-left: 10px; 
    margin-right: 10px; 
  }
}

.cardo {
  background: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center !important; 
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  flex-shrink: 0; 

  /* === متغیر رنگ چرخش اینجا تعریف می‌شود === */
  --paydar-rotate-color: #ffffff; /* رنگ پیش‌فرض */
}


/* حاشیه چرخان */
.cardo::before {
  content: '';
  position: absolute;
  top: 50%; 
  left: 50%;
  width: 100px;
  
  /* === متغیر اینجا استفاده می‌شود === */
  /* (رنگ پیش‌فرض از .cardo خوانده می‌شود) */
  background-image: linear-gradient(180deg, var(--paydar-rotate-color), var(--paydar-rotate-color));

  height: 140%;
  animation: rotBGimg 7s linear infinite;
  transition: all 0.3s linear;
  z-index: 0;
}

@keyframes rotBGimg {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cardo::after {
  content: '';
  position: absolute;
  background: #3d77b8;
  inset: 5px;
  border-radius: 15px;
  z-index: 0;
}

/* محتوای وسط کارت */
.card-contento {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center !important; 
  justify-content: flex-start;
  gap: 15px;
  text-align: center !important; 
}

/* آیکون بالا */
.top-icono {
  color: inherit;
  margin-bottom: 10px;
}

/* عنوان */
.tipo {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin: 0;
  color: inherit;
}

/* متن توضیح */
.second-texto {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 10px;
  color: inherit;
}

/* دکمه مشاهده */
.card-linko {
  display: inline-block;
  background: #ffffff;
  color: #083063;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  z-index: 1;
}

.card-linko:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.bottom-icono {
font-size: 15px;
  margin-right: 8px;
}