/*
 Theme Name:   Divi Child
 Description:  A child theme for Divi
 Author:       Xailient
 Template:     Divi
 Version:      1.0
*/

@import url("../Divi/style.css"); /* Optional fallback */


/* ========== BLOG DETAIL PAGE STYLES ========== */

/* ========== BLOG DETAIL 2-COLUMN LAYOUT ========== */

/* Outer row for TOC + content */
.blog-detail-page .row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

/* === LEFT COLUMN: Table of Contents === */
.blog-tb-content {
	flex: 0 0 25%;
	max-width: 25%;
	position: sticky;
	top: 120px;
	align-self: flex-start;
}

#ez-toc-container {
	background: #f9f9f9;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: none;
	font-family: 'Roboto', sans-serif;
}

#ez-toc-container .ez-toc-title {
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 15px;
}

/* === RIGHT COLUMN: Blog Content === */
.blog-content {
	flex: 1 1 70%;
	max-width: 70%;
}

.blog-content p,
.blog-content li {
	font-size: 18px;
	line-height: 1.7;
	color: #444;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
	margin-top: 1rem;
	margin-bottom: 1rem;
	font-weight: 700;
	font-family: 'Roboto', sans-serif;
	line-height: 1.4;
}

.blog-content blockquote {
	padding: 10px 20px;
	border-left: 5px solid #333;
	margin: 30px 0;
	color: #666;
}
.blog-content blockquote p {
	margin: 0;
}

/* Featured image styling */
.blog-featured-image img {
	width: 100%;
	box-shadow: none !important;
	border-radius: 4px;
}

/* Category and meta */
.blog-title p.category-title,
.blog-title p.other-info {
	text-transform: uppercase;
	color: #999;
	font-size: 14px;
	margin-bottom: 5px;
}
.blog-title h2 {
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 2rem;;
	margin-top: 4rem;
}

/* Author Section */
.about-the-author {
	margin-top: 2rem;
	padding-top: .5rem;
	padding-bottom: .5rem;
	padding-left: 1rem;
	padding-right: 1rem;
	background: #fff;
	border-radius: 8px;
}
.about-the-author .row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.about-the-author .col-sm-3 {
	flex: 0 0 100px;
	max-width: 100px;
}

.about-the-author .col-sm-9 {
	flex: 1;
}
.about-the-author img {
	max-width: 100px;
	height: auto;
}
.author-name h4 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 5px;
}
.author-details {
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}
.author-social ul {
	display: flex;
	gap: 10px;
	list-style: none;
	padding-left: 0;
	margin-top: 15px;
}
.author-social ul li a {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #444;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.blog-tb-content,
	.blog-content {
		flex: 0 0 100%;
		max-width: 100%;
		position: static;

	}

	.about-the-author .row {
		flex-direction: column;
	}

	.about-the-author img {
		margin-bottom: 15px;
	}

	.about-the-author .col-sm-3,
	.about-the-author .col-sm-9 {
		max-width: 100%;
		flex: 0 0 100%;
	}

	/* Optional: Ensure text remains left-aligned */
	.about-the-author .author-name,
	.about-the-author .author-details,
	.about-the-author .author-social {
		text-align: left;
	}
}

