/**
 * Inoforest Post Content: fallback text styles for the excerpt modes.
 *
 * With Content = full content the widget adds .entry-content and the theme's block content styles take over (Travel26
 * and Food26: assets/css/blocks.css), so these rules leave that element alone; before 0.11.1 they overrode the theme's
 * heading, paragraph, quote, list and table spacing.
 */

.inoforest-post-content-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.inoforest-post-content:not(.entry-content) {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.inoforest-post-content:not(.entry-content) p {
    margin-bottom: 1em;
}

.inoforest-post-content:not(.entry-content) p:last-child {
    margin-bottom: 0;
}

.inoforest-post-content:not(.entry-content) img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.inoforest-post-content:not(.entry-content) blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    font-style: italic;
}

.inoforest-post-content:not(.entry-content) ul,
.inoforest-post-content:not(.entry-content) ol {
    margin: 1em 0;
    padding-left: 2em;
}

.inoforest-post-content:not(.entry-content) li {
    margin-bottom: 0.5em;
}

.inoforest-post-content:not(.entry-content) h1,
.inoforest-post-content:not(.entry-content) h2,
.inoforest-post-content:not(.entry-content) h3,
.inoforest-post-content:not(.entry-content) h4,
.inoforest-post-content:not(.entry-content) h5,
.inoforest-post-content:not(.entry-content) h6 {
    margin: 1.5em 0 0.5em 0;
    line-height: 1.3;
}

.inoforest-post-content:not(.entry-content) h1:first-child,
.inoforest-post-content:not(.entry-content) h2:first-child,
.inoforest-post-content:not(.entry-content) h3:first-child,
.inoforest-post-content:not(.entry-content) h4:first-child,
.inoforest-post-content:not(.entry-content) h5:first-child,
.inoforest-post-content:not(.entry-content) h6:first-child {
    margin-top: 0;
}

.inoforest-post-content:not(.entry-content) table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.inoforest-post-content:not(.entry-content) th,
.inoforest-post-content:not(.entry-content) td {
    padding: 0.5em;
    border: 1px solid #ddd;
    text-align: start;
}

.inoforest-post-content:not(.entry-content) th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inoforest-post-content-wrapper {
        margin-bottom: 15px;
    }
    
    .inoforest-post-content:not(.entry-content) {
        font-size: 0.95em;
    }
    
    .inoforest-post-content:not(.entry-content) ul,
    .inoforest-post-content:not(.entry-content) ol {
        padding-left: 1.5em;
    }
}

@media (max-width: 480px) {
    .inoforest-post-content-wrapper {
        margin-bottom: 10px;
    }
    
    .inoforest-post-content:not(.entry-content) {
        font-size: 0.9em;
    }
    
    .inoforest-post-content:not(.entry-content) ul,
    .inoforest-post-content:not(.entry-content) ol {
        padding-left: 1.2em;
    }
    
    .inoforest-post-content:not(.entry-content) blockquote {
        padding: 0.3em 0.8em;
        margin: 1em 0;
    }
}
