/* ======================================= */
/* الأنماط العامة لجميع الصناديق */
/* ======================================= */

.custom-callout {
    padding: 15px;
    margin: 25px 0;
    border-radius: 5px;
    text-align: right;
    font-size: 1.05em;
    direction: rtl; 
}

/* قاعدة قوية لجميع المحتوى الداخلي */
.custom-callout p, 
.custom-callout div, 
.custom-callout span,
.custom-callout strong { 
    /* إجبار وراثة اللون والحجم من العنصر الأب */
    color: inherit !important; 
    font-size: inherit !important; 
    line-height: 1.6; 
}

.custom-callout .icon {
    font-size: 1.5em;
    margin-left: 5px;
    line-height: 1;
}

/* ================== A. صندوق التحذير (الأصفر) ================== */

.warning-box {
    background-color: #fff3cd !important; 
    border: 1px solid #ffeeba;
    color: #333333 !important; /* لون النص الرئيسي (أسود داكن) */ 
}

.warning-box .warning-title {
    font-weight: bold;
    color: #c90000; 
    margin-bottom: 5px;
    border-bottom: 1px dashed #ffeeba; 
    padding-bottom: 5px;
}

.warning-box .solution-text {
    font-weight: bold;
    color: #155724 !important; 
    background-color: #e6ffed; 
    padding: 5px;
    border-radius: 3px;
    display: block; 
    margin-top: 10px;
}

/* ================== B. صندوق الخطر (الأحمر) ================== */

.danger-box {
    background-color: #f8d7da !important; 
    border: 1px solid #f5c6cb;
    color: #721c24 !important; /* لون النص الرئيسي (الأحمر الداكن) */
}

.danger-box .danger-title {
    font-weight: bold;
    color: #a0101a; 
    margin-bottom: 10px;
    border-bottom: 1px dashed #f5c6cb; 
    padding-bottom: 5px;
}

/* ================== C. صندوق الخلاصة (الأزرق) ================== */

.summary-box {
    background-color: #e6f7ff !important;
    border-left: 5px solid #007bff; 
    color: #004085 !important; /* لون النص الرئيسي (الأزرق الداكن) */
}

.summary-box .summary-title {
    font-weight: bold;
}


/* ================== الاستجابة (Mobile Optimization) ================== */

@media (max-width: 600px) {
    .custom-callout {
        padding: 10px;
        font-size: 1em;
    }
    .custom-callout p, .custom-callout div {
        width: 100%;
        box-sizing: border-box;
    }
}