/*homepage-content mobile spacing - positioned after fixed header with 10px padding*/
@media (max-width: 768px) {
    .homepage-content {
        padding: 1.5rem; /* header max-height (100px) + 10px spacing */
    }
}

/*hero section styles start*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.screen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.screen-info {
    flex: 1;
    padding-left: 30px;
}

.screen-info h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--accent-primary) !important;
}

.description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

.apps {
    display: flex;
    gap: 5px;
    align-items: center;
    position: relative; /* برای پیام خطا */
}

.paya-amount {
    padding: 18px 0px;
    border: 2px solid #3D72FE;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    background: transparent;
}
.paya-amount {
    transition: all 0.3s ease;
}

.paya-amount:focus {
    outline: none;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 18px 0px;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    background: transparent;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.screen-signup {
    background-color: #3D72FE;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.screen-signup:hover {
    background-color: #2b5fe0;
    text-decoration: none;
    color: white;
}

.error {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 13px;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    position: absolute;
    top: 100%; /* دقیقاً زیر input */
    right: 6px;
    margin-top: 5px;
}

.paya-amount.error {
    border: 2px solid red;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.paya-amount {
    cursor: text;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }

    .screen {
        flex-direction: column;
        text-align: center;
    }

    .screen-info {
        padding-left: 0;
        margin-bottom: 30px;
        width: 100%;
    }

    .apps {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    .paya-amount {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .screen-signup {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/*hero section styles end*/

/* calculator visual styles start */
.calculator-section {
    padding: 48px 15px;
    background: transparent;
    direction: rtl;
    font-family: "IRANSansWeb", sans-serif;
}
.calculator-title {
    margin-bottom: 45px;
    text-align: right;
}

.calculator-title h2 {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    color: #3D72FE;
    line-height: 1.2;
    font-weight: 700;
}

.calculator-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* left image */
.calc-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 260px;
}
.calc-left img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* right text */
.calc-right {
    flex: 1;
    padding: 10px 20px;
    min-width: 260px;
    text-align: right;
}
.calc-right h2 {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    color: #3D72FE;
    line-height: 1.2;
    font-weight: 700;
}

.calc-desc {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    font-family: IRANSansWeb;
}

/* === tabs === */
.calc-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.calc-tab {
    border: none;
    border-radius: 8px;
    padding: 8px 30px;
    font-size: 1rem;
    font-family: "IRANSansWeb", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    width: 50%;
}

/* buy tab styles */
.calc-tab.buy-tab {
    background-color: #E0E8FF; /* حالت غیرفعال آبی ملایم */
    color: #1E3A8A;
}
.calc-tab.buy-tab.active {
    background-color: #3B82F6; /* آبی فعال */
    color: white;
}

/* sell tab styles */
.calc-tab.sell-tab {
    background-color: #FEE2E2; /* حالت غیرفعال قرمز ملایم */
    color: #991B1B;
}
.calc-tab.sell-tab.active {
    background-color: #EF4444; /* قرمز فعال */
    color: white;
}


/* hover effects */
.calc-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* responsive */
@media (max-width: 768px) {
    .calculator-section {
        padding: 48px 0px;
    }
    .calculator-title {
        text-align: center;
        font-family: "IRANSansWeb", sans-serif;
        margin-bottom: 32px;
    }
    .calculator-title h2 {
        text-align: center;
    }
    .calc-desc {
        text-align: center;
        font-family: "IRANSansWeb", sans-serif;
    }
    .calculator-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 16px 0;
    }
    .calc-right {
        text-align: center;
        padding: 10px 0 16px 0;
    }
    .calc-right h2 {
        font-size: 1.25rem;
    }
    .calc-tabs {
        width: 100%;
        justify-content: center;
    }
}
/* === calculator form === */
.calc-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
}

/* Base styles for all form items */
.form-item {
    margin-bottom: 30px; /* فاصله یکسان بین همه آیتم‌ها */
    position: relative;
    width: 100%;
}

.form-item:last-child {
    margin-bottom: 0; /* حذف margin از آخرین آیتم */
}

/* Label styles */
.form-item {
    position: relative;
}

.form-item label {
    position: absolute;
    top: -10px;
    right: 12px;
    font-size: 14px;
    background: var(--body-bg); /* تغییر به رنگ پس‌زمینه صفحه */
    padding: 0 6px;
    color: #6b7280;
    pointer-events: none;
    line-height: 1;
    z-index: 1;
    font-weight: 500;
}

/* حذف تغییر استایل label در حالت focus */
.form-control:focus + label,
.custom-select-wrapper.open + label {
    /*color: #6b7280 !important; !* همیشه خاکستری *!*/
    font-weight: 500 !important; /* همیشه نیمه‌ضخیم */
}

/* Base input styles */
.form-control {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #3b82f6; /* رنگ پیش‌فرض آبی برای حالت خرید */
    border-radius: 8px;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: "IRANSansWeb", sans-serif;
    text-align: center; /* مرکز کردن متن */
}

/* حذف دکمه‌های کم و زیاد کردن در input های عددی */
.form-control[type="number"] {
    appearance: textfield; /* Standard */
    -moz-appearance: textfield; /* Firefox */
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}

.form-control:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Custom Select Styling */
.custom-select-wrapper {
    width: 100%;
    height: 48px;
    position: relative;
}

/* مخفی کردن select اصلی */
.native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-select-selected {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #3b82f6; /* رنگ پیش‌فرض آبی برای حالت خرید */
    border-radius: 8px;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative; /* برای موقعیت‌دهی فلش */
}

/* استایل برای بخش محتوا (آیکون و متن) */
.custom-select-selected > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: relative;
}

/* استایل برای آیکون */
.custom-select-selected img.coin-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block; /* اطمینان از نمایش */
    position: absolute;
    right: 0;
}

