/* ======== 0. GLOBAL STYLES ======== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@600;700&display=swap');

/* --- CSS Variables (Root) --- */
:root {
	--primary-color: #0052ff;
	--secondary-color: #00c49a;
	--dark-color: #0c1821;
	--light-color: #f8f9fa;
	--white-color: #ffffff;
	--text-color: #333333;
	--text-light: #666666;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;

	--header-height: 70px;
	--border-radius: 8px;
	--transition-speed: 0.3s ease;
}

/* --- Reset & Base --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--white-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

ul,
ol {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--primary-color);
	transition: var(--transition-speed);
}

a:hover {
	opacity: 0.8;
}

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

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* --- Utility Class --- */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem; /* 24px */
}

/* ======== 1. HEADER & NAVIGATION ======== */
.header {
	width: 100%;
	height: var(--header-height);
	background-color: var(--white-color);
	border-bottom: 1px solid #eee;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* 8px */
	text-decoration: none;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem; /* 20px */
	color: var(--dark-color);
}

.logo__svg {
	width: 32px;
	height: 32px;
}

/* --- Mobile Navigation (Default) --- */
.header__nav {
	position: fixed;
	top: 0;
	right: -100%; /* Hidden by default */
	width: 80%;
	max-width: 320px;
	height: 100vh;
	background-color: var(--dark-color);
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	transition: right var(--transition-speed);
	z-index: 101;
	padding: 4rem 2rem;
}

.header__nav--open {
	right: 0;
}

.nav__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px */
}

.nav__link {
	font-family: var(--font-heading);
	font-size: 1.125rem; /* 18px */
	color: var(--white-color);
	text-decoration: none;
	transition: var(--transition-speed);
}

.nav__link:hover {
	color: var(--primary-color);
	opacity: 1;
}

.nav__link--cta {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
}

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

.nav__close-btn {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	color: var(--white-color);
	padding: 0;
}

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

.header__burger-btn {
	display: block; /* Visible on mobile */
	color: var(--dark-color);
	z-index: 102;
	padding: 0;
}

/* --- Desktop Navigation (Media Query) --- */
@media (min-width: 992px) {
	.header__nav {
		position: static;
		width: auto;
		max-width: none;
		height: auto;
		background-color: transparent;
		box-shadow: none;
		padding: 0;
		transition: none;
	}

	.nav__list {
		flex-direction: row;
		align-items: center;
		gap: 2rem; /* 32px */
	}

	.nav__link {
		font-size: 1rem; /* 16px */
		color: var(--text-color);
		font-family: var(--font-body);
		font-weight: 500;
	}

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

	.nav__link--cta {
		padding: 0.6rem 1.25rem;
	}

	.nav__close-btn {
		display: none;
	}

	.header__burger-btn {
		display: none;
	}
}

/* ======== 2. MAIN CONTENT (Placeholder) ======== */
.main-content {
	padding-top: var(--header-height); /* Offset for fixed header */
	min-height: 60vh; /* Placeholder height */
}

/* ======== 3. FOOTER ======== */
.footer {
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 4rem 0 2rem;
	margin-top: 3rem; /* Spacing before footer */
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem; /* 40px */
}

.footer__logo {
	color: var(--white-color);
	margin-bottom: 1rem;
}

.footer__description {
	font-size: 0.9rem;
	color: var(--text-light);
	max-width: 300px;
	line-height: 1.5;
}

.footer__title {
	font-family: var(--font-heading);
	font-size: 1.125rem; /* 18px */
	color: var(--white-color);
	margin-bottom: 1.25rem; /* 20px */
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem; /* 12px */
}

.footer__link {
	font-size: 0.9rem;
	color: var(--text-light);
	text-decoration: none;
}

.footer__link:hover {
	color: var(--white-color);
	opacity: 1;
}

.footer__list--contact {
	gap: 1rem; /* 16px */
}

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem; /* 12px */
	font-size: 0.9rem;
	color: var(--text-light);
}

.footer__contact-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--secondary-color);
}

.footer__bottom {
	text-align: center;
	margin-top: 3rem; /* 48px */
	padding-top: 1.5rem; /* 24px */
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8rem;
	color: var(--text-light);
}

