/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Your Name
Author URI: https://painx.in/
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* =========================================================
   Single Blog Post Beautification
   ========================================================= */

/* Wider, comfortable reading column */
.single-post .ast-container {
	max-width: 1024px;
}

.single-post .entry-header {
	margin-bottom: 0;
}

.single-post .entry-title {
	font-size: 2.1rem;
	line-height: 1.35;
	margin-bottom: 0.6em;
}

@media ( max-width: 544px ) {
	.single-post .entry-title {
		font-size: 1.5rem;
	}
}

/* ---- Breadcrumbs + meta bar (above the H1) ---- */
.pnx-post-topbar {
	max-width: 1024px;
	padding-top: 1.5em;
}

.pnx-breadcrumbs {
	font-size: 0.85rem;
	color: #6b7280;
	margin-bottom: 0.75em;
}

.pnx-breadcrumbs a {
	color: #6b7280;
	text-decoration: none;
}

.pnx-breadcrumbs a:hover {
	color: var( --ast-global-color-3, #0274be );
	text-decoration: underline;
}

.pnx-post-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.25em;
	font-size: 0.85rem;
	color: #6b7280;
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid #eceef1;
}

.pnx-meta-item time {
	font-weight: 600;
	color: #374151;
}

.pnx-meta-readtime::before {
	content: "⏱ ";
}

/* ---- Table of Contents ---- */
.pnx-toc {
	background: #f8f9fb;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var( --ast-global-color-3, #0274be );
	border-radius: 8px;
	padding: 1.25em 1.5em;
	margin: 1.75em 0;
}

.pnx-toc-title {
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 0.6em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #111827;
}

.pnx-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pnx-toc li {
	margin: 0.4em 0;
	line-height: 1.5;
}

.pnx-toc li.pnx-toc-sub {
	margin-left: 1.25em;
	font-size: 0.95em;
}

.pnx-toc a {
	text-decoration: none;
	color: var( --ast-global-color-3, #0274be );
}

.pnx-toc a:hover {
	text-decoration: underline;
}

/* ---- Content typography ---- */
.single-post .entry-content {
	font-size: 1.08rem;
	line-height: 1.9;
	color: #262a2f;
}

/* Headings */
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
	scroll-margin-top: 90px;
}

.single-post .entry-content h1 {
	font-size: 1.85rem;
	margin: 1.8em 0 0.65em;
}

.single-post .entry-content h2 {
	font-size: 1.5rem;
	margin: 1.6em 0 0.65em;
}

.single-post .entry-content h3 {
	font-size: 1.25rem;
	margin: 1.4em 0 0.6em;
}

.single-post .entry-content h4 {
	font-size: 1.1rem;
	margin: 1.3em 0 0.55em;
}

.single-post .entry-content h5 {
	font-size: 1rem;
	margin: 1.2em 0 0.5em;
}

.single-post .entry-content h6 {
	font-size: 0.9rem;
	margin: 1.2em 0 0.5em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #374151;
}

/* First heading right after the title shouldn't add extra top gap */
.single-post .entry-content > :first-child {
	margin-top: 0;
}

/* Paragraphs */
.single-post .entry-content p {
	margin: 0 0 1.15em;
}

.single-post .entry-content p:last-child {
	margin-bottom: 0;
}

/* Links */
.single-post .entry-content a:not(.pnx-tel-link) {
	color: var( --ast-global-color-3, #0274be );
	text-decoration: underline;
	text-decoration-color: rgba( 2, 116, 190, 0.35 );
	text-underline-offset: 2px;
	transition: text-decoration-color 0.15s ease;
}

.single-post .entry-content a:not(.pnx-tel-link):hover,
.single-post .entry-content a:not(.pnx-tel-link):focus {
	text-decoration-color: currentColor;
}

/* Lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

.single-post .entry-content ul {
	list-style-type: disc;
}

.single-post .entry-content ol {
	list-style-type: decimal;
}

.single-post .entry-content ul ul {
	list-style-type: circle;
}

.single-post .entry-content ul ul ul,
.single-post .entry-content ol ul {
	list-style-type: square;
}

.single-post .entry-content ol ol {
	list-style-type: lower-alpha;
}

.single-post .entry-content li {
	margin-bottom: 0.5em;
	line-height: 1.7;
	padding-left: 0.2em;
}

.single-post .entry-content li:last-child {
	margin-bottom: 0;
}

.single-post .entry-content li > ul,
.single-post .entry-content li > ol {
	margin-top: 0.5em;
	margin-bottom: 0;
}

.single-post .entry-content li::marker {
	color: var( --ast-global-color-3, #0274be );
	font-weight: 600;
}

/* Inline emphasis */
.single-post .entry-content strong,
.single-post .entry-content b {
	font-weight: 700;
	color: #111827;
}

.single-post .entry-content em,
.single-post .entry-content i {
	font-style: italic;
}

.single-post .entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.9em 1.4em;
	border-left: 4px solid var( --ast-global-color-3, #0274be );
	background: #f8f9fb;
	border-radius: 6px;
	font-style: italic;
	color: #374151;
}

.single-post .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	display: block;
	overflow-x: auto;
}

.single-post .entry-content table th,
.single-post .entry-content table td {
	border: 1px solid #e5e7eb;
	padding: 0.6em 0.9em;
	text-align: left;
}

.single-post .entry-content table th {
	background: #f8f9fb;
}

.single-post .entry-content img {
	border-radius: 10px;
	height: auto;
}

.pnx-tel-link {
	font-weight: 600;
	color: var( --ast-global-color-3, #0274be );
	white-space: nowrap;
}

.pnx-tel-link::before {
	content: "📞 ";
}

/* ---- Featured image ---- */
.single-post .post-thumb-img-content,
.single-post .ast-featured-img {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5em;
}

/* ---- Author box (E-E-A-T) ---- */
.pnx-author-box {
	display: flex;
	gap: 1.1em;
	align-items: flex-start;
	margin-top: 2.5em;
	padding: 1.5em;
	background: #f8f9fb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.pnx-author-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
	object-position: center 15%;
}

.pnx-author-label {
	margin: 0;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}

.pnx-author-name {
	margin: 0.15em 0 0.2em;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111827;
}

.pnx-author-credentials {
	margin: 0 0 0.6em;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --ast-global-color-3, #0274be );
	line-height: 1.5;
}

.pnx-author-bio {
	margin: 0 0 0.9em;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #374151;
}

.pnx-author-facts {
	list-style: none;
	margin: 0 0 0.9em;
	padding: 0.9em 0 0;
	border-top: 1px solid #e5e7eb;
	font-size: 0.85rem;
	line-height: 1.6;
	color: #4b5563;
}

.pnx-author-facts li {
	margin-bottom: 0.4em;
}

.pnx-author-facts li:last-child {
	margin-bottom: 0;
}

.pnx-author-facts strong {
	color: #111827;
}

.pnx-author-citation {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --ast-global-color-3, #0274be );
	text-decoration: none;
}

.pnx-author-citation:hover {
	text-decoration: underline;
}

@media ( max-width: 544px ) {
	.pnx-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.pnx-author-facts {
		text-align: left;
	}
}
