body {
    line-height: 1.8;
    background-color: #f8f9fc; 
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: auto;
}


.site-main {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 9px 40px rgb(1 23 107 / 98%);
    margin-bottom: 30px;
}

article.post {
    margin-bottom: 40px;
}


.post-thumbnail {
    text-align: center;
    margin-bottom: 25px;
}

.post-thumbnail img.img-fluid.rounded {
    max-width:400px ;
    height: 100%; 
    object-fit: cover; 
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ---- Entry Header ---- */
.entry-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    transition: border-color 0.3s ease; 
}

.entry-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease; 
}

.entry-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    transition: color 0.3s ease; 
}

.entry-meta span {
    margin-left: 15px;
}


.entry-content {
    font-size: 1.1rem;
    color: #34495e;
    transition: color 0.3s ease; 
}

.entry-content p {
    margin-bottom: 1.5em;
text-align: justify;

}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #2c3e50;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.4;
}

.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.2rem; }

.entry-content a {
    color: #3498db;
    text-decoration: none;
   text-align: justify;

}

.entry-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
text-align: justify;

}


.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;

}

.tags {
    font-size: 0.9rem;
    color: #555;
 
}

.tags a {
    color: #3498db;
    margin-right: 10px;
    text-decoration: none;
}

.tags a:hover {
    text-decoration: underline;
}


.post-navigation {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;

}

.post-navigation .nav-links a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.post-navigation .nav-links a:hover {
    background-color: #c0392b;
}

.entry-title , .entry-meta {
    color: #000 !important;
}



#commentform {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* فیلدها */
#commentform input,
#commentform textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    transition: 0.3s;
    font-family: inherit;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* دکمه ارسال */
#commentform input[type="submit"] {
    background: #0d6efd;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#commentform input[type="submit"]:hover {
    background: #0b5ed7;
}


/* ---- Sidebar Styles ---- */
.col-lg-4 {
    padding-left: 20px;
}

.widget {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;

}

.widget-title {
    font-size: 1.3rem;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;

}


@media (max-width:768px) {
    .site-main {
        padding: 20px;
margin:5px 10px;
    }
    .post-thumbnail img.img-fluid.rounded {
     height: 100%;
        width: 100%;
    }
    }
    .entry-title {
        font-size: 2rem;
    }
    .entry-content {
        font-size: 1rem;
    }
    .post-navigation {
        flex-direction: column;
        align-items: center;
    }
    .post-navigation .nav-links a {
        margin-top: 10px;
    }
    .col-lg-4 {
        padding-left: 0;
        margin-top: 30px;
    }
}
/* همه صفحات single post */
.single-post .comment-form-cookies-consent {
    display: flex !important;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.single-post #wp-comment-cookies-consent {
    width: auto !important;
    max-width: 20px !important;
    margin: 0 8px 0 0 !important;
}

.single-post .comment-form-cookies-consent label {
    margin: 0 !important;
    font-size: 13px;
    display: inline !important;
}

