/**
 * Blog Sidebar Styles
 * Layout styles for blog pages with sidebar
 *
 * @package HelloElementor
 */

/* Blog Container */
.blog-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
	display: block !important;
	visibility: visible !important;
}

.blog-container.has-sidebar {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.blog-container.has-sidebar {
		grid-template-columns: 65% 35%;
		gap: 3rem;
		align-items: start;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.blog-container.has-sidebar {
		grid-template-columns: 60% 40%;
		gap: 2rem;
		align-items: start;
	}
}

/* Blog Content */
.blog-content {
	width: 100%;
	display: block !important;
}

/* Main Content Area */
.site-main {
	display: block !important;
}

/* Page Header */
.page-header {
	margin-bottom: 2rem;
	display: block !important;
}

.page-header-meta {
	margin-bottom: 1.5rem;
}

/* Elementor Heading Styles */
.elementor-heading-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: #333;
	display: block !important;
}

.entry-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1rem 0;
	color: #333;
	display: block !important;
}

.page-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: #333;
}

/* Elementor Container Styles */
.elementor-element.e-con-boxed {
	padding: 0;
	margin-bottom: 2rem;
}

.e-con-inner {
	width: 100%;
}

.elementor-widget-heading {
	width: 100%;
}

/* Page Content */
.page-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #333;
	display: block !important;
}

.page-content p {
	margin-bottom: 1.5rem;
}

.page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 600;
	color: #222;
	line-height: 1.3;
}

.page-content h2 {
	font-size: 2rem;
}

.page-content h3 {
	font-size: 1.75rem;
}

.page-content h4 {
	font-size: 1.5rem;
}

.page-content ul,
.page-content ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

.page-content li {
	margin-bottom: 0.75rem;
}

.page-content a {
	color: #0073aa;
	text-decoration: none;
}

.page-content a:hover {
	color: #005a87;
	text-decoration: underline;
}

.page-content blockquote {
	border-left: 4px solid #0073aa;
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: #666;
}

/* Sidebar Styles */
#secondary,
#secondary.sidebar {
	width: 100%;
	display: block !important;
}

.sidebar__inner {
	position: sticky;
	top: 2rem;
}

/* Widget Styles */
.widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease;
}

.widget:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e0e0e0;
	color: #333;
	line-height: 1.4;
}

/* Widget Lists */
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: #555;
	text-decoration: none;
	transition: color 0.3s ease;
}

.widget ul li a:hover {
	color: #0073aa;
}

/* Search Widget */
.widget_search .search-form {
	display: flex;
	gap: 0.5rem;
}

