/* General Styles */
/* General Styles */
:root {
	--primary-bg: #1a1d24; /* Darker blue/grey */
	--secondary-bg: #252a34; /* Slightly lighter dark shade */
	--card-bg: #2f3642; /* Even lighter for cards */
	--text-color: #e0e0e0;
	--primary-accent: #00d1b2; /* Techy Teal */
	--secondary-accent: #ff9f1c; /* Contrasting Orange/Yellow */
	--border-color: #444957;
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto', sans-serif;
	--shadow-light: rgba(0, 0, 0, 0.1);
	--shadow-medium: rgba(0, 0, 0, 0.3);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-secondary);
	background-color: var(--primary-bg);
	color: var(--text-color);
	line-height: 1.7;
	font-size: 16px;
}

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

h1,
h2,
h3 {
	font-family: var(--font-primary);
	color: var(--primary-accent);
	margin-bottom: 1rem;
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.6rem;
	color: var(--text-color);
} /* Card titles */

p {
	margin-bottom: 1rem;
}

a {
	color: var(--primary-accent);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--secondary-accent);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Header & Navigation */
header {
	background-color: var(--secondary-bg);
	padding: 1rem 0;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px var(--shadow-medium);
}

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

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-family: var(--font-primary);
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--primary-accent);
}

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

header ul {
	list-style: none;
	display: flex;
}

header ul li {
	margin-left: 25px;
}

header ul li a {
	font-family: var(--font-primary);
	font-weight: 600;
	color: var(--text-color);
	padding: 0.5rem 0;
	position: relative;
}

header ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-accent);
	transition: width 0.3s ease;
}

header ul li a:hover::after,
header ul li a.active::after {
	width: 100%;
}

.nav-toggle {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.hamburger {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	position: relative;
	transition: transform 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	left: 0;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	transition: transform 0.3s ease-in-out, top 0.3s ease-in-out,
		bottom 0.3s ease-in-out;
}

.hamburger::before {
	top: -8px;
}

.hamburger::after {
	bottom: -8px;
}

/* Active state for hamburger (mobile menu open) */
.nav-open .hamburger {
	transform: rotate(45deg);
}
.nav-open .hamburger::before {
	top: 0;
	transform: rotate(90deg);
}
.nav-open .hamburger::after {
	bottom: 0;
	transform: rotate(90deg);
	opacity: 0; /* Hide middle line more effectively */
}

/* Main Content & Sections */
main {
	padding-top: 80px; /* Adjust based on header height */
}

section {
	padding: 60px 0;
	min-height: calc(
		80vh - 80px
	); /* Aim for significant viewport height, adjust if needed */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center; /* Default text alignment */
}

section:nth-child(even) {
	background-color: var(--secondary-bg);
}

.full-height-section {
	min-height: calc(
		100vh - 80px
	); /* Hero section uses full available viewport height */
}

/* Hero Section */
#hero {
	background-image: linear-gradient(
			103deg,
			rgba(18, 18, 17, 0.78) 2.03%,
			rgba(18, 18, 17, 0.6) 58.46%,
			rgba(18, 18, 17, 0) 90.36%
		),
		url('../img/h1.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	color: #fff; /* White text on dark hero image */
	text-align: center;
	position: relative;
}

#hero::before {
	/* Overlay for better text readability */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
}

#hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	color: #fff; /* Ensure h1 is white on hero */
}

#hero p {
	font-size: 1.3rem;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Buttons */
.btn {
	padding: 12px 28px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	border: none;
	cursor: pointer;
	font-family: var(--font-primary);
}

.btn-primary {
	background-color: var(--primary-accent);
	color: var(--primary-bg);
}

.btn-primary:hover {
	background-color: #00b89b; /* Slightly darker teal */
	color: var(--primary-bg);
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: transparent;
	color: var(--primary-accent);
	border: 2px solid var(--primary-accent);
}

.btn-secondary:hover {
	background-color: var(--primary-accent);
	color: var(--primary-bg);
	transform: translateY(-2px);
}

/* About Section */
#about p {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: left; /* More readable for paragraphs */
}
#about h2 {
	text-align: center;
}

/* Cards Container */
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 2rem;
	text-align: left;
}

.card {
	background-color: var(--card-bg);
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px var(--shadow-light);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 8px 25px var(--shadow-medium);
}

