/*
Theme Name:   xstore-child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
*/

/* ==========================================================================
   Single Post Typography & Reading Experience Styles (asliforosh.ir)
   ========================================================================== */

/* Main post content container */
.single-post .elementor-widget-theme-post-etheme_content .elementor-widget-container,
.single-post .entry-content,
.single-post .content-article {
    font-family: "Shabnam-Medium-FD", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17.5px;
    line-height: 2.1;
    color: #2b2d42;
    text-align: justify;
    word-spacing: 0.5px;
}

/* Paragraph spacing */
.single-post .elementor-widget-theme-post-etheme_content p,
.single-post .entry-content p,
.single-post .content-article p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Strong / Bold formatting */
.single-post .elementor-widget-theme-post-etheme_content strong,
.single-post .elementor-widget-theme-post-etheme_content b,
.single-post .entry-content strong,
.single-post .entry-content b {
    font-family: "Shabnam-Bold-FD", "Shabnam-Medium-FD", sans-serif;
    font-weight: 700;
    color: #1a1d20;
}

/* Headings: H2 */
.single-post .elementor-widget-theme-post-etheme_content h2,
.single-post .entry-content h2,
.single-post .content-article h2 {
    font-family: "Shabnam-Bold-FD", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    color: #151b26;
    margin-top: 3.2rem;
    margin-bottom: 1.3rem;
    padding-right: 14px;
    border-right: 4px solid #00796b;
    clear: both;
}

/* Headings: H3 */
.single-post .elementor-widget-theme-post-etheme_content h3,
.single-post .entry-content h3,
.single-post .content-article h3 {
    font-family: "Shabnam-Bold-FD", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #232936;
    margin-top: 2.4rem;
    margin-bottom: 1rem;
    padding-right: 10px;
    border-right: 3px solid rgba(0, 121, 107, 0.45);
    clear: both;
}

/* Headings: H4, H5, H6 */
.single-post .elementor-widget-theme-post-etheme_content h4,
.single-post .entry-content h4 {
    font-family: "Shabnam-Bold-FD", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #2d3748;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

/* Hide unnecessary horizontal divider lines in articles */
.single-post .elementor-widget-theme-post-etheme_content hr,
.single-post .entry-content hr,
.single-post .content-article hr {
    display: none !important;
}

/* Unordered & Ordered Lists: Fix indentation, padding and spacing */
.single-post .elementor-widget-theme-post-etheme_content ul,
.single-post .entry-content ul,
.single-post .content-article ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-right: 2.4rem !important;
    padding-left: 0 !important;
    margin-top: 0.8rem !important;
    margin-bottom: 1.8rem !important;
}

.single-post .elementor-widget-theme-post-etheme_content ol,
.single-post .entry-content ol,
.single-post .content-article ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-right: 2.4rem !important;
    padding-left: 0 !important;
    margin-top: 0.8rem !important;
    margin-bottom: 1.8rem !important;
}

/* List Items */
.single-post .elementor-widget-theme-post-etheme_content ul li,
.single-post .elementor-widget-theme-post-etheme_content ol li,
.single-post .entry-content ul li,
.single-post .entry-content ol li,
.single-post .content-article ul li,
.single-post .content-article ol li {
    position: relative;
    margin-bottom: 0.9rem !important;
    line-height: 2 !important;
    color: #2b2d42;
    padding-right: 4px;
}

.single-post .elementor-widget-theme-post-etheme_content ul li::marker {
    color: #00796b;
}

.single-post .elementor-widget-theme-post-etheme_content ol li::marker {
    color: #00796b;
    font-weight: bold;
    font-family: "Shabnam-Bold-FD", sans-serif;
}

/* Nested lists */
.single-post .elementor-widget-theme-post-etheme_content ul ul,
.single-post .elementor-widget-theme-post-etheme_content ol ol,
.single-post .elementor-widget-theme-post-etheme_content ul ol,
.single-post .elementor-widget-theme-post-etheme_content ol ul {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-right: 1.6rem !important;
}

/* Links inside post content */
.single-post .elementor-widget-theme-post-etheme_content a,
.single-post .entry-content a {
    color: #00796b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all 0.2s ease-in-out;
}

.single-post .elementor-widget-theme-post-etheme_content a:hover,
.single-post .entry-content a:hover {
    color: #004d40;
    text-decoration-thickness: 2px;
}

/* Tables in post content */
.single-post .elementor-widget-theme-post-etheme_content table,
.single-post .entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.single-post .elementor-widget-theme-post-etheme_content table th,
.single-post .entry-content table th {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: "Shabnam-Bold-FD", sans-serif;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: right;
}

.single-post .elementor-widget-theme-post-etheme_content table td,
.single-post .entry-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
    text-align: right;
    line-height: 1.7;
}

.single-post .elementor-widget-theme-post-etheme_content table tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
.single-post .elementor-widget-theme-post-etheme_content blockquote,
.single-post .entry-content blockquote {
    background-color: #f7fafc;
    border-right: 4px solid #00796b;
    padding: 16px 20px;
    margin: 1.8rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post .elementor-widget-theme-post-etheme_content .elementor-widget-container,
    .single-post .entry-content,
    .single-post .content-article {
        font-size: 16px;
        line-height: 1.95;
    }
    .single-post .elementor-widget-theme-post-etheme_content h2,
    .single-post .entry-content h2 {
        font-size: 21px;
        margin-top: 2.5rem;
    }
    .single-post .elementor-widget-theme-post-etheme_content h3,
    .single-post .entry-content h3 {
        font-size: 18.5px;
        margin-top: 2rem;
    }
    .single-post .elementor-widget-theme-post-etheme_content ul,
    .single-post .elementor-widget-theme-post-etheme_content ol {
        padding-right: 1.8rem !important;
    }
}