/* Global Resets & Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px; /* Base font size */
}

body {
	font-family: 'Roboto', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

a {
	text-decoration: none;
	color: #007bff;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-family: 'Montserrat', sans-serif;
	margin-bottom: 0.75em;
	line-height: 1.3;
	color: #2c3e50;
}

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.6rem;
}
p {
	margin-bottom: 1em;
}

ul {
	list-style: none;
	padding-left: 0;
}

/* Header */
header {
	background-color: #ffffff;
	padding: 1em 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

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

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

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

header nav ul {
	display: flex;
	gap: 20px;
}

header nav ul li a {
	font-weight: 600;
	color: #555;
	padding: 0.5em 0;
	position: relative;
	text-decoration: none;
}

header nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #3498db;
	transition: width 0.3s ease;
}
header nav ul li a:hover::after,
header nav ul li a.active::after {
	/* Assuming an active class can be added via JS */
	width: 100%;
}

/* Mobile Navigation Specific Styles */
.mobile-nav-toggle {
	display: none; /* Hidden on desktop, shown in media query */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px; /* For easier tapping */
	z-index: 1001; /* Ensure it's above other header items if stacking occurs */
}

.mobile-nav-toggle .hamburger-icon {
	display: block;
	position: relative;
	width: 24px; /* Hamburger line width */
	height: 2px; /* Hamburger line height */
	background-color: #333; /* Hamburger line color */
	transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle .hamburger-icon::before,
.mobile-nav-toggle .hamburger-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	background-color: #333;
	transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle .hamburger-icon::before {
	top: -7px; /* Spacing for top bar */
}

.mobile-nav-toggle .hamburger-icon::after {
	bottom: -7px; /* Spacing for bottom bar */
}

/* Hamburger to X animation */
.mobile-nav-toggle.active .hamburger-icon {
	background-color: transparent; /* Middle bar fades out */
}

.mobile-nav-toggle.active .hamburger-icon::before {
	transform: translateY(7px) rotate(45deg); /* Top bar rotates */
}

.mobile-nav-toggle.active .hamburger-icon::after {
	transform: translateY(-7px) rotate(-45deg); /* Bottom bar rotates */
}

/* Body no-scroll class for when mobile menu is open */
body.no-scroll {
	overflow: hidden;
}

/* Sections General Styling */
section {
	padding: 60px 0;
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
	overflow: hidden; /* Important for animations and layout */
}

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

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

section h2 {
	text-align: center;
	margin-bottom: 40px;
	color: #3498db;
}

/* Hero Section */
#hero {
	background-color: #eaf5ff; /* Light blue background */
	min-height: 70vh;
	display: flex;
	align-items: center;
}

#hero .container {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap; /* For responsiveness */
}

#hero .hero-content {
	flex: 1;
	min-width: 300px; /* Ensure content has enough space */
}

#hero .hero-content h1 {
	color: #2c3e50;
	margin-bottom: 20px;
}

#hero .hero-content p {
	font-size: 1.1rem;
	color: #555;
	margin-bottom: 30px;
}

#hero .hero-image {
	flex: 1;
	text-align: center; /* Center image if it's smaller */
	min-width: 300px;
}

#hero .hero-image img {
	max-width: 100%;
	border-radius: 8px;
}

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

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

/* Courses Section */
#courses .card-container {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.course-card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	padding: 25px;
	text-align: center;
	flex-basis: 300px; /* Base width for cards */
	max-width: 350px;
	flex-grow: 1;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin: 0 auto 20px auto;
	object-fit: contain;
}

.course-h h3 {
	color: #3498db;
	margin-bottom: 10px;
}

/* Why Po Section (Text Only) */
.text-only-section {
	background-color: #f0f8ff; /* A slightly different light blue */
}
.text-only-section .container {
	max-width: 800px; /* Narrower for better readability */
}
.text-only-section h2 {
	text-align: left;
}
.text-only-section h3 {
	margin-top: 20px;
	color: #2980b9;
}
.text-only-section ul {
	list-style: disc;
	padding-left: 20px;
	margin-top: 10px;
}
.text-only-section ul li {
	margin-bottom: 8px;
}