.widget_search .search-field {
	flex: 1;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.widget_search .search-submit {
	padding: 0.75rem 1.5rem;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.widget_search .search-submit:hover {
	background: #005a87;
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.widget_recent_entries .post-date {
	font-size: 0.875rem;
	color: #888;
}

/* Categories Widget */
.widget_categories ul li {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.widget_categories .count {
	font-size: 0.875rem;
	color: #888;
	background: #f5f5f5;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

/* Tag Cloud Widget */
.tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tagcloud a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #f5f5f5;
	color: #555;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem !important;
	transition: background 0.3s ease, color 0.3s ease;
}

.tagcloud a:hover {
	background: #0073aa;
	color: #fff;
}

/* Archive Widget */
.widget_archive select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

/* Calendar Widget */
.widget_calendar table {
	width: 100%;
	border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
	padding: 0.5rem;
	text-align: center;
	border: 1px solid #e0e0e0;
}

.widget_calendar th {
	background: #f5f5f5;
	font-weight: 600;
}

.widget_calendar .today {
	background: #0073aa;
	color: #fff;
}

/* Post Layout - Imagem destacada, título, categoria e data */
.post__thumbnail {
	margin-bottom: 2rem;
	width: 100%;
	display: block !important;
}

.post__thumbnail img.post-featured-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	max-width: 100%;
	object-fit: cover;
}

.post__meta-custom {
	margin: 1rem 0 2rem 0;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e0e0e0;
	font-size: 0.9rem;
	color: #666;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.post__meta-custom .post-category {
	margin-right: 1rem;
	display: inline-block;
}

.post__meta-custom .post-category a {
	color: #0073aa;
	text-decoration: none;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.post__meta-custom .post-category a:hover {
	color: #005a87;
	text-decoration: underline;
}

.post__meta-custom .post-date {
	color: #888;
	display: inline-block;
}

.post__meta-custom .post-date time {
	font-style: italic;
}

/* Post Tags */
.post-tags {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e0e0e0;
}

.tag-links a {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0.25rem;
	background: #f5f5f5;
	color: #555;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem;
	transition: background 0.3s ease, color 0.3s ease;
}

.tag-links a:hover {
	background: #0073aa;
	color: #fff;
}

/* Comments Section */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #e0e0e0;
}

.comment-reply-title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.comment-form {
	margin-top: 1rem;
}

.comment-form-comment textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
}

.form-submit .submit {
	padding: 0.75rem 2rem;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.3s ease;
}

.form-submit .submit:hover {
	background: #005a87;
}

/* Responsive */
@media (max-width: 767px) {
	.sidebar__inner {
		position: static;
	}
	
	.blog-container.has-sidebar {
		grid-template-columns: 1fr !important;
		gap: 2rem;
	}

	.post__meta-custom {
		font-size: 0.85rem;
	}
	
	.entry-title {
		font-size: 2rem;
	}
	
	.page-content {
		font-size: 1rem;
	}
	
	.page-content h2 {
		font-size: 1.75rem;
	}
	
	.page-content h3 {
		font-size: 1.5rem;
	}
}

/* ========================================
   ELEMENTOR BLOG GRID WIDGET
   ======================================== */

/* ========================================
   ELEMENTOR BLOG GRID WIDGET
   ======================================== */

.elementor-blog-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 2rem !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.elementor-blog-grid-columns-1 {
	grid-template-columns: 1fr !important;
}

.elementor-blog-grid-columns-2 {
	grid-template-columns: 1fr !important;
}

.elementor-blog-grid-columns-3 {
	grid-template-columns: 1fr !important;
}

.elementor-blog-grid-columns-4 {
	grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
	.elementor-blog-grid-columns-2 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	
	.elementor-blog-grid-columns-3 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	
	.elementor-blog-grid-columns-4 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (min-width: 1024px) {
	.elementor-blog-grid-columns-3 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	
	.elementor-blog-grid-columns-4 {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}

.elementor-blog-grid-item {
	background: #fff !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease !important;
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	width: 100% !important;
}

.elementor-blog-grid-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.elementor-blog-grid-item__thumbnail {
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #f5f5f5;
}

.elementor-blog-grid-item__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.elementor-blog-grid-item__thumbnail img.elementor-blog-grid-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.elementor-blog-grid-item:hover .elementor-blog-grid-item__thumbnail img {
	transform: scale(1.05);
}

.elementor-blog-grid-item__content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.elementor-blog-grid-item__category {
	margin-bottom: 0.75rem;
}

.elementor-blog-grid-item__category a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: #0073aa;
	padding: 0.35rem 0.75rem;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.elementor-blog-grid-item__category a:hover {
	background: #005a87;
}

.elementor-blog-grid-item__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.75rem 0;
}

.elementor-blog-grid-item__title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.elementor-blog-grid-item__title a:hover {
	color: #0073aa;
}

.elementor-blog-grid-item__meta {
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: #888;
}

.elementor-blog-grid-item__date {
	display: inline-block;
}

.elementor-blog-grid-item__excerpt {
	color: #666;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	flex: 1;
}

.elementor-blog-grid-item__readmore {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0073aa;
	text-decoration: none;
	transition: color 0.3s ease;
	align-self: flex-start;
}

.elementor-blog-grid-item__readmore:hover {
	color: #005a87;
}

/* ========================================
   BLOG GRID LAYOUT (2 columns)
   ======================================== */

.blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

/* Blog Grid Item */
.blog-grid-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.blog-grid-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.blog-grid-item__thumbnail {
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #f5f5f5;
}

.blog-grid-item__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.blog-grid-item__thumbnail img.blog-grid-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-grid-item:hover .blog-grid-item__thumbnail img {
	transform: scale(1.05);
}

/* Content */
.blog-grid-item__content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Category */
.blog-grid-item__category {
	margin-bottom: 0.75rem;
}

.blog-grid-item__category a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: #0073aa;
	padding: 0.35rem 0.75rem;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.blog-grid-item__category a:hover {
	background: #005a87;
}

/* Title */
.blog-grid-item__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.75rem 0;
}

.blog-grid-item__title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-grid-item__title a:hover {
	color: #0073aa;
}

/* Meta */
.blog-grid-item__meta {
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: #888;
}

.blog-grid-item__date {
	display: inline-block;
}

/* Excerpt */
.blog-grid-item__excerpt {
	color: #666;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	flex: 1;
}

/* Read More */
.blog-grid-item__readmore {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0073aa;
	text-decoration: none;
	transition: color 0.3s ease;
	align-self: flex-start;
}

.blog-grid-item__readmore:hover {
	color: #005a87;
}

/* Pagination */
.blog-grid-pagination {
	grid-column: 1 / -1;
	margin-top: 2rem;
	text-align: center;
}

.blog-grid-pagination .page-numbers {
	display: inline-flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-grid-pagination .page-numbers li {
	display: inline-block;
}

.blog-grid-pagination .page-numbers a,
.blog-grid-pagination .page-numbers span {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #f5f5f5;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.3s ease, color 0.3s ease;
	min-width: 40px;
	text-align: center;
}

.blog-grid-pagination .page-numbers a:hover {
	background: #0073aa;
	color: #fff;
}

.blog-grid-pagination .page-numbers .current {
	background: #0073aa;
	color: #fff;
	font-weight: 600;
}

.blog-grid-pagination .page-numbers .prev,
.blog-grid-pagination .page-numbers .next {
	font-weight: 600;
}

.page-description {
	color: #666;
	font-size: 1.1rem;
	line-height: 1.6;
}

.page-description p {
	margin: 0.5rem 0;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
	.blog-grid {
		gap: 1.5rem;
	}
	
	.blog-grid-item__thumbnail {
		height: 180px;
	}
	
	.blog-grid-item__content {
		padding: 1.25rem;
	}
	
	.blog-grid-item__title {
		font-size: 1.1rem;
	}
	
	.page-title {
		font-size: 2rem;
	}
}

/* ========================================
   RELATED POSTS (Você também gostaria de ver)
   ======================================== */

.related-posts {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid #e0e0e0;
}

.related-posts .elementor-heading-title {
	font-size: 1.75rem;
	text-align: center;
	margin-bottom: 2rem;
}

.related-posts__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0;
	color: #333;
	text-align: center;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.related-posts__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* Related Post Item */
.related-post-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.related-post-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.related-post-item__thumbnail {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #f5f5f5;
}

.related-post-item__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.related-post-item__thumbnail img.related-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-item__thumbnail img {
	transform: scale(1.05);
}

/* Content */
.related-post-item__content {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Category */
.related-post-item__category {
	margin-bottom: 0.5rem;
}

.related-post-item__category a {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: #0073aa;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.related-post-item__category a:hover {
	background: #005a87;
}

/* Title */
.related-post-item__title {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.75rem 0;
	flex: 1;
}

.related-post-item__title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.related-post-item__title a:hover {
	color: #0073aa;
}

/* Meta */
.related-post-item__meta {
	margin-top: auto;
	font-size: 0.8rem;
	color: #888;
}

.related-post-item__date {
	display: inline-block;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
	.related-posts {
		margin-top: 3rem;
		padding-top: 2rem;
	}

	.related-posts__title {
		font-size: 1.5rem;
	}

	.related-posts__grid {
		gap: 1.5rem;
	}

	.related-post-item__thumbnail {
		height: 160px;
	}

	.related-post-item__title {
		font-size: 1rem;
	}
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */

.blog-load-more-container {
	margin-top: 3rem;
	text-align: center;
	padding: 2rem 0;
}

.blog-load-more-btn {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	padding: 1rem 2.5rem;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.blog-load-more-btn:hover {
	background: #005a87;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.blog-load-more-btn:active {
	transform: translateY(0);
}

.blog-load-more-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	box-shadow: none;
}

.blog-loading {
	margin-top: 1rem;
	text-align: center;
}

.blog-loading .spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 115, 170, 0.2);
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}


