/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #1a1a1a;
	background: #fff;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

#container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: block;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.header {
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.header__container {
	padding: 20px 0;
}

.home-header__intro {
	margin-bottom: 10px;
}

.home-header__intro h1 {
	font-size: 24px;
	font-weight: 400;
	margin: 0;
}

.header-logo {
	text-decoration: none;
	color: #1a1a1a;
}

.g-logo-medium,
.g-logo-small {
	font-weight: 700;
	color: #0066FF;
}

.banner {
	display: none;
}

.banner__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

/* Filters */
.home-grid__filters {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 30px 0;
	padding: 0;
	border-bottom: 1px solid #e5e5e5;
}

.home-grid__filters li {
	margin: 0;
	padding: 0;
}

.home-grid__filters li a {
	display: block;
	padding: 15px 20px 15px 0;
	text-decoration: none;
	color: #666;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.home-grid__filters li.home-grid__filter--label a {
	color: #999;
	font-weight: 400;
	padding-right: 30px;
}

.home-grid__filters li.current-menu-item a,
.home-grid__filters li a:hover {
	color: #0066FF;
	text-decoration: underline;
	border-bottom-color: transparent;
}

/* Featured Wrap */
.featured-wrap {
	margin: 40px 0;
}

.featured-wrap .post {
	display: flex;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e5e5e5;
}

.featured-wrap .post-thumbnail {
	flex: 0 0 649px;
	height: 487px;
	background-size: cover;
	background-position: center;
	display: block;
	text-decoration: none;
}

.featured-wrap .details-wrap {
	flex: 1;
}

.featured-wrap h4 {
	margin: 0 0 10px;
}

.featured-wrap .category {
	color: #0066FF;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.featured-wrap .post-title {
	font-size: 36px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 15px;
}

.featured-wrap .post-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.featured-wrap .post-title a:hover {
	color: #0066FF;
}

.featured-wrap .meta {
	margin: 15px 0;
	font-size: 13px;
	color: #999;
	display: flex;
	gap: 15px;
}

.featured-wrap .meta__author span,
.featured-wrap .meta__date span {
	font-weight: 400;
}

.featured-wrap .meta__author a {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
}

.featured-wrap .excerpt {
	margin: 20px 0;
	font-size: 16px;
	line-height: 1.7;
	color: #555;
}

.featured-wrap .read-more {
	color: #0066FF;
	text-decoration: none;
}

.featured-wrap .featured-read-more {
	display: inline-block;
	margin-top: 15px;
	color: #0066FF;
	text-decoration: none;
	font-weight: 600;
}

/* Main Content */
#content {
	margin: 0;
}

#inner-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

#main {
	width: 66.666%;
	float: left;
	padding-right: 40px;
}

/* Category Sections */
.category-section {
	margin: 60px 0;
}

.category-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e5e5e5;
}

.category-section-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
	color: #1a1a1a;
}

.carousel-controls-header {
	display: flex;
	gap: 10px;
	align-items: center;
}

.carousel-controls-header .carousel-btn {
	position: static;
	transform: none;
	margin: 0;
}

/* Articles Grid */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.articles-carousel-wrapper {
	position: relative;
	margin: 0 -10px;
}

.carousel-container {
	overflow: hidden;
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 30px;
	transition: transform 0.5s ease;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #e5e5e5;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 30px;
	font-weight: 300;
	color: #0066FF;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.carousel-btn:hover {
	background: #0066FF;
	color: white;
	border-color: #0066FF;
}

.articles-carousel-wrapper .carousel-prev {
	left: -25px;
}

.articles-carousel-wrapper .carousel-next {
	right: -25px;
}

.carousel-btn.hidden {
	display: none;
}

/* Post Cards in Grid */
.articles-grid .post-card {
	display: flex;
	flex-direction: column;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.articles-grid .post-card .post-thumbnail {
	float: none;
	margin: 0 0 15px 0;
	width: 100%;
}

.articles-grid .post-card .post-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
}

