/* 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: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header */
header {
	background-color: #fff;
	padding: 1rem 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;
}

.logo {
	height: 40px;
}

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

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

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

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

header nav ul li a:hover,
header nav ul li a.active {
	color: #2a6fdb;
}

/* Mobile Navigation Styles */
.nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1005; /* Above mobile menu */
	position: relative; /* For child span positioning if needed */
}

.hamburger-icon {
	display: block;
	position: relative;
	width: 25px; /* Width of the hamburger lines */
	height: 3px; /* Height of the middle line */
	background-color: #333; /* Color of the middle line */
	transition: all 0.2s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 25px; /* Width of the top/bottom lines */
	height: 3px; /* Height of the top/bottom lines */
	background-color: #333; /* Color of the top/bottom lines */
	transition: all 0.2s ease-in-out;
}

.hamburger-icon::before {
	top: -8px; /* Position of the top line */
}

.hamburger-icon::after {
	bottom: -8px; /* Position of the bottom line */
}

/* Active state for hamburger (transform to X) */
header nav.main-nav.nav-open .nav-toggle .hamburger-icon {
	background-color: transparent; /* Middle line disappears */
}

header nav.main-nav.nav-open .nav-toggle .hamburger-icon::before {
	transform: translateY(8px) rotate(45deg);
}

header nav.main-nav.nav-open .nav-toggle .hamburger-icon::after {
	transform: translateY(-8px) rotate(-45deg);
}

/* Main Content & Sections */
main {
	padding-top: 20px; /* Add some space below sticky header */
}

section {
	padding: 60px 0;
	min-height: 70vh; /* Ensure sections have some height */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

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

section h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
	color: #333;
}

section p {
	font-size: 1.1rem;
	margin-bottom: 20px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Animation classes */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* 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/hero.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	color: #fff;
	text-align: left;
	min-height: 80vh;
	display: flex;
	align-items: center;
}

#hero .hero-content {
	max-width: 600px;
}

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

#hero p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	text-align: left; /* Align paragraph left in hero */
	margin-left: 0; /* Reset auto margin for p in hero */
	max-width: 100%; /* Ensure p takes available width within hero-content */
}

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

.btn:hover {
	background-color: #1e5aad;
}

.btn-secondary {
	display: inline-block;
	background-color: #6c757d;
	color: #fff;
    border: none;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.btn-secondary:hover {
	background-color: #5a6268;
}

.btn-section-cta {
	margin-top: 25px; /* Spacing from content above */
	/* display: inline-block; is inherited from .btn or .btn-secondary */
}

/* Why Choose Us Section */
#why-choose-us .features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	text-align: left;
}

#why-choose-us .feature-item {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#why-choose-us .feature-item h3 {
	font-size: 1.5rem;
	color: #2a6fdb;
	margin-bottom: 10px;
}

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

.course-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	text-align: left;
	display: flex;
	flex-direction: column;
}

.course-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.course-card h3 {
	font-size: 1.4rem;
	margin: 15px;
	color: #333;
}

.course-card p {
	font-size: 1rem;
	margin: 0 15px 15px 15px;
	flex-grow: 1;
}
.course-card .btn-secondary {
	margin: 0 15px 20px 15px;
	align-self: flex-start;
}

/* Testimonials Section */
#testimonials {
	background-color: #eef5ff; /* Light blueish background */
}
#testimonials .testimonial-item {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}
#testimonials .testimonial-item.testimonial-text-only {
	margin-top: 20px;
}

#testimonials .testimonial-image {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 15px;
	border: 3px solid #2a6fdb;
}

#testimonials blockquote p {
	font-style: italic;
	color: #555;
	margin-bottom: 10px;
	font-size: 1.1rem;
}

#testimonials blockquote footer {
	font-weight: bold;
	color: #2a6fdb;
}

/* Courses Page Specifics */
#courses-intro {
	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/с1.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	height: 100vh;
	color: #fff;
}
#courses-intro .container,
#course-detail-web .container,
#course-detail-data .container,
#course-detail-cyber .container {
	background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
	padding: 40px;
	border-radius: 8px;
}
#courses-intro h1,
#courses-intro p,
#course-detail-web h2,
#course-detail-web p,
#course-detail-data h2,
#course-detail-data p {
	color: #fff; /* Ensure text is white on dark overlay */
}

#course-detail-web {
	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/c2.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	height: 100vh;
}

#course-detail-data {
	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/c3.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	height: 100vh;
}

#enroll-steps .steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	text-align: left;
}
#enroll-steps .step-item {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#enroll-steps .step-item h3 {
	font-size: 1.3rem;
	color: #2a6fdb;
	margin-bottom: 10px;
}

/* About Us Page Specifics */
#mission-vision {
	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/a1.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	height: 100vh;
	color: #fff;
}
#mission-vision .container {
	background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
	padding: 40px;
	border-radius: 8px;
}
#mission-vision h2,
#mission-vision p {
	color: #fff;
}

#learning-methodology {
	text-align: left;
}
#learning-methodology p {
	margin-left: 0;
	max-width: 100%;
}

/* FAQ Section */
#faq .faq-item {
	background: #fff;
	margin-bottom: 15px;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	text-align: left;
}

#faq .faq-item h3 {
	font-size: 1.2rem;
	color: #2a6fdb;
	margin-bottom: 8px;
}

