[dir="rtl"] .md-content__inner p {
  text-align: justify;
}
/* RTL Support and Typography */
body, .md-typeset {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section - RTL Compatible */
.hero-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #3f51b5, #2196f3);
  color: white;
  border-radius: 12px;
  margin: 1rem 0 3rem 0;
  box-shadow: 0 8px 32px rgba(63, 81, 181, 0.3);
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-actions .md-button {
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-actions .md-button--primary {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.hero-actions .md-button--primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-actions .md-button:not(.md-button--primary) {
  background: rgba(255, 255, 255, 0.9);
  color: #3f51b5;
  border: 2px solid transparent;
}

.hero-actions .md-button:not(.md-button--primary):hover {
  background: white;
  transform: translateY(-2px);
}

/* Grid Cards Enhancement */
.md-typeset .grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.md-typeset .grid.cards > * {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.md-typeset .grid.cards > *:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--md-primary-fg-color--light);
}

.md-typeset .grid.cards > * h4 {
  color: var(--md-primary-fg-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.md-typeset .grid.cards > * .twemoji {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

/* Workflow Steps */
.workflow-steps {
  margin: 2rem 0;
}

.workflow-steps h3 {
  color: var(--md-primary-fg-color);
  border-right: 4px solid var(--md-primary-fg-color);
  padding-right: 1rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  position: relative;
}

.workflow-steps h3::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--md-primary-fg-color);
  border-radius: 50%;
}

/* Benefits Grid */
.benefits-grid .admonition {
  margin: 1.5rem 0;
  border-radius: 8px;
}

.benefits-grid .admonition-title {
  font-weight: 600;
}

/* Quick Start Links */
.quick-start-links {
  counter-reset: step-counter;
  margin: 2rem 0;
}

.quick-start-links li {
  counter-increment: step-counter;
  position: relative;
  padding-right: 4rem;
  margin: 1.5rem 0;
  list-style: none;
}

.quick-start-links li::before {
  content: counter(step-counter);
  position: absolute;
  right: 0;
  top: 0;
  background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.quick-start-links li strong {
  color: var(--md-primary-fg-color);
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--md-default-bg-color), var(--md-code-bg-color));
  border-radius: 12px;
  margin-top: 3rem;
  border: 2px solid var(--md-default-fg-color--lightest);
}

.footer-cta h3 {
  color: var(--md-primary-fg-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Button Enhancements */
.md-button--stretch {
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  font-size: 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
}

/* Section Separators */
.md-typeset hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--md-default-fg-color--lightest), transparent);
  margin: 3rem 0;
}

/* Icons Enhancement */
.md-typeset .twemoji {
  vertical-align: -0.125em;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
    margin: 0.5rem 0 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .md-button {
    width: 100%;
    max-width: 280px;
  }
  
  .md-typeset .grid.cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .workflow-steps h3 {
    font-size: 1.3rem;
  }
  
  .quick-start-links li {
    padding-right: 3rem;
  }
  
  .quick-start-links li::before {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .footer-cta h3 {
    font-size: 1.5rem;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .hero-section {
  background: linear-gradient(135deg, #2e3440, #3b4252);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > * {
  background: var(--md-code-bg-color);
  border-color: var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .footer-cta {
  background: linear-gradient(135deg, var(--md-code-bg-color), var(--md-default-bg-color));
}


.hero-section {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 50%, #32CD32 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.2;
}

.hero-section h1 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.4rem !important;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.hero-actions {
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.hero-actions .md-button {
    margin: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-actions .md-button--primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-actions .md-button--primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.challenge-intro {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    border: 3px solid rgba(46, 139, 87, 0.1);
    position: relative;
    overflow: hidden;
}

.challenge-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2E8B57, #32CD32, #228B22);
}

.challenge-intro h2 {
    color: #2E8B57 !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
}

.challenge-intro p {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.stats-container {
    background: linear-gradient(135deg, #f1f8f4 0%, #e1f0e6 100%);
    border-radius: 25px;
    padding: 50px 30px;
    margin: 50px 0;
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.1);
}

.stats-title {
    text-align: center;
    color: #2E8B57 !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stat-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2E8B57, #32CD32);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: translateX(0);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.25);
    border-color: rgba(46, 139, 87, 0.2);
}

.stat-number {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: #2E8B57 !important;
    margin-bottom: 15px !important;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

.challenge-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #2E8B57, #32CD32, #228B22);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.challenge-card:hover::before {
    transform: translateX(0);
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(46, 139, 87, 0.2);
}

.challenge-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.challenge-icon {
    font-size: 3rem;
    margin-left: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #2E8B57, #32CD32);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
    width: 80px;
    height: 80px;
}

.challenge-card h2 {
    color: #2E8B57 !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3;
}

.challenge-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.challenge-details {
    background: rgba(46, 139, 87, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-right: 5px solid #2E8B57;
    margin-top: 20px;
}

.challenge-details h3 {
    color: #2E8B57 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.challenge-details p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 8px;
    padding-right: 25px;
    position: relative;
}

.challenge-details p::before {
    content: '✅';
    position: absolute;
    right: 0;
    font-size: 1.1rem;
}

.conclusion-section {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 50%, #1e7e34 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.conclusion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.conclusion-section h3 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    position: relative;
    z-index: 1;
}

.conclusion-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2E8B57, #32CD32);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(46, 139, 87, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: #2E8B57 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.workflow-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
    border-radius: 25px;
    padding: 50px 40px;
    margin: 50px 0;
    border: 2px solid rgba(46, 139, 87, 0.1);
}

.workflow-title {
    text-align: center;
    color: #2E8B57 !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.workflow-step {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2E8B57, #32CD32);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.workflow-step:hover::before {
    transform: translateX(0);
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.2);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E8B57, #32CD32);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 20px;
}

.workflow-step h3 {
    color: #2E8B57 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.workflow-step p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.benefits-section {
    margin: 50px 0;
}

.benefits-title {
    text-align: center;
    color: #2E8B57 !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.quick-start-section {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    border-radius: 25px;
    padding: 50px 40px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.3);
}

.quick-start-title {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    color: white !important;
}

.quick-start-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    color: white !important;
}

.quick-link {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.footer-cta {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    color: white;
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgba(30, 126, 52, 0.3);
}

.footer-cta h3 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    color: white !important;
}

.footer-cta p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.footer-cta .md-button {
    font-size: 1.2rem;
    padding: 18px 40px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-cta .md-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .challenge-intro h2 {
        font-size: 2rem !important;
    }
    
    .challenge-intro p {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .challenge-card {
        padding: 30px 25px;
    }
    
    .challenge-header {
        flex-direction: column;
        text-align: center;
    }
    
    .challenge-icon {
        margin: 0 0 20px 0;
    }
}