.articles-grid .post-card h4 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.articles-grid .post-card .category {
	color: #0066FF;
	text-decoration: none;
}

.articles-grid .post-card .category:hover {
	text-decoration: underline;
}

.articles-grid .post-card .post-title {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 12px;
	clear: both;
}

.articles-grid .post-card .post-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.articles-grid .post-card .post-title a:hover {
	color: #0066FF;
}

.articles-grid .post-card .meta {
	margin: 12px 0;
	font-size: 13px;
	color: #999;
	display: flex;
	gap: 10px;
}

.articles-grid .post-card .meta span {
	font-weight: 400;
}

.articles-grid .post-card .meta a {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
}

.articles-grid .post-card .excerpt {
	margin: 15px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.articles-grid .post-card .read-more {
	color: #0066FF;
	text-decoration: none;
}

.articles-grid .post-card .read-more:hover {
	text-decoration: underline;
}

#main article {
	margin-bottom: 50px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e5e5e5;
}

#main article:last-child {
	border-bottom: none;
}

#main .post-thumbnail {
	float: left;
	margin: 0 25px 15px 0;
	display: block;
}

#main .post-thumbnail img {
	width: 283px;
	height: 212px;
	object-fit: cover;
	display: block;
}

#main h4 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

#main .category {
	color: #0066FF;
	text-decoration: none;
}

#main .category:hover {
	text-decoration: underline;
}

#main .post-title {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 12px;
	clear: both;
}

#main .post-title a {
	color: #1a1a1a;
	text-decoration: none;
}

#main .post-title a:hover {
	color: #0066FF;
}

#main .meta {
	margin: 12px 0;
	font-size: 13px;
	color: #999;
	display: flex;
	gap: 10px;
}

#main .meta span {
	font-weight: 400;
}

#main .meta a {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
}

#main .excerpt {
	margin: 15px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

#main .read-more {
	color: #0066FF;
	text-decoration: none;
}

#main .read-more:hover {
	text-decoration: underline;
}

/* Sidebar */
#sidebar1 {
	width: 33.333%;
	float: right;
	padding-left: 20px;
}

.widget {
	margin-bottom: 40px;
}

.widget .title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
	color: #1a1a1a;
}

.widget .menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget .menu li {
	margin-bottom: 10px;
}

.widget .menu li a {
	color: #555;
	text-decoration: none;
	font-size: 14px;
}

.widget .menu li a:hover {
	color: #0066FF;
}

/* Footer */
.footer {
	border-top: 1px solid #e5e5e5;
	padding: 40px 0;
	margin-top: 60px;
	background: #f9f9f9;
}

.footer__content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.footer__logo {
	font-size: 24px;
	font-weight: 700;
	color: #0066FF;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 15px;
}

.footer__contact {
	margin: 20px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

.footer__contact p {
	margin: 8px 0;
}

.footer__address {
	font-style: normal;
}

.footer__phone {
	font-weight: 600;
	color: #0066FF;
}

.footer__cnpj {
	font-size: 12px;
	color: #999;
	margin-top: 10px;
}

.footer__links {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin: 20px 0;
}

.footer__links a {
	color: #666;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s;
}

.footer__links a:hover {
	color: #0066FF;
	text-decoration: underline;
}

.footer__content__copy {
	font-size: 13px;
	color: #999;
	margin-top: 20px;
}

/* Hidden class for filtering */
.hidden {
	display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.carousel-prev {
		left: -15px;
	}

	.carousel-next {
		right: -15px;
	}
}

@media (max-width: 768px) {
	#main {
		width: 100%;
		float: none;
		padding-right: 0;
	}

	#sidebar1 {
		width: 100%;
		float: none;
		padding-left: 0;
	}

	.featured-wrap .post {
		flex-direction: column;
	}

	.featured-wrap .post-thumbnail {
		flex: none;
		width: 100%;
		height: 300px;
	}

	#main .post-thumbnail {
		float: none;
		margin: 0 0 15px 0;
	}

	#main .post-thumbnail img {
		width: 100%;
		height: auto;
	}

	.home-grid__filters {
		flex-direction: column;
		border-bottom: none;
	}

	.home-grid__filters li a {
		border-bottom: 1px solid #e5e5e5;
		padding: 15px 0;
	}

	.home-grid__filters li.current-menu-item a {
		border-bottom-color: #0066FF;
	}

	.articles-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.carousel-btn {
		display: none;
	}

	.category-section {
		margin: 40px 0;
	}

	.category-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.category-section-title {
		font-size: 24px;
	}

	.carousel-controls-header {
		align-self: flex-end;
	}

	.footer__contact {
		font-size: 13px;
		padding: 0 10px;
	}

	.footer__contact p {
		margin: 6px 0;
	}

	.footer__address {
		font-size: 12px;
	}

	.footer__phone {
		font-size: 14px;
	}

	.footer__cnpj {
		font-size: 11px;
	}

	.footer__links {
		gap: 15px;
	}

	.footer__links a {
		font-size: 13px;
	}
}