.card img {
	width: 100%; /* Icon size */
	height: auto;
	margin-bottom: 1rem;
	align-self: flex-start; /* Or center: align-self: center; */
	object-fit: contain;
}

.card h3 {
	margin-bottom: 0.5rem;
	color: var(
		--primary-accent
	); /* Override general h3 color for card titles if desired */
}

.card p {
	flex-grow: 1; /* Make text content take available space */
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.card .btn-secondary {
	align-self: flex-start;
	margin-top: auto; /* Push button to bottom */
}

/* Section Layouts for Image + Text */
.section-layout-image-text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	text-align: left;
}

.section-layout-image-text.reverse-layout .text-content {
	order: 2;
}
.section-layout-image-text.reverse-layout .image-content {
	order: 1;
}

.section-layout-image-text .text-content ul {
	list-style: none;
	padding-left: 0;
}

.section-layout-image-text .text-content ul li {
	margin-bottom: 0.8rem;
	padding-left: 1.5rem;
	position: relative;
}

.section-layout-image-text .text-content ul li::before {
	content: '✓'; /* Or some other marker */
	color: var(--primary-accent);
	position: absolute;
	left: 0;
	font-weight: bold;
}

.section-layout-image-text .image-content img {
	border-radius: 10px;
	box-shadow: 0 5px 20px var(--shadow-medium);
}

/* FAQ Section */
#faq .container {
	max-width: 900px;
}
#faq h2 {
	text-align: center;
}

.faq-container {
	margin-top: 2rem;
	text-align: left;
}

.faq-item {
	background-color: var(--card-bg);
	margin-bottom: 10px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
}

.faq-item summary {
	padding: 15px 20px;
	font-weight: bold;
	cursor: pointer;
	position: relative;
	list-style: none; /* Remove default marker */
	font-family: var(--font-primary);
	color: var(--text-color);
}

.faq-item summary::-webkit-details-marker {
	display: none;
} /* Chrome/Safari */
.faq-item summary::marker {
	display: none;
} /* Firefox */

.faq-item summary::after {
	content: '+';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5em;
	color: var(--primary-accent);
	transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
	padding: 0px 20px 15px 20px;
	margin-bottom: 0; /* Reset paragraph margin inside details */
	border-top: 1px solid var(--border-color);
	font-size: 0.95rem;
}

/* Footer */
footer {
	background-color: var(--secondary-bg);
	color: var(--text-color);
	padding: 40px 0 20px;
	text-align: center;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}

.footer-contact h3,
.footer-form h3,
.footer-navigation h3,
.footer-legal h3 {
	color: var(--primary-accent);
	margin-bottom: 15px;
	font-family: var(--font-primary);
}

.footer-contact p {
	margin-bottom: 8px;
	font-size: 0.9rem;
}
.footer-contact p a {
	color: var(--text-color);
}
.footer-contact p a:hover {
	color: var(--primary-accent);
}

.footer-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-navigation ul li {
	margin-bottom: 8px;
}

.footer-navigation ul li a {
	color: var(--text-color);
	font-size: 0.9rem;
	text-decoration: none;
}

.footer-navigation ul li a:hover {
	color: var(--primary-accent);
	text-decoration: underline;
}

.standalone-contact-form form input,
.standalone-contact-form form textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: var(--primary-bg);
	color: var(--text-color);
	font-family: var(--font-secondary);
}
.standalone-contact-form form input::placeholder,
.standalone-contact-form form textarea::placeholder {
	color: #888;
}

.standalone-contact-form .form-consent {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-size: 0.85rem;
}

.standalone-contact-form .form-consent input[type='checkbox'] {
	width: auto; /* Override default width */
	margin-right: 10px;
	margin-bottom: 0; /* Reset margin from general input style */
	accent-color: var(--primary-accent); /* Style the checkbox color */
}

.standalone-contact-form .form-consent label {
	color: var(--text-color);
	cursor: pointer;
}

.standalone-contact-form form .btn {
	width: 100%;
	margin-top: 5px;
}

footer .footer-form input,
footer .footer-form textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: var(--primary-bg);
	color: var(--text-color);
	font-family: var(--font-secondary);
}
footer .footer-form input::placeholder,
footer .footer-form textarea::placeholder {
	color: #888;
}

footer .footer-form .form-consent {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-size: 0.85rem;
}

footer .footer-form .form-consent input[type='checkbox'] {
	width: auto;
	margin-right: 10px;
	margin-bottom: 0;
	accent-color: var(--primary-accent);
}

