/* =============== Mahak Intro =============== */
.mahak-intro {
  direction: rtl;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
  text-align: justify;
}

.mahak-intro-title {
  background: #FFD700;
  color: #000;
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.mahak-intro-text {
  color: #333;
  font-size: 15.5px;
  line-height: 1.9;
}

/* =======================================================
   Compare Table - Desktop Version
   Desktop-only rules: hide mobile cards in large screens
   ======================================================= */

@media (min-width: 769px) {
  .mahak-compare-mobile-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0;
  }
}

.mahak-compare-section {
  direction: rtl;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 15px;
}

.mahak-section-title {
  background: #FFD700;
  color: #000;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 15px;
}

.mahak-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.mahak-compare-table th {
  background: #FFD700;
  color: #000;
  font-weight: bold;
  padding: 10px;
}

.mahak-compare-table td {
  padding: 10px;
  border: 1px solid #eee;
  background: #fff;
}

.mahak-compare-table tr:nth-child(even) td {
  background: #fffdf5;
}

.mahak-feature-name {
  text-align: right;
  font-weight: 600;
  color: #333;
}

.mahak-price-row td {
  background: #fff9cc;
  font-weight: bold;
  color: #000;
}

.mahak-cart-row td {
  padding: 14px;
}

.mahak-add-to-cart-btn {
  background: #00a000;
  border: none;
  color: #fff;
  font-weight: 600;

  /* FIX اصلی */
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  box-sizing: border-box;

  padding: 8px 14px;
  line-height: 1.4;

  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;

  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
}


.mahak-add-to-cart-btn:hover {
  background: #008000;           /* سبز تیره‌تر در حالت hover */
}

.mahak-cart-status {
  font-size: 13px;
  margin-top: 8px;
}

.mahak-status-ok {
  color: #008a00;
  font-weight: 600;
}

.mahak-status-err {
  color: #c00;
  font-weight: 600;
}

/* دکمه نمایش سبد خرید (بدون تغییر، زرد باقی می‌ماند) */
.mahak-view-cart-btn {
  background: #FFD700;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
  transition: all 0.3s ease;
}

.mahak-view-cart-btn:hover {
  background: #e6c200;
  color: #000;
}

/* =======================================================
   Compare Table - Mobile Version (Cards) - Optimized Final
   ======================================================= */

@media (max-width: 768px) {

  /* فقط کارت‌ها در موبایل */
  .mahak-compare-section { display: none !important; }
  .mahak-compare-mobile-section {
    direction: rtl;
    margin: 20px auto;
    padding: 0 10px;
    text-align: center;
  }

  /* حذف تیتر اصلی */
  .mahak-compare-mobile-section .mahak-section-title { display: none; }

  /* ساختار کلی کارت‌ها */
  .mahak-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .mahak-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    width: 94%;
    max-width: 360px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
  }

  /* هدر کارت */
  .mahak-card-header {
    background: #FFD700;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 0;
    border-radius: 12px 12px 0 0;
  }

  /* لیست قابلیت‌ها */
  .mahak-card-features {
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .mahak-card-features li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #f2f2f2;
    font-size: 14px;
  }

  .mahak-feature-name {
    color: #333;
    font-weight: 500;
  }

  /* قیمت */
  .mahak-card-price {
    background: #fff9cc;
    border-top: 1px solid #f1f1f1;
    font-weight: 700;
    color: #000;
    padding: 10px 0;
    font-size: 15px;
  }

  /* دکمه افزودن به سبد خرید */
  .mahak-add-to-cart-btn {
    background: #00a000;          /* سبز اصلی */
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 220px;
    margin: 12px auto 6px auto;
    display: block;
    text-align: center;
  }

  .mahak-add-to-cart-btn:hover {
    background: #008000;
  }

  /* وضعیت زیر دکمه (در حال افزودن، خطا، نمایش سبد) */
  .mahak-cart-status {
    font-size: 13px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 28px;
  }

  .mahak-status-ok {
    color: #008a00;
    font-weight: 600;
  }

  .mahak-status-err {
    color: #c00;
    font-weight: 600;
  }

  /* دکمه نمایش سبد خرید */
  .mahak-view-cart-btn {
    background: #FFD700;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 6px;
    transition: all 0.3s ease;
  }

  .mahak-view-cart-btn:hover {
    background: #e6c200;
    color: #000;
  }
}

/* =============== Mahak Features =============== */
.mahak-features {
  direction: rtl;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
}

.mahak-features-title {
  background: #FFD700;
  color: #000;
  font-size: 17px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: inline-block;
}

.mahak-feature-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mahak-feature-name {
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.mahak-feature-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}


