/* Basic Reset & Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
		Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

h1,
h2,
h3,
h4 {
	color: #2c3e50;
	margin-bottom: 0.75em;
}

h1 {
	font-size: 2.8em;
	line-height: 1.2;
}
h2 {
	font-size: 2.2em;
}
h3 {
	font-size: 1.5em;
}

p {
	margin-bottom: 1em;
	color: #555;
}

a {
	color: #3498db;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Header & Navigation */
header {
	background-color: #fff;
	padding: 1em 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

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

.logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2em;
	font-weight: bold;
	color: #2c3e50;
	text-decoration: none;
}
.logo:hover {
	text-decoration: none;
}

.logo img {
	height: 40px;
	width: auto;
}

.main-nav ul {
	list-style: none;
	display: flex;
}

.main-nav li {
	margin-left: 20px;
}

.main-nav a {
	color: #333;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 4px;
	transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
	background-color: #3498db;
	color: #fff;
	text-decoration: none;
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.8em;
	cursor: pointer;
	color: #333;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 25px;
	font-size: 1em;
	font-weight: 500;
	text-align: center;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.2s;
	border: none;
}

.btn-primary {
	background-color: #3498db;
	color: #fff;
}

.btn-primary:hover {
	background-color: #2980b9;
	transform: translateY(-2px);
	text-decoration: none;
	color: #fff;
}

.btn-secondary {
	background-color: #ecf0f1;
	color: #2c3e50;
	border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
	background-color: #dde1e2;
	transform: translateY(-2px);
	text-decoration: none;
	color: #2c3e50;
}

/* Sections General Styling */
section {
	padding: 60px 0;
	text-align: center;
}

section:nth-child(even) {
	background-color: #fff;
}
section:nth-child(odd) {
	background-color: #f0f4f8;
}

section h2 {
	margin-bottom: 40px;
	position: relative;
	display: inline-block;
}

section h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background-color: #3498db;
	margin: 10px auto 0;
}

/* Hero Section */
#hero {
	background: url('../img/h1.webp') no-repeat center center/cover;
	color: #fff;
	padding: 100px 0;
	text-align: center;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
#hero .container {
	background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
	padding: 40px;
	border-radius: 8px;
}
#hero h1 {
	color: #fff;
	margin-bottom: 20px;
}
#hero p {
	font-size: 1.2em;
	margin-bottom: 30px;
	color: #f0f0f0;
}
#hero .btn-primary {
	font-size: 1.1em;
	padding: 15px 30px;
	margin-right: 10px;
	margin-bottom: 10px;
}
#hero .hero-contact-btn {
	font-size: 1.1em;
	padding: 15px 30px;
	margin-bottom: 10px;
}

/* Why Us Section */

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	text-align: left;
}
.feature-item {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.feature-item h3 {
	font-size: 1.3em;
	color: #3498db;
	margin-bottom: 10px;
}

.section-contact-btn {
	margin-top: 30px;
}

/* Mission Section */
#mission {
	text-align: left;
}
#mission .container {
	max-width: 800px; /* For better readability of text */
}
#mission h2 {
	text-align: center; /* Center heading for this section */
}

/* Programs List Section */
#programs-list {
	background-color: #fff;
}
.program-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	text-align: left;
}
.program-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.program-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
}
.program-card h3 {
	font-size: 1.4em;
	margin: 15px 20px 10px;
	color: #2c3e50;
}
.program-card p {
	margin: 0 20px 15px;
	flex-grow: 1; /* Pushes button to bottom */
	font-size: 0.95em;
}
.program-card .btn {
	margin: 0 20px 20px;
	align-self: flex-start;
}

/* FAQ Section */

