:root {
    --primary: #1a1a1a;
    --brand-red: #c00;
    --gold-accent: #b08d57;
    --bg-body: #ffffff;
    --bg-alt: #f9f9f9;
    --border: #ececec;
    --text-dark: #222;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* الطباعة */
@media print {
    body { font-size: 12pt; }
}

/* ====== المحتوى الرئيسي ====== */
main {
    min-height: 60vh;
}






/* ====== استجابة الموبايل ====== */
@media (max-width: 768px) {
    header {
        display: none;
    }
    
    .mobile-nav-bar {
        display: flex;
    }
    
    .burger-icon {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 55px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 250px;
        height: 100vh;
        padding: 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        gap: 15px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-right: 15px;
        display: none;
    }
    
    nav li:hover > .sub-menu {
        display: block;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    footer {
        grid-template-columns: 1fr 1fr;
    }
}

/* ====== فائدة: إخفاء العناصر ====== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}


/* ====== نموذج البحث ====== */
.search-form{
    display:flex;
    align-items:center;
    max-width:400px;
    margin:20px auto;
    border:1px solid var(--border);
    border-radius:4px;
    overflow:hidden;
}

.search-form label{
    flex:1;
}

.search-form .search-field{
    width:100%;
    border:none;
    outline:none;
    padding:10px;
    font-size:14px;
}

.search-form .search-submit{
    width: 20%;
    border:none;
    background:var(--brand-red);
    color:#fff;
    padding:10px 15px;
    cursor:pointer;
    font-size:14px;
}



/* ====== تنسيق موحد لجميع عناصر الإدخال والأزرار ====== */

/* الحقول */
input, textarea, select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-accent);
}

/* الأزرار */
button, .button, input[type="submit"] {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background: var(--brand-red);
    transform: translateY(-2px);
}

/* زر ثانوي */
.button-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.button-outline:hover {
    background: var(--primary);
    color: white;
}

/* للموبايل */
@media (max-width: 768px) {
    input, button, .button {
        font-size: 16px; /* لمنع التكبير في iOS */
    }
}