

/** blob Start --------------------------------------------------------------------- **/
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-main);
    filter: blur(40px);
    border-radius: 50%;
    opacity: var(--blob-opacity);
    /* استفاده از متغیر */
    z-index: 0;
    animation: pulse 8s infinite alternate;
    pointer-events: none;
}

.blob-tr {
    top: -200px;
    right: -200px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: var(--blob-opacity);
    }

    100% {
        transform: scale(1.1);
        opacity: calc(var(--blob-opacity) + 0.1);
    }
}

.floating-shape {
    position: fixed;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.15);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    filter: blur(60px);
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    filter: blur(50px);
    background: rgba(236, 72, 153, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .blob {
        width: 300px;
        height: 300px;
    }

    .shape-1,
    .shape-2 {
        width: 150px;
        height: 150px;
    }
}

/** blob End --------------------------------------------------------------------- **/

/** live-notification Start ---------------------------------------------------------------------*/
.live-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-card);
    /* تغییر به متغیر */
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
    border: 1px solid var(--border-color);
}

.live-notification.show {
    transform: translateY(0);
}

.live-img {
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.live-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

.live-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .live-notification {
        left: 50%;
        transform: translateX(-50%) translateY(150%);
        bottom: 100px;
        width: 90%;
    }

    .live-notification.show {
        transform: translateX(-50%) translateY(0);
    }
}

/** live-notification End ---------------------------------------------------------------------*/

/** popup Start --------------------------------------------------------------------- **/
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
    padding: 20px;
}

.popup-content {
    background: var(--bg-card);
    /* متغیر */
    color: var(--text-main);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid #ec4899;
    box-shadow: 0 0 50px rgba(236, 72, 153, 0.3);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0.7;
}

.popup-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
    font-family: inherit;
    background: var(--bg-body);
    color: var(--text-main);
}

/** popup End --------------------------------------------------------------------- **/


/** floating-contact Start --------------------------------------------------------------------- **/
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--icon-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
    z-index: 2000;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.floating-contact:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(236, 72, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/** floating-contact End --------------------------------------------------------------------- **/



/** Hero Section Start ---------------------------------------------------------------------> **/
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    position: relative;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.badge-glow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(217, 70, 239, 0.1);
    color: var(--accent);
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 900;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

.txt-type {
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent);
    }
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
    min-width: 300px;
}

.hero-img-container {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

.ai-robot-svg {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.ai-glow-blue {
    fill: #6366f1;
    filter: blur(2px);
    opacity: 0.8;
}

.ai-glow-pink {
    fill: #d946ef;
    filter: blur(2px);
    opacity: 0.8;
}

/* تغییر رنگ بدنه ربات در لایت مود */
.ai-body-white {
    fill: var(--robot-fill);
    stroke: var(--robot-stroke);
    stroke-width: 2;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
        gap: 0px;
    }

    .hero-content {
        max-width: 100%;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-image {
        max-width: 80%;
        margin-bottom: -70px;
    }

}

/** Hero Section End --------------------------------------------------------------------- **/



/** marquee stats Section ------ Start  -- **/
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    margin-top: -50px;
    margin-bottom: 50px;
    user-select: none;
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-style-box {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-card);
    /* متغیر */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: rotate(-2deg);

    transform: rotate(-2deg);

    /* فونت یا عرض را کمی دستی زیاد کنید */
    font-size: 1.05em;
    /* معادل همان ۵ درصد بزرگنمایی */
    width: 105%;
    /* برای جبران عرض */

    /* این دو خط را اضافه کنید */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    /* گاهی اوقات اضافه کردن این خط هم کمک می‌کند */
    transform-style: preserve-3d;

    padding: 25px 0;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: seamlessLoop 30s linear infinite;
    will-change: transform;
}

@keyframes seamlessLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-25%, 0, 0);
    }
}

.marquee-style-box:hover .marquee-track {
    animation-play-state: paused;
}

.stat-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.stat-item-h {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    /* متغیر */
    position: relative;
}