/* --- Footer Media Queries --- */
@media (min-width: 768px) {
	.footer__container {
		/* 2 columns */
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		/* 4 columns */
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem; /* 48px */
	}
}

/* ======== 4. GLOBAL COMPONENTS (Buttons) ======== */
.btn {
	display: inline-block;
	padding: 0.85rem 1.75rem; /* 14px 28px */
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	border-radius: var(--border-radius);
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition-speed);
	text-align: center;
	border: 2px solid transparent;
}

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

.btn--primary:hover {
	background-color: #0044cc; /* Darker primary */
	color: var(--white-color);
	opacity: 1;
}

.btn--secondary {
	background-color: var(--white-color);
	color: var(--primary-color);
	border-color: #e0e0e0;
}

.btn--secondary:hover {
	background-color: var(--light-color);
	border-color: var(--primary-color);
	color: var(--primary-color);
	opacity: 1;
}

/* ======== 5. HERO SECTION ======== */
.hero {
	padding: 4rem 0; /* 64px */
	background-color: var(--light-color);
	overflow: hidden; /* For animation effects */
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem; /* 48px */
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-family: var(--font-heading);
	font-size: 2.5rem; /* 40px */
	line-height: 1.2;
	color: var(--dark-color);
	margin-bottom: 1.5rem; /* 24px */
}

/* --- Hero Animation: Stagger Reveal --- */
.hero__title[data-animate='stagger-reveal'] span {
	display: inline-block;
	opacity: 0;
	transform: translateY(25px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__title.is-visible span {
	opacity: 1;
	transform: translateY(0);
}

/* --- Hero Animation: Fade In --- */
[data-animate='fade-in'] {
	opacity: 0;
	transition: opacity 0.8s ease 0.4s; /* Added delay */
}

[data-animate='fade-in'].is-visible {
	opacity: 1;
}
/* ------------------------------------- */

.hero__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-light);
	line-height: 1.7;
	max-width: 600px;
	margin: 0 auto 2rem; /* 32px */
}

.hero__actions {
	display: flex;
	justify-content: center;
	gap: 1rem; /* 16px */
	flex-wrap: wrap; /* For smaller screens */
	margin-bottom: 2.5rem; /* 40px */
}

.hero__features {
	display: flex;
	justify-content: center;
	gap: 1.5rem; /* 24px */
	flex-wrap: wrap;
}

.hero__feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* 8px */
	color: var(--text-light);
	font-weight: 500;
}

.hero__feature-item i {
	color: var(--secondary-color);
	width: 20px;
	height: 20px;
}

.hero__visual {
	max-width: 500px;
	margin: 0 auto;
}

.hero__image {
	width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 82, 255, 0.1);
}

/* --- Hero Media Queries (Desktop) --- */
@media (min-width: 992px) {
	.hero {
		padding: 6rem 0; /* 96px */
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem; /* 64px */
	}

	.hero__content {
		text-align: left;
	}

	.hero__title {
		font-size: 3.5rem; /* 56px */
	}

	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}

	.hero__actions,
	.hero__features {
		justify-content: flex-start;
	}
}

/* ======== 6. GLOBAL: SECTION HEADER ======== */
.section-header {
	text-align: center;
	margin-bottom: 3.5rem; /* 56px */
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__subtitle {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--primary-color);
	background-color: rgba(0, 82, 255, 0.08);
	padding: 0.3rem 0.75rem;
	border-radius: 20px;
	margin-bottom: 0.75rem; /* 12px */
}

.section-header__title {
	font-family: var(--font-heading);
	font-size: 2.25rem; /* 36px */
	line-height: 1.2;
	color: var(--dark-color);
	margin-bottom: 1rem; /* 16px */
}

.section-header__description {
	font-size: 1.1rem; /* 17-18px */
	color: var(--text-light);
	line-height: 1.6;
}

@media (min-width: 768px) {
	.section-header__title {
		font-size: 2.5rem; /* 40px */
	}
}

/* ======== 7. COURSES SECTION ======== */
.courses {
	padding: 4rem 0; /* 64px */
	background-color: var(--white-color);
}

.courses__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem; /* 32px */
}