/* FAQ Section */
#faq .container {
	display: flex;
	gap: 40px;
	align-items: center;
	flex-wrap: wrap;
}
#faq .faq-content {
	flex: 2;
	min-width: 300px;
}
#faq .faq-image {
	flex: 1;
	text-align: center;
	min-width: 250px;
}
#faq .faq-image img {
	width: 100%; /* Ensure image fits container */
	max-width: 350px; /* Control image size */
	border-radius: 8px;
}
.faq-item details {
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	margin-bottom: 10px;
	padding: 15px;
}
.faq-item summary {
	font-weight: bold;
	cursor: pointer;
	color: #2c3e50;
	list-style: none; /* Remove default marker */
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-item summary::-webkit-details-marker {
	display: none;
} /* Chrome/Safari */
.faq-item summary::after {
	content: '+'; /* Collapsed state */
	font-size: 1.5em;
	color: #3498db;
	transition: transform 0.2s ease-in-out;
}
.faq-item details[open] summary::after {
	content: '−'; /* Expanded state */
	transform: rotate(180deg);
}
.faq-item p {
	margin-top: 10px;
	padding-left: 5px;
	color: #555;
}

/* Page 2 Specifics */
/* Program Details Section */
#program-details .container {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap-reverse; /* Image on right by default, stacks image top on mobile */
}
#program-details .program-details-content {
	flex: 1.5; /* More space for text */
	min-width: 300px;
}
#program-details .program-details-image {
	flex: 1;
	text-align: center;
	min-width: 300px;
}
#program-details .program-details-image img {
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Student Success Section */
#student-success {
	background-color: #e6f7ff; /* Light cyan */
}
#student-success .container {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}
#student-success .student-success-image {
	flex: 1;
	text-align: center;
	min-width: 300px;
}
#student-success .student-success-image img {
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#student-success .student-success-content {
	flex: 1.5;
	min-width: 300px;
}
.testimonial {
	background-color: #fff;
	padding: 15px;
	border-left: 4px solid #3498db;
	margin-bottom: 15px;
	border-radius: 0 4px 4px 0;
	font-style: italic;
}
.testimonial p {
	margin-bottom: 0;
}
.testimonial em {
	display: block;
	margin-top: 5px;
	font-style: normal;
	font-weight: bold;
	color: #555;
}

/* Our Approach Section */
#our-approach .container {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap-reverse; /* Image on right by default */
}
#our-approach .our-approach-content {
	flex: 1.5;
	min-width: 300px;
}
#our-approach .our-approach-image {
	flex: 1;
	text-align: center;
	min-width: 300px;
}
#our-approach .our-approach-image img {
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Us Section */
#contact-us {
	background-color: #f4faff;
}
#contact-us .container {
	display: flex;
	align-items: flex-start; /* Align items to the top */
	gap: 30px;
	flex-wrap: wrap;
}
#contact-us .contact-us-image {
	flex: 1;
	text-align: center;
	min-width: 250px; /* Allow image to be smaller */
	padding-top: 20px; /* Align with form visually */
}
#contact-us .contact-us-image img {
	max-width: 300px;
	border-radius: 8px;
}
#contact-us .contact-us-content {
	flex: 1.5; /* More space for form */
	min-width: 300px;
}
.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 #ccc;
	border-radius: 4px;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
}
.form-group textarea {
	resize: vertical;
	min-height: 100px;
}
.form-group input[type='checkbox'] {
	width: auto;
	margin-right: 8px;
	vertical-align: middle;
}

.form-group .checkbox-label {
	font-weight: normal;
	display: inline;
	color: #444;
}

#contactForm button[type='submit'] {
	margin-top: 10px; /* Add some space above the button */
}
.form-status {
	margin-top: 15px;
	font-weight: bold;
}
.form-status.success {
	color: green;
}
.form-status.error {
	color: red;
}

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
}
.footer-content {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: space-between;
	margin-bottom: 30px;
}
.footer-col {
	flex: 1;
	min-width: 200px; /* Ensure columns don't get too squeezed */
}
.footer-col h4 {
	color: #3498db;
	margin-bottom: 15px;
	font-size: 1.2rem;
}
.footer-col p,
.footer-col ul li {
	margin-bottom: 8px;
	font-size: 0.95rem;
	color: #bdc3c7;
}
.footer-col ul li a {
	color: #bdc3c7;
	text-decoration: none;
}
.footer-col ul li a:hover {
	color: #fff;
	text-decoration: underline;
}
.copyright {
	text-align: center;
	border-top: 1px solid #34495e;
	padding-top: 20px;
	font-size: 0.9rem;
	color: #95a5a6;
}
.copyright p {
	margin-bottom: 0;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	text-align: center;
}
.cookie-modal.show {
	display: flex; /* Use flex for centering */
}
.cookie-modal-content {
	max-width: 800px;
}
.cookie-modal p {
	margin-bottom: 15px;
	font-size: 0.95rem;
}
.cookie-modal a {
	color: #3498db;
	text-decoration: underline;
}
.cookie-modal-buttons button {
	background-color: #3498db;
	color: #fff;
	border: none;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease;
}
.cookie-modal-buttons button#declineCookies {
	background-color: #7f8c8d;
}
.cookie-modal-buttons button:hover {
	opacity: 0.9;
}

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