.stat-icon-h {
    font-size: 2rem;
    color: #d8b4fe;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    transition: transform 0.3s;
    flex-shrink: 0;
}

.stat-item-h:hover .stat-icon-h {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary);
}

.stat-text-h {
    display: flex;
    flex-direction: column;
}

.stat-number-h {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    background-image: linear-gradient(180deg, var(--text-highlight) 0%, #a855f7 100%);
    /* گرادینت تیره تر برای لایت */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.stat-label-h {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

@media (max-width: 768px) {
    .marquee-wrapper {
        margin-bottom: 30px;
        padding: 40px 0;
    }

    .marquee-style-box {
        transform: rotate(0deg) scale(1);
    }

    .stat-item-h {
        padding: 0 25px;
        gap: 10px;
    }

    .stat-number-h {
        font-size: 1.3rem;
    }

    .stat-icon-h {
        font-size: 1.5rem;
    }

    .marquee-track {
        animation-duration: 20s;
    }
}

/** marquee stats Section ------ End  -- **/

/** video Section Start ------------------------------------------------------- **/
.video-section {
    padding: 00px 20px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.video-container {
    max-width: 1150px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    group: hover;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.3s;
    background: linear-gradient(45deg, #1e1b4b, #4c1d95);
}

.video-container:hover .video-thumbnail {
    opacity: 0.3;
    transform: scale(1.02);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    animation: pulse-white 2s infinite;
}

.play-btn svg {
    fill: #4f46e5;
    margin-left: 5px;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 768px) {
    .play-btn {
        width: 60px;
        height: 60px;
    }

    .video-section {
        padding: 40px 20px;
    }
}

/** video Section End ------------------------------------------------------- **/

/** features Section Start -------------------------------------------------------------------- */
.features-section {
    padding: 0px 20px;
    max-width: 1190px;
    margin: 20px auto;
    z-index: 1;
    position: relative;
}

.features-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-card {
    background: var(--bg-glass);
    /* متغیر */
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

@media (max-width: 900px) {
    .feature-card {
        padding: 20px;
    }
}

.feature-card.special-card {
    border: 2px solid #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
    background: var(--feature-card-special-bg);
    /* متغیر */
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card);
    border-color: #8b5cf6;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-wrapper {
    width: 55px;
    height: 55px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-wrapper i {
    font-size: 24px;
    color: #8b5cf6;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-main);
    /* متغیر */
    font-weight: bold;
    line-height: 1.4;
}

.feature-card:hover .icon-wrapper {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
}

.feature-card.special-card .icon-wrapper {
    background: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.feature-card.special-card .icon-wrapper i {
    color: #8b5cf6;
}

/* در تم دارک آیکون کارت ویژه سفید شود */
[data-theme="dark"] .feature-card.special-card .icon-wrapper i {
    color: #ffffff;
}

.feature-card p {
    color: var(--text-muted);
    /* متغیر */
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    text-align: justify;
    padding-right: 5px;
}

/** features Section End -------------------------------------------------------------------- */


/** comparison table Section Start --------------------------------------------------------------------- **/
.nextfinity-responsive-wrapper {
    width: 90%;
    max-width: 1250px;
    padding-top: 10px;
    margin: 20px auto;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    box-sizing: border-box;
}

.table-title {
    color: var(--shining);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nextfinity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--bg-card);
    /* متغیر */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.nextfinity-table th,
.nextfinity-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--table-border);
    vertical-align: middle;
}

.nextfinity-table thead th {
    background-color: var(--table-head-bg);
    /* متغیر */
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 25px 15px;
    border-bottom: 2px solid var(--table-border);
}

/* هاور روی ردیف‌ها برای زیبایی در تم لایت */
.nextfinity-table tbody tr:hover {
    background-color: var(--table-row-hover);
}

.col-feature {
    color: var(--text-main);
    font-weight: 700;
    width: 25%;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0 auto;
}

/* اصلاح آیکون‌ها برای دیده شدن در تم لایت */
.feature-icon rect {
    fill: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="dark"] .feature-icon rect {
    fill: #3E335C !important;
}

.feature-icon path {
    stroke: #6366f1;
}

[data-theme="dark"] .feature-icon path {
    stroke: #D8B4FE;
}

.feature-icon path[fill] {
    fill: #6366f1;
    stroke: none;
}

[data-theme="dark"] .feature-icon path[fill] {
    fill: #D8B4FE;
}


.col-traditional {
    color: #ef4444;
    width: 25%;
}

/* قرمز */
[data-theme="dark"] .col-traditional {
    color: #fca5a5;
}

.col-nextfinity {
    color: #8b5cf6;
    font-weight: 700;
    background-color: rgba(139, 92, 246, 0.05);
    width: 25%;
}

[data-theme="dark"] .col-nextfinity {
    color: #d8b4fe;
    background-color: rgba(216, 180, 254, 0.04);
}

.col-winner {
    color: #10b981;
    font-weight: 600;
    width: 25%;
}

/* سبز */
[data-theme="dark"] .col-winner {
    color: #4ade80;
}

.nextfinity-table tr:last-child td {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .nextfinity-responsive-wrapper {
        width: 95%;
    }

    .nextfinity-table,
    .nextfinity-table thead,
    .nextfinity-table tbody,
    .nextfinity-table th,
    .nextfinity-table td,
    .nextfinity-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nextfinity-table thead {
        display: none;
    }

    .nextfinity-table tr {
        margin-bottom: 20px;
        background-color: var(--bg-card);
        border-radius: 16px;
        border: 1px solid var(--border-color);
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .nextfinity-table td {
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nextfinity-table td.col-feature {
        background-color: var(--bg-body);
        color: var(--text-main);
        font-size: 1.2rem;
        border-radius: 10px;
        justify-content: center;
        margin-bottom: 10px;
        border-bottom: none;
        display: flex;
    }

    .feature-content {
        flex-direction: column;
    }

    .nextfinity-table td::before {
        content: attr(data-label);
        font-weight: bold;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-left: 15px;
    }

    .col-nextfinity {
        background-color: transparent;
    }
}

/** comparison table Section End --------------------------------------------------------------------- **/

/** roi Section Start ---------------------------------------------------------------------> **/
.roi-section {
    padding: 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
	/*(border-width:1px;
	border-style:solid;*/
}

.roi-container {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-card);
    /* متغیر */
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.roi-inputs {
    flex: 1;
    padding: 40px;
    border-left: 1px solid var(--border-color);
    min-width: 350px;
}

.roi-results {
    flex: 1;
    padding: 40px;
    background: rgba(99, 102, 241, 0.05);
    /* پس زمینه خیلی محو برای تم لایت */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    min-width: 300px;
}

[data-theme="dark"] .roi-results {
    background: rgba(0, 0, 0, 0.2);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.result-row.final {
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 0;
}

.result-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.result-value {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
}

.text-danger {
    color: #f87171;
}

.text-info {
    color: #60a5fa;
}

[data-theme="light"] .text-info {
    color: #4f46e5;
}

.roi-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
    display: block;
    margin-top: 5px;
}

.range-group {
    margin-bottom: 30px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-main);
}

.range-input {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d8b4fe;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(216, 180, 254, 0.5);
}

[data-theme="light"] .range-input::-webkit-slider-thumb {
    background: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

@media (max-width: 1150px) {
    .roi-container {
        flex-direction: column;
    }

    .roi-inputs,
    .roi-results {
        border: none;
        width: 100%;
        padding: 30px;
    }

    .roi-inputs {
        border-bottom: 1px solid var(--border-color);
    }
}

/** roi Section End --------------------------------------------------------------------->





/** Steps Section Start --------------------------------------------------------------------- **/
.steps-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-card);
    /* هماهنگ با تم */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* استایل کارت فعال (آبی رنگ) */
.step-card.active {
    background: var(--primary);
    /* رنگ اصلی سایت */
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.step-card:not(.active):hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.step-number {
    font-size: 1.1rem;
    font-weight: 800;
}

.step-card.active .step-number {
    color: #ffffff;
}

.step-card:not(.active) .step-number {
    color: var(--text-main);
}

.step-icon {
    /* تغییر سایز برای SVG */
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.step-card.active .step-icon {
    color: white;
}

.step-card:not(.active) .step-icon {
    color: var(--text-muted);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card.active .step-title {
    color: white;
}

.step-card:not(.active) .step-title {
    color: var(--text-main);
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.7;
}

.step-card.active .step-desc {
    color: rgba(255, 255, 255, 0.9);
}

.step-card:not(.active) .step-desc {
    color: var(--text-muted);
}

/* عنوان اصلی بخش */
.steps-main-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--shining);
    margin-bottom: 10px;
}

.steps-highlight {
    color: var(--primary);
    /* هایلایت آبی */
    position: relative;
    display: inline-block;
}

/* خط زیر کلمات هایلایت شده */
.steps-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    z-index: -1;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .steps-main-title {
        font-size: 1.6rem;
    }
}

/** Steps Section End --------------------------------------------------------------------- **/


/** ecosystem Section Start --------------------------------------------------------------------- **/
/* تنظیمات کلی سکشن */
.ecosystem-section {
    padding: 40px 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    /* جهت اطمینان از چیدمان صحیح */
    display: flex;
    justify-content: center;

}

/* نگهدارنده اصلی برای دو ستون */
.ecosystem-wrapper {
    display: flex;
    align-items: center;
    /* تراز عمودی وسط */
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    /* حداکثر عرض محتوا */
    gap: 20px;
    /* فاصله بین متن و سیاره‌ها */

}

/* ستون متن (سمت راست در RTL) */
.text-column {
    flex: 1;
    /* فضای منعطف */
    text-align: right;
    padding-left: 20px;
    z-index: 2;
    /* روی سیاره‌ها قرار بگیرد اگر همپوشانی داشت */
}

/* ستون سیاره‌ها (سمت چپ در RTL) */
.orbit-column {
    flex: 1;
    display: flex;
    justify-content: center;
    /* سیاره‌ها در وسط ستون خود باشند */
}

.orbit-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* کمی کوچک‌تر برای جا شدن در دو ستون */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.orbit-center {
    width: 100px;
    height: 100px;
    background: var(--bg-body, #fff);
    /* فال‌بک رنگ سفید */
    border: 1px solid #4f46e5;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed var(--border-color, #ccc);
    /* فال‌بک رنگ */
    border-radius: 50%;
    animation: rotate linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[data-theme="dark"] .orbit-ring {
    border-color: rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    animation-duration: 20s;
}

.ring-2 {
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.planet {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #eee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.8rem;
    box-shadow: var(--card-shadow, 0 2px 5px rgba(0, 0, 0, 0.1));
}

.p-1 {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.p-2 {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.p-3 {
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
}

/* اضافه کردن پوزیشن برای سیاره چهارم که در کد شما بود */
.p-4 {
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.ring-1 .planet {
    animation: counter-rotate 20s linear infinite;
}

.ring-2 .planet {
    animation: counter-rotate-reverse 30s linear infinite;
}

@keyframes counter-rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

@keyframes counter-rotate-reverse {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* مدیا کوئری برای تبلت و موبایل (تبدیل به تک ستون) */
@media (max-width: 992px) {
    .ecosystem-wrapper {
        flex-direction: column;
        /* چینش عمودی */
        text-align: center;
    }

    .text-column {
        text-align: center;
        padding-left: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .orbit-container {
        /* کوچک کردن کمی در حالت تبلت */
        transform: scale(0.85);
    }
}

/* مدیا کوئری برای موبایل */
@media (max-width: 550px) {
    .orbit-container {
        transform: scale(0.65);
        height: 300px;
        margin-top: -30px;
        /* کشیدن به سمت بالا برای کاهش فضای خالی */
    }

    .ecosystem-section {
        padding: 30px 10px;
    }

    .text-column p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* گوشی‌های خیلی کوچک */
@media (max-width: 380px) {
    .orbit-container {
        transform: scale(0.85);
        height: 360px;
    }
}

/** ecosystem Section End --------------------------------------------------------------------- **/

/**  pricing Section Start --------------------------------------------------------------------- **/
/* ایمپورت فونت وزیرمتن */

/* متغیرهای رنگی اختصاصی این بخش (گرادینت‌ها و رنگ‌های برند ثابت می‌مانند) */
:root {
    --nf-primary: #7c3aed;
    --nf-secondary: #8b5cf6;
    /* --nf-dark حذف شد چون با --text-main جایگزین می‌شود */
    --nf-gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}


/**  pricing Section End --------------------------------------------------------------------- **/



/**  cta Section Start --------------------------------------------------------------------- **/
.cta-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: none;
    margin: 0 auto 100px auto;
    box-shadow: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.cta-decor {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 20px;
        border-radius: 20px;
        margin-bottom: 50px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}


/**  cta Section End --------------------------------------------------------------------- **/





/** Consulting request form Section  Start --------------------------------------------------------------------- **/
/* --- استایل‌های بخش فرم مشاوره --- */
.consultation-section {
    /* اصلاح ۱: اضافه کردن پدینگ بالا/پایین و چپ/راست برای جلوگیری از چسبیدن به لبه‌ها */
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    /* اصلاح ۲: جلوگیری از بیرون زدن blob و ایجاد اسکرول افقی مزاحم */
    overflow: hidden;
    width: 100%;
    /* اطمینان از عرض کامل */
}

.consult-wrapper {
    max-width: 1130px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* ستون توضیحات و ستون فرم */
    gap: 50px;
    /* افزایش فاصله بین ستون‌ها */
    align-items: center;
    /* تراز عمودی وسط */
}

/* کارت سمت راست: اطلاعات تماس و متن */
.consult-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* حذف padding-left اجباری که در موبایل مشکل ساز بود */
}

.consult-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(236, 72, 153, 0.1);
    color: #d946ef;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    /* اصلاح عرض */
    margin-bottom: 20px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.consult-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    /* فونت واکنش‌گرا */
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-main);
}

.consult-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.05rem;
    text-align: justify;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    flex-shrink: 0;
    /* جلوگیری از جمع شدن آیکون */
}

.c-item:hover .c-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.c-text h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.c-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* کارت سمت چپ: فرم */
.consult-form-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* خط رنگی بالای فرم */
.consult-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-main);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
    /* حذف سایه پیش‌فرض مرورگر */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--bg-card);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* دکمه ارسال */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

/* ریسپانسیو - اصلاح شده برای جلوگیری از بهم ریختگی */
@media (max-width: 900px) {
    .consultation-section {
        padding: 40px 15px;
        /* تنظیم پدینگ در موبایل */
    }

    .consult-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .consult-info-card {
        padding-left: 0;
        text-align: center;
        align-items: center;
    }

    .consult-desc {
        text-align: center;
    }

    .contact-items {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* در موبایل جهت آیتم‌ها همان راست به چپ بماند بهتر است */
    .c-item {
        justify-content: flex-start;
    }

    .consult-form-card {
        padding: 25px 20px;
        /* کاهش پدینگ داخلی کارت فرم در موبایل */
    }

    .form-grid {
        grid-template-columns: 1fr;
        /* تک ستونه شدن فیلدها */
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/** Consulting request form Section  End --------------------------------------------------------------------- **/

/** About Section Start --------------------------------------------------------------------- **/
/* --- استایل‌های اختصاصی این بخش --- */
.home-about-section {
    margin-top: -60px;
    /* تغییر ۱: پدینگ چپ و راست برابر شد تا مشکل کشیدگی به چپ حل شود */
    padding: 100px 20px 0px 20px;
    #background: linear-gradient(to bottom, var(--bg-body), var(--bg-card));
    position: relative;
    overflow: hidden;
    #border-width: 1px;
    #border-style: solid;
}

.home-about-container {
    max-width: 1170px;
    margin: 0 auto;
    padding-bottom: 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    /* تغییر ۲: مقدار غیرمعتبر right به center تغییر کرد */
    align-items: center;
}

/* ستون متن */
.ha-content {
    position: relative;
    z-index: 2;
}

.ha-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    /* Primary tint */
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ha-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.3;
}

.ha-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: justify;
}

/* دکمه لینک */
.ha-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
}

.ha-link:hover {
    color: var(--accent);
    padding-right: 10px;
}

/* ستون تصویر */
.ha-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* کارت شیشه‌ای گرافیکی */
.ha-card-glass {
    background: var(--bg-glass);
    /* متغیر از صفحه اصلی */
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 100px;
    position: relative;
    box-shadow: var(--card-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.5s;
}

.ha-visual:hover .ha-card-glass {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* SVG */
.ha-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(99, 102, 241, 0.15));
}

/* اشکال پس زمینه */
.ha-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-main);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseBlob 5s infinite alternate;
}

@keyframes pulseBlob {
    0% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ریسپانسیو - اصلاح شده برای نمایش متن و مخفی کردن تصویر */
@media (max-width: 900px) {
    .home-about-container {
        grid-template-columns: 1fr;
        /* تک ستونه شدن */
        text-align: center;
        gap: 0;
    }

    .ha-link {
        margin: 0 auto;
    }

    .ha-desc {
        text-align: center;
    }

    /* تغییر ۳: مخفی کردن کامل بخش تصویر در موبایل */
    .ha-visual {
        display: none !important;
    }

    /* تغییر ۴: اطمینان از نمایش بخش محتوای متنی */
    .ha-content {
        display: block !important;
        width: 100%;
    }
}



/** About Section End --------------------------------------------------------------------- **/


/** faq Section Start --------------------------------------------------------------------- **/
.faq-section {
    max-width: 800px;
    width: 100%;
    /* اطمینان از واکنش‌گرایی در موبایل */
    margin: 100px auto 80px auto;
    /* افزایش فاصله از بالا به ۱۰۰ پیکسل */
    padding: 0 20px;
    z-index: 1;
    position: relative;
}

.faq-item {
    margin-bottom: 15px;
    background: var(--bg-card);
    /* استفاده از متغیر رنگ زمینه کارت */
    border: 1px solid var(--border-color);
    /* کادربندی منظم */
    border-radius: 16px;
    /* گرد کردن گوشه‌ها */
    overflow: hidden;
    /* برای جلوگیری از بیرون زدگی محتوا */
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.faq-item.active {
    border-color: var(--primary);
    /* تغییر رنگ بوردر در حالت فعال */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 20px;
    /* افزایش فضای کلیک */
    color: var(--text-main);
    transition: background 0.3s;
}

@media(max-width:600px) {
    .faq-question {
        font-size: 14px;
    }
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.05);
    /* افکت هاور بسیار ملایم */
}

.faq-question span {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    /* انیمیشن نرم برای چرخش */
    line-height: 1;
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    /* تنظیم فاصله متن پاسخ */
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease-in-out;
    text-align: justify;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    display: block;
    border-top-color: var(--border-color);
    /* خط جداکننده سوال و جواب */
    padding-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/** faq Section End --------------------------------------------------------------------- **/




/** --- BLOG & POST PAGES START --- **/

/* Blog Hero (simpler than home hero) */
.blog-hero {
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--shining);
    margin-bottom: 15px;
    font-weight: 900;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Blog Card (Inherits glass effect) */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-body);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-end; /* Push to bottom right in RTL */
}

.read-more-link:hover {
    gap: 8px;
}

/* --- SINGLE POST STYLES --- */

.post-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.single-post-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* Article Content Styling (Typography) */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--shining);
    margin: 40px 0 20px 0;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 30px 0 15px 0;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 25px;
    padding-right: 25px; /* RTL Padding */
    color: var(--text-muted);
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content blockquote {
    background: rgba(139, 92, 246, 0.05);
    border-right: 4px solid var(--primary); /* RTL Border */
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-main);
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 30px;
    transition: 0.3s;
}

.back-to-blog:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Responsive adjustment for blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .post-wrapper {
        margin: 20px auto;
    }
}
/** --- BLOG & POST PAGES END --- **/