/* GLOBAL STYLES */
:root {
	--color-dark-blue: #0d1b2a;
	--color-light-gray: #e0e1dd;
	--color-muted-blue: #415a77;
	--color-accent: #ff6b6b;
	--color-white: #ffffff;

	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Poppins', sans-serif;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--color-dark-blue);
	color: var(--color-light-gray);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

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

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	font-weight: 600;
	color: var(--color-white);
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-muted-blue);
	height: var(--header-height);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-white);
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav__link {
	position: relative;
	padding: 0.5rem 0;
	color: var(--color-light-gray);
}

.nav__link:hover {
	color: var(--color-white);
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-out;
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav__link--button {
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 0.6rem 1.5rem;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav__link--button:hover {
	background-color: #ff5252;
	transform: translateY(-2px);
	color: var(--color-white);
}

.nav__link--button::after {
	display: none;
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
}

.burger__line {
	width: 100%;
	height: 2px;
	background-color: var(--color-white);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-dark-blue);
		transition: left 0.4s ease-in-out;
		padding-top: 2rem;
	}

	.nav.nav--active {
		left: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: 1.2rem;
	}

	.burger {
		display: flex;
	}

	.burger.burger--active .burger__line:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger.burger--active .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger.burger--active .burger__line:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* FOOTER */
.footer {
	background-color: #08111a;
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--color-muted-blue);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.footer__column--main {
	grid-column: span 1;
}

.footer__copyright {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--color-muted-blue);
}

.footer__title {
	font-family: var(--font-secondary);
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--color-white);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: var(--color-light-gray);
	transition: color 0.3s, padding-left 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__link:hover {
	color: var(--color-accent);
	padding-left: 5px;
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--color-muted-blue);
}

/* Footer Responsive */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--main,
	.logo.footer__logo {
		margin-left: auto;
		margin-right: auto;
	}

	.footer__link {
		justify-content: center;
	}
}

/* For main content not to be hidden behind fixed header */
.main {
	padding-top: var(--header-height);
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* BUTTON */
.button {
	display: inline-block;
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	cursor: pointer;
	border: none;
	border-radius: 50px;
	padding: 0.8rem 2.5rem;
	background-color: var(--color-accent);
	color: var(--color-white);
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
	background-color: #ff5252;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

/* HERO SECTION */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-top: var(--header-height);
	padding-bottom: 4rem;
	overflow: hidden;
}

.hero__canvas-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

#hero-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.hero__container {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 800px;
}

.hero__title {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
}

.hero__subtitle {
	font-size: 1.2rem;
	color: var(--color-light-gray);
	max-width: 600px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
}

/* Hero Responsive */
@media (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.hero__title {
		font-size: 2rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* SECTION STYLES */
.section {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__subtitle {
	display: block;
	font-family: var(--font-secondary);
	font-weight: 600;
	color: var(--color-accent);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-header__title {
	font-size: 2.8rem;
	font-weight: 700;
	line-height: 1.2;
}

/* COURSES SECTION */
.courses {
	background-color: #0c1826; /* Slightly lighter than main background */
}

.courses__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.course-card {
	background-color: var(--color-dark-blue);
	padding: 2rem;
	border-radius: 8px;
	border-top: 3px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease,
		border-top-color 0.3s ease;
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	border-top-color: var(--color-accent);
}

.course-card__icon {
	margin-bottom: 1.5rem;
	color: var(--color-accent);
}

.course-card__icon svg {
	width: 40px;
	height: 40px;
}

.course-card__title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.course-card__description {
	color: var(--color-muted-blue);
	font-size: 0.95rem;
}

/* Section Responsive */
@media (max-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.section-header__title {
		font-size: 2.2rem;
	}
}

@media (max-width: 576px) {
	.courses__grid {
		grid-template-columns: 1fr;
	}
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* PROCESS SECTION */
.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 0;
}

.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--color-muted-blue);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
	border-radius: 3px;
}

.process__item {
	padding: 1rem 3rem;
	position: relative;
	background-color: transparent;
	width: 50%;
}

.process__item:nth-child(odd) {
	left: 0;
	padding-right: 4rem; /* Space for icon */
}

.process__item:nth-child(even) {
	left: 50%;
	padding-left: 4rem; /* Space for icon */
}

.process__icon-wrapper {
	position: absolute;
	width: 50px;
	height: 50px;
	right: -25px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--color-accent);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--color-dark-blue);
}

.process__item:nth-child(even) .process__icon-wrapper {
	left: -25px;
}

.process__icon-wrapper svg {
	width: 24px;
	height: 24px;
	color: var(--color-white);
}

.process__content {
	padding: 1.5rem;
	background-color: #0c1826;
	border-radius: 8px;
	position: relative;
}

.process__item:nth-child(odd) .process__content {
	text-align: right;
}

.process__step {
	font-family: var(--font-secondary);
	font-size: 0.9rem;
	color: var(--color-accent);
	font-weight: 600;
}

.process__title {
	font-size: 1.4rem;
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
}

.process__description {
	font-size: 0.95rem;
	color: var(--color-muted-blue);
}

