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

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}

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

/* Header */
header {
	background: #fff;
	height: 70px;
	border-bottom: 1px solid #ddd;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
}

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

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

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

/* Burger Menu Icon */
.burger-menu {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 30px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1100;
	margin-left: auto;
}

.burger-menu span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #333;
	border-radius: 3px;
	transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-menu.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
	opacity: 0;
}

.burger-menu.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation (default) */
header nav.main-nav ul {
	list-style: none;
	display: flex;
}

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

header nav.main-nav ul li a {
	text-decoration: none;
	color: #555;
	font-weight: bold;
	transition: color 0.3s ease;
}

header nav.main-nav ul li a:hover {
	color: #e74c3c;
}

/* Sections Common Styling */
section {
	padding: 60px 0;
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	will-change: opacity, transform;
}

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

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

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

h1 {
	font-size: 3rem;
	text-align: center;
}
h2 {
	font-size: 2.2rem;
	text-align: center;
	margin-bottom: 40px;
}
h3 {
	font-size: 1.5rem;
}
p {
	margin-bottom: 15px;
	color: #555;
	font-size: 1rem;
}

.btn {
	display: inline-block;
	background: #e74c3c;
	color: #fff;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
	background: #c0392b;
	transform: translateY(-2px);
}

/* Hero Section */
#hero {
	background: url('../img/hero.webp') no-repeat center center/cover;
	color: #fff;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 20px;
	position: relative;
}

#hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

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

#hero h1 {
	font-size: 3.5rem;
	margin-bottom: 20px;
	color: #fff;
}

#hero p {
	font-size: 1.3rem;
	margin-bottom: 30px;
	color: #f0f0f0;
}

.hero-buttons {
	margin-top: 20px;
}
.hero-buttons .btn {
	margin: 8px;
}

/* Content Section (Image + Text) */
.content-section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.content-section .text-content,
.content-section .image-content {
	flex: 1;
	min-width: 280px;
}

.content-section .image-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.content-section .text-content h2 {
	text-align: left;
}
.emoji {
	font-size: 1.5em;
	vertical-align: middle;
}

/* Course Cards Section */
#courses h2 {
	margin-bottom: 40px;
}
.course-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.card {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 100%;
	max-height: 200px;
	object-fit: cover;
	border-radius: 5px;
	margin-bottom: 15px;
}

.card h3 {
	margin-bottom: 10px;
}

/* Text Only Section */
.text-only-section .container {
	max-width: 800px;
}
.text-only-section h2 {
	margin-bottom: 30px;
}

/* FAQ Section */
#faq h2 {
	margin-bottom: 40px;
}
.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
}

.faq-item {
	background: #fff;
	padding: 20px;
	border-radius: 5px;
	border: 1px solid #eee;
}
.faq-item h4 {
	color: #e74c3c;
	margin-bottom: 10px;
}

/* Contact Form Section */
#contact h2 {
	margin-bottom: 30px;
}
#contactForm {
	max-width: 600px;
	margin: 0 auto;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #444;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

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

.form-group.checkbox-group input[type='checkbox'] {
	width: auto;
	margin-right: 10px;
	accent-color: #e74c3c;
}

.form-group.checkbox-group .checkbox-label {
	font-weight: normal;
	margin-bottom: 0;
	font-size: 0.9rem;
	color: #555;
}

#contactForm button.btn {
	width: 100%;
	padding: 12px;
	font-size: 1.1rem;
}

.form-status {
	margin-top: 15px;
	font-weight: bold;
	text-align: center;
}

/* Footer */
footer {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
	text-align: center;
}
.footer-content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}
.footer-content div {
	flex: 1;
	min-width: 200px;
}

.footer-content .footer-nav ul {
	list-style: none;
}
.footer-content .footer-nav ul li a {
	display: block;
	padding: 2px 0;
}

.footer-content h4 {
	color: #fff;
}
.footer-content a {
	color: #ecf0f1;
	text-decoration: none;
	transition: color 0.3s ease;
}
.footer-content a:hover {
	color: #e74c3c;
}
.footer-content ul {
	list-style: none;
}
.copyright {
	margin-top: 20px;
	font-size: 0.9rem;
	border-top: 1px solid #34495e;
	padding-top: 20px;
}

/* Cookie Consent Modal */
.modal {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	color: white;
	padding: 20px;
	z-index: 2000;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.modal-content {
	max-width: 800px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.modal-content p {
	margin: 0;
	margin-right: 20px;
	flex-grow: 1;
	margin-bottom: 10px;
}

.modal-content p a {
	color: #e74c3c;
	text-decoration: underline;
}

.modal-buttons button {
	background-color: #e74c3c;
	color: white;
	border: none;
	padding: 10px 20px;
	margin-left: 10px;
	cursor: pointer;
	border-radius: 4px;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.modal-buttons button:hover {
	background-color: #c0392b;
}
.modal-buttons button#rejectCookies {
	background-color: #7f8c8d;
}
.modal-buttons button#rejectCookies:hover {
	background-color: #6c7a7d;
}

/* Responsive Design */
@media (max-width: 768px) {
	h1 {
		font-size: 2.5rem;
	}
	#hero h1 {
		font-size: 2.8rem;
	}
	#hero p {
		font-size: 1.1rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	/* Show burger menu on mobile */
	.burger-menu {
		display: flex;
	}

	/* Mobile Navigation Panel */
	header nav.main-nav {
		display: none;
		flex-direction: column;
		align-items: center;
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		height: calc(100vh - 70px);
		background-color: #fff;
		padding-top: 20px;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
		z-index: 1050;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
	}

	header nav.main-nav.nav-active {
		display: flex;
		transform: translateX(0);
	}

	header nav.main-nav ul {
		flex-direction: column;
		width: 100%;
		align-items: center;
		padding: 0;
	}

	header nav.main-nav ul li {
		margin: 15px 0;
		width: 100%;
		text-align: center;
	}

	header nav.main-nav ul li a {
		display: block;
		padding: 10px 0;
		font-size: 1.2rem;
		color: #333;
	}

	.content-section {
		flex-direction: column;
	}
	.content-section .image-content {
		margin-top: 20px;
	}
	.content-section .text-content h2 {
		text-align: center;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
		gap: 0;
	}
	.footer-content div {
		margin-bottom: 20px;
	}

	.modal-content {
		flex-direction: column;
		text-align: center;
	}
	.modal-content p {
		margin-right: 0;
		margin-bottom: 15px;
	}
	.modal-buttons button {
		margin: 5px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2rem;
	}
	#hero h1 {
		font-size: 2.2rem;
	}
	#hero p {
		font-size: 1rem;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.course-cards {
		grid-template-columns: 1fr;
	}
	.faq-grid {
		grid-template-columns: 1fr;
	}
	.hero-buttons .btn {
		display: block; /* Stack buttons on very small screens */
		margin: 10px auto; /* Center them when stacked */
		width: fit-content;
	}
}

/* Legal Page Specific Styling */
.legal-page-container {
	padding: 40px 0;
}
.legal-page-container .container {
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-align: left;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 30px;
	margin-bottom: 15px;
	text-align: left;
	color: #333;
}
.legal-page-container p,
.legal-page-container ul li {
	margin-bottom: 10px;
	line-height: 1.7;
}
.legal-page-container ul {
	list-style-position: inside;
	padding-left: 20px;
}
