/* Global Styles */
:root {
	--primary-color: #005792; /* Deep Blue */
	--secondary-color: #00a7e1; /* Bright Blue */
	--accent-color: #fdb813; /* Yellow/Gold */
	--text-color: #333;
	--light-text-color: #fff;
	--background-color: #f9f9f9;
	--card-background: #fff;
	--border-radius: 8px;
	--box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	overflow-x: hidden; /* Prevent horizontal scroll on animations */
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

h1,
h2,
h3 {
	margin-bottom: 1rem;
	color: var(--primary-color);
	line-height: 1.3;
}
h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
	font-size: 1.05rem;
}

a {
	color: var(--secondary-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

ul,
ol {
	margin-bottom: 1rem;
	padding-left: 20px;
}

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

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

.logo {
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
}
.logo img {
	height: 30px;
	width: auto;
}

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

nav ul {
	list-style: none;
	display: flex;
	gap: 25px;
	margin: 0;
	padding: 0;
}

nav ul li a {
	font-weight: 600;
	color: var(--primary-color);
	transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
	color: var(--accent-color);
	text-decoration: none;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 2rem;
	color: var(--primary-color);
	cursor: pointer;
}

/* Sections */
section {
	padding: 60px 0;
}
section:nth-child(even) {
	background-color: #fff;
}

/* Hero Section */
.hero-section {
	background: linear-gradient(rgba(0, 87, 146, 0.1), rgba(0, 87, 146, 0.1)),
		url('placeholder-bg.jpg'); /* Placeholder, real bg if needed */
	background-color: #eef7ff; /* Light blue fallback */
	color: var(--text-color);
	padding: 80px 0;
	text-align: left;
}
.hero-section .container {
	display: flex;
	align-items: center;
	gap: 40px;
}
.hero-content {
	flex: 1;
}
.hero-content h1 {
	color: var(--primary-color);
	font-size: 3rem;
	margin-bottom: 1.5rem;
}
.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}
.hero-image-container {
	flex: 1;
	max-width: 500px;
}
.hero-image-container img {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

/* Page Hero (for about.html) */
.page-hero {
	background-color: var(--primary-color);
	color: var(--light-text-color);
	padding: 60px 0;
}
.page-hero .container {
	display: flex;
	align-items: center;
	gap: 30px;
}
.page-hero-content {
	flex: 2;
}
.page-hero-content h1 {
	color: var(--light-text-color);
	font-size: 2.5rem;
}
.page-hero-content p {
	font-size: 1.1rem;
	opacity: 0.9;
}
.page-hero-image-container {
	flex: 1;
	max-width: 400px;
}
.page-hero-image-container img {
	border-radius: var(--border-radius);
}

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

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

.btn:hover {
	background-color: #e6a300; /* Darker accent */
	transform: translateY(-2px);
	text-decoration: none;
}

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

.btn-secondary:hover {
	background-color: var(--primary-color);
	color: var(--light-text-color);
	transform: translateY(-2px);
	text-decoration: none;
}

/* Features Grid (Why Choose Us) */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 2rem;
}
.feature-item {
	background-color: #fff;
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px 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 15px rgba(0, 0, 0, 0.12);
}
.feature-item h3 {
	color: var(--secondary-color);
	margin-bottom: 0.5rem;
}

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

.card {
	background-color: var(--card-background);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.card h3 {
	padding: 15px 20px 5px;
	color: var(--primary-color);
}
.card p {
	padding: 0 20px 15px;
	flex-grow: 1;
	font-size: 0.95rem;
}
.card .btn-secondary {
	margin: 0 20px 20px;
	align-self: flex-start;
}

/* How It Works Section */
.steps-list {
	list-style-type: none;
	padding-left: 0;
	counter-reset: steps-counter;
}
.steps-list li {
	position: relative;
	padding-left: 40px;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}
.steps-list li::before {
	counter-increment: steps-counter;
	content: counter(steps-counter);
	position: absolute;
	left: 0;
	top: 0;
	width: 30px;
	height: 30px;
	background-color: var(--secondary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
}
.steps-list li strong {
	color: var(--primary-color);
	display: block;
	margin-bottom: 0.25rem;
}

/* Testimonials Section */
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 2rem;
}
.testimonial-item {
	background-color: #eef7ff; /* Light blue tint */
	padding: 25px;
	border-radius: var(--border-radius);
	border-left: 5px solid var(--secondary-color);
}
.testimonial-item p {
	font-style: italic;
	margin-bottom: 1rem;
}
.testimonial-item span {
	display: block;
	padding: 10px;
	font-weight: bold;
	background-color: var(--primary-color);
	color: var(--light-text-color);
	text-align: right;
}

/* FAQ Section */
.faq-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}
.faq-content {
	flex: 2;
}
.faq-image-container {
	flex: 1;
	max-width: 350px;
	margin-top: 2rem; /* Align with text more */
}
.faq-image-container img {
	border-radius: var(--border-radius);
}

.faq-item {
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: var(--border-radius);
	overflow: hidden;
}
.faq-question {
	background-color: #f1f1f1;
	color: var(--primary-color);
	cursor: pointer;
	padding: 15px;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 1.1rem;
	font-weight: 600;
	transition: background-color 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-question::after {
	content: '+'; /* Icon for expand/collapse */
	font-size: 1.5rem;
	color: var(--secondary-color);
}
.faq-question.active::after {
	content: '−';
}
.faq-question:hover {
	background-color: #e0e0e0;
}
.faq-answer {
	padding: 0 15px;
	background-color: white;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	padding: 15px 0;
	margin-bottom: 0;
}

/* Contact Section */
.contact-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}
.contact-info {
	flex: 1;
}
.contact-info-image {
	margin: 1rem 0;
	max-width: 300px; /* Control size of this image */
	border-radius: var(--border-radius);
}
.contact-info ul {
	list-style: none;
	padding: 0;
}
.contact-info ul li {
	margin-bottom: 0.75rem;
	font-size: 1.05rem;
}
.contact-info ul li strong {
	color: var(--primary-color);
}

.contact-form-container {
	flex: 1.5;
	background-color: #fff;
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.form-group {
	margin-bottom: 1.5rem;
}
.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--primary-color);
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
.form-group textarea {
	resize: vertical;
}
.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px; /* Spacing between checkbox and label */
}
.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-right: 5px; /* Space between checkbox and label */
	accent-color: var(--primary-color); /* Style the checkbox color */
}
.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Regular font weight for checkbox label */
	color: var(--text-color); /* Standard text color */
	margin-bottom: 0; /* Remove bottom margin for label in this context */
	font-size: 0.9rem;
}
.form-status {
	margin-top: 1rem;
	font-weight: bold;
}

