/* GLOBAL STYLES (ETAP 0) */
:root {
	--bg-color: #ffffff;
	--text-color: #1a1a1a;
	--primary-color: #2563eb;
	--secondary-color: #f8f9fa;
	--muted-color: #6b7280;
	--border-color: #e5e7eb;

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

	--container-width: 1200px;
	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background-color: var(--bg-color);
	color: var(--text-color);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	position: relative;
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--text-color);
}

ul {
	list-style: none;
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 24px;
	color: var(--text-color);
}

.logo img {
	width: 32px;
	height: 32px;
}

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

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

.nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__link {
	color: var(--text-color);
	font-size: 15px;
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

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

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

.header__burger {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}

/* FOOTER (ETAP 2) */
.footer {
	background-color: var(--secondary-color);
	padding: 60px 0 0;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
}

.footer__description {
	color: var(--muted-color);
	font-size: 14px;
	margin-top: 15px;
	max-width: 280px;
}

.footer__title {
	font-family: var(--font-secondary);
	font-size: 18px;
	margin-bottom: 20px;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	color: var(--muted-color);
	font-size: 14px;
}

.footer__link:hover {
	color: var(--primary-color);
}

.footer__list--contacts .footer__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.footer__list--contacts .footer__link--static {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--muted-color);
}

.footer__list--contacts i {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 3px;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	margin-top: 40px;
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
	color: var(--muted-color);
}

/* ADAPTIVE STYLES (Mobile-First) */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header__burger {
		display: block;
		z-index: 101;
	}

	.header__nav {
		padding-top: 69px;
		position: fixed;
		top: 0;
		right: 0;
		width: 80%;
		height: 100vh;
		background-color: var(--secondary-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	}

	.header__nav.nav--active {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		gap: 40px;
	}

	.nav__link {
		font-size: 20px;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--about,
	.footer__list--contacts .footer__link--static {
		align-items: center;
		justify-content: center;
	}
	.footer__description {
		margin-left: auto;
		margin-right: auto;
	}
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- General Button Style --- */
.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--primary-color);
	color: #fff;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	border-radius: 6px;
	text-align: center;
	border: 2px solid var(--primary-color);
	transition: all 0.3s ease;
}

.button:hover {
	background-color: transparent;
	color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 90vh;
	padding: 120px 0 60px;
	overflow: hidden;
}

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

.hero__container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 40px;
}

.hero__text-content {
	text-align: center;
}

.hero__title {
	font-family: var(--font-secondary);
	font-size: 36px;
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--muted-color);
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__visual-content {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	border-radius: 12px;
	border: 1px solid var(--border-color);
	background-color: var(--secondary-color);
	max-width: 500px;
	width: 100%;
}

/* Responsive adjustments for Hero section */
@media (min-width: 768px) {
	.hero {
		min-height: 100vh;
	}
	.hero__title {
		font-size: 48px;
	}
}

@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}
	.hero__text-content {
		text-align: left;
	}
	.hero__title,
	.hero__subtitle {
		margin-left: 0;
		margin-right: 0;
	}
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- General Section Header --- */
.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header__title {
	font-family: var(--font-secondary);
	font-size: 32px;
	margin-bottom: 10px;
}

.section-header__subtitle {
	font-size: 16px;
	color: var(--muted-color);
	max-width: 500px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.section-header__title {
		font-size: 40px;
	}
	.section-header__subtitle {
		font-size: 18px;
	}
}

/* --- Courses Section --- */
.courses {
	padding: 80px 0;
	background-color: var(--bg-color);
	border-bottom: 1px solid var(--border-color);
}

.courses__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 25px;
}

