/*
Theme Name: Quran Theme
Author: Admin
Description: قالب مخصص لموقع القرآن الكريم.
Version: 1.0
*/

/* ===========================
   الخط
=========================== */

@font-face {
    font-family: "UthmanicHafs";
    src: url("fonts-q/UthmanicHafs_V22.ttf") format("truetype");
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

/* ===========================
   الأساسيات
=========================== */

body {
    margin: 0;
    background: #f5f7fa;
    font-family: Tahoma, sans-serif;
}

.quran-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.surah-title {
    text-align: center;
    font-size: 35px;
    margin: 25px 0;
    color: #0a5c36;
    font-family: "UthmanicHafs", serif;
}

/* ===========================
   نص القرآن
=========================== */

.quran-text {
    font-family: "UthmanicHafs", serif;
    font-size: 32px;
    line-height: 2.2;
    direction: rtl;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.quran-text p,
.quran-text div {
    margin: 0;
    padding: 0;
}

/* ===========================
   فاصل الصفحات
=========================== */

.page-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    direction: ltr;
    width: 100%;
    margin: -10px 0 10px;
    user-select: none;
}

.page-divider::before,
.page-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d4af37;
}

.page-divider span {
    width: 40px;
    height: 40px;
    line-height: 40px;
    flex: 0 0 40px;
    margin: 0 10px;
    border-radius: 50%;
    border: 1px solid #d4af37;
    background: #fcfcfc;
    color: #8a6d3b;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

/* ===========================
   الجوال
=========================== */

@media (max-width:600px){

    .quran-text{
        font-size:30px;
        line-height:2.0;
        font-weight:bold;
        padding:15px;
        max-width:100%;
        text-align:center;
        word-break:normal;
        overflow-wrap:normal;
    }

    .page-divider{
        display:flex;
        justify-content:center;
        align-items:center;
    }

}

/* ===========================
   الهيدر
=========================== */

.site-header{
    background:#f8f9fa;
    border-bottom:2px solid #d4af37;
    margin-bottom:30px;
}

.top-bar{
    background:#1a5e3a;
    color:#fff;
    padding:5px 20px;
    text-align:center;
    font-size:12px;
}

.top-bar a{
    color:#fff;
    text-decoration:none;
    margin:0 10px;
}

.middle-bar{
    text-align:center;
    padding:20px 0;
}

.middle-bar h1 a{
    color:#333;
    text-decoration:none;
    font-size:32px;
}

.nav-bar{
    background:#fff;
    text-align:center;
    padding:10px 0;
}

.nav-bar a{
    color:#8a6d3b;
    text-decoration:none;
    margin:0 15px;
    font-weight:bold;
}

.nav-bar a:hover{
    color:#5e4a28;
}

/* ===========================
   الفوتر
=========================== */

.site-footer {
    background: #1a5e3a;
    color: #fff;
    margin-top: 40px;
}

.footer-links {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: right;
}

/* التعديل هنا: استهدفنا كلاس العنوان الجديد */
.footer-column .footer-title {
    margin: 0 0 15px;
    color: #d4af37;
    font-size: 20px;
    font-weight: bold;
}

.footer-column a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 8px 0;
    transition: .3s;
}

.footer-column a:hover {
    color: #d4af37;
    padding-right: 6px;
}

.footer-copy {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 14px;
}

/* ===========================
   الأزرار
=========================== */

.btn-quran{
    display:inline-block;
    padding:10px 20px;
    background:#8a6d3b;
    color:#fff!important;
    text-decoration:none;
    border-radius:50px;
    margin-top:15px;
    font-weight:bold;
}

.btn-quran-small{
    padding:10px 25px;
    background:#8a6d3b;
    color:#fff!important;
    text-decoration:none;
    border-radius:50px;
    font-weight:bold;
    white-space:nowrap;
}

/* ===========================
   الصفحة الرئيسية
=========================== */

.quran-home-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.post-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    background:#fff;
    border:1px solid #d4af37;
    border-radius:15px;
    padding:30px;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.post-title{
    margin:0 0 20px;
    font-size:18px;
}

.post-title a{
    color:#8a6d3b;
    text-decoration:none;
}

@media(max-width:500px){
    .post-card{
        padding:20px;
    }
}


#main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

/* العناوين */

#main-content h1,
#main-content h2,
#main-content h3 {
    margin: 0 0 15px;
    line-height: 1.5;
}

/* الفقرات */

#main-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* المقالات */

#main-content article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

#main-content article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* الروابط */

#main-content a {
    color: #1a5e3a;
    text-decoration: none;
    transition: color .2s ease;
}

#main-content a:hover {
    color: #0d3d24;
    text-decoration: underline;
}

/* زر صفحة 404 */

#main-content a.button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #1a5e3a;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background .2s ease;
}

#main-content a.button:hover {
    background: #14482d;
    text-decoration: none;
}

/* ===========================
   ترقيم صفحات ووردبريس
=========================== */

.navigation.pagination,
.pagination {
    margin-top: 40px;
    text-align: center;
}

.navigation.pagination .nav-links,
.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.navigation.pagination a,
.navigation.pagination span,
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: .2s;
}

.navigation.pagination a:hover,
.pagination a:hover {
    background: #1a5e3a;
    color: #fff;
    border-color: #1a5e3a;
}

.navigation.pagination .current,
.pagination .current {
    background: #1a5e3a;
    color: #fff;
    border-color: #1a5e3a;
}




/* تنسيق قائمة التنقل لتكون في سطر واحد */
.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
}

/* تنسيق نموذج البحث ليصبح بجانب الروابط */
.nav-bar .search-form {
    display: flex;
    margin: 0;
}

/* تنسيق خانة الإدخال */
.nav-bar .search-field {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px 0 0 4px; /* زوايا دائرية من جهة واحدة */
    outline: none;
}

/* تنسيق زر البحث */
.nav-bar .search-submit {
    background: #1a5e3a; /* اللون الذي استخدمته سابقاً */
    color: #fff;
    border: 1px solid #1a5e3a;
    padding: 5px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}



/* تنسيق شريط التنقل (Breadcrumbs) */
.breadcrumbs {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* لكي لا ينكسر التصميم في الجوال */
}

.breadcrumbs a {
    color: #1a5e3a; /* لون الروابط المتوافق مع قالبك */
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #0d3d24;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
    font-size: 12px;
}

.breadcrumbs .current-page {
    color: #777;
    font-weight: bold; /* لتمييز اسم المقال الحالي */
}


/* تنسيق الكلمات الدلالية */
.post-tags {
    margin: 30px 0;
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.post-tags span {
    font-weight: bold;
    color: #333;
    margin-left: 10px;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    margin: 2px;
    border-radius: 4px;
    text-decoration: none;
    color: #1a5e3a; /* متناسق مع لون القالب */
    transition: 0.2s;
}

.post-tags a:hover {
    background: #1a5e3a;
    color: #fff;
}