/**
 * Content Spacing - Internal Padding
 * Stylish internal spacing for content blocks
 * 
 * @package Blog Content
 */

/* ========================================
   Main Content Block Padding
   ======================================== */

.site-main article {
	padding: 20px 25px;
}

.entry-content,
.entry-summary {
	padding: 15px 0;
}

/* Page content */
.page .entry-content {
	padding: 18px 0;
}

/* Single post content */
.single .entry-content {
	padding: 18px 0;
}

/* Add padding to all children EXCEPT images */
.entry-content > *:not(img):not(figure):not(.wp-block-image) {
	padding-left: 20px;
	padding-right: 20px;
}

.page .entry-content > *:not(img):not(figure):not(.wp-block-image),
.single .entry-content > *:not(img):not(figure):not(.wp-block-image) {
	padding-left: 25px;
	padding-right: 25px;
}

/* Author page content - padding handled in fullwidth-images.css */

/* ========================================
   Header and Footer of Articles
   ======================================== */

.entry-header {
	padding: 20px 25px 15px;
	margin-bottom: 0;
}

.entry-footer {
	padding: 15px 25px 20px;
	margin-top: 0;
}

/* ========================================
   Sidebar Widgets
   ======================================== */

.widget {
	padding: 18px 20px !important;
}

.widget-title {
	margin-bottom: 15px;
}

/* ========================================
   Comments Section
   ======================================== */

.comments-area {
	padding: 20px 25px;
	margin-top: 20px;
}

.comment-content {
	padding: 12px 15px;
}

/* ========================================
   Related Pages Block
   ======================================== */

.related-pages-section {
	padding: 25px 25px;
}

/* ========================================
   Author Box Widget
   ======================================== */

.bc-author-widget {
	padding: 18px 20px !important;
}

/* ========================================
   Responsive Padding
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
	.site-main article {
		padding: 18px 22px;
	}
	
	.entry-content,
	.entry-summary,
	.page .entry-content,
	.single .entry-content,
	.author-page-content {
		padding: 15px 20px;
	}
	
	.entry-header {
		padding: 18px 22px 12px;
	}
	
	.entry-footer {
		padding: 12px 22px 18px;
	}
	
	.widget,
	.bc-author-widget {
		padding: 15px 18px !important;
	}
	
	.comments-area {
		padding: 18px 22px;
	}
	
	.related-pages-section {
		padding: 22px 20px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.site-main article {
		padding: 25px 20px;
	}
	
	.entry-content,
	.entry-summary,
	.page .entry-content,
	.single .entry-content,
	.author-page-content {
		padding: 20px 20px;
	}
	
	.entry-header {
		padding: 25px 20px 15px;
	}
	
	.entry-footer {
		padding: 15px 20px 25px;
	}
	
	.widget,
	.bc-author-widget {
		padding: 20px 20px !important;
	}
	
	.comments-area {
		padding: 25px 20px;
	}
	
	.related-pages-section {
		padding: 30px 20px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.site-main article {
		padding: 20px 15px;
	}
	
	.entry-content,
	.entry-summary,
	.page .entry-content,
	.single .entry-content,
	.author-page-content {
		padding: 15px 15px;
	}
	
	.entry-header {
		padding: 20px 15px 10px;
	}
	
	.entry-footer {
		padding: 10px 15px 20px;
	}
	
	.widget,
	.bc-author-widget {
		padding: 15px 15px !important;
	}
	
	.comments-area {
		padding: 20px 15px;
	}
	
	.related-pages-section {
		padding: 25px 15px;
	}
}

/* ========================================
   Nested Elements Adjustment
   ======================================== */

/* Remove extra padding from nested elements */
.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

/* Tables keep their padding */
.entry-content table {
	max-width: 100%;
	margin-left: 20px;
	margin-right: 20px;
	width: calc(100% - 40px);
}

.page .entry-content table,
.single .entry-content table {
	margin-left: 25px;
	margin-right: 25px;
	width: calc(100% - 50px);
}

/* Images are handled by fullwidth-images.css */

/* Blockquotes with padding */
.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
}

/* Lists alignment with padding */
.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

