
@import url('./fonts/style.css');
:root {
    --primary-color: #0073e6;
    --primary-gradient: linear-gradient(45deg, #0073e6 0%, #005bb5 100%);
    --dark-color: #1a202c;
    --light-gray-color: #f7fafc;
    --gray-color: #a0aec0;
    --border-color: #edf2f7;
    --border-radius: 12px;
    --shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.single-post-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 0px;
    direction: rtl;
}

/* --- Breadcrumb Styling --- */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.5;
}
.breadcrumb a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .separator { margin: 0 10px; }
.breadcrumb .current-page { font-weight: 500; }

/* --- New Two-Column Layout --- */
.single-post-layout-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: 1 column */
    gap: 50px;
}
@media (min-width: 1024px) {
    .single-post-layout-grid {
        /* Desktop: Main content takes ~70%, sidebar ~30% */
        grid-template-columns: 2.5fr 1fr; 
    }
}

/* --- Main Content Column --- */
.post-header
 {
    padding: 10px 10px;
    text-align: center;
    /* background-color: var(--light-gray-color); */
    /* border-radius: var(--border-radius); */
    border-bottom: 1px solid black;
    /* border-top: 1px solid black; */
    margin-bottom: 95px;
}
.post-categories a {
    display: inline-block;
    background-image: var(--primary-gradient);
    color: #fff;
    padding: 6px 15px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.25);
}
.post-title {
    font-family: var(--header-font);
    font-size:1.3rem;
    line-height: 1.2;
    margin: 0 0 20px 0;
}
.post-meta { font-size: 0.9rem; }
.post-meta .post-author { margin-left: 15px; }

.post-featured-image-wrapper {
    margin: -80px auto 50px auto;
    position: relative;
    z-index: 10;
}
.post-featured-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.entry-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--header-font); color: var(--dark-color); margin: 2.5em 0 1em 0; line-height: 1.3; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.6rem; }
.entry-content h4 { font-size: 1.3rem; }
.entry-content a { color: var(--primary-color); text-decoration: none; border-bottom: 2px solid rgba(0, 115, 230, 0.2); transition: all 0.2s ease; }
.entry-content a:hover { background-color: rgba(0, 115, 230, 0.1); border-bottom-color: var(--primary-color); }
.entry-content blockquote { margin: 2em 0; padding: 1em 1.5em; border-right: 5px solid var(--primary-color); background-color: var(--light-gray-color); font-style: italic; font-size: 1.2rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5em; padding-right: 2em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--border-radius); margin: 2em 0; }

.post-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.post-tags span { font-weight: 600; color: var(--dark-color); margin-left: 10px; }
.post-tags a { display: inline-block; background-color: var(--light-gray-color); border: 1px solid var(--border-color); color: #555; padding: 5px 12px; border-radius: 5px; text-decoration: none; margin: 5px 0 5px 5px; font-size: 0.9rem; transition: all 0.2s ease; }
.post-tags a:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* --- Sidebar Styling (Consistent with homepage) --- */
.post-sidebar { position: sticky; top: 40px; align-self: start; }
.sidebar-widget {
    background-image: linear-gradient(to top, #f8faff 0%, #ffffff 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.06);
}
.widget-title {
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.side-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}
.side-post-item:hover { background-color: #e9eef3; }
.side-post-item:last-child { margin-bottom: 0; }
.side-post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 15px;
}
.side-post-title { font-size: 0.95rem; font-weight: 600; color: var(--dark-color); line-height: 1.4; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .post-title { font-size: 1.2rem;display: block;
        text-align: justify; }
    .entry-content { font-size: 1rem; }
    .post-featured-image-wrapper { margin-top: -40px; border-radius: 0; }
    .post-header { margin-bottom:  50px; }
}