:root {
    --color-primary: #017ffe;
    --color-primary-hover: #0066cc;
    --color-secondary: #eb2f48;
    --color-text-main: #0f172a;
    --color-text-light: #64748b;
    --color-bg: #f7f7f7;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --font-family: 'Vazirmatn', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #f7f7f7ba;
    color: var(--color-text-main);
    line-height: 1.6;
    direction: rtl;
    font-feature-settings: "ss01";
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* در انتهای فایل style.css */

@media (max-width: 768px) {
    .promo-carousel {
        padding: 1rem 0; /* فاصله کمتر از بالا و پایین */
    }
    
    .carousel-wrapper {
        /* نکته کلیدی: تغییر نسبت تصویر کادر */
        /* عدد بزرگتر = کادر باریک‌تر و کشیده‌تر */
        /* برای عکس شما که بنری است، 2.3/1 یا 2.5/1 مناسب است */
        aspect-ratio: 2.3/1; 
        border-radius: 12px;
        background-color: transparent; /* حذف رنگ پس‌زمینه */
        width: 100%;
    }
    
    .carousel-slide img {
        /* برگرداندن به حالت cover تا اگر ۱ پیکسل اختلاف بود، پر شود */
        object-fit: cover !important; 
        width: 100%;
        height: 100%;
        object-position: center;
    }

    .carousel-btn {
        display: none; 
    }
    
    .carousel-dots {
        bottom: 5px; /* کمی پایین‌تر بیاید */
        padding: 2px 6px;
    }
    
    /* کوچک کردن نقطه‌ها در موبایل */
    .dot {
        width: 6px;
        height: 6px;
    }
    .dot.active {
        width: 16px;
    }
}

ul {
    list-style: none;
}
/* رفع مشکل اسکرول افقی در بخش وبلاگ */
.blog-bento {
    overflow-x: hidden; /* مخفی کردن سرریزهای افقی */
    max-width: 100vw;   /* اطمینان از اینکه عرض بیشتر از صفحه نشود */
    position: relative; /* برای کنترل بهتر مختصات */
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
}

.btn--block {
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 0;
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header__logo svg {
    height: 40px;
    width: auto;
}

.header__nav {
    display: none;
}
@media screen and (min-width:768px){
  ul,li{
    display: inline;
    margin: 8px
  }
}
.header__link {
    font-size: 0.875rem;
    color: var(--color-text-main);
}

.header__link:hover {
    color: var(--color-primary);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__btn {
    display: none;
    height: 2.5rem;
    font-size: 0.875rem;
}

.header__mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
        gap: 2rem;
    }
    .header__btn {
        display: inline-flex;
    }
    .header__mobile-toggle {
        display: none;
    }
}

/* Main Content Padding for Fixed Header */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    padding: 2rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: -80px;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero__content {
    text-align: center;
    z-index: 10;
    max-width: 500px;
}

.hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-red {
    color: var(--color-secondary);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero__btn {
    min-width: 200px;
    font-size: 1.125rem;
}

.hero__image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: none;
}

.hero__image img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

.hero__image--left {
    left: -50px;
}

.hero__image--right {
    right: -50px;
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }
    .hero__image {
        display: block;
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card__content {
    padding: 1.5rem;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.feature-card__image {
    height: 200px;
    width: 100%;
    background-color: #f0f9ff;
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .feature-card {
        flex-direction: column;
    }
    .feature-card__image {
        height: 250px;
    }
}

/* Calculator Section */
.calculator-section {
    padding: 2rem 0;
}

.calculator {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.calculator__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.calculator__header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.calculator__body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.custom-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-light);
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.range-value {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.range-value .currency {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.range-slider input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

.range-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.label-bold {
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.installments {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.installment-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    color: var(--color-text-light);
}

.installment-btn.active,
.installment-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(1, 127, 254, 0.05);
}

.calculator__results {
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.result-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.result-row span:first-child {
    color: var(--color-text-light);
}

.result-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.result-value .currency {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-light);
}

@media (min-width: 1024px) {
    .calculator__body {
        grid-template-columns: 1fr 1fr;
    }
}

/* Promo Sections (Merchants, Credit Score, LendTech) */
.merchants, .credit-score, .lend-tech {
    padding: 2rem 0;
}

.promo-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.promo-card--reverse {
    direction: ltr;
}

.promo-card--reverse .promo-card__content {
    direction: rtl;
}

.promo-card__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.promo-card__content p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.merchant-logo {
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-light);
    text-align: center;
    font-size: 0.875rem;
}

.merchant-logo--dark {
    background-color: #1e293b;
    color: white;
}

.merchant-logo--gray {
    background-color: #94a3b8;
    color: white;
}

.merchant-logo--blue {
    background-color: #3b82f6;
    color: white;
}

.promo-card__image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .promo-card {
        grid-template-columns: 1fr 1fr;
        padding: 3rem;
    }
    .promo-card__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
}

.faq-box {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.faq-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.link-blue {
    color: var(--color-primary);
    font-size: 0.875rem;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.accordion-header i {
    color: var(--color-text-light);
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--color-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__logo svg {
    height: 50px;
    width: auto;
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer__col h4 {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer__col ul li {
    margin-bottom: 0.75rem;
}

.footer__col ul li a {
    font-size: 0.875rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__col ul li a:hover {
    color: var(--color-primary);
}

.trust-badge img {
    height: 80px;
    border-radius: var(--radius-md);
}

.footer__middle {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.footer__contact, .footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-main);
}

.contact-item i {
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.footer__hours {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.footer__bottom {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .footer__top {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer__links {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    .footer__middle {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer__contact, .footer__contact-info {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Utilities */
.text-blue {
    color: var(--color-primary);
}
.font-bold {
    font-weight: 700;
}

/* --- Hero Images Styles --- */

/* تعریف انیمیشن شناور و چرخش */
@keyframes floatRotateLeft {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-3deg); }
}

@keyframes floatRotateRight {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

/* استایل کانتینر اصلی (حرکت با اسکرول روی این اعمال می‌شود) */
.hero__image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* این مقدار ثابت است و با JS آپدیت می‌شود */
    z-index: 1;
    display: none;
    /* این ترنزیشن باعث نرمی حرکت هنگام اسکرول می‌شود */
    transition: transform 0.1s linear; 
    will-change: transform;
}

/* استایل خود عکس (انیمیشن شناور روی این اعمال می‌شود) */
.hero__image img {
    max-height: 550px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* اختصاص انیمیشن به تصویر سمت چپ */
.hero__image--left {
    left: -40px;
}
.hero__image--left img {
    animation: floatRotateLeft 6s ease-in-out infinite;
}

/* اختصاص انیمیشن به تصویر سمت راست */
.hero__image--right {
    right: -140px;
}
.hero__image--right img {
    animation: floatRotateRight 7s ease-in-out infinite 0.5s;
}

@media (min-width: 1024px) {
    .hero__image {
        display: block;
    }
}
/* --- 3D Flip Cards Styles --- */

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    perspective: 1000px; /* ایجاد عمق برای حالت سه بعدی */
}

@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: transparent;
    border-radius: var(--radius-lg);
    /* ارتفاع ثابت برای اینکه چرخش درست کار کند */
    height: 380px; 
    border: none;
    box-shadow: none;
    cursor: pointer;
}

/* نگهدارنده داخلی که می‌چرخد */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* هاور: چرخش کارت */
.feature-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* تنظیمات مشترک پشت و رو */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* مخفی کردن پشت کارت در حالت عادی */
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

/* --- طراحی روی کارت (سفید) --- */
.flip-card-front {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: #017ffe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(1, 127, 254, 0.3);
}

.card-title-front {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0;
	text-align: center;
	display: block;
	width: 100%;
}

.front-image-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-image-container img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
  
}

/* --- طراحی پشت کارت (آبی) --- */
.flip-card-back {
    background-color: #3b82f6; /* رنگ آبی روشن مشابه عکس */
    color: white;
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #4fa3ff, #017ffe);
}

.card-title-back {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: center;
	display: block;
	width: 100%;
}

.card-desc-back {
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 500;
}
/* --- Steps / Process Section Styles --- */
.steps-section {
    padding: 6rem 0;
    background-color: #f8fafc; /* رنگ پس‌زمینه متفاوت برای تمایز */
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

/* Mobile Timeline Line (Gray Base) */
.steps-container::before {
    content: '';
    position: absolute;
    top: 56px !important;
    bottom: 0;
    right: 40px; /* تنظیم مکان خط در موبایل */
    width: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    z-index: 1;
}

/* Mobile Timeline Line (Blue Fill Animation) */
.steps-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 40px;
    width: 4px;
    background: var(--color-primary);
    height: 0;
    transition: height 1.5s ease;
    z-index: 0;
}

/* وقتی کلاس visible اضافه شد، خط پر شود */
.steps-section.visible .steps-container::after {
    height: 100%;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease;
    padding: 0 12px;
}

.steps-section.visible .step-item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delay for Items */
.step-item:nth-child(1) { transition-delay: 0.2s; }
.step-item:nth-child(2) { transition-delay: 0.5s; }
.step-item:nth-child(3) { transition-delay: 0.8s; }

.step-icon-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    border: 4px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1.75rem;
    color: var(--color-primary);
    transition: all 0.5s;
    position: relative;
}

.steps-section.visible .step-icon-wrapper {
    border-color: var(--color-primary);
    color: var(--color-white);
    background-color: var(--color-primary);
    box-shadow: 0 0 0 5px rgba(1, 127, 254, 0.2);
}

.step-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s, border-color 0.3s;
}

.step-item:hover .step-content {
    transform: translateX(-10px);
    border-color: var(--color-primary-light);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.step-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Desktop Styles (Horizontal Layout) --- */
@media (min-width: 992px) {
    .steps-container {
        flex-direction: row;
        align-items: flex-start;
        text-align: center;
        padding-top: 2rem;
    }

    /* Horizontal Line Base */
    .steps-container::before {
        top: 40px;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 4px;
    }

    /* Horizontal Line Fill */
    .steps-container::after {
        top: 59px;
        right: 0; /* شروع از راست برای فارسی */
        left: auto;
        bottom: auto;
        width: 0;
        height: 4px;
        transition: width 1.5s ease;
    }
    
    .steps-section.visible .steps-container::after {
        width: 100%;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        flex: 1;
        transform: translateY(30px);
    }

    .steps-section.visible .step-item {
        transform: translateY(0);
    }
    
    .step-item:hover .step-content {
        transform: translateY(-10px); /* حرکت عمودی */
    }

    .step-content {
        width: 100%;
        position: relative;
    }
    
    /* Arrow Pointer on Top */
    .step-content::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 10px 10px 10px;
        border-style: solid;
        border-color: transparent transparent white transparent;
    }
}

/* --- New Calculator Styles --- */
/* Variables specific to the new calculator */
.calculator-section {
    --calc-primary-blue: #135bef;
    --calc-primary-hover: #0d41c0;
    --calc-primary-light: #e7effd;
    --calc-text-dark: #111827;
    --calc-text-medium: #6b7280;
    --calc-text-light: #9ca3af;
    --calc-border-color: #f3f4f6;
    --calc-bg-gray: #f9fafb;
    --calc-orange-text: #efa713;
    --calc-orange-bg: #fdf6e7;
    --calc-orange-border: #efa713;
    --calc-radius-xl: 16px;
}

/* Tabs */
.calculator-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.calculator-tabs {
    display: flex;
    border-bottom: 1px solid var(--calc-border-color);
    width: 380px;
    max-width: 100%;
    justify-content: center;
}

.calculator-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    color: var(--calc-text-dark);
    transition: all 0.3s ease;
}

.calculator-tab--active {
    color: var(--calc-primary-blue);
    border-bottom: 2px solid var(--calc-primary-blue);
    background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(231,239,253,0.5) 50%, #e7effd 100%);
}

/* Main Card */
.calculator-card {
    background: #fff;
    border: 1px solid var(--calc-border-color);
    border-radius: var(--calc-radius-xl);
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 534px;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .calculator-card {
        flex-direction: row; 
        padding: 40px;
        gap: 40px;
    }
}

/* Right Column: Inputs */
.calculator-card__inputs {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

/* Bank Grid */
.bank-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid var(--calc-border-color);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.bank-item {
    width: 95px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .bank-item {
        width: 120px;
    }
}

.bank-item__inner {
    border: 1px solid var(--calc-border-color);
    border-radius: var(--calc-radius-xl);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: border-color 0.2s, background-color 0.2s;
}

.bank-item__icon-wrapper {
    width: 64px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bank-item__icon-wrapper img {
    width: 100%;
    height: auto;
}

.bank-item__title {
    font-size: 12px;
    color: var(--calc-text-medium);
    font-weight: 400;
    white-space: nowrap;
}

.bank-item--active .bank-item__inner {
    border-color: var(--calc-primary-blue);
    background-color: var(--calc-primary-light);
}

.bank-item--active .bank-item__title {
    color: var(--calc-primary-blue);
    font-weight: 600;
}

/* Input Group (Slider) */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.input-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.input-group__label {
    font-size: 16px;
    font-weight: 500;
    color: var(--calc-text-dark);
}

@media(min-width: 768px) {
    .input-group__label { font-size: 20px; }
}

.amount-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--calc-primary-light);
    background: transparent;
    border-radius: 8px;
    color: var(--calc-primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: var(--calc-primary-light);
}

.amount-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

#display-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--calc-primary-blue);
}

@media(min-width: 768px) {
    #display-amount { font-size: 24px; }
}

.range-wrapper {
    width: 100%;
    margin-top: 10px;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(to left, var(--calc-primary-blue) 0%, var(--calc-primary-blue) 0%, #f3f4f6 0%, #f3f4f6 100%);
    outline: none;
    cursor: pointer;
    direction: rtl;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--calc-primary-blue);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    margin-top: -5px; /* Adjust for alignment */
}

.custom-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--calc-primary-blue);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* Selectors Row */
.selectors-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .selectors-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

.selector-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.selector-box__label {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper__btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.stepper__btn--disabled {
    background-color: #e5e7eb;
    color: #fff;
    cursor: not-allowed;
}

.stepper__btn--primary {
    background-color: var(--calc-primary-blue);
    color: #fff;
}

.stepper__btn--primary:hover {
    background-color: var(--calc-primary-hover);
}

.stepper__value {
    font-size: 16px;
    font-weight: 500;
    color: var(--calc-primary-blue);
    min-width: 60px;
    text-align: center;
}

/* Summary Box */
.calculator-card__summary {
    flex: 1;
    display: flex;
}

.summary-box {
    background-color: var(--calc-bg-gray);
    border: 1px solid #e5e7eb;
    border-radius: var(--calc-radius-xl);
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.badge-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.badge {
    background-color: var(--calc-orange-bg);
    color: var(--calc-orange-text);
    border: 1px solid var(--calc-orange-border);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-row--highlight {
    border-bottom: 1px solid var(--calc-border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.border-bottom {
    border-bottom: 1px solid var(--calc-border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.mb-large {
    margin-bottom: 40px;
}

.summary-label {
    font-size: 16px;
    color: var(--calc-text-dark);
}

.summary-label--bold {
    font-size: 18px;
    font-weight: 600;
}

.summary-value {
    font-size: 16px;
    color: var(--calc-text-dark);
    direction: ltr;
    text-align: right;
}

.summary-value--bold {
    font-size: 18px;
    font-weight: 700;
}

.btn-cta {
    background-color: var(--calc-primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: auto;
    font-family: inherit;
}

.btn-cta:hover {
    background-color: var(--calc-primary-hover);
}
/* =========================================
   RESPONSIVE FIXES (100% Mobile Friendly)
   ========================================= */

/* 1. Global Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero__title {
        font-size: 2.5rem; /* کاهش سایز فونت هیرو در تبلت */
    }
}

/* 2. Mobile Menu Fixes */
@media (max-width: 768px) {
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        /* display: none; توسط jQuery هندل می‌شود */
    }
    
    .header__btn {
        display: none !important; /* مخفی کردن دکمه ورود در هدر موبایل */
    }
}

/* 3. Hero Section Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero__content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }
    
    /* مخفی کردن تصاویر پارالاکس در موبایل برای جلوگیری از به‌هم‌ریختگی */
    .hero__image {
        display: none !important;
    }
}

/* 4. Calculator Responsive (Crucial Part) */
@media (max-width: 1024px) {
    /* تغییر چیدمان اصلی کارت به ستونی */
    .calculator-card {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        height: auto;
        min-height: auto;
    }

    .calculator-card__inputs {
        padding: 0;
    }

    /* تنظیم گرید بانک‌ها در تبلت/موبایل */
    .bank-grid {
        gap: 10px;
        justify-content: space-between; 
    }

    .bank-item {
        /* در تبلت ۳ تا در هر ردیف */
        width: calc(33.33% - 10px); 
        flex-grow: 1;
    }
    
    .bank-item__inner {
        padding: 10px 5px;
    }

    /* ستونی کردن انتخاب‌گرهای پایین (دوره و فاصله) */
    .selectors-row {
        flex-direction: column; 
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* تنظیمات مخصوص موبایل‌های کوچک */
    .calculator-tabs {
        width: 100%; /* تب‌ها تمام عرض شوند */
    }
    
    .calculator-tab {
        font-size: 12px;
        padding: 8px 10px;
        flex: 1; /* عرض برابر برای تب‌ها */
        text-align: center;
    }

    /* بانک‌ها در موبایل ۲ تا در هر ردیف */
    .bank-item {
        width: calc(50% - 6px);
    }
    
    .amount-control {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .input-group__header {
        flex-direction: column;
        align-items: flex-start;
    }

    #display-amount {
        font-size: 20px; /* کوچک کردن فونت مبلغ */
    }

    .badge-container {
        justify-content: center; /* وسط‌چین کردن بج سود */
    }
    
    .summary-box {
        padding: 16px;
    }
    
    .summary-row {
        flex-wrap: wrap; /* اگر متن طولانی بود بشکند */
    }
}

/* 5. Features (Flip Cards) Mobile */
@media (max-width: 768px) {
    .features__grid {
        grid-template-columns: 1fr; /* تک ستونه */
        perspective: none; /* حذف پرسپکتیو در موبایل برای پرفورمنس */
    }
    
    .feature-card {
        height: 320px; /* ارتفاع کمتر در موبایل */
    }
}

/* 6. Steps Section Mobile Adjustment */
@media (max-width: 991px) {
    .steps-section h3 {
        margin-bottom: -40px !important;
        font-size: 28px !important;
    }
    
    /* خط عمودی تایم‌لاین در موبایل */
    .steps-container::before {
        right: 28px; /* تنظیم دقیق مکان خط */
    }
    .steps-container::after {
        right: 28px;
    }
    
    .step-item {
        margin-bottom: 2rem;
    }
    
    .step-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* 7. Footer Mobile */
@media (max-width: 768px) {
    .footer__links {
        grid-template-columns: 1fr; /* لینک‌ها تک ستونه */
        text-align: center;
        gap: 2rem;
    }
    
    .footer__col ul li a {
        justify-content: center;
    }
    
    .footer__middle {
        text-align: center;
        align-items: center;
    }
    
    .footer__contact, .footer__contact-info {
        align-items: center;
    }
    
    .trust-badge img {
        margin: 0 auto;
    }
}

/* Small adjustments specifically for iPhone SE / Small Screens */
@media (max-width: 360px) {
    .bank-item {
        width: 100%; /* تک ستونه شدن بانک‌ها در گوشی‌های خیلی کوچک */
        display: flex;
    }
    .bank-item__inner {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
    }
    .bank-item__icon-wrapper {
        margin-bottom: 0;
    }
}

.col-span-full {
  grid-column: 1 / -1; 
}

/* 1. استایل پایه و کانتینر */
.merchant-logo {
    /* استایل‌های قبلی شما (رنگ، بوردر و...) */
    background-color: #f1f5f9;
    border-radius: var(--radius-md); 
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* تنظیمات حیاتی برای انیمیشن */
    position: relative; /* برای اینکه شاین داخل کادر بماند */
    overflow: hidden;   /* جلوگیری از بیرون زدن شاین */
    transform: translateZ(0); /* فعال‌سازی شتاب‌دهنده گرافیکی برای روانی حرکت */
    
    /* انیمیشن شناور شدن (Float) */
    animation: float-y 6s ease-in-out infinite;
}

/* 2. ایجاد لایه براق (Shine) */
.merchant-logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; /* شروع از خارج کادر */
    width: 80%;
    height: 100%;
    
    /* گرادینت شیشه‌ای و سفید */
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%
    );
    
    transform: skewX(-25deg); /* کج کردن خط نور */
    pointer-events: none; /* تا مزاحم کلیک نشود */
    
    /* انیمیشن حرکت نور */
    animation: shine-pass 5s infinite; 
}

/* 3. تعریف کی‌فریم‌های انیمیشن */

/* حرکت نرم بالا و پایین */
@keyframes float-y {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); } /* مقدار بالا رفتن */
}

/* حرکت سریع نور و مکث طولانی */
@keyframes shine-pass {
    0% { left: -150%; opacity: 0; }
    10% { opacity: 1; }
    20% { left: 150%; opacity: 1; } /* عبور سریع در 20 درصد زمان */
    100% { left: 150%; opacity: 0; } /* 80 درصد بقیه زمان مکث است */
}

/* 4. تاخیر زمانی (Staggering) برای طبیعی شدن حرکت */
/* این بخش باعث می‌شود همه با هم بالا پایین نروند */

/* آیتم اول */
.merchant-logo:nth-child(1) {
    animation-delay: 0s;
}
.merchant-logo:nth-child(1)::after {
    animation-delay: 1s; /* شاین با کمی تاخیر نسبت به حرکت شروع شود */
}

/* آیتم دوم */
.merchant-logo:nth-child(2) {
    animation-delay: -2s; /* شروع از وسط انیمیشن */
}
.merchant-logo:nth-child(2)::after {
    animation-delay: 2.5s;
}

/* آیتم سوم (همان که تمام عرض است) */
.merchant-logo:nth-child(3) {
    animation-delay: -1s;
}
.merchant-logo:nth-child(3)::after {
    animation-delay: 4s; /* شاین دیرتر می‌زند */
}


.blog-bento { padding: 4rem 0; }
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    height: auto;
}
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 250px); /* ارتفاع ثابت برای نظم */
    }
    .bento-card--large {
        grid-row: span 2; /* آیتم اول کل ارتفاع رو بگیره */
    }
}
.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #000; /* رنگ زمینه لودینگ */
}
.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.7;
}
.bento-card:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
}
.bento-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
}
.bento-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* استایل تیتر بخش بلاگ */
.section-header {
    text-align: center;
    max-width: 700px; /* جلوگیری از عریض شدن بیش از حد متن */
    margin: 0 auto 3rem auto; /* وسط‌چین کردن و فاصله از پایین */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.main-heading {
    font-size: 2rem; /* سایز فونت عنوان اصلی */
    font-weight: 800;
    color: #1e293b; /* رنگ تیره برای عنوان (متناسب با تم شما) */
    letter-spacing: -0.5px;
    display: block;
    width: 100%;
    margin-bottom: 46px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b; /* رنگ طوسی ملایم برای توضیحات */
    line-height: 1.7;
}

/* تنظیمات برای موبایل */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .main-heading {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* =========================================
   SINGLE BLOG POST STYLES
   ========================================= */

/* هدر مقاله (عنوان و عکس اصلی) */
.article-header-section {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    padding: 2rem 0 3rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.article-hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    display: block;
}

/* بدنه مقاله */
.article-container {
    max-width: 900px; /* عرض کمتر برای خوانایی بهتر متن */
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #334155;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

/* استایل لیست‌ها */
.article-content ul li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* باکس نقل قول یا نکات مهم */
.article-highlight {
    background-color: #f0f9ff;
    border-right: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-weight: 500;
    color: var(--color-text-main);
}

/* دکمه بازگشت */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-to-blog:hover {
    color: var(--color-primary);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .article-title-main {
        font-size: 1.5rem;
    }
    .article-content {
        font-size: 1rem;
    }
}

/* =========================================
   UPDATED FOOTER STYLES
   ========================================= */

.footer__top {
    display: flex;
    /* در موبایل لوگو بالا و لینک‌ها پایین باشند */
    flex-direction: column-reverse; 
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer__links {
    width: 100%;
}

/* استایل جدید بخش لوگو */
.footer__logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer__logo-section img {
    /* تنظیم سایز لوگو مشابه هدر */
    width: 140px; 
    height: auto;
    margin-bottom: 0.5rem;
}

.footer__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-align: center;
}

/* تنظیمات دسکتاپ */
@media (min-width: 992px) {
    .footer__top {
        flex-direction: row; /* چیدمان خطی */
        align-items: flex-start; /* تراز از بالا */
        justify-content: space-between;
        text-align: right;
    }

    .footer__links {
        flex-grow: 1; /* لینک‌ها فضای خالی را پر کنند */
    }

    .footer__logo-section {
        align-items: flex-end; /* لوگو سمت چپ (در حالت راست‌چین یعنی End) */
        min-width: 200px; /* حداقل عرض برای بخش لوگو */
        margin-top: 0;
    }
    
    .footer__logo-section img {
        width: 160px; /* لوگو کمی بزرگتر در دسکتاپ */
    }
}

/* تنظیم فاصله آیتم‌های تماس */
.footer__contact .contact-item, 
.footer__contact-info .contact-item {
    margin-bottom: 0.5rem;
}

/* تنظیم متن کپی رایت */
.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}


/* --- اصلاحیه ریسپانسیو بخش مراحل دریافت وام --- */
@media (max-width: 991px) {
    
    /* تنظیم فاصله و جلوگیری از اسکرول افقی */
    .steps-section .container {
        padding: 0 20px;
    }

    /* تنظیم خط عمودی تایم‌لاین دقیقاً وسط آیکون‌ها */
    .steps-container::before,
    .steps-container::after {
        right: 48px !important; /* تنظیم دقیق برای وسط آیکون 80 پیکسلی */
        left: auto;
        width: 4px;
        z-index: 0;
    }

    /* تنظیم آیتم‌های هر مرحله */
    .step-item {
        display: flex;
        flex-direction: row; /* چیدمان افقی: آیکون راست، متن چپ */
        align-items: flex-start; /* تراز از بالا */
        justify-content: flex-start;
        margin-bottom: 2.5rem;
        position: relative;
        width: 100%;
        padding: 0;
        transform: none !important; /* حذف ترنسفورم‌های مزاحم در موبایل */
        opacity: 1 !important;
    }

    /* تنظیم قاب آیکون */
    .step-icon-wrapper {
        width: 60px; /* کمی کوچک‌تر برای موبایل */
        height: 60px;
        min-width: 60px; /* جلوگیری از جمع شدن */
        font-size: 1.5rem;
        margin-left: 15px; /* فاصله از باکس سفید */
        z-index: 2;
        background-color: #fff; /* برای اینکه خط زیرش دیده نشود */
        margin-right: 18px; /* تراز کردن با خط عمودی */
    }

    /* تنظیم باکس سفید محتوا */
    .step-content {
        flex: 1; /* اشغال فضای باقی‌مانده */
        width: auto;
        text-align: right;
        padding: 1.2rem;
        display: flex;
        flex-direction: column; /* چیدمان عمودی تیتر و متن */
        gap: 8px; /* فاصله بین تیتر و توضیح */
    }
    
    /* جلوگیری از روی هم افتادن متن‌ها */
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 0;
        line-height: 1.4;
    }

    .step-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }
    
    /* حذف فلش اشاره‌گر در موبایل چون فضا کم است */
    .step-content::before {
        display: none;
    }
}


@media screen  and (max-width:576px) {
    #steps_title {
	font-size: 22px !important;
	margin-bottom: 32px !important;
}
.steps-section h3 {
	font-size: 14px !important;
	margin: 0 !important;
}
.step-content {
	margin-right: -24px;
	margin-top: -16px;
}
}