/* Article Page Styles - TED Style */
.article-page header {
	margin-bottom: 0;
}

.article-header {
	background: #fff;
	color: #1a1a1a;
	padding: 3rem 0 2rem;
	border-bottom: 1px solid #e5e5e5;
}

.article-header-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

.breadcrumbs {
	margin-bottom: 1.5rem;
	font-size: 13px;
	color: #666;
}

.breadcrumbs a {
	color: #0066FF;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.article-header .category {
	display: inline-block;
	color: #0066FF;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 1.2px;
	margin-bottom: 15px;
}

.article-title {
	font-size: 42px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
	letter-spacing: -0.5px;
}

.article-meta-header {
	display: flex;
	gap: 15px;
	font-size: 14px;
	color: #999;
	margin-top: 20px;
}

.article-meta-header span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.article-body {
	max-width: 700px;
	margin: 3rem auto;
	padding: 0 20px;
	font-size: 18px;
	line-height: 1.8;
	color: #333;
}

.article-body > img:first-of-type {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 3rem;
	display: block;
	border-radius: 4px;
}

.article-body p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.article-body h2 {
	font-size: 32px;
	line-height: 1.3;
	margin: 3rem 0 1.5rem;
	color: #1a1a1a;
	font-weight: 700;
	letter-spacing: -0.3px;
}

.article-body h3 {
	font-size: 24px;
	line-height: 1.4;
	margin: 2rem 0 1rem;
	color: #1a1a1a;
	font-weight: 700;
}

.article-body h4 {
	font-size: 20px;
	line-height: 1.4;
	margin: 1.5rem 0 0.75rem;
	color: #1a1a1a;
	font-weight: 600;
}

.article-body img {
	width: 100%;
	border-radius: 4px;
	margin: 2rem 0;
}

.article-body ul,
.article-body ol {
	margin: 1.5rem 0 1.5rem 2rem;
	padding: 0;
}

.article-body li {
	margin-bottom: 0.75rem;
	line-height: 1.7;
}

.article-body strong {
	font-weight: 600;
	color: #1a1a1a;
}

.article-body code {
	background: #f5f5f5;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: 'Monaco', 'Courier New', monospace;
	color: #0066FF;
}

.article-body pre {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 1.5rem;
	overflow-x: auto;
	margin: 2rem 0;
	font-size: 15px;
	line-height: 1.6;
}

.article-body pre code {
	background: none;
	padding: 0;
	color: #333;
	font-size: inherit;
}

.article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
}

.article-body table th {
	background: #f9f9f9;
	padding: 12px 15px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #e5e5e5;
}

.article-body table td {
	padding: 12px 15px;
	border-bottom: 1px solid #e5e5e5;
}

.article-body blockquote {
	border-left: 4px solid #0066FF;
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: #555;
}

.back-link {
	display: inline-block;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e5e5;
	color: #0066FF;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}

.back-link:hover {
	text-decoration: underline;
}
