/* ریست ساده */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    direction: rtl; /* برای فارسی‌سازی */
}

/* استایل کلی بخش‌ها */
.about-section {
    font-family: "B Nazanin", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #ffffff;
    gap: 20px;
}

/* بخش بالایی */
.top-section {
    background-image: linear-gradient(#ccebea, #def1eb);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* بخش وسط */
.middle-section {
    background-image: linear-gradient(#ccebea, #def1eb);
    margin-bottom: 20px;
}

/* بخش پایینی */
.bottom-section {
    background-image: linear-gradient(#ccebea, #def1eb);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

/* استایل تصویر و متن در بخش‌ها */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

.exam {
    flex: 1;
    color: #333;
    /*padding: 0 20px;*/
}

.chart {
    flex: 1;
    color: #333;
    margin-left: -30px;
    /*padding: 0 20px;*/
}

.chart h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-right: 70px;
}

.exam h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-right: -10px;
}

.chart p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 10px;
    margin-right: 75px;
    text-align: justify;
    text-justify: initial;
}

.exam p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 10px;
    /*margin-right: 0px;*/
}

.exam ul {
    font-size: 1.5rem;
    list-style-type: disc;
    padding-right: 20px;
}

.exam li {
    font-family: sans-serif;
    margin-bottom: 5px;
}

/* افکت قطره برای تصویر */
.drop-shape {
    position: relative;
    overflow: hidden;
    border-radius: 50% 50% 0 0 / 30% 30% 70% 70%; /* شکل قطره سفارشی */
}

.drop-shape img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* بخش پایینی (آمار) */
.bottom-section {
    text-align: center;
    /*padding-top: -50px;*/
}

.stat-box {
    background-color: transparent;
    width: 180px;
    margin: 10px;
    padding: 10px;
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);*/
}

.stat-box h4 {
    font-family: sans-serif;
    font-size: 3rem;
    color: #4c2c8f;
    margin-bottom: 20px;
}

.stat-box p {
    font-size: 1.5rem;
    color: #333;
}

/* مدیا کوئری برای موبایل (نمایش در دستگاه‌های کوچک‌تر) */
@media (max-width: 768px) {
    /* تغییر جهت چینش کلی به ستونی */
    .about-section {
        flex-direction: column;
        padding: 20px 10px;
    }

    /* تنظیمات مربوط به المان‌های متنی */
    .chart, .exam {
        text-align: center;
        margin: 0;
    }

    .chart h2,
    .exam h2 {
        font-size: 2rem;
        margin: 10px 0;
        margin-right: 0; /* حذف حاشیه راست */
    }

    .chart p,
    .exam p,
    .exam ul,
    .exam li {
        font-size: 1.2rem;
        margin: 8px 0;
        margin-right: 0;
    }

    /* تنظیم مجدد تصاویر در موبایل */
    .image-container {
        margin-bottom: 15px;
    }
    .image-container img {
        max-width: 100%;
        height: auto;
    }

    /* تنظیمات بخش آماری (stat-box) برای نمایش بهتر در موبایل */
    .bottom-section {
        justify-content: center;
    }

    .stat-box {
        width: 45%;  /* نمایش دو ستونی */
        margin: 10px auto;
    }
     footer {
        margin-bottom: 10px;
    }
}