/* Form Submission Modal */
.form-submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 3000;
	padding: 20px;
}

.form-submission-modal-content {
	background-color: var(--card-background);
	padding: 30px 40px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	text-align: center;
	min-width: 300px;
	max-width: 500px;
}

.modal-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 87, 146, 0.2); /* Light primary color */
	border-top-color: var(--primary-color); /* Primary color for spinner part */
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

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

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

/* Footer */
footer {
	background-color: var(--primary-color);
	color: var(--light-text-color);
	padding: 40px 0 20px;
	font-size: 0.9rem;
}
.footer-content {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.footer-contact,
.footer-links,
.footer-legal {
	flex: 1;
	min-width: 200px;
}
footer h4 {
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-size: 1.2rem;
}
footer ul {
	list-style: none;
	padding: 0;
}
footer ul li {
	margin-bottom: 0.5rem;
}
footer a {
	color: #e0e0e0; /* Lighter text for links */
	transition: color 0.3s ease;
}
footer a:hover {
	color: var(--light-text-color);
	text-decoration: underline;
}
.copyright {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.85rem;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	color: white;
	padding: 20px;
	z-index: 2000;
	display: none; /* Hidden by default */
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}
.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}
.cookie-modal p {
	margin: 0;
	flex-grow: 1;
}
.cookie-modal a {
	color: var(--accent-color);
	text-decoration: underline;
}
.cookie-modal-buttons button {
	margin-left: 10px;
}

/* Animations */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(30px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animated-section.is-visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* About Page Specific Layouts */
.teaching-philosophy-layout,
.career-services-layout {
	display: flex;
	align-items: center;
	gap: 40px;
}
.teaching-philosophy-image-container,
.career-services-image-container {
	flex: 1;
	max-width: 450px;
}
.teaching-philosophy-image-container img,
.career-services-image-container img {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.teaching-philosophy-content,
.career-services-content {
	flex: 1.5;
}
/* For alternating layout */
.career-services-layout {
	flex-direction: row-reverse; /* Image on the right */
}
.course-detail-item {
	background-color: #fff;
	padding: 20px;
	margin-bottom: 20px;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}
.course-detail-item h3 {
	color: var(--secondary-color);
}

/* Legal Pages Basic Styling */
.legal-page-container {
	padding: 40px 0;
}
.legal-page-container .container {
	background-color: #fff;
	padding: 30px 40px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}
.legal-page-container h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}
.legal-page-container p,
.legal-page-container ul,
.legal-page-container li {
	margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.4rem;
	}
	h2 {
		font-size: 1.9rem;
	}
	.hero-section .container,
	.page-hero .container {
		flex-direction: column;
		text-align: center;
	}
	.hero-content h1 {
		font-size: 2.5rem;
	}
	.hero-image-container,
	.page-hero-image-container {
		margin-top: 20px;
		max-width: 100%;
	}

	.faq-layout,
	.contact-layout,
	.teaching-philosophy-layout,
	.career-services-layout {
		flex-direction: column;
	}
	.faq-image-container,
	.contact-info-image,
	.teaching-philosophy-image-container,
	.career-services-image-container {
		max-width: 100%; /* Allow full width on stack */
		margin-top: 20px;
	}
	.career-services-layout {
		/* Reset reverse for column layout */
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	h3 {
		font-size: 1.3rem;
	}

	nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 70px; /* Adjust based on header height */
		left: 0;
		background-color: #fff;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
		padding: 10px 0;
	}
	nav ul.active {
		display: flex;
	}
	nav ul li {
		text-align: center;
		margin: 10px 0;
	}
	.menu-toggle {
		display: block;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}
	.footer-contact,
	.footer-links,
	.footer-legal {
		margin-bottom: 20px;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-buttons {
		margin-top: 15px;
	}
	.cookie-modal-buttons button {
		margin: 5px;
	}

	.cards-container,
	.features-grid,
	.testimonial-grid {
		grid-template-columns: 1fr; /* Stack cards/items on smaller screens */
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 15px;
	}
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	.btn,
	.btn-secondary {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.contact-form-container {
		padding: 20px;
	}
	section {
		padding: 40px 0;
	}
}
