/* Basic Reset & Global Styles */

:root {
	--primary-color: #036600;
	/* Main green */
	--primary-color-dark: #388E3C;
	--accent-color: #FFC107;
	/* Yellow for AI Tips button */
	--light-bg: #f0fdf4;
	/* Very light green background */
	--card-bg: #ffffff;
	--text-color: #333;
	--text-light: #555;
	--border-color: #e0e0e0;
	--box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	--font-family: 'Arial', sans-serif;
	/* Replace with a nicer sans-serif if desired */
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: var(--font-family);
	line-height: 1.6;
	background-color: var(--light-bg);
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.container {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}
h1, h2, h3 {
	color: #036600;
	margin-bottom: 0.8em;
}
h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 1.8rem;
}
h3 {
	font-size: 1.4rem;
}
p {
	margin-bottom: 1em;
	color: var(--text-light);
}
a {
	text-decoration: none;
	color: #036600;
}
img {
	max-width: 100%;
	height: auto;
}
.hidden {
	display: none !important;
}
/* Header */

header {
	background-color: var(--card-bg);
	padding: 1em 0;
	box-shadow: var(--box-shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}
.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.logo {
	font-size: 1.8em;
	font-weight: bold;
	color: var(--primary-color);
	display: flex;
	align-items: center;
}
.logo-icon {
	width: 30px;
	/* Adjust size as needed */
	height: 30px;
	margin-right: 8px;
}
nav ul {
	list-style: none;
	display: flex;
}
nav ul li {
	margin-left: 20px;
}
nav ul li a {
	color: var(--text-color);
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 4px;
	transition: background-color 0.3s, color 0.3s;
}
nav ul li a i {
	margin-right: 5px;
}
nav ul li a:hover, nav ul li a.active {
	background-color: #036600;
	color: white;
}
.header-actions {
	display: flex;
	align-items: center;
}
.settings-btn {
	width: 35px;
	height: 35px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	margin-right: 10px;
	cursor: pointer;
	color: var(--text-light);
}
.search-btn {
	background: none;
	border: none;
	font-size: 1.2em;
	cursor: pointer;
	color: var(--text-light);
	padding: 5px;
}
/* Main Content & Page Sections */

main {
	flex-grow: 1;
	padding-top: 20px;
	/* Space below sticky header */
}
.page-section {
	padding: 40px 0;
}
.page-header {
	text-align: center;
	margin-bottom: 40px;
}
.page-header h1 {
	font-size: 2.8rem;
}
.page-header p {
	font-size: 1.1rem;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}
/* Buttons */

.btn {
	display: inline-block;
	padding: 15px 25px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 1em;
	font-weight: 500;
	transition: background-color 0.3s, opacity 0.3s;
	text-align: center;
}
.btn i {
	margin-right: 5px;
}
.btn-primary {
	background-color: #036600;
	color: white;
}
.btn-primary:hover {
	background-color: var(--primary-color-dark);
}
.btn-secondary {
	background-color: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
	background-color: var(--primary-color-dark);
	color: white;
	border-color: var(--primary-color-dark);
}
.btn-secondary i {
	margin-left: 5px;
}
.btn-accent {
	background-color: var(--accent-color);
	color: var(--text-color);
}
.btn-accent:hover {
	opacity: 0.9;
}
.btn-outline {
	background-color: var(--card-bg);
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}
.btn-outline:hover {
	background-color: var(--primary-color-dark);
	border-color: var(--primary-color-dark);
	color: white;
}
/* Home Page Specifics */

.hero-section {
	text-align: center;
	padding: 60px 0;
	background-color: var(--card-bg);
	border-radius: 8px;
	margin-bottom: 40px;
}
.hero-section h1 {
	color: var(--primary-color);
	font-size: 3rem;
}
.hero-buttons {
	margin-top: 30px;
}
.hero-buttons .btn {
	margin: 0 10px;
}
.daily-inspiration-section {
	padding: 40px 0;
}
.inspiration-card {
	background-color: var(--card-bg);
	padding: 30px;
	border-radius: 8px;
	box-shadow: var(--box-shadow);
	text-align: center;
}
.inspiration-card h2 i {
	color: var(--primary-color);
}
.inspiration-card .quote {
	font-size: 1.3em;
	font-style: italic;
	color: var(--text-color);
	margin: 20px 0;
}
.inspiration-card .attribution {
	font-size: 1em;
	color: var(--text-light);
}
.social-icon {
	font-size: 1.7em;
}
.featured-articles-section, .cta-section {
	padding: 40px 0;
}
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.view-all-link {
	font-weight: 500;
}
.view-all-link i {
	margin-left: 5px;
}
.cta-section {
	background-color: #036600;
	color: white;
	text-align: center;
	border-radius: 8px;
	padding: 50px 20px;
	/* Added padding for the section itself */
}
.cta-section .container {
	/* Ensure container settings are applied */
	width: 90%;
	max-width: 800px;
	/* Limit width for better readability */
	margin: 0 auto;
}
.cta-section h2 {
	color: white;
	font-size: 2.2rem;
}
.cta-section p {
	color: #e0e0e0;
	/* Lighter text for sub-headline */
	font-size: 1.1rem;
	margin-bottom: 30px;
}
.cta-buttons .btn {
	margin: 10px;
}
/* Adjust CTA button colors based on image */

.cta-buttons .btn-accent {
	/* "Get AI Tips" button */
	background-color: var(--accent-color);
	color: var(--text-color);
}
.cta-buttons .btn-outline {
	/* "Manage Goals" button */
	background-color: white;
	color: #036600;
	/* Text color to match section bg */
	border: 2px solid white;
	/* Border white or none */
}
.cta-buttons .btn-outline:hover {
	background-color: #f0f0f0;
	/* Slightly darker on hover */
	border-color: #f0f0f0;
}
/* Articles Page & Article Cards */

.search-bar-container {
	display: flex;
	gap: 10px;
	margin-bottom: 40px;
	align-items: center;
}
#article-search-input {
	flex-grow: 1;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1em;
}
/* Default, flexible grid for all article grids (like on articles.html) */

.articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
/* Specific override for the Featured Articles grid on the main page ONLY */

#featured-articles-grid {
	grid-template-columns: repeat(2, 1fr);
}
.article-card {
	background-color: var(--card-bg);
	border-radius: 8px;
	box-shadow: var(--box-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.article-card img.placeholder-img {
	width: 100%;
	height: 200px;
	/* Corresponds to 600x400 aspect ratio if width is ~300px */
	background-color: #e0e0e0;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #aaa;
	font-size: 1.5em;
}
.article-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.article-category {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.8em;
	margin-bottom: 10px;
	align-self: flex-start;
}
.article-card h3 {
	font-size: 1.3em;
	margin-bottom: 10px;
	color: var(--text-color);
	/* Black for titles */
}
.article-card p.description {
	font-size: 0.95em;
	margin-bottom: 15px;
	flex-grow: 1;
}
.article-meta {
	font-size: 0.85em;
	color: var(--text-light);
	margin-bottom: 15px;
}
.article-meta span {
	margin-right: 15px;
}
.article-meta i {
	margin-right: 5px;
	color: var(--primary-color);
}
.article-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	/* Pushes footer to bottom */
	padding-top: 15px;
	border-top: 1px solid var(--border-color);
}
.article-card .article-image {
	width: 100%;
	/* Make image take full width of its container */
	height: 200px;
	/* Or your desired height */
	object-fit: cover;
	/* This will cover the area, cropping if aspect ratio differs */
	display: block;
	/* Removes any extra space below the image if it's inline */
	border-bottom: 1px solid #eee;
	/* Optional: a separator line */
}
.read-more-link {
	font-weight: 500;
}
.read-more-link i {
	margin-left: 5px;
}
.bookmark-icon {
	font-size: 1.2em;
	color: var(--text-light);
	cursor: pointer;
}
.bookmark-icon:hover {
	color: var(--primary-color);
}
/* SIMPLIFIED RULE */

.bookmark-icon.bookmarked {
	color: var(--primary-color);
}
/* Goals Page */

.add-goal-form {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	align-items: center;
	background-color: var(--card-bg);
	padding: 20px;
	border-radius: 8px;
	box-shadow: var(--box-shadow);
}
#new-goal-input {
	flex-grow: 1;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1em;
}
#new-goal-date {
	padding: 11px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1em;
	font-family: var(--font-family);
	/* Ensure consistent font */
}
.active-goals-container h2 {
	margin-bottom: 20px;
}
#goals-list {
	list-style: none;
}
#goals-list li {
	background-color: var(--card-bg);
	padding: 15px 20px;
	border-radius: 5px;
	margin-bottom: 10px;
	box-shadow: var(--box-shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.goal-item-content {
	display: flex;
	align-items: center;
	flex-grow: 1;
}
.goal-item-content input[type="checkbox"] {
	margin-right: 15px;
	transform: scale(1.2);
	/* Make checkbox slightly larger */
	cursor: pointer;
}
.goal-text {
	flex-grow: 1;
}
.goal-text.completed {
	text-decoration: line-through;
	color: var(--text-light);
}
.goal-date {
	font-size: 0.9em;
	color: var(--text-light);
	margin-right: 20px;
	white-space: nowrap;
}
.goal-date i {
	margin-right: 5px;
	color: var(--primary-color);
}
.delete-goal-btn {
	background: none;
	border: none;
	color: #E57373;
	/* Light red */
	font-size: 1.1em;
	cursor: pointer;
}
.delete-goal-btn:hover {
	color: #D32F2F;
	/* Darker red */
}
/* AI Tips Page */

.ai-tips-content {
	background-color: var(--card-bg);
	padding: 40px;
	border-radius: 8px;
	box-shadow: var(--box-shadow);
	text-align: center;
	max-width: 700px;
	/* Limit width for better form layout */
	margin: 20px auto;
	/* Center it more prominently */
}
.ai-tips-icon {
	font-size: 3em;
	color: var(--primary-color);
	margin-bottom: 20px;
}
#ai-tips-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 20px;
}
#ai-tips-form label {
	font-weight: 500;
	text-align: left;
	font-size: 1.1em;
}
#ai-goal-input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1em;
	font-family: var(--font-family);
	resize: vertical;
}
#ai-tips-form button {
	align-self: center;
	/* Center button */
}
#ai-response-area {
	margin-top: 30px;
	padding: 20px;
	background-color: var(--light-bg);
	/* Slightly different background for response */
	border-radius: 5px;
	text-align: left;
}
#ai-response-area h3 {
	color: var(--primary-color-dark);
}
/* Footer */

