/* تنظیمات پایه */
* {
    box-sizing: border-box;
    font-family: my-yekan;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* رنگ پس‌زمینه نرم */
    color: #333;
    direction: rtl;
    text-align: right;
}

.container {
    margin: auto;
    padding: 20px;
    max-width: 1200px; /* محدود کردن عرض در دسکتاپ */
}

h2 {
    font-size: 2rem;
    color: #c00;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

img.img-fluid {
    width: 100%;
    max-width: 500px; /* محدود کردن عرض تصویر */
    height: auto;
    border-radius: 8px; /* گوشه‌های گرد تصویر */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* اضافه کردن سایه */
    margin: 20px auto;
}

iframe {
    width: 100%;
    max-width: 800px; /* محدود کردن عرض ویدیو */
    height: auto;
    aspect-ratio: 16/9; /* تنظیم نسبت ویدیو */
    border: none;
    margin: 20px auto;
    display: block;
}

.alert {
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 6px;
    color: #721c24;
    margin-top: 20px;
}

.btn-danger {
    background-color: #c00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #900;
}

.row {
    display: flex;
    flex-wrap: wrap; /* تنظیم چیدمان به صورت ریسپانسیو */
    justify-content: center; /* مرکز کردن عناصر */
    gap: 20px; /* فاصله بین آیتم‌ها */
}

/* ریسپانسیو */
@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    img.img-fluid {
        max-width: 100%;
        margin: 10px auto;
    }

    iframe {
        max-width: 100%;
    }

    .btn-danger {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.2rem;
        text-align: center; /* متن عنوان در مرکز */
    }

    p {
        font-size: 0.8rem;
        text-align: center;
    }

    .alert {
        font-size: 0.9rem;
        text-align: center;
    }

    .btn-danger {
        width: 100%; /* دکمه‌ها تمام عرض را بگیرند */
        text-align: center;
    }
}
