:root {
	--primary-color: #007bff; /* A vibrant blue */
	--primary-hover-color: #0056b3;
	--secondary-color: #6c757d;
	--background-color: #121212; /* Very dark grey */
	--surface-color: #1e1e1e; /* Slightly lighter for cards/sections */
	--text-color: #e0e0e0; /* Light grey for text */
	--text-muted-color: #a0a0a0;
	--border-color: #333;
	--font-family: 'Arial', sans-serif; /* Simple, readable font */
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-family);
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Header & Navigation */
header {
	background-color: var(--surface-color);
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative; /* Added for mobile menu positioning */
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--text-color);
	font-size: 1.2rem;
	font-weight: bold;
}

.logo-img {
	height: 40px;
	margin-right: 10px;
}

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

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

header nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

header nav ul li a:hover {
	color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001; /* Above nav links if they overlap */
}

.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

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

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

header nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

header nav ul li a:hover {
	color: var(--primary-color);
}

/* Main sections */
main section {
	padding: 60px 0;
	border-bottom: 1px solid var(--border-color);
	opacity: 0; /* Initial state for animation */
	transform: scale(0.95) translateY(20px); /* Initial state for animation */
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	will-change: opacity, transform;
}

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

main section:last-child {
	border-bottom: none;
}

main section h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
	text-align: center;
	color: var(--primary-color);
}

/* Hero Section */
#hero {
	padding-inline: 20px;
	display: flex;
	align-items: center;
	min-height: 80vh;
	margin: 0 auto;
	background-color: var(--surface-color); /* Slightly different bg for hero */
	position: relative; /* For image positioning if needed */
}

.hero-content {
	max-width: 600px;
	text-align: left;
	z-index: 1;
}

.hero-content h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	line-height: 1.2;
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	color: var(--text-muted-color);
}

.hero-image-container {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-left: 40px; /* Space between text and image */
}

.hero-image-container img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.btn-secondary {
	background-color: var(--secondary-color);
	color: white;
}

.btn-secondary:hover {
	background-color: #5a6268;
	transform: translateY(-2px);
}

/* Why Bri Section */
#why-bri .feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

#why-bri .feature-item {
	background-color: var(--surface-color);
	padding: 25px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid var(--border-color);
}
#why-bri .feature-item img.feature-image {
	max-width: 100%;
	height: 180px; /* Fixed height for consistency */
	object-fit: cover; /* Ensures image covers the area well */
	border-radius: 6px;
	margin-bottom: 20px;
}

#why-bri .feature-item h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--text-color);
}

#why-bri .feature-item p {
	font-size: 1rem;
	color: var(--text-muted-color);
}

/* Popular Courses Section */
#popular-courses .course-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

.course-card {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
	width: 100%; /* Size for icons */
	height: auto;
	margin-bottom: 15px;
	align-self: flex-start; /* Or center: align-self: center; */
}

.course-card h3 {
	font-size: 1.4rem;
	margin-bottom: 10px;
	color: var(--text-color);
}

.course-card p {
	font-size: 0.95rem;
	color: var(--text-muted-color);
	flex-grow: 1; /* Pushes button to bottom */
	margin-bottom: 20px;
}

/* Page 2 - Deep Dive Section */
#deep-dive .content-image-split {
	display: flex;
	align-items: center;
	gap: 40px;
}

#deep-dive .text-content {
	flex: 1;
}

#deep-dive .text-content p {
	margin-bottom: 15px;
	font-size: 1.05rem;
}

#deep-dive .image-content {
	flex: 0 0 45%; /* Image takes up 45% of width */
	max-width: 45%;
}

#deep-dive .image-content img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* Page 2 - Text Only Section */
.text-only-section {
	background-color: var(
		--surface-color
	); /* Slightly different background to stand out */
}
.text-only-section .container {
	max-width: 800px; /* Narrower for better readability */
}
.text-only-section h2 {
	color: var(--primary-color);
}
.text-only-section p,
.text-only-section ul li {
	font-size: 1.1rem;
	margin-bottom: 15px;
	color: var(--text-muted-color);
}
.text-only-section ul {
	list-style-position: inside;
	padding-left: 20px;
}
.text-only-section strong {
	color: var(--text-color);
}

/* Page 2 - FAQ & Contact Section */
#faq-contact {
	position: relative; /* For background image positioning */
	overflow: hidden; /* To contain pseudo-elements or bg images */
}

#faq-contact .faq-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	position: relative;
	z-index: 2; /* Above background image */
}

.faq-column h3,
.contact-form-column h3 {
	font-size: 1.8rem;
	margin-bottom: 20px;
	color: var(--text-color);
}

.faq-item {
	margin-bottom: 20px;
	padding: 15px;
	background-color: rgba(
		255,
		255,
		255,
		0.03
	); /* Subtle background for each FAQ */
	border-radius: 6px;
}

.faq-item h4 {
	font-size: 1.2rem;
	margin-bottom: 8px;
	color: var(--primary-color);
}

.faq-item p {
	font-size: 0.95rem;
	color: var(--text-muted-color);
}

/* Contact Form */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: var(--text-muted-color);
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	background-color: #2a2a2a;
	color: var(--text-color);
	font-size: 1rem;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px; /* Space between checkbox and label */
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override full width from general input styles */
	margin-top: 0; /* Adjust vertical alignment if needed */
	accent-color: var(--primary-color); /* Style checkbox color */
}

.form-group-checkbox label {
	margin-bottom: 0; /* Override default label margin */
	font-weight: normal; /* Less emphasis than field labels */
	font-size: 0.9rem;
	color: var(--text-muted-color);
}

