/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
 * Custom styles for single.php to match the image.
 */

body {
    background-color: #f7f7f7; /* Light grey background */
}

.site-main {
    padding-top: 50px;
    padding-bottom: 50px;
}

.container {
    max-width: 1200px; /* Adjust as needed */
}

.page-content {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 5px;
}

/* Post Header */
.entry-header {
    text-align: right; /* For RTL */
    margin-bottom: 30px;
}

.post-meta-top {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 10px;
    direction: rtl; /* For RTL */
}

.entry-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    direction: rtl; /* For RTL */
}

.entry-meta {
    font-size: 0.8em;
    color: #666;
    direction: rtl; /* For RTL */
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Entry Content */
.entry-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    direction: rtl; /* For RTL */
    text-align: right; /* For RTL */
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* Post Footer */
.entry-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to the right for RTL */
}

.post-share {
    margin-bottom: 30px;
    direction: rtl; /* For RTL */
    text-align: right; /* For RTL */
}

.post-share h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #555;
}

.share-buttons {
    display: flex;
    gap: 10px;
    direction: ltr; /* Override for icons */
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.share-button.facebook { background-color: #3b5998; }
.share-button.twitter { background-color: #00acee; }
.share-button.linkedin { background-color: #007bb5; }
.share-button.pinterest { background-color: #cb2027; }

.share-button:hover {
    opacity: 0.8;
}

.post-tags {
    direction: rtl; /* For RTL */
    text-align: right; /* For RTL */
}

.post-tags .tag-links a {
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 10px;
    border-radius: 3px;
    margin-left: 5px; /* For RTL spacing */
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.post-tags .tag-links a:hover {
    background-color: #ddd;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    direction: rtl; /* For RTL */
    text-align: right; /* For RTL */
}

.related-posts h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

.related-post-card {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.related-post-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover ensures image fills the space */
    border-radius: 5px;
    margin-bottom: 15px;
}

.related-post-card h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.related-post-card h4 a {
    color: #333;
    text-decoration: none;
}

.related-post-card .post-date {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 15px;
}

.read-more-button {
    display: inline-block;
    background-color: #007bff; /* Example primary color */
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more-button:hover {
    background-color: #0056b3;
}

/* Comments */
#comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    direction: rtl; /* For RTL */
    text-align: right; /* For RTL */
}

/* Sidebar */
.sidebar {
    padding-right: 20px; /* Adjust for RTL spacing */
    direction: rtl; /* For RTL */
    text-align: right; /* For RTL */
}

.sidebar .widget {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar .widget h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget li {
    margin-bottom: 10px;
}

.sidebar .widget li a {
    color: #555;
    text-decoration: none;
}

.sidebar .widget li a:hover {
    color: #007bff; /* Example primary color */
}

.sidebar .widget-button {
    display: block;
    background-color: #6c757d; /* Example secondary color */
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.sidebar .widget-button:hover {
    background-color: #5a6268;
}