footer .footer-form .form-consent label {
	color: var(--text-color);
	cursor: pointer;
}

footer .footer-form .btn {
	width: 100%;
	margin-top: 5px;
}

#contact-section .standalone-contact-form {
	max-width: 600px;
	margin: 2rem auto 0;
	text-align: left;
}

#contact-section h2 {
	text-align: center;
}

.form-status-message {
	margin-top: 10px;
	font-size: 0.9em;
	min-height: 1.2em;
}
.form-status-message.success {
	color: var(--primary-accent);
}
.form-status-message.error {
	color: #e74c3c;
}

.footer-links-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.footer-links-list a {
	color: var(--text-color);
	font-size: 0.85rem;
	transition: color 0.3s ease;
}

.footer-links-list a:hover {
	color: var(--primary-accent);
}

.copyright {
	font-size: 0.8rem;
	border-top: 1px solid var(--border-color);
	padding-top: 20px;
	margin-top: 20px; /* This margin separates copyright from footer-content */
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--card-bg);
	color: var(--text-color);
	padding: 20px;
	box-shadow: 0 -2px 10px var(--shadow-medium);
	z-index: 2000;
	display: none;
	border-top: 2px solid var(--primary-accent);
}

.cookie-modal.show {
	display: block;
}

.cookie-modal-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.cookie-modal-content p {
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.cookie-modal-content p a {
	font-weight: bold;
}

.cookie-modal-content button {
	margin: 5px 10px;
}

/* Animation Section */
.animate-section {
	opacity: 0;
	transform: scale(0.95) translateY(30px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
	will-change: opacity, transform;
}

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

/* Course Detail Placeholders on explore.html */
.course-detail-placeholder {
	background-color: var(--secondary-bg);
	text-align: left;
	padding: 40px 0;
}
.course-detail-placeholder .container {
	max-width: 900px;
}
.course-detail-placeholder h3 {
	color: var(--primary-accent);
	margin-bottom: 1rem;
}

/* Legal Pages Basic Styling */
.legal-page-content {
	padding-top: 100px;
	padding-bottom: 60px;
	text-align: left;
}
.legal-page-content .container {
	max-width: 900px;
}
.legal-page-content h1 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	text-align: center;
}
.legal-page-content h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--text-color);
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5rem;
}
.legal-page-content h3 {
	font-size: 1.4rem;
	margin-top: 1.5rem;
	margin-bottom: 0.8rem;
	color: var(--text-color);
}
.legal-page-content p,
.legal-page-content li {
	margin-bottom: 1rem;
	font-size: 1rem;
}
.legal-page-content ul,
.legal-page-content ol {
	margin-left: 20px;
	margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
	.section-layout-image-text {
		grid-template-columns: 1fr;
	}
	.section-layout-image-text .image-content {
		margin-bottom: 30px;
	}
	.section-layout-image-text.reverse-layout .text-content {
		order: 1;
	}
	.section-layout-image-text.reverse-layout .image-content {
		order: 2;
		margin-top: 30px;
		margin-bottom: 0;
	}
	#hero h1 {
		font-size: 2.8rem;
	}
	#hero p {
		font-size: 1.1rem;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	h3 {
		font-size: 1.4rem;
	}

	header nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		background-color: var(--secondary-bg);
		position: absolute;
		top: 100%;
		left: 0;
		padding: 1rem 0;
		box-shadow: 0 2px 5px var(--shadow-medium);
	}

	header nav ul.nav-active {
		display: flex;
	}

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

	header nav ul li a {
		display: block;
		padding: 1rem;
		border-bottom: 1px solid var(--border-color);
	}
	header nav ul li a::after {
		display: none;
	}

	.nav-toggle {
		display: block;
	}

	.cards-container {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}
	.footer-contact,
	.footer-form {
		text-align: center;
	}
	.footer-form .btn,
	.standalone-contact-form form .btn {
		max-width: 250px;
		margin-left: auto;
		margin-right: auto;
	}

	.cookie-modal-content {
		flex-direction: column;
	}
	.cookie-modal-content button {
		width: 80%;
		margin: 8px auto;
	}
	#hero h1 {
		font-size: 2.2rem;
	}

	section {
		padding: 40px 0;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	#hero h1 {
		font-size: 1.8rem;
	}
	#hero p {
		font-size: 1rem;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.container {
		width: 95%;
	}
}
