@font-face {
    font-family: "Vazir";
    src: url(/fonts/Vazir-Regular.ttf);
  }

body {
    font-family: "Vazir";
    background-color: whitesmoke;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    body {
    margin: 0;
    font-family: sans-serif
}

.pwh1 {
    direction: rtl;
    margin: 0;
    text-align: center;
}

header {
    background-color: #f26114;
}

.hecac {
    direction: ltr;
    display: flex;
    align-items: center; 
    justify-content: center; 
    color: #000000;
}

.alhh {
    direction: rtl;
    text-align: center;
    margin-top: 10px;
}

.eodadwa {
    text-decoration: none;
    color: white;
}

.eodadwa:hover {
    color: #000000;
}

.oaud {
    text-decoration: none;
}

.eashe {
    text-decoration: none solid black;
    color: #000000;
}

.iconh1h {
    margin-right: 10px; 
    width: 100px;
    height: 100px;
    border-radius: 10px; 
}

h1 {
    margin: 0;
    text-align: center;
}


footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 0;
}

.cpsf {
    color: #000000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    direction: rtl;
    text-align: right;
}

.pte1 {
    direction: ltr;
}

.dpaf {
    direction: ltr;
    text-align: center;
}

.qopa {
    color: white;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #333;
    color: #fff;
    padding: 0;
  }
  
  .footer-section {
    flex: 1 1 30%; /* تنظیم اندازه بخش‌ها */
    margin: 0;
  }
  
  .footer-section h3 {
    border-bottom: 2px solid white; /* خط زیر عنوان‌ها */
    padding-bottom: 5px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin: 5px 0;
  }
  
  .footer-section ul li a {
    color: white; /* رنگ لینک‌ها */
    text-decoration: none;
  }
  
  .footer-section ul li a:hover {
    text-decoration: underline;
  }
  
  .dfsgg {
    direction: rtl;
    color: white;
    text-decoration: none;
  }

  .social-media a img {
    width: 32px;
    height: 32px;
    margin: 0 5px;
  }
  
  .footer-bottom {
    text-align: center;
    background-color: #222;
    padding: 10px;
  }
  
  .footer-bottom p {
    margin: 0;
    font-size: 14px;
  }

footer p {
    margin: 0;
    font-size: 14px;
}

.social-icons {
    margin-top: 10px;
    gap: 15px;
    direction: rtl;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    direction: rtl;
    text-align: right;
}

/* تبلیغ */
.content {
    font-family: "Vazir";
    line-height: 1.6;
    color: #333;
    margin: 20px;
  }
  
  .inline-ad {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 20px auto; /* مرکزیت افقی */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%; /* عرض کمتر از صفحه */
    max-width: 800px; /* حداکثر عرض */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* برای برچسب تبلیغ */
  }
  
  .inline-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .inline-ad img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-right: 20px; /* فاصله بین تصویر و متن */
  }
  
  .ad-details {
    flex: 1; /* استفاده از فضای باقی‌مانده */
    display: flex;
    flex-direction: column;
    gap: 10px; /* فاصله بین عنوان و توضیحات */
  }
  
  .ad-details h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    color: #f26114;
  }
  
  .ad-details p {
    margin: 0;
    color: #555;
  }
  
  .inline-ad a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
  }
  
  .ad-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #f26114;
    color: white;
    font-size: 12px;
    font-family: "Vazir", Arial, sans-serif;
    padding: 3px 8px; /* اندازه مناسب برچسب تبلیغ */
    border-radius: 4px;
  }
  
  

.iconf2f {
    margin-right: 5px;
    margin-right: 5px; 
    border-radius: 5px; 
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* وسط‌چین کردن محصولات در هر خط */
    direction: rtl;
}