footer {
	text-align: center;
	padding: 20px 0;
	background-color: #e9e9e9;
	/* Slightly darker than body bg */
	color: var(--text-light);
	font-size: 0.9em;
	margin-top: auto;
	/* Pushes footer to bottom */
}
footer p {
	margin-bottom: 5px;
}
/* Toast Notification */

.toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: var(--primary-color-dark);
	color: white;
	padding: 15px 25px;
	border-radius: 5px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 1001;
	opacity: 0;
	transition: opacity 0.5s, transform 0.5s;
	transform: translateY(20px);
}
.toast.show {
	opacity: 1;
	transform: translateY(0);
}
/* Responsive adjustments (basic example) */

@media (max-width: 301px) {
	.header-content nav {
		display: none;
		/* Simple hide for mobile, could be a burger menu */
	}
	.hero-section h1 {
		font-size: 2.2rem;
	}
	.page-header h1 {
		font-size: 2rem;
	}
	.articles-grid, #featured-articles-grid {
		grid-template-columns: 1fr;
		/* Stack cards on smaller screens for both grids */
	}
	.add-goal-form {
		flex-direction: column;
	}
	#new-goal-input, #new-goal-date, .add-goal-form button {
		width: 100%;
	}
}
/* --- About Us Page Styles (FIXED) --- */

.about-intro-text {
	font-size: 1.2rem;
	color: var(--text-color);
	max-width: 800px;
	margin: -20px auto 40px auto;
}
.about-content-section {
	background-color: var(--card-bg);
	padding: 30px 40px;
	border-radius: 8px;
	margin-bottom: 40px;
	box-shadow: var(--box-shadow);
}
.about-content-section h2 {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 1.6rem;
}
.about-content-section h2 i {
	color: var(--primary-color);
}
.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 20px;
}
.value-item {
	text-align: center;
	padding: 20px;
}
.value-icon {
	font-size: 2.5em;
	color: var(--primary-color-dark);
	margin-bottom: 15px;
}
.value-item h3 {
	font-size: 1.3rem;
	color: var(--text-color);
	margin-bottom: 10px;
}
/* --- [NEW] Footer Styles --- */

.site-footer {
	background-color: #efefef;
	/* A very light green, like the example */
	color: #333;
	position: relative;
}
.footer-wave {
	width: 100%;
	overflow: hidden;
	line-height: 0;
}
.footer-wave svg {
	display: block;
	width: 100%;
	height: 30px;
	/* Adjust height of the wave */
}
.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}
.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}
.footer-column h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #036600;
	/* Evolvivo's primary green */
}
.footer-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-column ul li {
	margin-bottom: 0.75rem;
}
.footer-column ul a {
	color: #555;
	text-decoration: none;
	transition: color 0.2s;
}
.footer-column ul a:hover {
	color: #036600;
}
.social-links {
	display: flex;
	gap: 1rem;
}
.social-links a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background-color: #036600;
	color: white;
	border-radius: 50%;
	text-decoration: none;
	transition: transform 0.2s, background-color 0.2s;
}
.social-links a:hover {
	background-color: #024b00;
	/* Darker green on hover */
	transform: translateY(-2px);
}
.footer-bottom {
	text-align: center;
	border-top: 1px solid #d9e8d9;
	padding-top: 1.5rem;
	font-size: 0.875rem;
	color: #777;
}
/* --- [NEW] Responsive Footer Styles --- */

@media (max-width: 768px) {
	.footer-content {
		grid-template-columns: repeat(2, 1fr);
		/* 2 columns on tablets */
		text-align: center;
	}
	.social-links {
		justify-content: center;
	}
}
