@font-face {
    font-family: 'Shabnam';
    src: url('./Shabnam.woff2') format('woff2');
}

:root {
    --primary-color: #2e7d32;
    --primary-light: #a5d6a7;
    --background: #f1f4f6;
    --card-bg: #ffffff;
    --text-color: #2c2c2c;
    --muted-text: #666;
    --border-radius: 16px;
    --transition-fast: 0.2s ease-in-out;
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Shabnam', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
    direction: rtl;
    line-height: 1.8;
    text-align: right;
}

h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
}

p, li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

ul, ol {
    padding-right: 1.5rem;
    margin-top: 0.5rem;
}

    /* تیتر اصلی: وسط‌چین */
h1, h2 {
    text-align: center;
}

/* تیترهای مراحل یا فرعی: راست‌چین */
h3 {
    text-align: right;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
}

/* پاراگراف‌ها و لیست‌ها: راست‌چین */
p, li {
    text-align: right;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

/* لیست‌ها فاصله مناسب از راست داشته باشند */
ul, ol {
    padding-right: 1.5rem;
    padding-left: 0;
}
ul li::marker, ol li::marker {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #1b5e20;
}

a.cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.1rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

a.cta:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.section {
    background-color: var(--card-bg);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

footer {
    text-align: center;
    margin-top: 5rem;
    color: var(--muted-text);
    font-size: 14px;
    padding-bottom: 2rem;
}

#enamad {
    text-align: center;
    margin-top: 1.5rem;
}
#enamad img {
    width: 100px;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.1));
}

/* فقط متن راست‌چین بشه، نه کل دیزاین */
p, li, ul, ol {
    text-align: right;
}
/* --- Animated Gradient Title --- */
.animated-title {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(120deg, #00ffcc, #00ff99, #0066ff, #00ff99);
  background-size: 25% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  0% { background-position: 50% center; }
  100% { background-position: -50% center; }
}

/* You can apply this class to any title element, like: */
/* <h1 class="animated-title">Your Title Here</h1> */
/* واکنش‌گرا برای موبایل */
@media screen and (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 15px;
    }

    a.cta {
        width: 100%;
        display: block;
        padding: 12px;
    }

    .section {
        padding: 1.2rem;
    }
}