.row {
    display: flex;
    justify-content: flex-end; /* تراز محصولات به سمت راست در صورتی که کمتر از 3 باشد */
    gap: 20px;
    width: 100%;
}
.course {
    flex: 1 1 calc(33.333% - 20px); /* هر کارت یک سوم فضای خط را اشغال می‌کند */
    max-width: 300px; /* حداکثر عرض هر کارت */
    border: 1px solid #ddd;
    margin: 0;
    padding: 10px;
    text-align: right;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
    direction: rtl;
}

@media (max-width: 768px) {
    .course {
        flex: 1 1 100%; /* هر کارت در موبایل کل عرض خط را می‌گیرد */
    }
}

.course img {
    width: 100%;
    border-radius: 5px;
}

.btn {
    background-color: #f26114;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 10px 0;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    font-family: "Vazir";
}

.btn:hover {
    background-color: red;
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.product {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.product-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.product-details h1 {
    font-size: 24px;
    color: #f26114;
    text-align: right;
}

.price {
    font-size: 20px;
    color: #28a745;
    font-weight: bold;
}

.description {
    margin: 10px 0;
}

.colorp1em {
    color: brown;
}

.buy-btn {
    padding: 10px 20px;
    background-color: #f26114;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-family: "Vazir";
}

.buy-btn:hover {
    background-color: red;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-item {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: calc(33.333% - 20px); /* پیش‌فرض: سه کارت در یک خط */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .related-item {
        width: calc(100%) !important; /* کارت‌ها روی موبایل یک خط کامل را اشغال می‌کنند */
    }
}

.related-item img {
    width: 100%;
    max-width: 150px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.related-item p {
    margin: 5px 0;
}

.details-buy-btn {
    background-color: #f26114;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    font-family: "Vazir";
}

.details-buy-btn:hover {
    background-color: red;
    font-family: "Vazir";
}

.additional-details {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.additional-details h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.additional-details ul {
    list-style-type: none;
    padding: 0;
}

.additional-details li {
    margin-bottom: 10px;
    font-size: 16px;
}

.additional-details li strong {
    color: #f26114;
}

.imgh1hr {
    width: 80%;
    max-width: 1000px; /* حداکثر عرض برای صفحه‌های بزرگ‌تر */
    aspect-ratio: 16 / 9; /* نسبت ابعاد ۱۶ به ۹ */
    margin: 0 auto; /* مرکز قرار دادن div */
    border-radius: 20px; /* گوشه‌های گرد */
    overflow: hidden; /* پنهان کردن بخش‌های اضافی عکس */
    background-color: #f3f3f3; /* رنگ زمینه برای زمان بارگذاری عکس */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* سایه برای زیبایی */
}

.imgh1hr img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* برش دادن عکس برای تناسب کامل */
    border-radius: 20px; /* گوشه‌های گرد بر تصویر اعمال می‌شود */
}

/* کانتینر اسلایدر اعلان‌ها */
.hero-slider {
    position: relative;
    background: linear-gradient(to right, #f26114, #ff8c42);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide {
    min-width: 100%;
    padding: 20px;
    font-size: 20px;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    direction: auto;
}

.slide.active {
    opacity: 1;
    text-align: center;
}

.copy-btn {
    background-color: #f26114; /* رنگ پس‌زمینه */
    color: #ffffff; /* رنگ متن */
    border: 2px solid #f26114; /* حاشیه */
    border-radius: 5px; /* انحنا */
    padding: 10px 20px; /* فاصله داخلی */
    font-size: 16px; /* اندازه فونت */
    cursor: pointer; /* حالت اشاره‌گر */
    transition: all 0.3s ease-in-out; /* انیمیشن‌ها */
    margin-top: 20px; /* فاصله از بالا */
    z-index: 100;
    font-family: "Vazir";
    
}

.copy-btn:hover {
    background-color: hsl(0, 0%, 100%); /* رنگ پس‌زمینه هنگام هاور */
    color: #f26114; /* رنگ متن هنگام هاور */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* سایه هنگام هاور */
}

.addh1hb {
    background-color: red;
}

.addh1hb p {
    text-align: center;
    color: white;
    font-size: large;
}

