@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&family=Changa:wght@700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    background: linear-gradient(120deg, #f8ffae 0%, #43c6ac 40%, #191654 100%);
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* زخارف دائرية عصرية */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.5;
}
body::before {
    width: 350px;
    height: 350px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, #43c6ac 0%, #191654 80%, #f8ffae 100%);
    box-shadow: 0 0 80px 40px #43c6ac77;
}
body::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, #f8ffae 0%, #43c6ac 80%, #191654 100%);
    box-shadow: 0 0 80px 40px #19165455;
}
/* زخرفة موجية أسفل الصفحة */
body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="120" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 Q100,80 200,40 T400,40 T600,40 T800,40 T1000,40 V120 H0Z" fill="%2343c6ac" opacity="0.18"/></svg>') repeat-x;
    z-index: 0;
    border-radius: 0;
    width: 100vw;
    filter: blur(2px);
    pointer-events: none;
}

/* زخرفة إضافية أعلى الصفحة */
body::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.5;
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, #43c6ac 0%, #191654 80%);
    box-shadow: 0 0 60px 30px #43c6ac33;
}
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.5;
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: -40px;
    background: radial-gradient(circle, #f8ffae 0%, #43c6ac 80%);
    box-shadow: 0 0 60px 30px #19165422;
}

/* تأثير نيون حول العنوان */
header h1 {
    margin: 0;
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #191654;
    font-family: 'Changa', 'Tajawal', 'Cairo', Arial, sans-serif;
    background: none;
    border-radius: 24px;
    padding: 1.2rem 2rem;
    box-shadow: 0 8px 32px 0 #43c6ac33, 0 0 0 8px #f8ffae11;
    border: 3px solid #43c6ac;
    display: inline-block;
    position: relative;
    padding-bottom: 2.2rem;
    /* إزالة ::before و ::after لجعل العنوان فقط "آية فاضل" */
    text-shadow: none;
}
header h1::before,
header h1::after {
    content: none;
}

/* ...existing code... */

header {
    background: rgba(0, 114, 255, 0.92);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 114, 255, 0.18);
    border-bottom: none;
    border-radius: 0 0 32px 32px;
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    z-index: 1;
}

article {
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 198, 255, 0.18);
    /* تأثير زجاجي */
    backdrop-filter: blur(8px) saturate(180%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #00eaff 0%, #005bea 100%);
    border-image-slice: 1;
    max-width: 700px;
    width: 100%;
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    animation: articleShadow 3s infinite alternate;
}
@keyframes articleShadow {
    0% { box-shadow: 0 8px 32px 0 #00eaff33; }
    100% { box-shadow: 0 16px 48px 0 #005bea44; }
}

article:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px 0 rgba(0, 198, 255, 0.25);
}

article p {
    font-size: 1.2rem;
    line-height: 2.1;
    margin-bottom: 1.2rem;
    color: #e3f8ff;
    text-shadow: 0 1px 8px #00eaff33, 0 0 2px #005bea44;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

/* تحسين ألوان النص */
article p, section.paragraph-section p {
    color: #e3f8ff;
    text-shadow: 0 1px 8px #00eaff33, 0 0 2px #005bea44;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(90deg, #00eaff 0%, #005bea 100%);
    color: #e0f7fa;
    border-top: none;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px 0 rgba(0, 198, 255, 0.10);
    z-index: 1;
}

/* تحسين ألوان الفقرات */
section.paragraph-section {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(67,198,172,0.13) 0%, rgba(25,22,84,0.10) 100%);
    border-right: none;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 16px 0 rgba(0, 198, 255, 0.10);
    position: relative;
    transition: box-shadow 0.3s, filter 0.3s, transform 0.3s;
    /* إزالة float من الصور */
    min-height: 90px;
}
section.paragraph-section:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 198, 255, 0.18);
    border-right: 7px solid #191654;
    background: linear-gradient(90deg, rgba(67,198,172,0.19) 0%, rgba(25,22,84,0.16) 100%);
    filter: brightness(1.08);
    transform: translateY(-4px) scale(1.015);
}

.paragraph-section img {
    display: block;
    margin: 0 2.8rem 0 0; /* زيادة المسافة بين الصورة والنص */
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #f8ffae 0%, #43c6ac 60%, #191654 100%);
    box-shadow: 0 4px 24px 0 #43c6acbb, 0 0 0 6px #fff6;
    transition: transform 0.3s, box-shadow 0.3s;
    filter: saturate(1.3) brightness(1.08) contrast(1.1);
    padding: 2px;
    /* إطار متدرج عصري */
    background-clip: padding-box, border-box;
    flex-shrink: 0;
}
.paragraph-section img:hover {
    transform: scale(1.12) rotate(2deg);
    box-shadow: 0 8px 32px 0 #191654cc, 0 0 0 10px #f8ffae44;
}

section.paragraph-section p {
    margin: 0;
    font-size: 1.13rem;
    line-height: 2;
    color: #e3f8ff;
    text-shadow: 0 1px 8px #00eaff33, 0 0 2px #005bea44;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    /* لجعل النص بجانب الصورة */
    flex: 1;
    direction: rtl;
}

/* ...existing code... */

@media (max-width: 600px) {
    header h1 {
        font-size: 1.3rem;
    }
    article {
        padding: 1rem;
    }
    main {
        padding: 1rem 0.2rem;
    }
    header {
        border-radius: 0 0 18px 18px;
    }
    footer {
        border-radius: 18px 18px 0 0;
    }
    section.paragraph-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 0.5rem;
        margin-bottom: 1rem;
        min-height: unset;
    }
    .paragraph-section img {
        width: 54px;
        height: 54px;
        margin: 0 0 0.5rem 0;
        border-radius: 12px;
    }
    section.paragraph-section p {
        font-size: 1rem;
    }
    .fab {
        left: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}
