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

body {
	font-family: 'Poppins', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #fff; /* Light theme */
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
	font-weight: 600;
	color: #2c3e50; /* Darker shade for headings */
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.8rem;
	line-height: 1.2;
}
h2 {
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
	text-align: center;
}
h3 {
	font-size: 1.5rem;
}
p {
	margin-bottom: 1rem;
	color: #555;
}
a {
	color: #3498db;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

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

ul {
	list-style: none;
}

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

header nav {
	padding: 10px 0 !important;
	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.2rem;
	font-weight: 700;
	color: #2c3e50;
}

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

.logo:hover {
	text-decoration: none;
}

header nav ul {
	display: flex;
	gap: 1.5rem;
}

header nav ul li a {
	font-weight: 500;
	color: #333;
	transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
	color: #3498db;
	text-decoration: none;
}

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

/* Hero Section */
.hero-section {
	background-image: url('../img/hero.webp'); /* Placeholder, will be replaced by asset */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 4rem 0; /* Padding for smaller screens if full-screen fails */
}
.full-screen {
	min-height: 100vh;
}

.hero-section::before {
	/* Overlay for better text readability */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(44, 62, 80, 0.6); /* Dark overlay */
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.hero-content h1 {
	color: #fff;
	font-size: 3.5rem;
	margin-bottom: 1rem;
}

.hero-content p {
	color: #f0f0f0;
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

.cta-button {
	display: inline-block;
	background-color: #3498db;
	color: #fff;
	padding: 0.8rem 1.8rem;
	border-radius: 5px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: #2980b9;
	transform: translateY(-2px);
	text-decoration: none;
}
.cta-button.secondary {
	background-color: #7f8c8d;
}
.cta-button.secondary:hover {
	background-color: #6c7a7b;
}

/* Section Shared Styles */
section {
	padding: 4rem 0;
}
section:nth-child(even) {
	background-color: #f8f9fa; /* Slightly different background for alternate sections */
}

.section-subtitle {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 2.5rem auto;
	font-size: 1.1rem;
	color: #777;
}

/* Courses Overview Section */
.courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.course-card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.course-card img {
	width: 100%;
	height: auto;
	margin: 0 auto 1rem auto;
	object-fit: contain;
}

.course-card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
}

.course-card p {
	font-size: 0.95rem;
	flex-grow: 1;
	margin-bottom: 1rem;
}

.learn-more-button {
	display: inline-block;
	background-color: transparent;
	color: #3498db;
	padding: 0.5rem 1rem;
	border: 1px solid #3498db;
	border-radius: 5px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.learn-more-button:hover {
	background-color: #3498db;
	color: #fff;
	text-decoration: none;
}

/* Why Choose Us Section */
.features-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.features-list li {
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.emoji-icon {
	font-size: 2rem;
	line-height: 1; /* Align emoji better */
	color: #3498db;
}

.features-list h3 {
	font-size: 1.2rem;
	margin-bottom: 0.3rem;
}
.features-list p {
	font-size: 0.9rem;
	margin-bottom: 0;
}

/* Detailed Course Section (courses.html) */
.detailed-course-section .container > h2,
.detailed-course-section .container > .section-subtitle {
	text-align: left; /* Override centered title for this section style */
}
.detailed-course-section .container > .section-subtitle {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.course-content-layout {
	display: grid;
	grid-template-columns: 1fr 1.5fr; /* Image | Text */
	gap: 3rem;
	align-items: center;
}
.course-content-layout.reverse {
	grid-template-columns: 1.5fr 1fr; /* Text | Image */
}
.course-content-layout.reverse .course-image {
	order: 2;
}
.course-content-layout.reverse .course-description {
	order: 1;
}

.course-image img {
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-description h3 {
	margin-top: 0;
	font-size: 1.8rem;
	color: #3498db;
}
.course-description ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}
.course-description ul li {
	margin-bottom: 0.5rem;
	color: #555;
}
.course-description ul li strong {
	color: #333;
}

/* Testimonials Section */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.testimonial-card {
	background-color: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
	border-left: 5px solid #3498db;
}

.testimonial-avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	margin-bottom: 1rem;
	object-fit: cover;
}

.testimonial-card p {
	font-style: italic;
	color: #555;
	margin-bottom: 1rem;
}
.testimonial-card h4 {
	margin-bottom: 0.2rem;
	color: #2c3e50;
}
.testimonial-card .testimonial-role {
	font-size: 0.9rem;
	color: #777;
	font-style: normal;
	margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
	background-color: #fff; /* Keep light for readability */
}
.faq-section .container > h2 {
	text-align: center;
}
.faq-item {
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 1.5rem;
}
.faq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
.faq-item h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: #3498db;
	cursor: pointer; /* Optional: for accordion JS later */
}
.faq-item p {
	font-size: 0.95rem;
	padding-left: 0.5rem; /* Indent answer slightly */
	margin-bottom: 0;
}

/* Footer */
footer {
	background-color: #2c3e50; /* Dark footer */
	color: #ecf0f1;
	padding: 3rem 0 1.5rem 0;
}

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

.footer-column h4 {
	color: #fff;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}
.footer-column p,
.footer-column ul li a {
	color: #bdc3c7;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}
.footer-column ul li a:hover {
	color: #fff;
	text-decoration: underline;
}

.contact-form-main-section .contact-form-container {
	background-color: #34495e; /* Dark background for the form itself */
	padding: 2rem;
	border-radius: 8px;
	margin-left: auto; /* Center the form container if it's narrower than the section's container */
	margin-right: auto;
	max-width: 700px; /* Optional: constrain width of form area */
}

.contact-form-main-section .contact-form-container h4 {
	text-align: center;
	color: #fff;
	margin-bottom: 1.5rem;
}
.contact-form-main-section .form-group label {
	color: #ecf0f1;
}
.contact-form-main-section .form-group input[type='text'],
.contact-form-main-section .form-group input[type='email'],
.contact-form-main-section .form-group textarea {
	background-color: #ecf0f1; /* Light input fields on dark form background */
	color: #333;
}
.contact-form-main-section .form-status {
	color: #ecf0f1; /* Light status text on dark form background */
}

footer .contact-form-container {
	background-color: #34495e;
	padding: 2rem;
	border-radius: 8px;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
footer .contact-form-container h4 {
	text-align: center;
	color: #fff;
	margin-bottom: 1.5rem;
}
footer .form-group {
	margin-bottom: 1rem;
}
footer .form-group label {
	display: block;
	margin-bottom: 0.3rem;
	color: #ecf0f1;
	font-size: 0.9rem;
}
footer .form-group input[type='text'],
footer .form-group input[type='email'],
footer .form-group textarea {
	width: 100%;
	padding: 0.7rem;
	border: 1px solid #7f8c8d;
	border-radius: 4px;
	background-color: #ecf0f1;
	color: #333;
	font-family: 'Poppins', sans-serif;
}
footer .form-group textarea {
	resize: vertical;
}
footer .form-status {
	margin-top: 1rem;
	font-weight: 500;
	text-align: center;
	color: #ecf0f1;
}

.contact-form-container {
	background-color: #34495e;
	padding: 2rem;
	border-radius: 8px;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.contact-form-container h4 {
	text-align: center;
	color: #fff;
	margin-bottom: 1.5rem;
}
.form-group {
	margin-bottom: 1rem;
}
.form-group label {
	display: block;
	margin-bottom: 0.3rem;
	color: #ecf0f1;
	font-size: 0.9rem;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 0.7rem;
	border: 1px solid #7f8c8d;
	border-radius: 4px;
	background-color: #ecf0f1;
	color: #333;
	font-family: 'Poppins', sans-serif;
}
.form-group textarea {
	resize: vertical;
}
.form-status {
	margin-top: 1rem;
	font-weight: 500;
	text-align: center;
}

.form-group.checkbox-group {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* Space between checkbox and label text */
	margin-bottom: 1.5rem; /* Consistent spacing */
}

.form-group.checkbox-group input[type='checkbox'] {
	width: auto; /* Override full width for checkbox */
	margin: 0; /* Remove any margin from general input styles */
	vertical-align: middle; /* Align checkbox better with text */
}

.form-group.checkbox-group label {
	font-size: 0.85rem; /* Slightly smaller for consent text */
	color: #ecf0f1; /* Light text for dark backgrounds */
	margin-bottom: 0; /* Override default label margin */
	font-weight: normal;
	display: inline; /* Allow label to sit next to checkbox */
	cursor: pointer;
}

.copyright {
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid #34495e;
	font-size: 0.85rem;
	color: #bdc3c7;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Dark, slightly transparent */
	color: #fff;
	padding: 1.5rem;
	z-index: 2000;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
}

.cookie-modal-content {
	max-width: 800px;
	text-align: center;
}

.cookie-modal p {
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: #ecf0f1;
}
.cookie-modal a {
	color: #3498db;
	font-weight: 500;
}
.cookie-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

/* Submission Modal */
.submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for more focus */
	display: none; /* Initially hidden */
	align-items: center;
	justify-content: center;
	z-index: 2500; /* Higher than header and cookie modal */
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.submission-modal.visible {
	display: flex; /* Use flex for centering */
	opacity: 1;
}

.submission-modal-content {
	background-color: #fff;
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
	min-width: 280px; /* Ensure a minimum width */
	max-width: 90%; /* Responsive for smaller screens */
	transform: scale(0.95);
	transition: transform 0.3s ease-in-out;
}

.submission-modal.visible .submission-modal-content {
	transform: scale(1);
}

.submission-message-text {
	font-size: 1.25rem; /* Slightly larger text */
	color: #333;
	margin: 0;
	line-height: 1.5;
}

/* Container for section-level CTA buttons */
.section-cta-container {
	text-align: center;
	margin-top: 2rem; /* Default top margin */
}

/* Animation Section Styling */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animated-section.is-visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}
/* Ensure hero doesn't have the initial transform if it's always visible */
.hero-section.animated-section {
	transform: scale(1) translateY(0); /* Start visible and scaled */
	opacity: 0; /* Fade it in */
}
.hero-section.animated-section.is-visible {
	opacity: 1;
}

/* Legal Page Basic Styles */
.legal-page-container {
	padding: 3rem 0;
	min-height: 70vh;
}
.legal-page-container .container {
	max-width: 800px; /* Narrower content for readability */
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 0.8rem;
	text-align: left;
	color: #3498db;
}
.legal-page-container p,
.legal-page-container ul li {
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.7;
}
.legal-page-container ul {
	list-style: disc;
	padding-left: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
	.course-content-layout,
	.course-content-layout.reverse {
		grid-template-columns: 1fr; /* Stack image and text */
	}
	.course-content-layout.reverse .course-image {
		order: 0; /* Reset order for stacking */
	}
	.course-image img {
		margin: 0 auto 2rem auto;
	}
	.hero-content h1 {
		font-size: 2.8rem;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	.hero-content h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	header nav ul {
		display: none; /* Hide desktop menu */
		flex-direction: column;
		position: absolute;
		top: 60px; /* Adjust based on header height */
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		padding: 1rem 0;
	}
	header nav ul.active {
		display: flex; /* Show mobile menu */
	}
	header nav ul li {
		text-align: center;
		padding: 0.5rem 0;
	}
	.menu-toggle {
		display: block; /* Show hamburger icon */
	}

	.full-screen {
		min-height: auto; /* Adjust full screen hero for mobile */
		padding: 6rem 0;
	}

	.footer-content {
		grid-template-columns: 1fr; /* Stack footer columns */
		text-align: center;
	}
	.footer-column ul {
		padding-left: 0;
	}
}

@media (max-width: 576px) {
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	.cta-button {
		padding: 0.6rem 1.2rem;
		font-size: 0.9rem;
	}

	.courses-grid,
	.features-list,
	.testimonials-grid {
		grid-template-columns: 1fr; /* Single column for cards on small screens */
	}
	section {
		padding: 2.5rem 0;
	}
	.cookie-modal-buttons {
		flex-direction: column;
		gap: 0.5rem;
	}
	.cookie-modal-buttons .cta-button {
		width: 100%;
	}
}
