/* ==========================================================================
   0. Global Styles & Variables
   ========================================================================== */
:root {
	--bg-light: #e0e1dd;
	--bg-dark: #0d1b2a;
	--bg-card: #f1f2f4;
	--text-primary: #415a77;
	--text-light: #f1f2f4;
	--accent: #00a896;
	--font-heading: 'Space Grotesk', sans-serif;
	--font-body: 'Inter', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--bg-dark);
	line-height: 1.2;
}

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

ul {
	list-style: none;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--accent);
	color: var(--bg-dark);
	font-family: var(--font-heading);
	font-weight: 500;
	border-radius: 6px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 168, 150, 0.4);
}

/* ==========================================================================
   1. Header
   ========================================================================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(224, 225, 221, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(13, 27, 42, 0.1);
	padding: 15px 0;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--bg-dark);
}

.nav__list {
	display: flex;
	gap: 30px;
}

.nav__link {
	position: relative;
	padding-bottom: 5px;
	font-weight: 500;
}

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

.nav__link:hover::after {
	width: 100%;
}

.header__button {
	padding: 10px 24px;
}

.burger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1001;
}

.burger-menu__line {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--bg-dark);
	margin: 5px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   2. Footer
   ========================================================================== */
.footer {
	background-color: var(--bg-dark);
	color: var(--text-light);
	padding: 60px 0 30px;
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(241, 242, 244, 0.2);
}

.footer__column--info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer__logo {
	color: var(--text-light);
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--text-primary);
}

.footer__title {
	font-size: 18px;
	color: var(--text-light);
	margin-bottom: 20px;
}

.footer__list li {
	margin-bottom: 10px;
}

.footer__link {
	color: var(--text-primary);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
}

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

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

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

@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--bg-light);
		backdrop-filter: blur(10px);
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 999;
		transition: right 0.4s ease-in-out;
	}

	.nav.is-open {
		right: 0;
	}

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

	.nav__link {
		font-size: 1.5rem;
		font-weight: 600;
	}

	.header__button {
		display: none;
	}

	.burger-menu {
		display: block;
	}

	.burger-menu.is-active .burger-menu__line:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.burger-menu.is-active .burger-menu__line:nth-child(2) {
		opacity: 0;
	}

	.burger-menu.is-active .burger-menu__line:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--info {
		align-items: center;
	}

	.footer__link {
		justify-content: center;
	}
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 100px; /* Header offset */
	padding-bottom: 40px;
}

.hero__container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 50px;
}

.hero__title {
	font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
	margin-bottom: 20px;
	font-weight: 700;
}

/* For animation purposes */
.hero__title .letter {
	display: inline-block;
	opacity: 0;
	transform: translateY(40px);
}

.hero__subtitle {
	font-size: 1.1rem;
	max-width: 500px;
	margin-bottom: 30px;
	opacity: 0; /* For animation */
}

.hero__button {
	font-size: 1.1rem;
	opacity: 0; /* For animation */
}

.hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0; /* For animation */
}

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Responsive adjustments for Hero section */
@media (max-width: 992px) {
	.hero__title {
		font-size: clamp(2.2rem, 5vw, 3rem);
	}
}

@media (max-width: 768px) {
	.hero {
		text-align: center;
		padding-top: 120px;
	}

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

	.hero__content {
		order: 2; /* Text below image on mobile */
	}

	.hero__visual {
		order: 1;
	}

	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==========================================================================
   4. Courses Section
   ========================================================================== */
.courses {
	padding: 80px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header__title {
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin-bottom: 10px;
}

.section-header__subtitle {
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
	color: var(--text-primary);
}

.courses__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.course-card {
	background-color: var(--bg-card);
	border: 1px solid rgba(13, 27, 42, 0.1);
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
}

.course-card__icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-light);
	border-radius: 50%;
	margin-bottom: 20px;
}

.course-card__icon svg {
	width: 28px;
	height: 28px;
	color: var(--accent);
}

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

.course-card__description {
	margin-bottom: 20px;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.course-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.course-card__tag {
	background-color: var(--bg-light);
	color: var(--text-primary);
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 0.85rem;
	font-weight: 500;
}

.course-card__link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--accent);
	margin-top: auto; /* Pushes the link to the bottom */
}

.course-card__link svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.course-card:hover .course-card__link svg {
	transform: translateX(5px);
}

/* ==========================================================================
   5. Format Section
   ========================================================================== */
.format {
	padding: 80px 0;
	background-color: var(--bg-card);
}

.format__container {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 60px;
	align-items: center;
}