/* --- Middle Carousel Styles --- */
.promo-carousel {
    padding: 2rem 0 4rem 0; /* فاصله از بالا و پایین */
    margin-bottom: 2rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    /* عرض کانتینر را محدود نمیکند تا کل عرض کانتینر را پر کند */
    margin: 0 auto;
    border-radius: 20px; /* گوشه‌های گرد مدرن */
    overflow: hidden;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15); /* سایه نرم */
    background-color: #fff;
    /* نسبت تصویر اتوماتیک بر اساس عکس‌ها */
    aspect-ratio: 2.7 / 1; 
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
    /* تغییرات جدید برای جلوگیری از جمع شدن عکس */
    flex: 0 0 100%;
    width: 100%; 
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کامل قاب */
    object-position: center;
}

/* دکمه‌های کنترلی */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0; /* مخفی در حالت عادی */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* نمایش دکمه‌ها وقتی موس روی اسلایدر می‌رود */
.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.carousel-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1) !important; /* کمی بزرگ شدن هنگام هاور */
}

.prev-btn { right: 25px; }
.next-btn { left: 25px; }

/* نقاط نشانگر (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2); /* پس زمینه محو پشت نقطه ها */
    border-radius: 30px;
    backdrop-filter: blur(2px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    width: 20px; /* کشیده شدن نقطه فعال */
    border-radius: 10px;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .promo-carousel {
        padding: 1rem 0 2rem;
    }
    
    .carousel-wrapper {
        aspect-ratio: 16/9; /* در موبایل کمی بلندتر شود */
        border-radius: 12px;
    }
    
    .carousel-btn {
        display: none; /* در موبایل دکمه‌ها مزاحم هستند */
    }
    
    .carousel-dots {
        bottom: 15px;
        padding: 4px 8px;
    }
}

/* در انتهای فایل style.css */

@media (max-width: 768px) {
    .promo-carousel {
        padding: 1rem 0; /* فاصله کمتر از بالا و پایین */
    }
    
    .carousel-wrapper {
        /* نکته کلیدی: تغییر نسبت تصویر کادر */
        /* عدد بزرگتر = کادر باریک‌تر و کشیده‌تر */
        /* برای عکس شما که بنری است، 2.3/1 یا 2.5/1 مناسب است */
        aspect-ratio: 2.3/1; 
        border-radius: 12px;
        background-color: transparent; /* حذف رنگ پس‌زمینه */
        width: 100%;
    }
    
    .carousel-slide img {
        /* برگرداندن به حالت cover تا اگر ۱ پیکسل اختلاف بود، پر شود */
        object-fit: cover !important; 
        width: 100%;
        height: 100%;
        object-position: center;
    }

    .carousel-btn {
        display: none; 
    }
    
    .carousel-dots {
        bottom: 5px; /* کمی پایین‌تر بیاید */
        padding: 2px 6px;
    }
    
    /* کوچک کردن نقطه‌ها در موبایل */
    .dot {
        width: 6px;
        height: 6px;
    }
    .dot.active {
        width: 16px;
    }
}