.courses__card {
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	text-align: left;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.courses__card:hover {
	transform: translateY(-8px);
	border-color: var(--primary-color);
}

.courses__card-icon {
	color: var(--primary-color);
	margin-bottom: 20px;
}

.courses__card-icon i {
	width: 36px;
	height: 36px;
}

.courses__card-title {
	font-family: var(--font-secondary);
	font-size: 22px;
	margin-bottom: 10px;
}

.courses__card-description {
	font-size: 15px;
	color: var(--muted-color);
	margin-bottom: 20px;
	min-height: 72px; /* Reserve space for 3 lines of text */
}

.courses__card-duration {
	display: inline-block;
	background-color: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

/* Responsive adjustments for Courses grid */
@media (min-width: 576px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- Process Section --- */
.process {
	padding: 80px 0;
	background-color: var(--secondary-color);
	border-bottom: 1px solid var(--border-color);
}

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The vertical line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 20px;
}

.process__item {
	padding: 10px 0 40px 60px;
	position: relative;
}

.process__item-content {
	padding: 20px;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	position: relative;
}

/* The circle on the timeline */
.process__item::after {
	content: '';
	position: absolute;
	width: 15px;
	height: 15px;
	left: 13px;
	top: 28px;
	background-color: var(--bg-color);
	border: 3px solid var(--primary-color);
	border-radius: 50%;
	z-index: 1;
}

.process__item-icon {
	position: absolute;
	top: -20px;
	left: 20px;
	background-color: var(--primary-color);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.process__item-icon i {
	width: 20px;
	height: 20px;
}

.process__item-step {
	font-size: 14px;
	font-weight: 500;
	color: var(--muted-color);
	margin-bottom: 8px;
	display: block;
	padding-top: 15px; /* space for icon */
}

.process__item-title {
	font-family: var(--font-secondary);
	font-size: 20px;
	margin-bottom: 10px;
}

.process__item-description {
	font-size: 15px;
	color: var(--muted-color);
	line-height: 1.6;
}

/* Desktop layout for timeline */
@media (min-width: 768px) {
	.process__timeline::after {
		left: 50%;
		margin-left: -1.5px;
	}

	.process__item {
		padding-left: 0;
		padding-right: 0;
		width: 50%;
	}

	/* Place items on the left */
	.process__item:nth-child(odd) {
		left: 0;
		padding-right: 40px;
		text-align: right;
	}

	/* Place items on the right */
	.process__item:nth-child(even) {
		left: 50%;
		padding-left: 40px;
	}

	.process__item:nth-child(odd) .process__item-icon {
		left: auto;
		right: 20px;
	}

	/* The circle on the timeline */
	.process__item::after {
		left: 50%;
		margin-left: -7.5px;
	}
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- Mentors Section --- */
.mentors {
	padding: 80px 0;
	background-color: var(--bg-color);
	border-bottom: 1px solid var(--border-color);
}

.mentors__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.mentors__card {
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentors__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mentors__card-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 3px solid var(--border-color);
	margin-bottom: 20px;
	object-fit: cover;
}

.mentors__card-name {
	font-family: var(--font-secondary);
	font-size: 22px;
	margin-bottom: 5px;
}

.mentors__card-role {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
}

.mentors__card-skills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.mentors__card-skill {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	color: var(--muted-color);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.mentors__card-socials {
	display: flex;
	gap: 15px;
	margin-top: auto; /* Pushes socials to the bottom */
}

.mentors__card-socials a {
	color: var(--muted-color);
}

.mentors__card-socials a:hover {
	color: var(--primary-color);
}

.mentors__card-socials i {
	width: 22px;
	height: 22px;
}

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

@media (min-width: 992px) {
	.mentors__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- Reviews Section --- */
.reviews {
	padding: 80px 0;
	background-color: var(--secondary-color);
	border-bottom: 1px solid var(--border-color);
}

.reviews__slider {
	padding: 10px; /* To prevent box-shadow cropping */
	margin: 0 -10px;
}

.reviews__card {
	height: 100%;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
}

.reviews__card-text {
	font-size: 16px;
	color: var(--muted-color);
	line-height: 1.7;
	margin-bottom: 25px;
	flex-grow: 1; /* Pushes author to the bottom */
}

.reviews__card-text::before {
	content: '“';
	font-family: var(--font-secondary);
	font-size: 40px;
	color: var(--primary-color);
	line-height: 1;
	display: block;
	margin-bottom: -10px;
}

.reviews__card-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.reviews__author-photo {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.reviews__author-name {
	display: block;
	font-weight: 500;
	color: var(--text-color);
}

.reviews__author-course {
	display: block;
	font-size: 14px;
	color: var(--muted-color);
}

/* Swiper Navigation & Pagination */
.reviews__navigation {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
}

.swiper-button-prev,
.swiper-button-next {
	position: static;
	margin: 0;
	width: 44px !important;
	height: 44px !important;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	color: var(--primary-color) !important;
	transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--border-color);
}

.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 18px !important;
	font-weight: 900;
}

.swiper-pagination {
	position: static;
	width: auto;
}

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

.swiper-pagination-bullet-active {
	background-color: var(--primary-color);
	opacity: 1;
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- Contact Section --- */
.contact {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact__title {
    font-family: var(--font-secondary);
    font-size: 32px;
    margin-bottom: 15px;
}

.contact__description {
    color: var(--muted-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__detail-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}
.contact__detail-item:hover {
    color: var(--primary-color);
}
.contact__detail-item i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.contact__form-wrapper {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact__form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact__form-input {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact__form-label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--muted-color);
    pointer-events: none;
    transition: all 0.2s ease;
}

.contact__form-input:focus ~ .contact__form-label,
.contact__form-input:not(:placeholder-shown) ~ .contact__form-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: var(--secondary-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}
.contact__form-group--checkbox label {
    font-size: 13px;
    color: var(--muted-color);
}
.contact__form-group--checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}
.contact__form-group--checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.contact__form-button {
    width: 100%;
    padding: 14px;
}

.contact__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
}
.contact__success-message i {
    width: 60px;
    height: 60px;
    color: #28a745; /* Success Green */
    margin-bottom: 20px;
}
.contact__success-message h3 {
    font-family: var(--font-secondary);
    font-size: 24px;
    margin-bottom: 10px;
}
.contact__success-message p {
    color: var(--muted-color);
}


/* Responsive */
@media (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 15px;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-popup.cookie-popup--active {
    transform: translateY(0);
}

.cookie-popup__text {
    color: var(--muted-color);
    font-size: 14px;
    text-align: center;
}

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

.cookie-popup__button {
    padding: 8px 16px;
    font-size: 14px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup {
        justify-content: space-between;
        padding: 15px 30px;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/* APPEND THIS TO THE END OF your style.css FILE */

/* --- Policy/Generic Pages Styling --- */
.pages {
    padding: 120px 0 80px; /* 120px top to account for fixed header */
}

.pages .container {
    max-width: 800px; /* Narrower for better readability */
}

.pages h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.pages h2 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    color: var(--muted-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.pages li {
    color: var(--muted-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pages a:hover {
    text-decoration: none;
}

.pages strong {
    color: var(--text-color);
    font-weight: 500;
}