.course-card {
	background-color: var(--white-color);
	border: 1px solid #e0e0e0;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform var(--transition-speed),
		box-shadow var(--transition-speed);
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 82, 255, 0.1);
}

.course-card__image-wrapper {
	position: relative;
	width: 100%;
	/* Aspect ratio 16:9 */
	padding-top: 56.25%;
}

.course-card__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-card__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: var(--secondary-color);
	color: var(--dark-color);
	font-family: var(--font-heading);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 20px;
}

.course-card__content {
	padding: 1.75rem; /* 28px */
	display: flex;
	flex-direction: column;
	height: calc(
		100% - 56.25%
	); /* Adjust based on image aspect ratio if needed */
}

.course-card__title {
	font-family: var(--font-heading);
	font-size: 1.375rem; /* 22px */
	color: var(--dark-color);
	margin-bottom: 0.75rem; /* 12px */
	line-height: 1.3;
}

.course-card__description {
	font-size: 0.95rem; /* 15px */
	color: var(--text-light);
	line-height: 1.6;
	margin-bottom: 1.5rem; /* 24px */
	flex-grow: 1; /* Pushes button to the bottom */
}

.btn--full-width {
	width: 100%;
}

/* --- Courses Media Queries (Desktop) --- */
@media (min-width: 768px) {
	.courses__grid {
		/* 2 columns */
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.courses {
		padding: 6rem 0; /* 96px */
	}
	.courses__grid {
		/* 3 columns */
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ======== 8. FORMAT SECTION (Accordion) ======== */
.format {
	padding: 4rem 0; /* 64px */
	background-color: var(--light-color);
}

.format__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem; /* 48px */
	align-items: center;
}

.format__visual {
	max-width: 500px;
	margin: 0 auto;
}

.format__image {
	width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Make section header text-aligned left for this block */
.format__header {
	text-align: left;
	margin-bottom: 2.5rem; /* 40px */
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

/* --- Accordion Styles --- */
.accordion {
	border: 1px solid #e0e0e0;
	border-radius: var(--border-radius);
	overflow: hidden;
}

.accordion__item {
	border-bottom: 1px solid #e0e0e0;
}
.accordion__item:last-child {
	border-bottom: none;
}

.accordion__header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem; /* 24px */
	text-align: left;
	background-color: var(--white-color);
	transition: background-color var(--transition-speed);
}
.accordion__header:hover {
	background-color: #fcfcfc;
}

.accordion__title {
	font-family: var(--font-heading);
	font-size: 1.125rem; /* 18px */
	color: var(--dark-color);
	font-weight: 600;
	margin-right: 1rem; /* 16px */
}

.accordion__icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	transition: transform var(--transition-speed);
	flex-shrink: 0; /* Prevent icon shrinking */
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
	background-color: var(--white-color);
}

.accordion__text {
	padding: 0 1.5rem 1.5rem;
	font-size: 0.95rem; /* 15px */
	color: var(--text-light);
	line-height: 1.6;
}

/* --- Accordion 'is-open' state --- */
.accordion__item.is-open .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item.is-open .accordion__content {
	/* Set max-height to something larger than content */
	max-height: 300px;
}

/* --- Format Media Queries (Desktop) --- */
@media (min-width: 992px) {
	.format {
		padding: 6rem 0; /* 96px */
	}

	.format__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem; /* 80px */
	}
}

/* ======== 9. TEACHERS SECTION ======== */
.teachers {
	padding: 4rem 0; /* 64px */
	background-color: var(--white-color);
}

.teachers__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem; /* 32px */
}

.teacher-card {
	background-color: var(--light-color);
	border-radius: var(--border-radius);
	text-align: center;
	overflow: hidden;
	transition: transform var(--transition-speed),
		box-shadow var(--transition-speed);
}

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

.teacher-card__image-wrapper {
	width: 100%;
	background-color: #e0e0e0;
}

.teacher-card__image {
	width: 100%;
	height: 320px; /* Fixed height for consistency */
	object-fit: cover;
	object-position: top center;
}

.teacher-card__content {
	padding: 1.75rem; /* 28px */
}

.teacher-card__name {
	font-family: var(--font-heading);
	font-size: 1.375rem; /* 22px */
	color: var(--dark-color);
	margin-bottom: 0.25rem; /* 4px */
}