.form-status-message {
	margin-top: 15px;
	font-weight: bold;
}

#faq-contact .section-background-image-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.1; /* Very subtle */
	z-index: 1; /* Behind content */
	overflow: hidden;
}

#faq-contact .section-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Footer */
footer {
	background-color: var(--surface-color);
	padding: 40px 0;
	border-top: 1px solid var(--border-color);
	text-align: center;
}

.footer-content {
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}

.footer-contact h4,
.footer-links h4,
.footer-navigation h4 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	color: var(--text-color);
}

.footer-contact p,
.footer-links ul li,
.footer-navigation ul li {
	margin-bottom: 8px;
	color: var(--text-muted-color);
}

.footer-contact a,
.footer-links a,
.footer-navigation a {
	color: var(--text-muted-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-navigation a:hover {
	color: var(--primary-color);
}

.footer-links ul,
.footer-navigation ul {
	list-style: none;
	padding-left: 0; /* Ensure no default padding for ul */
}

.copyright {
	font-size: 0.9rem;
	color: var(--text-muted-color);
}

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

.cookie-modal.show {
	display: flex; /* Use flex to center content if modal takes full width */
}

.cookie-modal-content {
	max-width: 800px;
	margin: auto;
}

.cookie-modal-content p {
	margin-bottom: 15px;
	font-size: 0.95rem;
}
.cookie-modal-content p a {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-modal-buttons button {
	margin: 0 10px;
}

/* Form Submission Modal Styles */
.form-submission-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2000; /* Ensure it's above other content */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-submission-modal-overlay.show {
	opacity: 1;
	visibility: visible;
}

.form-submission-modal-content {
	background-color: var(--surface-color);
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid var(--border-color);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.form-submission-modal-overlay.show .form-submission-modal-content {
	transform: scale(1);
}

.form-submission-modal-content p {
	font-size: 1.1rem;
	margin-bottom: 20px;
	color: var(--text-color);
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: var(--primary-color);
	animation: spin 1s ease-in-out infinite;
	margin: 0 auto 20px auto;
}

@keyframes spin {
	to {
		transform: rotate(365deg);
	}
}

/* Static Pages Basic Layout */
.static-page-container {
	padding: 40px 0;
	min-height: 60vh;
}
.static-page-container .container {
	background-color: var(--surface-color);
	padding: 30px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

.static-page-container h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 20px;
}
.static-page-container h2 {
	font-size: 1.5rem;
	color: var(--text-color);
	margin-top: 25px;
	margin-bottom: 10px;
}
.static-page-container p,
.static-page-container li {
	margin-bottom: 10px;
	color: var(--text-muted-color);
	line-height: 1.7;
}
.static-page-container ul,
.static-page-container ol {
	margin-left: 20px;
	margin-bottom: 15px;
}
.static-page-container a {
	color: var(--primary-color);
}
.static-page-container a:hover {
	text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
	#hero {
		flex-direction: column;
		text-align: center;
		padding-top: 40px; /* Adjust padding for smaller screens */
	}
	.hero-content {
		text-align: center;
		margin-bottom: 30px;
	}
	.hero-image-container {
		padding-left: 0;
		max-width: 80%;
		margin: 0 auto;
	}

	#deep-dive .content-image-split {
		flex-direction: column;
	}
	#deep-dive .image-content {
		max-width: 80%; /* Adjust image size on tablets */
		margin-top: 30px;
	}
	#faq-contact .faq-contact-grid {
		grid-template-columns: 1fr; /* Stack columns on smaller screens */
	}
}

@media (max-width: 768px) {
	header nav {
		flex-direction: row; /* Ensure logo and toggle are on same line */
		/* justify-content: space-between; is default for header nav */
		align-items: center;
	}
	.logo-link {
		margin-bottom: 0; /* Reset from previous column layout */
	}

	.mobile-menu-toggle {
		display: block; /* Show hamburger */
	}

	header nav ul {
		/* This is the mobile menu */
		display: none; /* Hidden by default, toggled by JS */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Below the header */
		left: 0;
		width: 100%;
		background-color: var(--surface-color);
		border-top: 1px solid var(--border-color);
		padding: 0; /* Reset padding */
		z-index: 999;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}

	header nav ul.mobile-menu-open {
		/* Class to show menu */
		display: flex;
	}

	header nav ul li {
		margin-left: 0; /* Reset desktop margin */
		margin: 0; /* Reset potential previous mobile margin */
		width: 100%;
	}

	header nav ul li a {
		padding: 15px 20px;
		display: block; /* Make links take full width of li */
		text-align: center;
		border-bottom: 1px solid var(--border-color);
	}
	header nav ul li:last-child a {
		border-bottom: none;
	}

	main section h2 {
		font-size: 2rem;
	}
	.hero-content h1 {
		font-size: 2.5rem;
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-contact,
	.footer-links {
		width: 100%;
		margin-bottom: 20px;
	}
	.footer-links ul {
		padding-left: 0;
	}
}

@media (max-width: 576px) {
	.container {
		width: 95%;
	}
	main section h2 {
		font-size: 1.8rem;
	}
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	#why-bri .feature-grid,
	#popular-courses .course-cards-grid {
		grid-template-columns: 1fr; /* Single column for cards/features on mobile */
	}
	.cookie-modal-content {
		padding: 0 10px;
	}
	.cookie-modal-buttons {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.cookie-modal-buttons button {
		width: 100%;
		margin: 0;
	}
}
