/* ============================
   Intro Section Styles
   ============================ */

.intro-section {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    margin-top: -60px;
    padding: 80px 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

.intro-container {
    max-width: 80%;
    margin: 0 auto;
}

/* عنوان */
.intro-title {
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    text-align: center;
}

/* Wrapper کلی - Flex */
.intro-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* حالت پیش‌فرض: عکس راست */
.intro-wrapper.image-right {
    flex-direction: row;
}

/* حالت عکس چپ */
.intro-wrapper.image-left {
    flex-direction: row-reverse;
}

/* ستون‌ها */
.intro-image-col {
    flex: 0 0 45%;
    max-width: 45%;
}

.intro-content-col {
    flex: 1;
}

/* استایل عکس */
.intro-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.intro-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.intro-image-wrapper:hover .intro-image {
    transform: scale(1.03);
}

/* استایل متن */
.intro-content {
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 1.125rem;
    line-height: 2;
    color: #525252;
    text-align: justify;
}

/* ============================
   حالت بدون عکس
   ============================ */

.intro-wrapper:not(.image-right):not(.image-left) .intro-content-col {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-wrapper:not(.image-right):not(.image-left) .intro-content {
    text-align: center;
}

/* ============================
   Responsive Styles
   ============================ */

@media screen and (max-width: 1024px) {
    .intro-section {
        margin-top: -40px;
        padding: 60px 0;
    }
    
    .intro-container {
        max-width: 85%;
    }
    
    .intro-wrapper {
        gap: 40px;
    }
    
    .intro-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .intro-image-col {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .intro-section {
        margin-top: -30px;
        padding: 50px 0;
        border-radius: 15px 15px 0 0;
    }
    
    .intro-container {
        max-width: 90%;
    }
    
    /* تصویر میره بالا، متن میاد پایین */
    .intro-wrapper.image-right,
    .intro-wrapper.image-left {
        flex-direction: column;
    }
    
    .intro-image-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .intro-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-content {
        font-size: 1rem;
        line-height: 1.9;
        text-align: center;
    }
    
    .intro-image {
        max-height: 350px;
        object-fit: cover;
    }
}

@media screen and (max-width: 480px) {
    .intro-section {
        margin-top: -20px;
        padding: 40px 0;
    }
    
    .intro-container {
        max-width: 92%;
    }
    
    .intro-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .intro-wrapper {
        gap: 25px;
    }
}