.teacher-card__role {
	display: block;
	font-size: 0.9rem; /* 14px */
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 0.75rem; /* 12px */
}

.teacher-card__bio {
	font-size: 0.9rem; /* 14px */
	color: var(--text-light);
	line-height: 1.6;
}

/* --- Teachers Media Queries (Desktop) --- */
@media (min-width: 768px) {
	.teachers__grid {
		/* 2 columns */
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.teachers {
		padding: 6rem 0; /* 96px */
	}
	.teachers__grid {
		/* 3 columns */
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ======== 10. REVIEWS SECTION (Swiper) ======== */
.reviews {
	padding: 4rem 0; /* 64px */
	background-color: var(--light-color);
}

.reviews__slider-wrapper {
	position: relative;
	max-width: 900px; /* Limit slider width for better readability */
	margin: 0 auto;
	padding: 0 1rem; /* Space for nav buttons on mobile */
}

.reviews-slider {
	width: 100%;
	overflow: hidden; /* Swiper default */
	padding-bottom: 3.5rem; /* Space for pagination */
}

.review-card {
	background-color: var(--white-color);
	border-radius: var(--border-radius);
	padding: 2.5rem; /* 40px */
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
	border: 1px solid #eee;
	height: 100%; /* Ensure slides have same height */
	display: flex;
	flex-direction: column;
}

.review-card__icon {
	width: 40px;
	height: 40px;
	color: var(--secondary-color);
	margin-bottom: 1rem; /* 16px */
	flex-shrink: 0;
}

.review-card__text {
	font-size: 1.1rem; /* 17-18px */
	font-style: italic;
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 2rem; /* 32px */
	flex-grow: 1; /* Pushes author to the bottom */
}

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

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

.review-card__author-name {
	font-family: var(--font-heading);
	font-size: 1.125rem; /* 18px */
	color: var(--dark-color);
	margin-bottom: 0.1rem;
}

.review-card__author-role {
	font-size: 0.9rem; /* 14px */
	color: var(--text-light);
}

/* --- Swiper Controls --- */
.reviews-slider__pagination.swiper-pagination {
	bottom: 0.5rem; /* Position pagination dots */
}

.swiper-pagination-bullet {
	background-color: #ccc;
	opacity: 1;
}

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

.reviews-slider__nav {
	display: none; /* Hidden on mobile by default */
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background-color: var(--white-color);
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	cursor: pointer;
	transition: var(--transition-speed);
	z-index: 10;
}
.reviews-slider__nav:hover {
	background-color: var(--primary-color);
	color: var(--white-color);
	border-color: var(--primary-color);
}
.reviews-slider__nav--prev {
	left: -22px; /* Half outside */
}
.reviews-slider__nav--next {
	right: -22px; /* Half outside */
}

/* --- Reviews Media Queries (Desktop) --- */
@media (min-width: 992px) {
	.reviews {
		padding: 6rem 0; /* 96px */
	}
	.reviews__slider-wrapper {
		padding: 0 3rem; /* Space for nav buttons */
	}
	.reviews-slider__nav {
		display: flex; /* Show nav buttons on desktop */
	}
}

/* ======== 11. CONTACT SECTION ======== */
.contact {
	padding: 4rem 0; /* 64px */
	background-color: var(--white-color);
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem; /* 48px */
}

/* Align contact header to the left */
.contact__header {
	text-align: left;
	margin-bottom: 2.5rem; /* 40px */
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 2rem; /* 32px */
}

.contact__detail-item {
	background: var(--light-color);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	border: 1px solid #e0e0e0;
}

.contact__detail-icon {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
	margin-bottom: 1rem; /* 16px */
}

.contact__detail-title {
	font-family: var(--font-heading);
	font-size: 1.25rem; /* 20px */
	color: var(--dark-color);
	margin-bottom: 0.5rem; /* 8px */
}

.contact__detail-text {
	color: var(--text-light);
	margin-bottom: 1rem; /* 16px */
}

.contact__detail-link {
	font-weight: 500;
	color: var(--primary-color);
	text-decoration: none;
}
.contact__detail-link:hover {
	text-decoration: underline;
}

.contact__form-wrapper {
	background-color: var(--white-color);
	padding: 2.5rem; /* 40px */
	border-radius: var(--border-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	border: 1px solid #eee;
}

/* --- Form Styles --- */
.form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem; /* 24px */
}

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 1rem; /* 16px */
	font-size: 1rem;
	font-family: var(--font-body);
	color: var(--text-color);
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	background-color: var(--white-color);
	transition: border-color var(--transition-speed);
}

/* "Floating" Label Effect */
.form__label {
	position: absolute;
	top: 50%;
	left: 1rem; /* 16px */
	transform: translateY(-50%);
	font-size: 1rem;
	color: var(--text-light);
	background-color: var(--white-color);
	padding: 0 0.25rem; /* 4px */
	transition: all var(--transition-speed);
	pointer-events: none;
}

.form__input:focus,
.form__input:not(:placeholder-shown) {
	border-color: var(--primary-color);
	outline: none;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: 0;
	left: 0.75rem; /* 12px */
	font-size: 0.8rem; /* 12px */
	color: var(--primary-color);
}

/* --- Checkbox Styles --- */
.form__checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem; /* 12px */
}

.form__checkbox {
	margin-top: 0.2rem; /* Align with first line of text */
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
}

.form__checkbox-label {
	font-size: 0.85rem; /* 13-14px */
	color: var(--text-light);
	line-height: 1.5;
}

.form__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

/* --- Form Message Styles --- */
.form-message {
	margin-top: 1.5rem; /* 24px */
	padding: 1rem;
	border-radius: var(--border-radius);
	text-align: center;
	font-weight: 500;
	display: none; /* Hidden by default */
}

.form-message--success {
	display: block; /* Show message */
	background-color: rgba(0, 196, 154, 0.1); /* --secondary-color opacity */
	color: #00644e;
	border: 1px solid #00c49a;
}

.form-message--error {
	display: block; /* Show message */
	background-color: rgba(255, 0, 0, 0.1);
	color: #cc0000;
	border: 1px solid #cc0000;
}

/* --- Contact Media Queries --- */
@media (min-width: 992px) {
	.contact {
		padding: 6rem 0; /* 96px */
	}
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem; /* 80px */
	}
}