.faq-accordion {
	max-width: 800px;
	margin: 0 auto;
	text-align: left;
}
.faq-item {
	background: #fff;
	margin-bottom: 10px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.faq-question {
	width: 100%;
	background: none;
	border: none;
	padding: 18px 20px;
	text-align: left;
	font-size: 1.1em;
	font-weight: 500;
	cursor: pointer;
	color: #2c3e50;
	position: relative;
	transition: background-color 0.2s;
}
.faq-question:hover {
	background-color: #f9f9f9;
}
.faq-question::after {
	content: '+';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4em;
	color: #3498db;
}
.faq-item.active .faq-question::after {
	content: '−';
}
.faq-answer {
	box-sizing: content-box;
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-item.active .faq-answer {
	max-height: 300px; /* Adjust as needed */
	padding: 0 20px 20px;
}
.faq-answer p {
	font-size: 0.95em;
	color: #555;
	margin-block: 1rem;
}

/* Contact Section */

#contact .container {
	background-color: rgba(
		255,
		255,
		255,
		0.9
	); /* Light overlay for readability */
	padding: 40px;
	border-radius: 8px;
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	text-align: left;
	align-items: flex-start;
}
.contact-form-container h3,
.contact-details-container h3 {
	margin-bottom: 20px;
	font-size: 1.6em;
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #333;
}
.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
}
.form-group textarea {
	resize: vertical;
}
.form-status-message {
	margin-top: 15px;
	font-weight: 500;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-right: 10px;
	transform: scale(1.2); /* Slightly larger checkbox */
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override default label weight if needed */
	color: #555;
	font-size: 0.9em;
	margin-bottom: 0; /* Remove bottom margin from label here */
}

.contact-details-container p {
	margin-bottom: 10px;
	font-size: 1.05em;
}
.contact-details-container a {
	color: #3498db;
}

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
	text-align: center;
}
.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}
.footer-content h4 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 1.2em;
}
.footer-content ul {
	list-style: none;
}
.footer-content li {
	margin-bottom: 8px;
}
.footer-content a {
	color: #bdc3c7;
	transition: color 0.3s;
}
.footer-content a:hover {
	color: #fff;
	text-decoration: underline;
}
.footer-contact p {
	color: #bdc3c7;
	font-size: 0.95em;
}
.copyright {
	margin-top: 20px;
	font-size: 0.9em;
	color: #bdc3c7;
	border-top: 1px solid #3e5165;
	padding-top: 20px;
}

/* Scroll Animation */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Darker, slightly transparent */
	color: #ecf0f1;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	text-align: center;
}
.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.cookie-modal-content p {
	margin-bottom: 15px;
	font-size: 0.95em;
	color: #ecf0f1;
}
.cookie-modal-content a {
	color: #5dade2; /* Lighter blue for contrast */
	text-decoration: underline;
}
.cookie-modal-content a:hover {
	color: #85c1e9;
}
.cookie-modal-actions {
	display: flex;
	gap: 15px;
}
.cookie-modal .btn {
	padding: 10px 20px;
}

/* Legal Pages Basic Styling */
.legal-page-content {
	padding: 40px 0;
	background-color: #fff;
	min-height: 60vh;
}
.legal-page-content .container {
	max-width: 800px;
	text-align: left;
}
.legal-page-content h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-align: center;
}
.legal-page-content h2 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 1.5em;
}
.legal-page-content p,
.legal-page-content ul,
.legal-page-content li {
	margin-bottom: 1em;
	color: #444;
}
.legal-page-content ul {
	padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2em;
	}
	h2 {
		font-size: 1.8em;
	}

	.main-nav {
		display: none; /* Hidden by default on mobile */
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
		padding-bottom: 10px;
	}
	.main-nav.active {
		display: block; /* Shown when active */
	}
	.main-nav ul {
		flex-direction: column;
		align-items: center;
	}
	.main-nav li {
		margin: 10px 0;
		width: 100%;
		text-align: center;
	}
	.main-nav a {
		display: block;
		padding: 10px;
		width: 90%;
		margin: 0 auto;
	}
	.mobile-menu-toggle {
		display: block;
	}

	#hero {
		padding: 60px 0;
		min-height: 50vh;
	}
	#hero h1 {
		font-size: 2em;
	}
	#hero p {
		font-size: 1em;
	}
	#hero .btn-primary,
	#hero .hero-contact-btn {
		display: block; /* Stack buttons on mobile */
		margin-left: auto;
		margin-right: auto;
		width: fit-content; /* Adjust width to content */
	}
	#hero .btn-primary {
		margin-bottom: 15px; /* Space between stacked buttons */
	}

	.features-grid,
	.program-cards-grid,
	.footer-content {
		grid-template-columns: 1fr; /* Stack on smaller screens */
	}
	.program-card img {
		height: 180px;
	}

	section {
		padding: 40px 0;
	}
	section h2 {
		margin-bottom: 30px;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-content p {
		margin-bottom: 15px;
	}
	.cookie-modal-actions {
		margin-top: 10px;
		width: 100%;
		justify-content: center;
	}
}