/* Contact Form Section */
#contact-form-section {
	background-color: #f0f4f8; /* Light grey-blue */
}
.contact-form-container {
	max-width: 700px;
	margin: 0 auto;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	text-align: left;
}
.contact-form-container h2 {
	text-align: center;
	margin-bottom: 25px;
}
.form-group {
	margin-bottom: 20px;
}

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

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

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

.contact-form-container .btn {
	width: 100%;
	padding: 15px;
	font-size: 1.1rem;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	padding: 0;
	margin-right: 0;
	flex-shrink: 0;
}

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

#form-submission-status {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	text-align: center;
}
#form-submission-status.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
#form-submission-status.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.contact-details-inline {
	margin-top: 30px;
	text-align: center;
	padding: 20px;
	background-color: #e9ecef;
	border-radius: 5px;
}
.contact-details-inline h4 {
	margin-bottom: 10px;
	color: #333;
}
.contact-details-inline p {
	margin-bottom: 5px;
	font-size: 1rem;
}

/* Footer */
footer {
	background-color: #333;
	color: #f4f4f4;
	padding: 40px 0 20px;
	text-align: center;
}

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

footer .contact-info,
footer .footer-links,
footer .legal-links {
	flex: 1;
	min-width: 250px;
}

footer h4 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #2a9fd8;
}

footer ul {
	list-style: none;
}

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

footer ul li a,
footer .contact-info a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s ease;
}

footer ul li a:hover,
footer .contact-info a:hover {
	color: #fff;
}

footer .copyright {
	border-top: 1px solid #444;
	padding-top: 20px;
	font-size: 0.9rem;
}

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

.modal-content {
	max-width: 800px;
	margin: 0 auto;
}
.modal-content h3 {
	margin-bottom: 10px;
	color: #2a9fd8;
}
.modal-content p {
	margin-bottom: 15px;
	font-size: 1rem;
	color: #eee;
}
.modal-content a {
	color: #6cb2eb;
	text-decoration: underline;
}

.modal-buttons {
	margin-top: 10px;
}

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

/* Legal Pages Specific Styles */
.legal-page-content {
	background-color: #fff;
	padding: 40px;
	margin: 30px auto;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	max-width: 900px;
	text-align: left;
}
.legal-page-content h1 {
	font-size: 2.2rem;
	color: #2a6fdb;
	margin-bottom: 20px;
	text-align: center;
}
.legal-page-content h2 {
	font-size: 1.5rem;
	color: #333;
	margin-top: 25px;
	margin-bottom: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}
.legal-page-content p,
.legal-page-content ul {
	margin-bottom: 15px;
	font-size: 1rem;
	line-height: 1.7;
	text-align: left;
	max-width: 100%;
}
.legal-page-content ul {
	padding-left: 20px;
}
.legal-page-content li {
	margin-bottom: 8px;
}

/* Style for newly added section images */
.section-visual {
	display: block;
	max-width: 350px; /* Adjust as needed, ensures image is not overly large */
	width: 100%; /* Makes image responsive within its container */
	height: auto; /* Maintains aspect ratio */
	margin: 25px auto 30px auto; /* Centers the image and adds vertical spacing */
	border-radius: 8px; /* Consistent rounded corners */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Responsive Design */
@media (max-width: 768px) {
	header .container {
		align-items: center; /* Vertically align logo and burger */
	}
	header nav.main-nav {
		display: flex; /* Needed if other items were next to burger inside nav */
		align-items: center;
	}
	.nav-toggle {
		display: block; /* Show burger button on mobile */
	}
	header nav.main-nav > ul {
		/* Target the main navigation list */
		display: none; /* Hide desktop links by default on mobile */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below the header */
		left: 0;
		right: 0; /* Or width: 100%; */
		background-color: #fff;
		box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
		padding: 10px 0;
		z-index: 1004; /* Below burger button, above main content if header is sticky */
	}
	header nav.main-nav.nav-open > ul {
		display: flex; /* Show menu when nav-open class is present */
	}
	header nav ul li {
		margin-left: 0; /* Reset desktop margin */
		width: 100%; /* Full width list items */
	}
	header nav ul li a {
		display: block; /* Make the entire area clickable */
		padding: 12px 20px; /* Add padding for better touch targets */
		text-align: center; /* Center nav item text */
		border-bottom: 1px solid #f0f0f0; /* Optional separator */
	}
	header nav ul li:last-child a {
		border-bottom: none; /* No border for the last item */
	}
	section h2 {
		font-size: 2rem;
	}
	#hero h1 {
		font-size: 2.5rem;
	}
	#hero p {
		font-size: 1.1rem;
	}
	#why-choose-us .features-grid,
	#top-courses .course-cards-grid,
	#enroll-steps .steps-grid {
		grid-template-columns: 1fr;
	}
	footer .footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	footer .contact-info,
	footer .footer-links,
	footer .legal-links {
		text-align: center;
		width: 100%;
		margin-bottom: 20px;
	}
	footer .legal-links ul,
	footer .footer-links ul {
		padding-left: 0;
	}
	.modal-content p {
		font-size: 0.9rem;
	}
	.modal-buttons .btn {
		padding: 8px 15px;
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.logo {
		font-size: 1.5rem;
	}
	header nav ul li {
		margin: 0 5px;
		font-size: 0.9rem;
	}
	section {
		padding: 40px 0;
	}
	section h2 {
		font-size: 1.8rem;
	}
	#hero h1 {
		font-size: 2rem;
	}
	.form-group-checkbox {
		flex-direction: column;
		align-items: flex-start;
	}
	.form-group-checkbox input[type='checkbox'] {
		margin-bottom: 5px;
	}
}