/* ======== 12. COOKIE POP-UP ======== */
.btn--small {
	padding: 0.5rem 1rem; /* 8px 16px */
	font-size: 0.9rem; /* 14px */
}

.cookie-popup {
	position: fixed;
	bottom: -100%; /* Hidden by default */
	left: 0;
	width: 100%;
	background-color: var(--dark-color);
	color: var(--white-color);
	padding: 1.5rem; /* 24px */
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 0; /* Show the popup */
}

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem; /* 16px */
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.cookie-popup__text {
	font-size: 0.9rem; /* 14px */
	line-height: 1.5;
}

.cookie-popup__text a {
	color: var(--white-color);
	text-decoration: underline;
	font-weight: 500;
}
.cookie-popup__text a:hover {
	color: var(--secondary-color);
}

@media (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

/* ======== 13. LEGAL PAGES (privacy.html etc.) ======== */
/* Стилі для сторінок політик */
.pages {
	padding: 3rem 0; /* 48px */
	padding-top: calc(var(--header-height) + 3rem); /* Offset header */
	background-color: var(--white-color);
	min-height: 80vh;
}

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

.pages h1 {
	font-family: var(--font-heading);
	font-size: 1.5rem; /* 40px */
	color: var(--dark-color);
	margin-bottom: 2rem; /* 32px */
	line-height: 1.2;
}

.pages h2 {
	font-family: var(--font-heading);
	font-size: 1.5rem; /* 28px */
	color: var(--dark-color);
	margin-top: 2.5rem; /* 40px */
	margin-bottom: 1rem; /* 16px */
}

.pages p {
	font-size: 1rem; /* 16px */
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 1.5rem; /* 24px */
}

.pages ul {
	list-style: disc;
	padding-left: 1.5rem; /* 24px */
	margin-bottom: 1.5rem; /* 24px */
}

.pages li {
	font-size: 1rem;
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 0.75rem; /* 12px */
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	font-weight: 500;
}
.pages a:hover {
	opacity: 0.8;
}

.pages strong {
	font-weight: 700;
	color: var(--dark-color);
}
