body {
    background: url('/static/user_app/images/Untitled design.png') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.content-block {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right; /* Change to right for better Arabic text alignment on mobile */
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.4px;
    word-spacing: 1px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 900px;
}

.content-block h1,
.content-block h2 {
    font-weight: 700;
    text-align: right;
    color: #222;
    margin-bottom: 15px;
}

.content-block h1 {
    font-size: 2.5rem;
    color: #92163A;
}

.content-block h2 {
    font-size: 1.3rem;
    line-height: 1.6;
}

.content-block p {
    margin-bottom: 15px;
    line-height: 1.9;
    font-size: 17px;
}

.content-title {
    text-align: center;
    padding: 30px 0;
    background-color: rgba(146, 22, 58, 0.1);
}

.content-title h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #92163A;
    margin: 0;
}

@media (max-width: 992px) {
    .content-block {
        font-size: 16px;
        line-height: 1.7;
        padding: 20px;
        transform: none; /* Remove scaling */
        width: 90%;
        margin: 20px auto;
        box-sizing: border-box;
        max-width: none;
    }
    .content-block h1 {
        font-size: 2rem;
    }
    .content-block h2 {
        font-size: 1.3rem; /* Slightly larger for readability */
    }
    .content-title {
        padding: 20px 0;
    }
    .content-title h1 {
        font-size: 2.2rem;
    }
    body, html {
        width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 576px) {
    .content-block {
        padding: 15px; /* Reduce padding for mobile */
        margin: 10px auto;
        width: 95%;
    }
    .content-block h1 {
        font-size: 1.8rem;
    }
    .content-block h2 {
        font-size: 1.2rem; /* Slightly larger for readability */
    }
    .content-block p {
        font-size: 15px; /* Slightly smaller but readable */
    }
    .content-title h1 {
        font-size: 2rem;
    }
}