
:root {
    --primary-color: #4CAF50; /* A soft, light green/teal */
    --secondary-color: #F8F8F8; /* Light gray for backgrounds */
    --text-color: #333; /* Dark text for readability */
    --card-bg: #FFFFFF; /* White card background */
    --footer-bg: #EEE; /* Very light gray for footer */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif; /* Arabic font for better look */
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl; /* Right-to-Left for Arabic */
    text-align: right; 
}


.header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
}


.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap; 
    gap: 30px; 
    justify-content: center; 
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 23px;
    flex: 1 1 300px; 
    min-width: 280px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /***/
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: black;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.card-description {
    margin-bottom: 15px;
    font-size: 0.95em;
    flex-grow: 1; 
}


.card-image {
    width: 65%; 
    max-height: 250px; 
    object-fit:fill; 
    display:block;
    margin:auto;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


.download-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #388E3C; 
}


.footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    border-top: 1px solid #DDD;
    margin-top: 40px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .container {
        gap: 20px;
    }
    
    .card {
        flex-basis: 100%; /* Cards take full width on small screens (e.g., phones) */
    }

    .header h1 {
        font-size: 2em;
    }

}