.format__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.format__header {
	text-align: left;
	margin-bottom: 30px;
}

.format__header .section-header__subtitle {
	margin: 0;
	max-width: 100%;
}

.accordion__item {
	border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.accordion__header {
	width: 100%;
	background: none;
	border: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	cursor: pointer;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 500;
	text-align: left;
}

.accordion__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0; /* Prevents icon from shrinking */
	color: var(--accent);
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion__content p {
	padding-bottom: 20px;
	color: var(--text-primary);
}

/* Active state for accordion */
.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item.is-active .accordion__content {
	max-height: 200px; /* Adjust if content is taller */
}

/* Responsive */
@media (max-width: 768px) {
	.format__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.format__visual {
		order: 2;
	}

	.format__content {
		order: 1;
	}

	.format__header {
		text-align: center;
	}
}

/* ==========================================================================
   6. About Section
   ========================================================================== */
.about {
	padding: 80px 0;
	background-color: var(--bg-light);
}

.about__mission {
	font-size: 1.5rem;
	font-family: var(--font-heading);
	text-align: center;
	max-width: 800px;
	margin: 0 auto 60px auto;
	line-height: 1.5;
	color: var(--bg-dark);
}

.about__team-title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 40px;
}

.about__team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.mentor-card {
	text-align: center;
	transition: transform 0.3s ease;
}

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

.mentor-card__photo {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 20px;
	border: 4px solid var(--bg-card);
	box-shadow: 0 4px 15px rgba(13, 27, 42, 0.1);
}

.mentor-card__name {
	font-size: 1.25rem;
	margin-bottom: 5px;
}

.mentor-card__role {
	color: var(--text-primary);
	font-size: 0.95rem;
}

@media (max-width: 768px) {
	.about__mission {
		font-size: 1.2rem;
	}
}

/* ==========================================================================
   7. Reviews Section
   ========================================================================== */
.reviews {
	padding: 80px 0;
	background-color: var(--bg-card);
}

.reviews-slider {
	padding-bottom: 50px; /* Space for pagination */
}

.review-card {
	background-color: var(--bg-light);
	border: 1px solid rgba(13, 27, 42, 0.05);
	border-radius: 12px;
	padding: 30px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	padding-top: 50px;
}

.review-card::before {
	content: '“';
	font-family: 'Times New Roman', serif;
	font-size: 100px;
	color: var(--accent);
	opacity: 0.1;
	position: absolute;
	top: -10px;
	left: 15px;
	line-height: 1;
}

.review-card__text {
	font-style: italic;
	margin-bottom: 20px;
	color: var(--text-primary);
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: auto;
}

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

.review-card__name {
	font-size: 1.1rem;
	font-family: var(--font-heading);
	color: var(--bg-dark);
	margin: 0;
}

.review-card__role {
	font-size: 0.9rem;
	color: var(--text-primary);
	margin: 0;
}

/* Swiper styles override */
.swiper-pagination-bullet {
	background-color: var(--text-primary);
	opacity: 0.5;
}

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

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

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
	background-color: var(--bg-card);
	padding: 50px;
	border-radius: 12px;
}

.contact__title {
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin-bottom: 20px;
}

.contact__description {
	font-size: 1.1rem;
	line-height: 1.7;
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 0.95rem;
}

.form-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid rgba(13, 27, 42, 0.2);
	border-radius: 6px;
	font-size: 1rem;
	font-family: var(--font-body);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 4px;
	flex-shrink: 0;
}

.form-group--checkbox a {
	color: var(--accent);
	text-decoration: underline;
}

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

.form-message {
	padding: 15px;
	border-radius: 6px;
	text-align: center;
}

.form-message--success {
	background-color: rgba(0, 168, 150, 0.1);
	border: 1px solid var(--accent);
	color: #006d5f;
}

.form-message--error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

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

/* ==========================================================================
   9. Cookie Popup
   ========================================================================== */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--bg-dark);
	color: var(--text-light);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 5px 25px rgba(13, 27, 42, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 2000;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
	margin: 0;
}

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

.cookie-popup__button {
	flex-shrink: 0;
	padding: 10px 20px;
}

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

/* ==========================================================================
   10. Policy Pages (e.g., privacy.html)
   ========================================================================== */
.pages {
	padding: 120px 0 80px 0; /* Extra padding top for header */
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 20px;
}

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

.pages li {
	font-size: 1.1rem;
	margin-bottom: 10px;
	line-height: 1.8;
}

.pages a {
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.pages a:hover {
	color: var(--bg-dark);
}
