/* AgriSolar Custom Styles */

/* Header background appears on scroll */
#header:not(.alt) {
	background-color: #f0f8f0 !important;
}

/* Ensure header has smooth transition */
#header {
	transition: background-color 0.3s ease;
}

/* Floating logo styles */
.floating-logo {
	position: fixed;
	top: 30px;
	left: 30px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	padding: 15px;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.8s ease;
	backdrop-filter: blur(10px);
	opacity: 1;
	transform: translateY(0);
}

.floating-logo img {
	height: 60px;
	width: auto;
	transition: all 0.8s ease;
}

/* Logo when scrolled - fade out and disappear */
.floating-logo.scrolled {
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
}

/* Hide the original center logo */
.banner-center-logo {
	display: none;
}

/* Adjust banner content positioning */
#banner .inner {
	padding-top: 6em;
}

/* Banner navigation buttons styling */
#banner .more {
	-moz-transition: -moz-transform 0.75s ease, opacity 0.75s ease;
	-webkit-transition: -webkit-transform 0.75s ease, opacity 0.75s ease;
	-ms-transition: -ms-transform 0.75s ease, opacity 0.75s ease;
	transition: transform 0.75s ease, opacity 0.75s ease;
	-moz-transform: translateY(0);
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
	border: none;
	bottom: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.8em;
	height: 8.5em;
	letter-spacing: 0.225em;
	opacity: 1;
	outline: 0;
	padding-left: 0.225em;
	position: absolute;
	text-align: center;
	text-transform: uppercase;
	width: 16em;
	z-index: 1;
}

#banner .more:hover {
	color: #ffffff;
}

#banner .more:after {
	background-image: url("images/arrow.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	bottom: 4em;
	content: '';
	display: block;
	height: 1.5em;
	left: 50%;
	margin: 0 0 0 -0.75em;
	position: absolute;
	width: 1.5em;
	filter: invert(0.7) sepia(1) saturate(2) hue-rotate(80deg) brightness(1.5);
}

/* Testimonial slideshow styles */
.testimonial-slideshow {
	position: relative;
	background: #f8f9fa;
	padding: 2em;
	border-radius: 15px;
	margin: 2em 0;
	border-left: 5px solid #4CAF50;
	overflow: hidden;
}

.testimonial-slide {
	opacity: 0;
	transform: translateX(30px);
	transition: all 0.8s ease;
	position: absolute;
	top: 2em;
	left: 2em;
	right: 2em;
	pointer-events: none;
}

.testimonial-slide.active {
	opacity: 1;
	transform: translateX(0);
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	pointer-events: auto;
}

.testimonial-content {
	display: flex;
	gap: 2em;
	align-items: center;
}

.testimonial-image {
	flex: 0 0 150px;
	height: 200px;
	border-radius: 10px;
	overflow: hidden;
	border: 4px solid #4CAF50;
}

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

.testimonial-text {
	flex: 1;
}

.testimonial-slide blockquote {
	font-size: 1.2em;
	font-style: italic;
	margin: 0;
	color: #2d5a2d;
}

.testimonial-slide .attribution {
	text-align: right;
	margin-top: 1em;
	font-weight: bold;
	color: #4CAF50;
}

.testimonial-indicators {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 1em;
}

.testimonial-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background 0.3s ease;
}

.testimonial-dot.active {
	background: #4CAF50;
}

/* Responsive testimonials */
@media (max-width: 768px) {
	.testimonial-content {
		flex-direction: column;
		text-align: center;
		gap: 1.5em;
	}
	
	.testimonial-image {
		flex: 0 0 120px;
		height: 160px;
		align-self: center;
	}
	
	.testimonial-slide .attribution {
		text-align: center;
	}
}

/* Feature cards with images styling */
.features-with-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3em;
	margin: 3em 0;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.feature-card {
	background: #f8f9fa;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-height: 450px;
	display: flex;
	flex-direction: column;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-image {
	width: 100%;
	height: 250px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

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

.feature-content {
	padding: 2em;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.feature-content .icon {
	font-size: 2.5em;
	color: #4CAF50;
	margin-bottom: 0.75em;
}

.feature-content h3 {
	color: #2d5a2d;
	margin: 0 0 1em 0;
	font-size: 1.4em;
}

.feature-content p {
	color: #2d5a2d;
	margin: 0;
	font-size: 1em;
	line-height: 1.7;
	flex-grow: 1;
}

/* Mission, Impact, and Solution sections navigation buttons */
#one, #two, #four {
	position: relative;
	padding-bottom: 6em; /* Add space for navigation buttons */
}

/* Mission section two-column layout */
#one .inner {
	max-width: 1200px;
	margin: 0 auto;
}

.mission-header {
	text-align: center;
	margin-bottom: 4em;
}

.mission-content-wrapper {
	display: grid;
	grid-template-columns: 4fr 1fr;
	gap: 4em;
	align-items: center;
}

.mission-content {
	padding-right: 2em;
}

.mission-image {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
}

.mission-image:hover {
	transform: translateY(-5px);
}

.mission-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

@media screen and (max-width: 980px) {
	.mission-content-wrapper {
		grid-template-columns: 1fr;
		gap: 3em;
		text-align: center;
	}
	
	.mission-content {
		padding-right: 0;
		order: 2;
	}
	
	.mission-image {
		order: 1;
		max-width: 500px;
		margin: 0 auto;
	}
}

.section-navigation {
	display: flex;
	justify-content: center;
	gap: 2em;
	margin-top: 3em;
	position: absolute;
	bottom: 2em;
	left: 0;
	right: 0;
}

.section-navigation .nav-button {
	display: inline-block;
	padding: 0.75em 1.5em;
	border: 2px solid #2d5a2d;
	background: transparent;
	color: #2d5a2d;
	text-decoration: none;
	border-radius: 25px;
	font-size: 0.9em;
	font-weight: bold;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: all 0.3s ease;
	min-width: 120px;
	text-align: center;
}

.section-navigation .nav-button:hover {
	background: #2d5a2d;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(45, 90, 45, 0.3);
}

/* Media Queries */
@media screen and (max-width: 980px) {
	#banner .more {
		display: none;
	}
	
	.features-with-images {
		grid-template-columns: 1fr;
		gap: 2em;
		margin: 2em 0;
	}
	
	.feature-card {
		min-height: 400px;
	}
	
	.feature-image {
		height: 220px;
	}
	
	.feature-content {
		padding: 1.5em;
	}
	
	.feature-content .icon {
		font-size: 2em;
	}
	
	.feature-content h3 {
		font-size: 1.2em;
	}
	
	.feature-content p {
		font-size: 0.9em;
	}
	
	#one, #two, #four {
		padding-bottom: 4em; /* Reduce padding on mobile */
	}
	
	.section-navigation {
		flex-direction: column;
		align-items: center;
		gap: 1em;
		margin-top: 2em;
	}
	
	.section-navigation .nav-button {
		min-width: 200px;
		font-size: 0.8em;
		padding: 0.6em 1.2em;
	}
}

