/* ==========================================================================
   WP Acadêmicos - Main Stylesheet
   Clean, Professional, Minimal Design
   ========================================================================== */

:root {
	--primary-color: #1a1a1a;
	--secondary-color: #0066cc;
	--accent-color: #f39c12;
	--text-dark: #333333;
	--text-muted: #666666;
	--bg-light: #f9f9f9;
	--bg-white: #ffffff;
	--border-light: #eeeeee;
	--transition: 0.3s ease-in-out;
}

/* ==========================================================================
   Reset & Basics
   ========================================================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--bg-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
	color: var(--secondary-color);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--primary-color);
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

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

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background-color: var(--bg-white);
	border-bottom: 1px solid var(--border-light);
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 999;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding {
	flex-shrink: 0;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
}

.site-title a {
	color: var(--primary-color);
}

.site-title a:hover {
	color: var(--secondary-color);
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.main-navigation .menu {
	list-style: none;
	display: flex;
	gap: 50px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--text-dark);
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	position: relative;
	padding-bottom: 5px;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: width var(--transition);
}

.main-navigation a:hover::after {
	width: 100%;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	color: var(--text-dark);
}

/* Header Social Icons */
.header-social-icons {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-left: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
	background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
	color: var(--bg-white);
	padding: 100px 0;
	text-align: center;
}

.hero-content {
	max-width: 700px;
	margin: 0 auto;
}

.hero-title {
	color: var(--bg-white);
	font-size: 3rem;
	margin-bottom: 20px;
	font-weight: 800;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 40px;
	font-weight: 300;
}

.hero-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-block;
	padding: 12px 30px;
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all var(--transition);
	border: none;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
}

.btn-primary {
	background-color: var(--secondary-color);
	color: var(--bg-white);
}

.btn-primary:hover {
	background-color: var(--accent-color);
}

.btn-secondary {
	background-color: transparent;
	color: var(--bg-white);
	border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
	background-color: var(--bg-white);
	color: var(--primary-color);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
	background-color: var(--bg-light);
	padding: 80px 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	text-align: center;
}

.stat-item {
	padding: 20px;
}

.stat-number {
	font-size: 3rem;
	font-weight: 800;
	color: var(--secondary-color);
	margin-bottom: 10px;
}

.stat-label {
	font-size: 1rem;
	color: var(--text-muted);
	font-weight: 600;
}

/* ==========================================================================
   Courses Section
   ========================================================================== */

.courses-section {
	padding: 80px 0;
}

.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 15px;
	color: var(--primary-color);
}

.section-subtitle {
	text-align: center;
	color: var(--text-muted);
	font-size: 1.1rem;
	margin-bottom: 50px;
}

.courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.course-card {
	background-color: var(--bg-white);
	padding: 20px;
	text-align: left;
	transition: transform var(--transition), background-color var(--transition);
}

.course-card:hover {
	transform: translateY(-5px);
	background-color: var(--bg-light);
}

.course-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	margin-bottom: 20px;
	background-color: var(--border-light);
}

.course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-title {
	font-size: 1.25rem;
	margin-bottom: 10px;
}

.course-title a {
	color: var(--primary-color);
}

.course-title a:hover {
	color: var(--secondary-color);
}

.course-excerpt {
	color: var(--text-muted);
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.course-link {
	color: var(--secondary-color);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.course-link:hover {
	color: var(--accent-color);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
	background-color: var(--bg-light);
	padding: 80px 0;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.about-content h2 {
	margin-bottom: 20px;
}

.about-content p {
	color: var(--text-muted);
	margin-bottom: 20px;
	line-height: 1.8;
}

.about-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.feature-item {
	text-align: center;
}

.feature-item i {
	font-size: 2.5rem;
	color: var(--secondary-color);
	margin-bottom: 15px;
	display: block;
}

.feature-item h3 {
	font-size: 1rem;
	margin-bottom: 10px;
	color: var(--primary-color);
}

.feature-item p {
	font-size: 0.9rem;
	color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background-color: var(--primary-color);
	color: var(--bg-white);
	padding: 60px 0 20px;
	margin-top: auto;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
	color: var(--bg-white);
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.footer-section p {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 10px;
	font-size: 0.95rem;
}

.footer-section a {
	color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
	color: var(--accent-color);
}

.footer-section ul {
	list-style: none;
}

.footer-section li {
	margin-bottom: 10px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

/* ==========================================================================
   Posts Grid
   ========================================================================== */

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 50px 0;
}

.post-card {
	background-color: var(--bg-white);
	padding: 20px;
	transition: transform var(--transition), background-color var(--transition);
}

.post-card:hover {
	transform: translateY(-5px);
	background-color: var(--bg-light);
}

.post-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	margin-bottom: 20px;
	background-color: var(--border-light);
}

.post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-title {
	font-size: 1.25rem;
	margin-bottom: 10px;
}

.entry-title a {
	color: var(--primary-color);
}

.entry-title a:hover {
	color: var(--secondary-color);
}

.entry-meta {
	display: flex;
	gap: 20px;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 15px;
}

.entry-meta i {
	margin-right: 5px;
}

.entry-excerpt {
	color: var(--text-muted);
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.read-more {
	color: var(--secondary-color);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.read-more:hover {
	color: var(--accent-color);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-container {
	max-width: 800px;
	margin: 50px auto;
	padding: 0 20px;
}

.single-post {
	background-color: var(--bg-white);
}

.page-content {
	background-color: var(--bg-white);
}

.post-featured-image {
	width: 100%;
	height: 400px;
	overflow: hidden;
	margin-bottom: 40px;
	background-color: var(--border-light);
}

.post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-header {
	margin-bottom: 30px;
}

.entry-content {
	line-height: 1.8;
	font-size: 1.05rem;
}

.entry-content p {
	margin-bottom: 20px;
}

.entry-content h2 {
	margin: 40px 0 20px;
}

.entry-content h3 {
	margin: 30px 0 15px;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	margin: 20px 0;
}

.post-tags {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--border-light);
	color: var(--text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 50px 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border-light);
	color: var(--text-dark);
	text-decoration: none;
	transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
	background-color: var(--secondary-color);
	color: var(--bg-white);
	border-color: var(--secondary-color);
}

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

@media (max-width: 768px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }

	.header-content {
		gap: 20px;
	}

	.main-navigation .menu {
		gap: 30px;
		font-size: 0.85rem;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.about-grid,
	.footer-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.courses-grid {
		grid-template-columns: 1fr;
	}

	.about-features {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	html {
		font-size: 14px;
	}

	.container {
		padding: 0 15px;
	}

	.site-header {
		padding: 15px 0;
	}

	.site-title {
		font-size: 1.25rem;
	}

	.main-navigation {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.hero-section {
		padding: 60px 0;
	}

	.hero-title {
		font-size: 1.5rem;
	}

	.hero-subtitle {
		font-size: 0.9rem;
	}

	.hero-buttons {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.stats-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.stat-number {
		font-size: 2rem;
	}

	.section-title {
		font-size: 1.75rem;
	}

	.courses-grid {
		grid-template-columns: 1fr;
	}

	.courses-section,
	.about-section,
	.stats-section {
		padding: 50px 0;
	}

	.footer-content {
		gap: 30px;
	}
}