/* استایل برای متن */
.custom-select-selected span {
    width: 100%;
    text-align: center;
}

/* موقعیت‌دهی فلش در سمت چپ */
.custom-select-selected .dropdown-arrow {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.custom-select-selected:focus,
.custom-select-wrapper.open .custom-select-selected {
    box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}

/* حالت فروش */
.calc-tab.sell-tab.active ~ .calc-form .form-control,
.calc-tab.sell-tab.active ~ .calc-form .custom-select-selected {
    border-color: #ef4444;
}

.calc-tab.sell-tab.active ~ .calc-form .form-control:focus,
.calc-tab.sell-tab.active ~ .calc-form .custom-select-wrapper.open .custom-select-selected {
    box-shadow: 0 0 0 4px rgba(239,68,68,0.08);
}

.calc-tab.sell-tab.active ~ .calc-form .form-control:focus + label,
.calc-tab.sell-tab.active ~ .calc-form .custom-select-wrapper.open + label {
    color: #ef4444;
}

/* Output field styling */
#toToman.form-control {
    background-color: #f9fafb;
    color: #111827;
    text-align: center;
    margin: 0; /* حذف margin‌های احتمالی */
    display: flex;
    align-items: center; /* مرکز کردن عمودی */
    justify-content: center; /* مرکز کردن افقی */
}

.submit-btn {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background-color: #3b82f6; /* رنگ تب خرید (active) */
    transition: background-color 0.3s ease;
    font-family: "IRANSansWeb", sans-serif;
    display: block;
    text-align: center;
    text-decoration: none;
}

.submit-btn:hover,
.submit-btn:focus {
    text-decoration: none;
    color: white;
}

/* وقتی تب فروش فعاله */
.calc-tab.sell-tab.active ~ .calc-form .form-control {
    border-color: #ef4444 !important;
}

.calc-tab.sell-tab.active ~ .calc-form .submit-btn {
    background-color: #ef4444 !important;
    color: black;
}

/* responsive */
@media (max-width: 768px) {
    .form-control {
        font-size: 0.95rem;
    }
    .submit-btn {
        font-size: 1rem;
    }
    .calc-left {
        display: none;
    }
}

.custom-select-selected .select-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select-selected img.coin-icon {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 50%;
    display: block;
}