@media screen and (max-width: 768px) {
	.floating-logo {
		top: 20px;
		left: 20px;
		padding: 10px;
	}
	
	.floating-logo img {
		height: 45px;
	}
	
	.floating-logo.scrolled {
		opacity: 0;
		transform: translateY(-15px);
		pointer-events: none;
	}
}

/* News Page Styles */
.news-container {
	max-width: 800px;
	margin: 0 auto;
}

.news-article {
	margin-bottom: 4em;
	padding: 2em;
	background: #f8f9fa;
	border-radius: 15px;
	border-left: 5px solid #4CAF50;
	transition: all 0.3s ease;
}

.news-article:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-article header h3 {
	color: #2E7D32;
	margin-bottom: 0.5em;
	font-size: 1.4em;
	line-height: 1.3;
}

.news-article header p {
	color: #666;
	font-size: 0.9em;
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
}

.news-article .news-content {
	margin-top: 1.5em;
	line-height: 1.6;
}

.news-article .news-content p {
	margin-bottom: 1em;
}

/* Newsletter signup styles */
.newsletter-signup {
	text-align: center;
	margin: 4em 0;
	padding: 3em;
	background: #E8F5E8;
	border-radius: 15px;
}

.newsletter-signup h3 {
	color: #2E7D32;
}

.newsletter-signup p {
	color: #2E7D32;
}

.newsletter-form {
	max-width: 400px;
	margin: 2em auto;
	display: flex;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
	flex: 1;
	padding: 1em;
	border: 1px solid #4CAF50;
	border-right: none;
	outline: none;
	font-family: inherit;
}

.newsletter-form button {
	padding: 1em 1.5em;
	background: #4CAF50;
	color: white;
	border: 1px solid #4CAF50;
	cursor: pointer;
	font-family: inherit;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
	background: #388E3C;
}

/* Responsive styles for news page */
@media screen and (max-width: 980px) {
	.news-article {
		padding: 1.5em;
		margin-bottom: 3em;
	}
	
	.news-article header h3 {
		font-size: 1.2em;
	}
	
	.newsletter-signup {
		padding: 2em;
		margin: 3em 0;
	}
	
	.newsletter-form {
		flex-direction: column;
		border-radius: 5px;
	}
	
	.newsletter-form input {
		border-right: 1px solid #4CAF50;
		border-bottom: none;
		border-radius: 5px 5px 0 0;
	}
	
	.newsletter-form button {
		border-radius: 0 0 5px 5px;
	}
}

@media screen and (max-width: 736px) {
	.news-article {
		padding: 1em;
		margin-bottom: 2em;
	}
	
	.news-article header p {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5em;
	}
	
	.newsletter-signup {
		padding: 1.5em;
	}
}

/* Partners Section Styles */
#partners {
	background-color: transparent;
	padding-top: 2em;
}

#partners .inner {
	padding-top: 0;
}

#partners header {
	text-align: center;
	margin-bottom: 3em;
}

#partners header h2 {
	color: #ffffff;
	margin-bottom: 1em;
}

#partners header p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.1em;
	line-height: 1.6;
	max-width: 800px;
	margin: 0 auto;
}

.partners-logos {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 2em;
	max-width: 900px;
	margin: 0 auto;
}

.partner-logo {
	flex: 0 0 auto;
	transition: transform 0.3s ease;
	background: rgba(255, 255, 255, 0.95);
	padding: 15px;
	border-radius: 10px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.partner-logo:hover {
	transform: scale(1.05);
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
	height: 50px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	display: block;
	transition: all 0.3s ease;
}

/* Responsive partners section */
@media screen and (max-width: 980px) {
	.partners-logos {
		gap: 1.5em;
		max-width: 700px;
	}
	
	.partner-logo img {
		height: 45px;
		max-width: 100px;
	}
	
	.partner-logo {
		padding: 12px;
		min-height: 70px;
	}
}

@media screen and (max-width: 736px) {
	#partners header h2 {
		font-size: 1.8em;
	}
	
	#partners header p {
		font-size: 1em;
	}
	
	.partners-logos {
		gap: 1em;
		max-width: 500px;
	}
	
	.partner-logo img {
		height: 35px;
		max-width: 80px;
	}
	
	.partner-logo {
		padding: 10px;
		min-height: 60px;
	}
}
