@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');




/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader .loader-svg {
    width: 55px;
    height: 55px;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



:root {
    --purple: #4b239d;
    --purple-dark: #391778;
    --text: #17151b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Pinar';
    src: url('/font/Pinar-DS1-FD-Medium.woff2') format('woff2'),
         url('/font/Pinar-DS1-FD-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Pinar', Tahoma, sans-serif;
    color: var(--text);
    background: #fff;
    max-width: 1440px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-header {
    width: 100%;
    padding: 28px 5.1% 0;
    position: relative;
    z-index: 10;
}

.navbar {
    width: 100%;

    min-height: 73px;
    margin: 0 auto;
    padding: 14px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(91, 44, 169, 0.04);
    box-shadow: 0 8px 42px rgba(81, 39, 151, 0.11);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    width: 143px;
    max-height: 66px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3.1vw, 58px);
    flex: 1;
}

.nav-links a {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
    color: #212529;
}

.nav-links a:hover {
    color: var(--purple);
}

.phone-button {
    min-width: 168px;
    min-height: 44px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--purple);
    color: #fff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    justify-content: flex-start;

}

.phone-button:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.phone-button svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.menu-toggle {
    display: none;
}

/* منوی موبایل */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(17, 10, 28, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.mobile-menu {
    position: fixed;
    z-index: 31;
    top: 0;
    left: 0;
    width: min(82vw, 330px);
    height: 100vh;
    height: 100dvh;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    box-shadow: 12px 0 45px rgba(30, 10, 55, 0.14);
    direction: rtl;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee8f7;
}

.mobile-menu-header span {
    color: var(--purple);
    font-size: 19px;
    font-weight: 800;
}

.mobile-menu-header button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #f4effc;
    color: var(--purple);
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu>a:not(.mobile-phone) {
    padding: 14px 10px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}

.mobile-menu>a:not(.mobile-phone):hover {
    color: var(--purple);
    background: #f7f2ff;
}

.mobile-phone {
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 999px;
    text-align: center;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open .mobile-menu {
    transform: translateX(0);
    visibility: visible;
}

/* تبلت */

@media (max-width: 1050px) {
    .site-header {
        padding: 18px 3.5% 0;
    }

    .navbar {
        min-height: 88px;
        padding: 12px 26px;
        gap: 18px;
    }

    .logo {
        margin-left: auto;
        margin-right: 0;
    }

    .logo img {
        width: 150px;
        max-height: 48px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .phone-button {
        min-width: 175px;
        min-height: 48px;
        padding: 0 32px;
        font-size: 14px;
    }
}

/* موبایل */

@media (max-width: 760px) {
    .site-header {
        padding: 14px 16px 0;
    }

    .navbar {
        min-height: 70px;
        padding: 10px 17px;
        border-radius: 22px;
        
    }

    .nav-links,
    .phone-button {
        display: none;
    }

    .logo {
        margin-right: auto;
    }

    .logo img {
        width: 150px;
        max-height: 48px;
        margin-left: auto;
    }

    .menu-toggle {
        width: 43px;
        height: 43px;
        padding: 10px 9px;
        border: none;
        border-radius: 13px;
        background: #f4effc;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .menu-toggle i {
        font-size: 21px;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2.5px;
        border-radius: 4px;
        background: var(--purple);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}



/****************************************************MAIN*********************************/

@font-face {
    font-family: 'Pinar';
    src: url('font/Pinar-DS1-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --purple: #5724b8;
    --purple-dark: #40168f;
    --text: #17151b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pinar', Tahoma, sans-serif;
    direction: rtl;
}

a {
    text-decoration: none;
}

.hero {
    width: 100%;
    padding: 60px 5%;
    overflow: hidden;
    background: #fff;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.hero-content {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.hero-content h1 {
    font-size: clamp(28px, 3.2vw, 43px);
    line-height: 1.7;
    font-weight: 800;
    color: #212529;
    margin-bottom: 25px;
    display: flex;
}

.hero-content h1 span {
    color: var(--purple);
}

.hero-subtitle {
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 23px;
    line-height: 1.9;
    margin-bottom: 10px;
    color: #212529;
    font-weight: 600;
}

.hero-description {
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 23px;
    line-height: 2;
    color: #212529;
    margin-bottom: 65px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    min-height: 58px;
    padding: 7px 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s ease;
}


.btn-primary {
    font-size: 13px;
    color: #fff;
    background: var(--purple);
    border: 2px solid var(--purple);
}

.btn-primary:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
    transform: translateY(-3px);
}

.btn-outline {
    font-size: 13px;
    color: var(--purple);
    background: #fff;
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    color: #fff;
    background: var(--purple);
    transform: translateY(-3px);
}

.btn i {
    font-size: 20px;
}

.hero-image {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    object-fit: contain;
}

/* تبلت */

@media (max-width: 1024px) {
    .hero {
        padding: 45px 5%;
    }

    .hero-container {
        gap: 25px;
    }

    .hero-description {
        margin-bottom: 35px;
    }

    .hero-buttons {
        gap: 14px;
    }

    .btn {
        min-height: 52px;
        padding: 10px 18px;
        font-size: 15px;
    }
}

/* موبایل: متن بالا، عکس پایین */

@media (max-width: 760px) {
    .hero {
        padding: 35px 20px 20px;
    }

    .hero-container {
        flex-direction: column;
        gap: 25px;
    }

    .hero-content {
        width: 100%;
        text-align: right;
    }

    .hero-content h1 {
        font-size: clamp(27px, 7vw, 38px);
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 21px;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 17px;
        line-height: 2;
        margin-bottom: 25px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }

    .btn {
        min-height: 49px;
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 10px;
    }

    .btn i {
        font-size: 17px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        width: 100%;
        max-width: 520px;
    }
}

/* موبایل کوچک */

@media (max-width: 380px) {
    .hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/**************************************************** feature MAIN*********************************/

.features {
    width: 100%;
    padding: 0 5%;
    position: relative;
    z-index: 2;
    direction: rtl;
}

.features-container {
    width: 100%;
    max-width: 1440px;
    min-height: 100px;
    margin: -61px auto;
    padding: 20px 35px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 100px;

    background: #fff;
    border: 1px solid #f5f0fc;
    border-radius: 35px;
    box-shadow: 0 0 50px #502aa159;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5724b8;
    background: #e4d5ff;
    border-radius: 50%;
}


.feature-icon i {
    font-size: 30px;
}

.feature-text {
    min-width: 0;
    text-align: right;
}

.feature-text h3 {
    margin: 0 0 6px;
    color: #212529;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;
}

.feature-text p {
    margin: 0;
    color: #212529;
    font-size: 11px;
    line-height: 1.9;
}

/* تبلت */

@media (max-width: 1050px) {
    .features {
        padding: 0 3%;
    }

    .features-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 15px;
        padding: 25px;
        border-radius: 28px;
        margin-top: -12px;
    }

    .feature-item {
        justify-content: flex-start;
        gap: 14px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }
}

/* موبایل */

@media (max-width: 600px) {
    .features {
        padding: 0 16px;
    }

    .features-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
        padding: 12px;
        border-radius: 24px;
        margin-top: -21px;
    }

    .feature-item {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        padding: 15px 0;
    }

    .feature-item+.feature-item {
        border-top: none;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .feature-icon i {
        font-size: 24px;
    }

    .feature-text h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .feature-text p {
        font-size: 10px;
    }
}


/**************************************************** about us*********************************/

/* ============ بخش درباره ما ============ */
.about-section {
    width: 100%;
    max-width: 1440px;
    margin: 115px auto;
    margin-bottom: 0px;
    padding: 60px 40px;
}

.about-container {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 23px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    box-shadow: 0 0 50px #502aa159;
}

/* متن سمت راست */
.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    min-width: 0;
}

.about-label {
    color: #502AA1;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.about-title {
    color: #212529;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text {
    color: #212529;
    font-size: 16px;
    line-height: 2;
    text-align: right;
    margin-bottom: 30px;
}

.about-btn {
    display: inline-block;
    background-color: #502AA1;
    color: #ffffff;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 39px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(80, 42, 161, 0.3);
}

.about-btn:hover {
    background-color: #3d1f7d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(80, 42, 161, 0.4);
}

/* تصویر سمت چپ */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.about-image img {
    width: 100%;

    height: auto;
    display: block;
    object-fit: contain;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 1200px) {
    .about-container {
        padding: 40px;
        gap: 30px;
    }

    .about-title {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
    }

    .about-content {
        align-items: anchor-center;
        text-align: right;
        order: 1;
    }

    .about-text {
        text-align: center;
    }

    .about-image {
        order: 2;
    }

    .about-image img {
        max-width: 485px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 40px 20px;
    }

    .about-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .about-title {
        font-size: 18px;
        line-height: 1.7;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.9;
    }

    .about-label {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .about-btn {
        font-size: 12px;
        padding: 12px 32px;
    }

    .about-image img {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 30px 15px;
    }

    .about-container {
        padding: 25px 16px;
    }

    .about-title {
        font-size: 16px;
    }

    .about-text {
        font-size: 13px;
        line-height: 1.8;
    }

    .about-btn {
        font-size: 13px;
        padding: 11px 28px;
        width: 100%;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }
}

/* ============ بخش خدمات ما ============ */
.services-section {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px;
    overflow: hidden;
}

/* سایه / دایره بنفش گرد در سمت راست - زیر همه محتواها */
.services-glow {
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* لایه داخلی بالای سایه */
.services-inner {
    position: relative;
    z-index: 1;
}

/* تیتر */
.services-title {
    text-align: center;
    color: #212529;
    font-size: 20Px;
    font-weight: 800;
    margin-bottom: 27px;
    font-family: 'Pinar', Tahoma, sans-serif;
    margin-top: -72px;
    z-index: 99;
}

/* گرید کارت ها */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* کارت */
.service-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 0 50px #502aa159;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);

}

/* دایره ایکون */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #502AA1 0%, #1D0F3B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 12px 0 45px rgba(30, 10, 55, 0.14);
    flex-shrink: 0;
}

/* عکس PNG داخل دایره */
.service-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    /* اگر PNG مشکی بود سفید بشه */
}

/* تیتر کارت */
.service-card-title {
    color: #212529;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

/* متن کارت */
.service-card-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    font-family: 'Pinar', Tahoma, sans-serif;
}

/* ============================================
   ریسپانسیو
   ============================================ */

/* تبلت: ۳ تا کنار هم + آخری وسط زیرشون */
@media (max-width: 992px) {
    .services-section {
        padding: 60px 24px;
    }

    .services-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* کارت چهارم بره وسط ردیف بعد */
    .service-card:nth-child(4) {
        grid-column: 2 / 3;
    }

    .services-glow {
        width: 350px;
        height: 350px;
        right: -100px;
    }
}

/* موبایل: ۲ تا کنار هم */
@media (max-width: 640px) {
    .services-section {
        padding: 50px 16px;
    }

    .services-title {
        font-size: 22px;
        margin-bottom: 30px;
        margin-top: -47px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* ریست کردن حالت تبلت */
    .service-card:nth-child(4) {
        grid-column: auto;
    }

    .service-card {
        padding: 24px 14px;
        border-radius: 18px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .service-icon img {
        width: 24px;
        height: 24px;
    }

    .service-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-card-text {
        font-size: 12px;
        line-height: 1.8;
    }

    .services-glow {
        width: 250px;
        height: 250px;
        right: -80px;
        opacity: 0.7;
    }
}

/* ============ بخش آخرین نمونه کار ها ============ */
.portfolio-section {
    width: 100%;
    max-width: 1440px;
    margin: -78px auto;
    padding: 80px 40px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

/* هدر: تیتر وسط + دکمه چپ */
.portfolio-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    min-height: 55px;
}

.portfolio-title {
    color: #212529;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin: 0;
}

/* دکمه مشاهده همه - سمت چپ */
.portfolio-view-all {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #502AA1;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 50px #502aa159;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.portfolio-view-all:hover {
    background-color: #3d1f7d;
    transform: translateY(-50%) translateX(-4px);
}

/* گرید کارت ها */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* کارت نمونه کار */
.portfolio-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 380px;
    box-shadow: 0 0 50px #502aa159;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 70px #502aa159;
}

/* تصویر پس زمینه */
.portfolio-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* باکس سفید وسط */
.portfolio-info {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 65%;
    margin: 60px auto;
    border-radius: 18px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 0 50px #502aa159;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* تیتر داخل باکس */
.portfolio-info-title {
    color: #212529;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

/* متن داخل باکس */
.portfolio-info-text {
    color: #212529;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

/* بخش آیکون های تکنولوژی */
.portfolio-tech {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.portfolio-tech img {
    max-width: 180px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* لینک مشاهده نمونه کار */
.portfolio-info-link {
    color: #502AA1;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Pinar', Tahoma, sans-serif;
    transition: opacity 0.3s ease;
}

.portfolio-info-link:hover {
    opacity: 0.7;
}

.portfolio-info-link i {
    font-size: 10px;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .portfolio-grid {
        gap: 24px;
    }

    .portfolio-info {
        width: 75%;
        padding: 24px 20px;
    }
}

@media (max-width: 992px) {
    .portfolio-section {
        padding: 60px 24px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-info {
        width: 70%;
        margin: 50px auto;
    }

    .portfolio-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 50px 16px;
    }

    /* هدر در موبایل: تیتر بالا، دکمه زیرش وسط */
    .portfolio-header {
        flex-direction: column;
        gap: 16px;
        min-height: auto;
    }

    .portfolio-view-all {
        position: static;
        transform: none;
        padding: 12px 32px;
        font-size: 14px;
    }

    .portfolio-view-all:hover {
        transform: translateY(-3px);
    }

    .portfolio-card {
        min-height: 340px;
    }

    .portfolio-info {
        width: 85%;
        padding: 22px 18px;
        margin: 40px auto;
    }

    .portfolio-info-title {
        font-size: 15px;
    }

    .portfolio-info-text {
        font-size: 12px;
        line-height: 1.8;
    }

    .portfolio-tech img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .portfolio-section {
        padding: 40px 12px;
    }

    .portfolio-title {
        font-size: 18px;
    }

    .portfolio-card {
        min-height: 320px;
        border-radius: 18px;
    }

    .portfolio-info {
        width: 90%;
        padding: 18px 14px;
        margin: 30px auto;
        border-radius: 14px;
    }

    .portfolio-info-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .portfolio-info-text {
        font-size: 11px;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .portfolio-tech img {
        max-width: 130px;
    }

    .portfolio-view-all {
        padding: 11px 28px;
        font-size: 13px;
    }
}

/* ============ بخش مدیرعامل ============ */
.ceo-section {
    width: 100%;
    padding: 80px 40px;
    font-family: 'Pinar', Tahoma, sans-serif;
    background: #ffffff;
    overflow: hidden;
    margin-top: 69px;
}

.ceo-container {
    position: relative;
    max-width: 1378px;
    margin: 0 auto;
}

.ceo-top-decoration {
    position: absolute;
    top: -94px;
    left: 43%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 800px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.ceo-top-decoration img {
    width: 100%;
    height: auto;
    display: block;
}

/* لایه داخلی */
.ceo-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* ===== سمت راست: عکس مدیرعامل ===== */
.ceo-image-wrapper {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    position: relative;
    z-index: 2;
}

/* دایره بنفش پشت عکس */
.ceo-image-circle {
    position: relative;
    width: 380px;
    height: 380px;


    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;

}

.ceo-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

/* ===== سمت چپ: متن ===== */
.ceo-content {
    flex: 1;
    min-width: 0;
    text-align: left;
    order: 2;
    position: relative;
    z-index: 2;
}

.ceo-name {
    color: #212529;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px 0;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.ceo-role {
    color: #adb5bd;
    font-size: 14px;
    font-weight: 400;
    display: block;
    margin-bottom: 24px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.ceo-quote {
    color: #212529;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.1;
    text-align: justify;
    margin: 0;
    font-family: 'Pinar', Tahoma, sans-serif;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .ceo-image-wrapper {
        flex: 0 0 340px;
    }

    .ceo-image-circle {
        width: 300px;
        height: 300px;
    }

    .ceo-quote {
        font-size: 14px;
        line-height: 2;
    }
}

/* تبلت و موبایل: تزئین بالا → نام → سمت → متن → عکس مدیرعامل پایین */
@media (max-width: 992px) {
    .ceo-section {
        padding: 60px 24px;
    }

    .ceo-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    /* تزئین میاد داخل جریان عادی، بالای همه */
    .ceo-top-decoration {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        order: 1;
        opacity: 1;
    }

    .ceo-top-decoration img {
        width: 100%;
        height: auto;
        display: block;
    }

    .ceo-content {
        order: 2;
        text-align: center;
        width: 100%;
    }

    .ceo-quote {
        text-align: center;
    }

    .ceo-image-wrapper {
        order: 3;
        flex: 0 0 auto;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .ceo-section {
        padding: 50px 16px;
    }

    .ceo-inner {
        gap: 24px;
    }

    .ceo-top-decoration {
        max-width: 340px;
    }

    .ceo-image-circle {
        width: 284px;
        height: 351px;
    }

    .ceo-name {
        font-size: 18px;
        text-align: left;
        margin-bottom: -5px;
    }

    .ceo-role {
        font-size: 13px;
        margin-bottom: 18px;
        text-align: left;
    }

    .ceo-quote {
        font-size: 13px;
        line-height: 1.9;
    }
}

@media (max-width: 480px) {
    .ceo-section {
        padding: 40px 12px;
    }

    .ceo-inner {
        gap: 20px;
    }

    .ceo-top-decoration {
        max-width: 280px;
    }

    .ceo-image-circle {
        width: 220px;
        height: 220px;
    }

    .ceo-name {
        font-size: 16px;
    }

    .ceo-role {
        font-size: 12px;
    }

    .ceo-quote {
        font-size: 12px;
        line-height: 1.85;
        text-align: justify;
    }
}


/* ============ بخش بنر اعتماد مشتریان ============ */
.custom-banner-section {
    width: 100%;
    max-width: 1404px;
    position: relative;
    margin: 0 auto;
    padding: 40px 20px;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 450;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -60px;
}

/* پس‌زمینه SVG */
.banner-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* محتوای داخل بنر */
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 1. لوگوی مشتریان */
.clients-single-image {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.clients-single-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    margin-top: -45px;
}

.clients-single-image img:hover {
    opacity: 1;
}

/* 2. بخش جدید: متن + تصویر آمار (بالای لوگوی وسط) */
.banner-texts-new {
    position: absolute;
    bottom: 22%;
    /* بالاتر از لوگوی وسط */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
    width: 100%;
    gap: 10px;
}

/* تصویر آمار */
.stats-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-image img {
    width: 439px;
    height: auto;
    object-fit: contain;
    margin-bottom: -148px;
    margin-left: -67px;
}

/* متن سپاس */
.thanks-text {
    color: #ffffff;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 377px;

}

.sp {
    margin-left: 401px;
    color: #ffffff;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 15px;
    margin-bottom: 18px;
    margin-top: -19px;
}

/* 3. لوگوی وسط (داخل دایره) */
.bottom-content-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 35%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 36px;
}

.bottom-content-image img {
    width: 60%;
    height: auto;
    object-fit: contain;
    margin: 0;
    /* حذف مارجین قبلی */
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .thanks-text {
        font-size: 26px;
    }

    .stats-image img {
        width: 100px;
    }

    .bottom-content-image {
        width: 70px;
        height: 70px;
    }

    .banner-texts-new {
        bottom: 20%;
    }
}

@media (max-width: 992px) {
    .clients-single-image {
        top: 10%;
        width: 90%;
    }

    .thanks-text {
        font-size: 22px;
    }

    .stats-image img {
        width: 85px;
    }

    .bottom-content-image {
        width: 60px;
        height: 60px;
    }

    .banner-texts-new {
        bottom: 18%;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .clients-single-image {
        top: 33%;
        width: 95%;
    }

    .sp {
        margin-top: -7px;
        margin-left: 401px;
        font-size: 5px;
        margin-left: 103px;
    }

    .thanks-text {
        font-size: 9px;
        margin-left: 91px;
    }

    .stats-image img {
        width: 108px;
        margin-bottom: -68px;
        margin-left: -29px;
    }

    .bottom-content-image {
        width: 20px;
        height: 20px;
        transform: translate(-50%, 30%);
        margin-bottom: 10px;
    }

    .banner-texts-new {
        bottom: 16%;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .clients-single-image {
        top: 6%;
    }

    .thanks-text {
        font-size: 14px;
    }

    .stats-image img {
        width: 55px;
    }

    .bottom-content-image {
        width: 40px;
        height: 40px;
    }

    .banner-texts-new {
        bottom: 14%;
        gap: 4px;
    }
}

/* ============ بخش پکیج‌های مناسب کسب و کار ============ */
.pricing-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 15px 0px;
    font-family: 'Pinar', Tahoma, sans-serif;
    position: relative;
    overflow: hidden;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* هدر */
.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-title {
    color: #212529;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-subtitle {
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
}

/* گرید کارت‌ها */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* برای هم‌قد بودن کارت‌ها */
}

/* استایل پایه کارت */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e0d7f3;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(80, 42, 161, 0.03);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(80, 42, 161, 0.08);
}

/* کارت ویژه (وسط) */
.pricing-card.featured {
    border: 2px solid #502AA1;
    box-shadow: 0 10px 30px rgba(80, 42, 161, 0.15);
    transform: scale(1.02);
    /* کمی بزرگتر */
    z-index: 3;
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 40px rgba(80, 42, 161, 0.25);
}

/* لیبل پیشنهاد ما */
.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #502AA1;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    white-space: nowrap;
}

/* بالای کارت (تیتر و توضیح) */
.card-top {
    text-align: center;
    margin-bottom: 30px;
}

.card-title {
    color: #212529;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-desc {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.6;
}

/* بخش قیمت */
.card-price-box {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0d7f3;
    margin-bottom: 25px;
}

.price-label {
    color: #6c757d;
    font-size: 14px;
    margin-left: 5px;
}

.price-amount {
    color: #502AA1;
    font-size: 26px;
    font-weight: 800;
}

.price-currency {
    color: #6c757d;
    font-size: 14px;
    margin-right: 5px;
}

/* لیست ویژگی‌ها */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    /* برای هم‌قد شدن دکمه‌ها در پایین */
}

.card-features li {
    color: #212529;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* آیکون تیک */
.card-features li i {
    color: #502AA1;
    background-color: #f0ebf9;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

/* دکمه‌ها */
.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pinar', Tahoma, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* دکمه با بوردر (کارت‌های کناری) */
.outline-btn {
    color: #502AA1;
    background-color: transparent;
    border: 1px solid #502AA1;
}

.outline-btn:hover {
    background-color: #f0ebf9;
}

/* دکمه توپر (کارت وسط) */
.solid-btn {
    color: #ffffff;
    background-color: #502AA1;
    border: 1px solid #502AA1;
}

.solid-btn:hover {
    background-color: #3d1f7d;
    border-color: #3d1f7d;
}

/* ============================================
   ریسپانسیو
   ============================================ */

/* تبلت و لپ‌تاپ کوچک */
@media (max-width: 1024px) {
    .pricing-section {
        padding: 60px 20px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* کارت وسطی در تبلت به صورت تمام عرض میاد پایین */
    .pricing-card.featured {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        transform: none;
        /* حذف بزرگنمایی در تبلت */
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* موبایل و تبلت کوچک */
@media (max-width: 768px) {
    .pricing-section {
        padding: 50px 15px;
    }

    .pricing-header {
        margin-bottom: 30px;
    }

    .pricing-title {
        font-size: 22px;
    }

    .pricing-subtitle {
        font-size: 14px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        /* تک ستونه در موبایل */
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    /* برگرداندن کارت ویژه به حالت عادی در موبایل */
    .pricing-card.featured {
        max-width: 100%;
    }

    .card-title {
        font-size: 20px;
    }

    .price-amount {
        font-size: 24px;
    }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
    .pricing-title {
        font-size: 20px;
    }

    .pricing-subtitle {
        font-size: 13px;
    }

    .card-features li {
        font-size: 12px;
    }

    .card-btn {
        padding: 12px 0;
        font-size: 13px;
    }
}

/* ============ بخش مقالات ما ============ */
.blog-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px;
    font-family: 'Pinar', Tahoma, sans-serif;
    position: relative;
    /* سایه گرادیانت ملایم پس‌زمینه طبق عکس */
    background: radial-gradient(circle at 50% 0%, rgba(240, 235, 249, 0.5) 0%, transparent 60%);
}

.blog-container {
    max-width: 1378px;
    margin: 0 auto;
}

/* هدر بخش */
.blog-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    min-height: 55px;
}

.blog-title {
    color: #212529;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

/* دکمه بیشتر بخوانید - سمت چپ */
.blog-view-all {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #502AA1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 42, 161, 0.3);
    font-family: 'Pinar', Tahoma, sans-serif;
}

.blog-view-all:hover {
    background-color: #3d1f7d;
    transform: translateY(-50%) translateX(-3px);
}

/* گرید ۲ ستونه مقالات */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* کارت مقاله */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    /* چیدمان افقی */
    overflow: hidden;
    box-shadow: 0 0 50px #502aa159;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 320px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(80, 42, 161, 0.12);
}

/* بخش عکس (سمت چپ در RTL) */
.blog-image {
    width: 45%;
    flex-shrink: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* بخش متن (سمت راست در RTL) */
.blog-content {
    width: 55%;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* دسته بندی */
.blog-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-category i {
    color: #502AA1;
    font-size: 14px;
}

/* تیتر کارت */
.blog-card-title {
    color: #212529;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* متن کارت */
.blog-card-text {
    color: #495057;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: justify;
}

/* لینک بیشتر بخوانید */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #502AA1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
    align-self: flex-start;
}

.blog-read-more:hover {
    gap: 12px;
}

.blog-read-more i {
    font-size: 10px;
    width: 22px;
    height: 22px;
    background-color: #f0ebf9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .blog-content {
        padding: 25px 20px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .blog-card-text {
        font-size: 13px;
    }

    .blog-card {
        min-height: 280px;
    }
}

/* تبلت و موبایل */
@media (max-width: 992px) {
    .blog-section {
        padding: 60px 24px;
    }

    .blog-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .blog-view-all {
        position: static;
        transform: none;
        padding: 10px 30px;
    }

    .blog-view-all:hover {
        transform: translateY(-2px);
    }

    /* گرید تک ستونه میشه */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* کارت‌ها در موبایل عمودی میشن */
    .blog-card {
        flex-direction: column;
        min-height: auto;
    }

    /* عکس میره بالا */
    .blog-image {
        width: 100%;
        height: 220px;
        order: -1;
    }

    /* متن میاد پایین */
    .blog-content {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 50px 16px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .blog-image {
        height: 180px;
    }
}

/* ============ بخش فوتر ============ */
.site-footer {
    width: 100%;
    max-width: 1404px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.footer-container {
    background-color: #502AA1;
    border-radius: 40px;
    padding: 60px 50px 30px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.footer-grid {
    display: grid;
    /* ۴ ستون با عرض‌های متفاوت: ستون اول عریض‌تر */
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: -2px;
}

/* عناوین ستون‌ها */
.footer-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff;
}

/* متن‌های فوتر */
.footer-text {
    font-size: 14px;
    line-height: 2.2;
    opacity: 0.9;
    text-align: justify;
    margin-bottom: 25px;
}

.small-text {
    font-family: 'Pinar';
    src: url('font/Pinar-DS1-FD-Medium.woff2') format('woff2');
    font-size: 13px;
    line-height: 2;
}

/* اطلاعات تماس */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.contact-item i {
    font-size: 18px;
    color: #ffffff;
}

/* لینک‌های فوتر */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.footer-links li a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    opacity: 1;
    transform: translateX(-5px);
    /* افکت حرکت به چپ در هاور */
}

/* فرم خبرنامه */
.newsletter-form {
    display: flex;
    background-color: #7A4ED6;
    /* بنفش روشن‌تر برای کنتراست */
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #ffffff;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 13px;
    outline: none;
    text-align: left;
    /* چون ایمیل انگلیسیه */
    direction: ltr;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background-color: #ffffff;
    color: #502AA1;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #f0ebf9;
}

/* باکس لوگو (زیر فرم) */
.footer-logo-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 15px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-logo-box img {
    width: 80px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* خط کپی رایت */
.footer-bottom {


    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 12px;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .footer-container {
        padding: 50px 40px 25px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 30px;
    }
}

/* تبلت: چیدمان ۲ ستونه (شرکت و خدمات کنار هم) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* ۲ ستون مساوی */
        gap: 40px;
    }

    /* ستون اول (درباره ما) کل عرض رو می‌گیره */
    .about-col {
        grid-column: 1 / -1;
    }


    .newsletter-col {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: revert;
    }

    .newsletter-form {
        width: 100%;
        max-width: 400px;
        /* محدود کردن عرض فرم در تبلت */
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}


@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px;
    }

    .footer-container {
        padding: 40px 25px 20px;
        border-radius: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px 20px;
    }

    .about-col {
        grid-column: 1 / -1;
        text-align: right;
    }

    .footer-text {
        text-align: right;
    }

    .footer-contact {
        align-items: revert;
    }

    .footer-links {
        align-items: revert;
    }

    .footer-links {
        align-items: revert;
    }

    .newsletter-col {
        grid-column: 1 / -1;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-logo-box {
        margin: 0 auto;
    }

    .footer-links li a:hover {
        transform: translateY(-3px);
    }
}

/* ============ نوار شناور تماس ============ */
.sticky-contact-bar {
    position: sticky;
    bottom: 20px;
    /* فاصله از پایین صفحه */
    z-index: 999;
    /* همیشه روی همه المان‌ها باشه */
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    pointer-events: none;
    /* اجازه کلیک به پس‌زمینه داده بشه */
}

.contact-bar-inner {
    background-color: #1A103C;
    /* رنگ تیره بنفش طبق عکس */
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    /* فعال کردن کلیک برای خود نوار */
    width: 100%;
    max-width: 700px;
    /* عرض نوار */
}

/* دکمه‌های تماس */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 25px;
    border-radius: 40px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* دکمه شماره تلفن */
.phone-btn {
    background-color: #3A256B;
    /* بنفش تیره‌تر */
}

.phone-btn:hover {
    background-color: #4c328a;
}

.phone-btn i {
    font-size: 18px;
}

/* دکمه مشاوره */
.consult-btn {
    background-color: #5B2E9E;
    /* بنفش روشن‌تر */
}

.consult-btn:hover {
    background-color: #713bbf;
}

.consult-btn i {
    font-size: 16px;
}

/* بخش تصویر و متن (سمت راست) */
.contact-avatar-box {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* متن راهنما (حباب گفتار) */
.avatar-text {
    background-color: #e9ecef;
    color: #212529;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    position: relative;
    font-family: 'Pinar', Tahoma, sans-serif;
    white-space: nowrap;
}

/* مثلث حباب گفتار */
.avatar-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #e9ecef;
}

/* تصویر پشتیبان */
.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 768px) {
    .sticky-contact-bar {
        bottom: 10px;
        padding: 0 10px;
    }

    .contact-bar-inner {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 25px;
        max-width: 100%;
    }

    /* نمایش متن‌ها با سایز کوچک‌تر */
    .contact-btn {
        padding: 8px 12px;
        font-size: 12px;
        /* کوچیک کردن فونت */
        gap: 5px;
    }

    .contact-btn i {
        font-size: 14px;
        /* کوچیک کردن آیکون */
    }

    .contact-avatar-box {
        gap: 8px;
    }

    /* نمایش متن راهنما با سایز کوچیک‌تر */
    .avatar-text {
        font-size: 8px;
        padding: 6px 10px;
        white-space: normal;
        /* اجازه شکستن خط در صورت نیاز */
        text-align: center;
        line-height: 1.4;
    }

    /* مثلث حباب گفتار */
    .avatar-text::after {
        border-width: 5px 0 5px 5px;
        right: -5px;
    }

    .avatar-image {
        width: 45px;
        height: 45px;
        border-width: 2px;
        flex-shrink: 0;
        /* جلوگیری از کوچک شدن عکس */
    }
}

/* در موبایل‌های خیلی کوچک (کمتر از ۴۸۰ پیکسل) */
@media (max-width: 480px) {
    .contact-bar-inner {
        gap: 5px;
        padding: 6px 8px;
    }

    .contact-btn {
        font-size: 10px;
        padding: 6px 10px;
    }

    .contact-btn i {
        font-size: 12px;
    }

    .avatar-text {
        font-size: 10px;
        padding: 4px 8px;
    }

    .avatar-image {
        width: 35px;
        height: 35px;
    }
}

/* ============ هدر نمونه کارها ============ */
.portfolio-sectionn {
    margin-top: 80px;
}

.page-header-section {
    position: relative;
    width: 100%;
    width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    direction: rtl;
    margin-top: 40px;
}

/* لایه پس‌زمینه */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* گرادیانت پایه بنفش روشن */
    background: linear-gradient(90deg, #d8c8f5 0%, #e6dbfa 100%);
    z-index: 1;
}

/* افکت نور بنفش تیره در سمت چپ */
.glow-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at left center, rgba(122, 78, 200, 0.4) 0%, rgba(122, 78, 200, 0) 70%);
    filter: blur(20px);
}

/* افکت نور در سمت راست (کمی محو تر) */
.glow-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: radial-gradient(ellipse at right center, rgba(160, 110, 230, 0.2) 0%, rgba(160, 110, 230, 0) 70%);
    filter: blur(30px);
}

/* کانتینر محتوا (محدود به ۱۴۴۰ پیکسل) */
.header-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
    margin: 0 auto;
}

/* بخش محتوا (سمت راست) */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    max-width: 700px;
    margin-right: 0;
}

/* دسته بندی */
.header-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #502AA1;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Pinar', Tahoma, sans-serif;
    margin-bottom: 20px;
}

.header-category i {
    font-size: 18px;
}

/* تیتر اصلی */
.header-title {
    color: #212529;
    font-size: 32px;
    font-weight: 900;
    font-family: 'Pinar', Tahoma, sans-serif;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* توضیحات */
.header-desc {
    color: #212529;
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    font-family: 'Pinar', Tahoma, sans-serif;
    margin: 0;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .header-title {
        font-size: 36px;
    }

    .header-desc {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .page-header-section {
        padding: 60px 0;
    }

    .header-container {
        padding: 0 24px;
    }

    .header-title {
        font-size: 30px;
    }

    .header-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 50px 0;
    }

    .header-title {
        font-size: 26px;
    }

    .header-desc {
        font-size: 14px;
        line-height: 1.9;
    }

    .header-category {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }

    .header-title {
        font-size: 22px;
    }

    .header-desc {
        font-size: 13px;
    }
}


/* ============ بخش جزئیات نمونه کار ============ */
.case-study-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.case-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* تصویر اصلی */
.case-main-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 0 50px #502aa159;
    border-radius: 30px;
}

.case-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 30px;

}

/* بخش محتوا: دو ستونه */
.case-content-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* ستون راست (متن) */
.case-text-col {
    flex: 1;
    /* فضای بیشتر */
    text-align: right;
}

.case-section-title {
    color: #212529;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
}

.case-description {
    color: #495057;
    font-size: 18px;
    line-height: 2.2;
    text-align: justify;
    margin: 0;
}

/* ستون چپ (کارت ها) */
.case-side-col {
    width: 380px;
    /* عرض ثابت برای ستون کناری */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* کارت جزئیات پروژه */
.project-details-card {
    background: #ffffff;
    border: 1px solid #e0d7f3;
    /* بوردر بنفش ملایم */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(80, 42, 161, 0.05);
}

.details-title {
    color: #212529;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: right;
}

/* خط زیر عنوان */
.details-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #502AA1;
    margin-top: 10px;
    border-radius: 2px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0ebf9;
    /* خط جداکننده ملایم */
}

.details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.detail-value {
    color: #212529;
    font-size: 14px;
    font-weight: 700;
}

.detail-link {
    color: #007bff;
    /* رنگ آبی لینک طبق عکس */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.detail-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 5px;
}

/* کارت بنفش (CTA) */
.project-cta-card {
    background: linear-gradient(135deg, #6a38c9 0%, #502AA1 100%);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(80, 42, 161, 0.3);
}

/* آیکون بالا */
.cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px;
    background-color: #ffffff3b;
}

.cta-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #ffffff;
    color: #502AA1;
    padding: 14px 0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.cta-btn:hover {
    background-color: #f0ebf9;
    transform: translateY(-2px);
}

.cta-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.cta-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1024px) {
    .case-content-wrapper {
        flex-direction: column;
        /* ستون ها زیر هم میرن */
        gap: 40px;
    }

    .case-side-col {
        width: 100%;
        flex-direction: row;
        /* در تبلت کارت ها کنار هم قرار میگیرن */
        align-items: stretch;
    }

    .project-details-card,
    .project-cta-card {
        flex: 1;
        /* کارت ها هم عرض میشن */
    }
}

@media (max-width: 768px) {
    .case-study-section {
        padding: 40px 20px;
    }

    .case-main-image {
        border-radius: 20px;
        margin-bottom: 40px;
    }

    .case-section-title {
        font-size: 26px;
    }

    .case-description {
        font-size: 15px;
        line-height: 2;
    }

    .case-side-col {
        flex-direction: column;
        /* در موبایل کارت ها زیر هم میرن */
    }

    .project-details-card,
    .project-cta-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .case-section-title {
        font-size: 22px;
    }

    .case-description {
        font-size: 14px;
    }

    .cta-title {
        font-size: 20px;
    }

    .cta-btn {
        font-size: 14px;
    }
}

/* ============ بخش تماس با ما ============ */
.contact-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* تنظیم دقیق جایگاه‌ها با Order */
.contact-info-col {
    flex: 1;
    width: 50%;
    text-align: right;
    order: 1; /* متن سمت راست */
}

.contact-map-col {
    flex: 1;
    width: 50%;
    order: 2; /* نقشه سمت چپ */
}

.map-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* هدر بخش */
.contact-header {
    position: relative;
    margin-bottom: 30px;
}

.contact-main-title {
    color: #1a0b3b;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 5px;
}

.contact-subtitle {
    color: #502AA1;
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.title-line {
    width: 100%;
    height: 1px;
    background-color: #e0d7f3;
    position: relative;
}

.title-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 60px;
    height: 5px;
    background-color: #502AA1;
    border-radius: 5px;
}

/* متن توضیحی */
.contact-desc {
    color: #495057;
    font-size: 16px;
    line-height: 2;
    text-align: justify;
    margin-bottom: 40px;
}

/* لیست تماس */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-list li {
    display: flex;
    justify-content: flex-start; /* آیکون سمت راست، متن سمت چپش */
    align-items: center;
    gap: 15px;
}

/* آیکون ها */
.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #502AA1;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(80, 42, 161, 0.2);
}

/* متن های کنار آیکون */
.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* راست‌چین کردن متن‌ها */
}

.contact-text .label {
    color: #868e96;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-text .value {
    color: #212529;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    direction: ltr; /* برای ایمیل و آیدی ها */
    transition: color 0.3s ease;
}

.contact-text .value:hover {
    color: #502AA1;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1024px) {
    .contact-grid {
        flex-direction: column; 
        gap: 40px;
    }
    
    .contact-info-col, .contact-map-col {
        width: 100%;
        order: unset; /* در موبایل ترتیب عادی بشه */
    }
    
    /* در موبایل اول متن بعد نقشه */
    .contact-info-col { order: 1; }
    .contact-map-col { order: 2; }

    .map-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 20px;
    }

    .contact-main-title {
        font-size: 28px;
    }

    .contact-desc {
        font-size: 14px;
        line-height: 1.9;
    }

    .contact-text .value {
        font-size: 16px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .map-wrapper {
        height: 300px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .contact-list li {
        gap: 10px;
    }
    
    .contact-text .label {
        font-size: 11px;
    }

    .contact-text .value {
        font-size: 14px;
    }
}


/* ============ بخش بهترین داستان ============ */
.story-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.story-container {
    max-width: 1440px;
    margin: 0 auto;
}

.story-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ===== سمت راست: تصاویر ===== */
.story-images-col {
    flex: 1;
    width: 50%;
    order: 1; /* سمت راست در RTL */
}

.images-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 80px; /* فضا برای عکس کوچیک */
}

/* تصویر اصلی - بدون شدو */
.main-img-box {
    width: 100%;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* تصویر کوچک - بدون شدو و بدون بوردر */
.small-img-box {
    position: absolute;
    bottom: 0;
    left: -644px;
    margin-bottom: 62px;
    width: 280px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 3;
}

.small-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== سمت چپ: محتوا ===== */
.story-content-col {
    flex: 1;
    width: 50%;
    order: 2; /* سمت چپ در RTL */
}

/* برچسب */
.story-badge {
    display: inline-block;
    background-color: #f0ebf9;
    color: #502AA1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid #e0d7f3;
}

/* تیتر */
.story-title {
    color: #1a0b3b;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* متن */
.story-desc {
    color: #495057;
    font-size: 15px;
    line-height: 2;
    text-align: justify;
    margin-bottom: 30px;
}

/* لیست ویژگی‌ها */
.story-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #212529;
    font-size: 15px;
    font-weight: 600;
}

.check-icon {
    width: 24px;
    height: 24px;
    background-color: #502AA1;
    color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* بخش پایین (دکمه و امتیاز) */
.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  
    padding-top: 25px;
}

/* دکمه */
.story-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #502AA1;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-btn:hover {
    background-color: #3d1f7d;
    transform: translateY(-3px);
}

/* امتیاز و آواتارها */
.story-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stars {
    color: #ffc107; /* رنگ زرد ستاره ها */
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    gap: 3px;
}

.rating-text {
    color: #868e96;
    font-size: 12px;
    font-weight: 600;
}

.rating-avatars {
    display: flex;
    align-items: center;
}

.rating-avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ffffff; /* این بوردر برای آواتارهای کوچک لازمه تا جدا بشن */
    object-fit: cover;
    margin-left: -10px;
}

.rating-avatars img:first-child {
    margin-left: 0;
}


/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1024px) {
    .story-grid {
        flex-direction: column;
        gap: 50px;
    }

    .story-images-col, .story-content-col {
        width: 100%;
        order: unset;
    }

    .story-images-col { order: 1; }
    .story-content-col { order: 2; }

    .images-wrapper {
        padding-bottom: 60px;
    }

    .small-img-box {
        width: 200px;
        height: 150px;
        left: 20px; /* تنظیم موقعیت در تبلت */
    }
}

@media (max-width: 768px) {
    .story-section {
        padding: 50px 20px;
    }

    .main-img-box {
        height: 318px;
    }

    .small-img-box {
        width: 150px;
        height: 120px;
        left: 10px;
    }

    .story-title {
        font-size: 22px;
    }

    .story-desc {
        font-size: 14px;
    }

    .story-footer {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: flex-start;
    }

    .story-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-img-box {
        height: 250px;
    }

    .small-img-box {
        width: 120px;
        height: 100px;
    }

    .story-title {
        font-size: 20px;
    }

    .story-features li {
        font-size: 14px;
    }
}



/* ============ بخش محتوای مقاله ============ */
.single-post-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    font-family: 'Pinar', Tahoma, sans-serif;
}

.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
}

.post-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ============================================
   محتوای اصلی (سمت راست)
   ============================================ */
.post-main-content {
    flex: 1;
    min-width: 0; /* جلوگیری از سرریز شدن */
}

/* تصویر اصلی مقاله */
.post-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* اطلاعات متا */
.post-meta {
    display: flex;
    justify-content: start;
    gap: 20px;
    color: #868e96;
    font-size: 13px;
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5d31b3;
}

/* تیتر اصلی */
.main-post-title {
    color: #1a0b3b;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
    text-align: right;
}

/* متن مقاله */
.post-body-text p {
    color: #495057;
    font-size: 16px;
    line-height: 2.2;
    text-align: justify;
    margin-bottom: 20px;
}

/* نقل قول */
.post-blockquote {
    background-color: #f8f9fa;
    border-right: 4px solid #502AA1;
    padding: 25px 30px;
    margin: 35px 0;
    border-radius: 10px;
}

.post-blockquote p {
    color: #212529;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
    margin-bottom: 15px;
}

.post-blockquote cite {
    color: #502AA1;
    font-size: 14px;
    font-weight: 800;
    font-style: normal;
    display: block;
    text-align: right;
}

/* زیرتیتر */
.post-sub-title {
    color: #1a0b3b;
    font-size: 24px;
    font-weight: 800;
    margin: 35px 0 20px;
    text-align: right;
}

/* ============================================
   ستون کناری (سایدبار - سمت چپ)
   ============================================ */
.post-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* استایل پایه ویجت ها */
.widget {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.widget-title {
    color: #212529;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: #502AA1;
    border-radius: 3px;
}

/* فرم جستجو */
.search-form {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
}

.search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-family: 'Pinar', Tahoma, sans-serif;
    font-size: 14px;
    color: #6c8eb1;
    background: #fff;
}

.search-form input::placeholder {
    color: #adb5bd;
}

.search-form button {
    background-color: #502AA1;
    color: #ffffff;
    border: none;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: #3d1f7d;
}

/* لیست پست های اخیر */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-posts-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
}