.custom-select-options {
    position: absolute;
    top: 90%;
    right: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.custom-select-options.show {
    display: block;
}

.custom-select-options li {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.custom-select-options li:hover {
    background-color: #f3f4f6;
}

.custom-select-options img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    border-radius: 50%;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.custom-select-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dark theme styles for calculator section */
[data-theme="dark"] .calculator-section {
    background: transparent;
    color: var(--text-body);
}

[data-theme="dark"] .calculator-title h2 {
    color: var(--accent-primary);
}

[data-theme="dark"] .calc-right h2 {
    color: var(--accent-primary);
}

[data-theme="dark"] .calc-desc {
    color: var(--text-secondary);
}

/* Dark theme form labels */
[data-theme="dark"] .form-item label {
    background: var(--body-bg);
    color: var(--text-secondary);
}

/* Dark theme form controls */
[data-theme="dark"] .form-control {
    background: var(--card-bg);
    color: var(--text-body);
    border: 1px solid var(--accent-primary);
}

[data-theme="dark"] .form-control:focus {
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(61,130,246,0.15);
}

[data-theme="dark"] .form-control:disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
}

/* Dark theme custom select */
[data-theme="dark"] .custom-select-selected {
    background: var(--card-bg);
    color: var(--text-body);
    border: 1px solid var(--accent-primary);
}

[data-theme="dark"] .custom-select-selected:focus,
[data-theme="dark"] .custom-select-wrapper.open .custom-select-selected {
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(61,130,246,0.15);
}

[data-theme="dark"] .custom-select-options {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .custom-select-options li:hover {
    background-color: rgba(61, 114, 254, 0.1);
}

/* Dark theme output field */
[data-theme="dark"] #toToman.form-control {
    background-color: var(--border-color);
    color: var(--text-body);
}

/* calculator visual styles end */

/*benefits section styles start*/
.star-rating-scope {
    text-align: center;
    position: relative;
}
.star-rating-scope {
     margin-top: 2rem;
}
.star-rating-title {
    position: absolute;
    font-size: 5em;
    font-weight: bold;
    opacity: 0.03;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}
.star-rating-info-wrapper {

    -moz-font-feature-settings: 'ss02';
    -webkit-font-feature-settings: 'ss02';
    font-feature-settings: 'ss02';
}
.star-rating-info-wrapper {
    font-size: 0.9em;
    color: #848e9c;
    -moz-font-feature-settings: 'ss02';
    -webkit-font-feature-settings: 'ss02';
    font-feature-settings: 'ss02';
}

.stars{
	display: flex;
}

span.star-rating-info {
    font-size: 1.2em;
    color: #648dff;
    font-weight: bold;
    text-shadow: 0 3px 5px #3d72fe22;
	
}
form.rate-form {
    margin: 0;
}
fieldset.rating {
    all: initial;
}
.rating-stars svg {
    width: 30px;
}
.rating-stars svg path {
    fill: #0005;
}

.rating-stars svg.filled path {
    fill: #f3ba09;
}

.rating-stars svg.filled {
    filter: drop-shadow(0 5px 6px #f3ba0977) drop-shadow(0 0 1px #fff5);
}
section.features {
    display: flex;
    flex-direction: column;
    align-items: center;
}
section.features h2 {
   text-align: center;
    }
.features-wrapper {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 80px;
}
.feature-box {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.feature-box img {
        height: 50px;
        width: auto;
        object-fit: contain;
    }
.feature-box h3 {
        font-size: 1.3em;
    }
.feature-box p {
        font-size: 1.1em;
        opacity: 0.5;
        text-align: center;
        font-weight: bold;
    font-family: IRANSansWeb;
    }
    .feature-box > a {
        font-weight: bold;
        display: none;
    }

/* Feature box hover effect */
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .star-rating-title {
        font-size: 3em;
    }
    .features-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem; /* فاصله بین آیتم‌ها */
        margin-top: 40px; /* کمی کمتر برای تناسب موبایل */
    }

    .feature-box {
        width: 90%; /* برای مرکز ماندن و خوانایی */
        text-align: center;
    }

    .feature-box img {
        margin-bottom: 10px;
    }

    .feature-box h3 {
        font-size: 1.2em;
    }

    .feature-box p {
        font-size: 1em;
        line-height: 1.7;
    }
}

/* Dark theme styles for benefits section */
[data-theme="dark"] .star-rating-title {
    color: var(--text-body);
    opacity: 0.05;
}

[data-theme="dark"] .star-rating-info-wrapper {
    color: var(--text-secondary);
}

[data-theme="dark"] .feature-box h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-box p {
    color: var(--text-secondary);
}

/* benefits section styles end */

/* market detail section styles start */
.arzpaya-market-detail {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin: 70px -50vw;
    padding: 50px 0;
    background-image: linear-gradient(to bottom right, #3d72fe, #09309b);

}

.amd-wrapper {
    display: flex;
    justify-content: space-around;
}
.amd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    -moz-font-feature-settings: 'ss02';
    -webkit-font-feature-settings: 'ss02';
    font-feature-settings: 'ss02';
}

.amd-box h4 {
    font-size: 22px;
	color: white !important;
    font-weight: 500;
}
.amd-count {
    font-size: 48px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px; /* ارتفاع ثابت */
    width: 120px; /* عرض ثابت برای جلوگیری از پرش افقی */
}


.amd-period {
    font-size: 18px;
    opacity: 0.5;
    font-family: "IRANSansWeb", sans-serif;
}

.market-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.market-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    aspect-ratio: 1 / 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================
    Responsive Styles
===================== */

/* تبلت و پایین‌تر */
@media (max-width: 1024px) {
    .amd-wrapper {
        flex-wrap: wrap;
        gap: 40px;
    }

    .amd-box {
        flex: 1 1 45%;
        margin-bottom: 30px;
    }

    .amd-count {
        font-size: 40px;
        height: 60px;
        width: 110px;
    }

    .amd-box h4 {
        font-size: 20px;
    }

    .amd-period {
        font-size: 16px;
    }

    .market-spinner {
        width: 34px;
        height: 34px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .arzpaya-market-detail {
        width: 100vw;
    }
    .amd-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .amd-box {
        width: 100%;
        max-width: 320px;
    }

    .amd-box {
        width: 80%;
        max-width: 320px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .amd-count {
        font-size: 36px;
        height: 55px;
        width: 100px;
    }

    .amd-box h4 {
        font-size: 18px;
        margin-top: 10px;
    }

    .amd-period {
        font-size: 15px;
    }

    .market-spinner {
        width: 28px;
        height: 28px;
    }
}

/* market detail section styles end */

/*.coin-name-cell {*/
/*display: flex;*/
/*align-items: center;*/
/*gap: 8px;*/
/*}*/

/*.coin-icon {*/
/*width: 42px;*/
/*height: 45px;*/
/*object-fit: contain;*/
/*border-radius: 50%;*/
/*}*/

/* ===== FAQ Section ===== */
.faq-section {
    margin: 60px auto;
    max-width: 800px;
    direction: rtl;
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
}

.faq-item {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.faq-question {
    width: 85%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-size: 17px;
    font-weight: 600;
    font-family: IRANSansWeb;
    color: var(--text-body);
    padding: 20px 24px 20px 50px; /* تغییر padding برای چسبیدن متن به راست */
    display: block; /* تغییر به block برای کنترل بهتر فضا */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    position: relative;
    text-align: right;
    word-wrap: break-word;
    padding-right: 16px; /* کاهش padding سمت راست */
}

.faq-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    z-index: 1; /* اضافه کردن z-index برای اطمینان از نمایش روی متن */
    color: var(--accent-primary); /* رنگ آبی در هر دو تم */
    background-color: var(--card-bg); /* پس‌زمینه مناسب */
    padding: 2px;
    border-radius: 2px;
}

.faq-question:hover {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.faq-item.open .faq-question {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-hover);
}

.faq-item.open .faq-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* افکت باز شدن نرم و روان */
.faq-answer {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    width: 85%;
    max-width: 800px;
    margin: 8px auto 0;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    visibility: hidden;
}

/* حالت باز */
.faq-item.open .faq-answer {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
    padding: 0 20px;
    visibility: visible;
}

@media (max-width: 768px) {
    .faq-question {
        width: 100%;
        font-size: 14px;
        font-family: IRANSansWeb;
        padding: 16px 16px 16px 40px; /* تنظیم مجدد padding در موبایل */
        line-height: 1.5;
        margin: 0; /* حذف margin در موبایل */
    }
    
    .faq-icon {
        width: 14px;
        height: 14px;
        left: 16px; /* تنظیم مجدد فاصله از چپ */
        background-color: var(--card-bg); /* پس‌زمینه مناسب برای هر تم */
        padding: 2px;
        color: var(--accent-primary); /* رنگ آبی در هر دو تم */
    }

    .faq-item.open .faq-icon {
        background-color: var(--card-bg); /* پس‌زمینه مناسب برای هر تم */
        color: var(--accent-primary); /* رنگ آبی در هر دو تم */
    }
    
    /* Dark theme mobile FAQ icon styles */
    [data-theme="dark"] .faq-icon {
        background-color: transparent;
        color: white;
    }

    [data-theme="dark"] .faq-item.open .faq-icon {
        background-color: transparent;
        color: white;
    }
    .faq-answer {
        width: 100%;
        text-align: start;
    }
}
/* Dark theme styles for FAQ section */
[data-theme="dark"] .faq-title {
    color: var(--text-primary);
}

[data-theme="dark"] .faq-question {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    box-shadow: var(--shadow-subtle);
}

[data-theme="dark"] .faq-question:hover {
    background-color: rgba(61, 114, 254, 0.05);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .faq-question:hover .faq-icon {
    background-color: transparent;
    color: white;
}

[data-theme="dark"] .faq-item.open .faq-question {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .faq-answer {
    color: var(--text-secondary);
}

[data-theme="dark"] .faq-icon {
    background-color: transparent;
    color: white;
}

[data-theme="dark"] .faq-item.open .faq-icon {
    background-color: transparent;
    color: white;
}

/* faq section's styles end*/

/* bog section's style start */

.paya-blog {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 50px;
    position: relative;
}

/* هر کدام نصف عرض صفحه در دسکتاپ */
.paya-blog-wrapper,
.position-styki {
    width: 50%;
    box-sizing: border-box;
}

/* بخش متن */
.paya-blog-wrapper {
    flex-shrink: 0;
}
.paya-blog-wrapper p {
    font-family: IRANSansWeb;
    color: #656363;
    font-size: 18px;
    font-weight: 400;
}

/* بخش تصویر که ثابت می‌ماند */
.position-styki {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.position-styki img {
    width: 100%;
    height: auto;
    display: block;

}

.the-hottest-news {
    background-color: #213364;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 0;
}
.parent-p {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 30px;
    padding-top: 8px;
}
.blog-title {
    color: white !important;
    font-weight: 500;
    font-size: 18px;
    font-family: IRANSansWeb, sans-serif;
    text-align: center;
    margin: 0;
}
.blog-detail {
    color: white !important;
    font-weight: 500;
    font-size: 12px;
    font-family: IRANSansWeb, sans-serif;
    margin: 5px 0 0 0;
}

.width {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.parent-Magazine {
    display: flex;
    align-items: center;
    height: 100%;
}
.signup-Magazine {
    text-decoration: none;
    background-color: #0a7aff;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}
.signup-Magazine:hover,
.signup-Magazine:focus,
.signup-Magazine:active {
    text-decoration: none;
    background-color: #0175ed;
    color: white;
}

.parent-img-news {
    display: flex;
    align-items: center;
}
.parent-img-news img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}


/* ----- حالت موبایل ----- */
@media (max-width: 768px) {
    .paya-blog {
        flex-direction: column;
        padding: 30px 20px;
    }

    .paya-blog-wrapper {
        width: 100%;
    }

    .position-styki {
        display: none;
    }

    .parent-img-news {
        display: none;
    }

    /* Mobile optimizations for the-hottest-news section */
    .the-hottest-news {
        padding: 15px;
        gap: 10px;
    }

    .parent-p {
        margin-right: 0;
        padding-top: 0;
    }

    .the-hottest-news .blog-title {
        font-size: 14px !important;
        margin-bottom: 2px;
        line-height: 1.4;
    }

    .the-hottest-news .blog-detail {
        font-size: 10px !important;
        line-height: 1.4;
    }

    .width {
        gap: 8px;
    }

    .signup-Magazine {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: fit-content;
    }
}

/* Dark theme styles for blog section */
[data-theme="dark"] .paya-blog-wrapper p {
    color: var(--text-secondary);
}

[data-theme="dark"] .the-hottest-news {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .blog-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .blog-detail {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .signup-Magazine {
    background-color: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .signup-Magazine:hover,
[data-theme="dark"] .signup-Magazine:focus,
[data-theme="dark"] .signup-Magazine:active {
    background-color: var(--accent-secondary);
    color: white;
}

/* Dark theme styles for hero section */
[data-theme="dark"] .screen-info h1 {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .description {
    color: var(--text-secondary);
}

[data-theme="dark"] .paya-amount {
    background: var(--card-bg);
    color: var(--text-body);
    border: 2px solid var(--accent-primary);
}

[data-theme="dark"] .paya-amount:focus {
    background: var(--card-bg);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(61, 114, 254, 0.15);
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary, #3D72FE);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IRANSansWeb', sans-serif;
}

.show-more-btn:hover {
    color: var(--accent-secondary, #2b5fe0);
    text-decoration: none;
}

.show-more-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--accent-primary, #3D72FE);
}

.show-more-btn.expanded .show-more-arrow {
    transform: rotate(180deg);
}

.parent-hide {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.parent-hide.show {
    max-height: 2000px;
}

/* Dark theme support */
[data-theme="dark"] .show-more-btn {
    color: var(--accent-primary);
}

[data-theme="dark"] .show-more-btn:hover {
    color: var(--accent-secondary, #4f8bff);
}

[data-theme="dark"] .show-more-arrow {
    color: var(--accent-primary);
}