/*
 Theme Name: cataloz theme
 Theme URI: https://cataloz.com
 Author: cataloz 
 Author URI: https://cataloz.com
 Description: cataloz 
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: cataloz 
*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* تنسيق عام للصفحة */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* تنسيق العنوان */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

/* تنسيق شبكة المقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px); /* تأثير رفع عند التمرير */
}

/* تنسيق الصورة */
.article-thumbnail img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* تنسيق تفاصيل المقال */
.article-info {
    padding: 10px;
}

.article-title {
    font-size: 1.1em;
    margin: 5px 0;
}

.article-title a {
    text-decoration: none;
    color: #333;
}

.article-title a:hover {
    color: #0073aa;
}

.article-excerpt {
    font-size: 0.9em;
    color: #777;
    margin: 5px 0;
}

.article-meta {
    font-size: 0.8em;
    color: #999;
}

/* تنسيق زر المزيد */
.more-posts {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #005d87;
}

/* رسالة عدم وجود مقالات */
.no-posts {
    text-align: center;
    font-size: 1.2em;
    color: #666;
}

/* تأكد من أن الصفحة بأكملها تملأ الارتفاع */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* إعداد الـ wrapper ليشمل المحتوى */
.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* تصميم الفوتر */
.custom-footer {
    background: #5f4394;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    flex-shrink: 0; /* يمنع الفوتر من التقلص */
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-menu li {
    display: inline;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    background: #003f7f;
    border-radius: 5px;
    transition: 0.3s;
}

.footer-menu a:hover {
    background: #002c5c;
    text-decoration: none;
}

.footer-menu a:focus-visible {
    outline: none;
    box-shadow: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    margin-top: 10px;
}

.privacy-link {
    color: #fff;
    text-decoration: none;
    background: none;
}

.privacy-link:hover {
    background: none;
}

.footer-text {
    margin: 0;
}