.post-date {
    color: #868e96;
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    margin: 0;
}

.post-title a {
    color: #212529;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #502AA1;
}

/* کارت تماس بنفش */
.sidebar-cta-card {
    background: linear-gradient(135deg, #6a38c9 0%, #502AA1 100%);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(80, 42, 161, 0.2);
}

.sidebar-cta-card .cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sidebar-cta-card .cta-icon img {
    width: 24px;
    height: auto;
    object-fit: contain;
}

.sidebar-cta-card .cta-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}

.sidebar-cta-card .cta-text {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.sidebar-cta-card .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #ffffff;
    color: #502AA1;
    padding: 12px 0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.sidebar-cta-card .cta-btn:hover {
    background-color: #f0ebf9;
    transform: translateY(-2px);
}

.sidebar-cta-card .cta-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.sidebar-cta-card .cta-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1024px) {
    .post-grid {
        flex-direction: column; /* محتوا بالا، سایدبار پایین */
    }
    
    .post-sidebar {
        width: 100%;
        flex-direction: row; /* سایدبار افقی در تبلت */
        flex-wrap: wrap;
    }
    
    .widget, .sidebar-cta-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .single-post-section {
        padding: 40px 20px;
    }

    .post-sidebar {
        flex-direction: column; /* سایدبار عمودی در موبایل */
    }

    .post-featured-image {
        height: 300px;
        border-radius: 16px;
    }

    .main-post-title {
        font-size: 24px;
    }

    .post-body-text p {
        font-size: 14px;
        line-height: 2;
    }

    .post-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .post-sub-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .post-featured-image {
        height: 220px;
    }

    .main-post-title {
        font-size: 20px;
    }

    .widget {
        padding: 20px 15px;
    }

    .post-blockquote {
        padding: 20px 15px;
    }
}