/* Process Responsive */
@media (max-width: 768px) {
	.process__timeline::after {
		left: 25px;
	}

	.process__item {
		width: 100%;
		padding-left: 70px; /* Space for icon and line */
		padding-right: 1rem;
	}

	.process__item:nth-child(odd) {
		left: 0;
	}

	.process__item:nth-child(even) {
		left: 0;
	}

	.process__icon-wrapper {
		left: 0;
	}

	.process__item:nth-child(odd) .process__content {
		text-align: left;
	}
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* MENTORS SECTION */
.mentors {
	background-color: #0c1826; /* Slightly lighter than main background */
}

.mentors__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.mentor-card {
	background-color: var(--color-dark-blue);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.mentor-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mentor-card__image-wrapper {
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.mentor-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.mentor-card:hover .mentor-card__image {
	transform: scale(1.05);
}

.mentor-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.mentor-card__name {
	font-size: 1.4rem;
	margin-bottom: 0.25rem;
}

.mentor-card__specialization {
	color: var(--color-accent);
	font-weight: 500;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.mentor-card__bio {
	color: var(--color-muted-blue);
	font-size: 0.9rem;
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.mentor-card__socials {
	display: flex;
	gap: 1rem;
}

.mentor-card__socials a {
	color: var(--color-muted-blue);
	transition: color 0.3s ease;
}

.mentor-card__socials a:hover {
	color: var(--color-accent);
}

.mentor-card__socials svg {
	width: 20px;
	height: 20px;
}

/* Mentors Responsive */
@media (max-width: 992px) {
	.mentors__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.mentors__grid {
		grid-template-columns: 1fr;
	}
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* REVIEWS SECTION */
.reviews__slider-wrapper {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
}

.reviews__swiper {
	padding: 2rem 0; /* Add padding for shadow and overflow */
}

.swiper-slide {
	height: auto; /* Ensure slides have natural height */
	display: flex;
}

.review-card {
	background-color: #0c1826;
	padding: 2.5rem;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-top: 3px solid var(--color-muted-blue);
}

.review-card__icon {
	color: var(--color-accent);
	margin-bottom: 1.5rem;
}

.review-card__icon svg {
	width: 32px;
	height: 32px;
}

.review-card__text {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--color-light-gray);
	flex-grow: 1;
	margin-bottom: 2rem;
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.review-card__author-img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.review-card__author-name {
	margin: 0;
	font-size: 1.1rem;
}

.review-card__author-course {
	font-size: 0.9rem;
	color: var(--color-muted-blue);
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
	color: var(--color-accent);
	top: 50%;
	transform: translateY(-50%);
}

.swiper-button-next {
	right: -15px;
}
.swiper-button-prev {
	left: -15px;
}

.swiper-pagination-bullet {
	background-color: var(--color-muted-blue);
	opacity: 0.8;
}

.swiper-pagination-bullet-active {
	background-color: var(--color-accent);
}

@media (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* CONTACT SECTION */
.contact {
	background-color: #0c1826;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.section-header--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.contact__text {
	margin-top: 1.5rem;
	margin-bottom: 2rem;
	color: var(--color-muted-blue);
	line-height: 1.8;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact__details a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.1rem;
	font-weight: 500;
}

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

.contact__details svg {
	color: var(--color-accent);
	width: 22px;
	height: 22px;
}

/* Form Styles */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group__label {
	/* Visually hidden but accessible for screen readers */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.form-group__input {
	width: 100%;
	padding: 1rem;
	background-color: var(--color-dark-blue);
	border: 1px solid var(--color-muted-blue);
	border-radius: 6px;
	color: var(--color-light-gray);
	font-size: 1rem;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group__input::placeholder {
	color: var(--color-muted-blue);
}

.form-group__input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Checkbox Styles */
.form-group--checkbox {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: var(--color-muted-blue);
}

.form-group__checkbox {
	flex-shrink: 0;
	margin-top: 4px;
	width: 1.25em;
	height: 1.25em;
}

.form-group__checkbox-label a {
	color: var(--color-light-gray);
	text-decoration: underline;
}
.form-group__checkbox-label a:hover {
	color: var(--color-accent);
}

.contact-form__button {
	width: 100%;
}

.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 3rem;
	border: 1px solid var(--color-muted-blue);
	border-radius: 8px;
}

.success-message svg {
	color: var(--color-accent);
	width: 50px;
	height: 50px;
	margin-bottom: 1rem;
}

.success-message h3 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

/* Contact Responsive */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* ... (всі попередні стилі залишаються без змін) ... */

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 600px;
	background-color: #0c1826;
	border: 1px solid var(--color-muted-blue);
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	z-index: 200;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 20px);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.cookie-popup.cookie-popup--active {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--color-muted-blue);
}

.cookie-popup__text a {
	color: var(--color-light-gray);
	text-decoration: underline;
}

.cookie-popup__text a:hover {
	color: var(--color-accent);
}

.cookie-popup__button {
	padding: 0.6rem 1.5rem;
	flex-shrink: 0;
}

@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 1rem;
	}
}

/* STYLES FOR GENERIC PAGES (privacy.html, terms.html, etc.) */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 6rem;
	min-height: 100vh;
}

.pages .container {
	max-width: 800px;
}

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	color: var(--color-white);
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--color-muted-blue);
	padding-bottom: 1rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.pages p,
.pages li {
	font-family: var(--font-primary);
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--color-light-gray);
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style-type: disc;
	padding-left: 2rem;
}

.pages a {
	color: var(--color-accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-bottom-color 0.3s;
}

.pages a:hover {
	border-bottom-color: var(--color-accent);
}

.pages strong {
	font-weight: 600;
	color: var(--color-white);
}