/* =======================================================
   CTA Section (دعوت به اقدام)
   ======================================================= */

.mahak-cta-section {
  direction: rtl;
  text-align: center;
  margin: 40px auto;
  max-width: 1200px;
  padding: 10px;
}

.mahak-cta-section .mahak-section-title {
  background: #FFD700;
  display: inline-block;
  color: #000;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  margin-bottom: 25px;
}

/* کارت‌ها - در دسکتاپ کنار هم */
.mahak-cta-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
}

.mahak-cta-card {
  flex: 1 1 22%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 20px 15px;
  transition: transform 0.3s ease;
}

.mahak-cta-card:hover {
  transform: translateY(-4px);
}

.mahak-cta-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.mahak-cta-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  flex-grow: 1;
}

/* قیمت */
.mahak-cta-price {
  font-weight: 700;
  margin-top: 10px;
  color: #000;
}

/* دکمه افزودن */
.mahak-cta-card .mahak-add-to-cart-btn {
  background: #00a000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mahak-cta-card .mahak-add-to-cart-btn:hover {
  background: #008000;
}

/* وضعیت سبد خرید */
.mahak-cart-status {
  font-size: 13px;
  margin-top: 8px;
  min-height: 24px;
}

.mahak-status-ok {
  color: #008a00;
  font-weight: 600;
}

.mahak-status-err {
  color: #c00;
  font-weight: 600;
}

/* نمایش سبد */
.mahak-view-cart-btn {
  background: #FFD700;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.mahak-view-cart-btn:hover {
  background: #e6c200;
  color: #000;
}

/* نسخه موبایل */
@media (max-width: 768px) {
  .mahak-cta-section .mahak-section-title { display: none; }

  .mahak-cta-cards {
    flex-direction: column;
    align-items: center;
  }

  .mahak-cta-card {
    width: 90%;
    max-width: 360px;
  }
}


/* =============== Mahak Support =============== */
.mahak-support {
  direction: rtl;
  text-align: center;
  margin: 50px auto;
  padding: 0 15px;
}

.mahak-support-title {
  background: #FFD700;
  color: #000;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.mahak-support-buttons a {
  background: #FFD700;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-block;
  margin: 10px;
  transition: all 0.3s;
}

.mahak-support-buttons a:hover {
  background: #e6c200;
}

/* =============== Mahak Links =============== */
.mahak-links {
  direction: rtl;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
}

.mahak-links-title {
  background: #FFD700;
  color: #000;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 700;
}

.mahak-links-list {
  list-style: none;
  padding: 0;
}

.mahak-links-list li {
  margin-bottom: 8px;
}

.mahak-links-list a {
  color: #0073aa;
  text-decoration: none;
}

.mahak-links-list a:hover {
  color: #005b8f;
  text-decoration: underline;
}

/* =======================================================
   Mahak Full Layout Wrapper
   ======================================================= */
.mahak-full-wrapper {
  direction: rtl;
  font-family: inherit;
  max-width: 900px;
  margin: 0 auto 80px auto;
  padding: 0 15px;
}

.mahak-full-wrapper section {
  margin-bottom: 50px;
}

/* =======================================================
   Mahak Article Full Layout
   ======================================================= */

.mahak-article-wrapper {
  direction: rtl;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px 60px;
  font-family: inherit;
  line-height: 1.9;
  text-align: justify;
}

.mahak-article-title {
  background: #FFD700;
  color: #000;
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 8px 14px;
  border-radius: 6px;
  margin: 25px 0 15px;
}

.mahak-article-extra {
  color: #555;
  margin-top: 10px;
  line-height: 1.8;
}

.mahak-article-edu p {
  color: #444;
  font-size: 15.5px;
}

.mahak-article-btnbox {
  text-align: center;
  margin-top: 20px;
}

.mahak-article-btn {
  background: #FFD700;
  color: #000;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}

.mahak-article-btn:hover {
  background: #e6c200;
  color: #000;
}

/* =======================================================
   Mahak Article Full (SEO Enhanced)
   ======================================================= */

.mahak-breadcrumbs {
  direction: rtl;
  font-size: 14px;
  margin: 20px 0;
  color: #555;
}
.mahak-breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
}
.mahak-breadcrumbs a:hover {
  color: #005b8f;
  text-decoration: underline;
}

.mahak-midcta-card {
  background: #fff8cc;
  border: 1px solid #ffe766;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mahak-midcta-card h4 {
  color: #000;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mahak-midcta-card p {
  color: #333;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 15px;
}

.mahak-midcta-card .mahak-article-btn {
  background: #FFD700;
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.mahak-midcta-card .mahak-article-btn:hover {
  background: #e6c200;
}