.submission-modal-content {
	background-color: #fff;
	color: #333;
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	min-width: 300px;
	max-width: 500px;
}

.submission-modal-content p {
	margin-bottom: 10px;
	font-size: 1.1rem;
}

.submission-modal-content .loader {
	border: 4px solid #f3f3f3; /* Light grey */
	border-top: 4px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 15px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

#modalSuccessState p {
	color: green;
}
#modalErrorState p {
	color: red;
}

/* Policy Page Specific Styling */
.policy-page {
	padding: 40px 0;
}
.policy-page .container {
	max-width: 900px;
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.policy-page h1 {
	font-size: 1.5rem;
	color: #3498db;
	margin-bottom: 20px;
	text-align: center;
}
.policy-page h2 {
	color: #2c3e50;
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 1.5rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}
.policy-page h3 {
	color: #2980b9;
	margin-top: 20px;
	margin-bottom: 10px;
	font-size: 1.4rem;
}
.policy-page p,
.policy-page li {
	margin-bottom: 12px;
	line-height: 1.7;
	color: #444;
}
.policy-page ul {
	list-style: disc;
	padding-left: 25px;
}
.policy-page strong {
	color: #333;
}
.policy-page address {
	font-style: normal;
	margin-bottom: 1em;
	padding: 1em;
	background-color: #f9f9f9;
	border-left: 3px solid #3498db;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.4rem;
	}
	h2 {
		font-size: 1.9rem;
	}

	#hero .container,
	#program-details .container,
	#student-success .container,
	#our-approach .container,
	#contact-us .container,
	#faq .container {
		flex-direction: column;
		text-align: center;
	}

	#hero .hero-content,
	#program-details .program-details-content,
	#student-success .student-success-content,
	#our-approach .our-approach-content,
	#contact-us .contact-us-content,
	#faq .faq-content {
		text-align: left; /* Revert text alignment for content blocks */
	}

	#hero .hero-image,
	#program-details .program-details-image,
	#student-success .student-success-image,
	#our-approach .our-approach-image,
	#contact-us .contact-us-image,
	#faq .faq-image {
		margin-top: 30px;
		margin-bottom: 20px; /* Add some space below images when stacked */
	}

	#faq .faq-content {
		order: 1;
	} /* Ensure text comes before image on mobile */
	#faq .faq-image {
		order: 2;
	}

	#program-details .container {
		flex-direction: column-reverse;
	} /* Image top, then text */
	#student-success .container {
		flex-direction: column;
	} /* Image top, then text */
	#our-approach .container {
		flex-direction: column-reverse;
	} /* Image top, then text */
	#contact-us .container {
		flex-direction: column-reverse;
	} /* Image top, then text */

	#contact-us .contact-us-image {
		padding-top: 0; /* Reset padding */
	}

	.text-only-section h2 {
		text-align: center;
	}
}

@media (max-width: 768px) {
	header .container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 0;
	}

	.mobile-nav-toggle {
		display: block;
	}

	header nav#mainNav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		background-color: #ffffff;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		padding: 0;
		z-index: 999;
		border-top: 1px solid #e0e0e0;
	}

	header nav#mainNav.active {
		display: block;
	}

	header nav#mainNav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	header nav#mainNav ul li {
		width: 100%;
		text-align: left;
	}

	header nav#mainNav ul li a {
		padding: 15px 20px;
		display: block;
		width: 100%;
		border-bottom: 1px solid #f0f0f0;
		color: #333;
		font-weight: 500;
		text-decoration: none;
	}

	header nav#mainNav ul li a:hover {
		background-color: #f9f9f9;
		text-decoration: none;
	}

	header nav#mainNav ul li a::after {
		display: none;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}
	.footer-col {
		min-width: 100%;
		margin-bottom: 20px;
	}
	.footer-col:last-child {
		margin-bottom: 0;
	}
	.cookie-modal-content {
		width: 95%;
	}
	.cookie-modal-buttons {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.cookie-modal-buttons button {
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 0.95rem;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	h3 {
		font-size: 1.4rem;
	}
	.container {
		width: 95%;
	}
	section {
		padding: 40px 0;
	}
	.course-card {
		flex-basis: 100%;
	}
}
