    /* منع خروج أي عنصر عن حدود الشاشة وحل مشكلة الأيقونات أو النصوص الطويلة */
    html, body {
        max-width: 100%;
        overflow-x: hidden !important;
        position: relative;
    }

    /* التأكد من أن جميع الصور والعناصر مرنة */
    img, svg, video, canvas {
        max-width: 100%;
        height: auto;
    }
    
    /* الحركة الأساسية للأقسام الزوجية (تأتي من اليسار) */
    .reveal-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }

    /* الحركة الأساسية للأقسام الفردية (تأتي من اليمين) */
    .reveal-right {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }

    /* خط تخطيط القلب */
    @keyframes ecgInfiniteSlide {
        0% {
            stroke-dashoffset: 1000;
        }
        100% {
            stroke-dashoffset: 0;
        }
    }

    .ecg-wave-path {
        stroke-dasharray: 1000;
        animation: ecgInfiniteSlide 3s linear infinite;
    }

    /* article */
    
    .article-content {
        font-size: 18px;
        line-height: 1.8;
        color: #334155;
    }

    .article-content p {
        margin: 0 0 1.15rem;
        line-height: 1.8;
    }

    .article-content h1 {
        font-size: 2rem;
        line-height: 1.25;
        font-weight: 800;
        color: #0f172a;
        margin: 2rem 0 1rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        font-weight: 800;
        color: #0f172a;
        margin: 1.8rem 0 0.8rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 700;
        color: #0f172a;
        margin: 1.5rem 0 0.6rem;
    }

    .article-content strong,
    .article-content b {
        font-weight: 700;
        color: #0f172a;
    }

    .article-content em,
    .article-content i {
        font-style: italic;
    }

    .article-content ul {
        list-style-type: disc;
        padding-left: 1.5rem;
        margin: 1rem 0 1.25rem;
    }

    .article-content ol {
        list-style-type: decimal;
        padding-left: 1.5rem;
        margin: 1rem 0 1.25rem;
    }

    .article-content li {
        margin: 0.35rem 0;
        padding-left: 0.25rem;
    }

    .article-content a {
        color: #2563eb;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .article-content blockquote {
        border-left: 4px solid #16a34a;
        padding-left: 1rem;
        margin: 1.5rem 0;
        color: #64748b;
        font-style: italic;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 1.5rem auto;
    }

    .article-content hr {
        margin: 2rem 0;
        border: 0;
        border-top: 1px solid #e2e8f0;
    }